Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
gm_flutter
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
林生雨
gm_flutter
Commits
6e6f686e
Commit
6e6f686e
authored
Jul 13, 2020
by
林生雨
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
w
parent
376e160a
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
126 additions
and
88 deletions
+126
-88
PlanCompareDetailPage.dart
...ueModel/page/PlanCompareDetail/PlanCompareDetailPage.dart
+4
-2
LevelOnePage.dart
lib/ClueModel/page/levelOne/LevelOnePage.dart
+37
-39
LevelTwoPage.dart
lib/ClueModel/page/levelTwo/LevelTwoPage.dart
+38
-35
PlanModel.dart
lib/ClueModel/page/plan/PlanModel.dart
+19
-3
PlanPage.dart
lib/ClueModel/page/plan/PlanPage.dart
+0
-1
TopListModel.dart
lib/ClueModel/page/top/TopListModel.dart
+12
-1
TopPage.dart
lib/ClueModel/page/top/TopPage.dart
+2
-2
BaseComponent.dart
lib/commonModel/base/BaseComponent.dart
+11
-2
Api.dart
lib/commonModel/net/Api.dart
+2
-2
updateAar.sh
updateAar.sh
+1
-1
No files found.
lib/ClueModel/page/PlanCompareDetail/PlanCompareDetailPage.dart
View file @
6e6f686e
...
@@ -38,7 +38,6 @@ class PlanCompareDetailPageState extends BaseState<PlanCompareDetailPage> {
...
@@ -38,7 +38,6 @@ class PlanCompareDetailPageState extends BaseState<PlanCompareDetailPage> {
@override
@override
void
initState
()
{
void
initState
()
{
// DioUtil.getInstance().setProxy("172.30.9.128");
super
.
initState
();
super
.
initState
();
_model
.
init
(
widget
.
_planIds
);
_model
.
init
(
widget
.
_planIds
);
}
}
...
@@ -471,7 +470,10 @@ class PlanCompareDetailPageState extends BaseState<PlanCompareDetailPage> {
...
@@ -471,7 +470,10 @@ class PlanCompareDetailPageState extends BaseState<PlanCompareDetailPage> {
flex:
1
,
flex:
1
,
child:
baseText
(
left
.
empty
()
?
"暂无"
:
left
,
12
,
child:
baseText
(
left
.
empty
()
?
"暂无"
:
left
,
12
,
isName
?
Color
(
0xff666666
)
:
Color
(
0xff3FB5AF
),
isName
?
Color
(
0xff666666
)
:
Color
(
0xff3FB5AF
),
bold:
isName
?
false
:
true
,
maxLines:
100
,
isWarp:
true
,
textAlign:
TextAlign
.
end
),
bold:
isName
?
false
:
true
,
maxLines:
100
,
isWarp:
true
,
textAlign:
TextAlign
.
end
),
),
),
Container
(
Container
(
width:
40
,
width:
40
,
...
...
lib/ClueModel/page/levelOne/LevelOnePage.dart
View file @
6e6f686e
...
@@ -64,7 +64,6 @@ class LevelOneState extends BaseState<LevelOnePage>
...
@@ -64,7 +64,6 @@ class LevelOneState extends BaseState<LevelOnePage>
@override
@override
void
initState
()
{
void
initState
()
{
// DioUtil.getInstance().setProxy("172.30.8.245");
super
.
initState
();
super
.
initState
();
_model
.
plan_id
=
widget
.
planId
;
_model
.
plan_id
=
widget
.
planId
;
_model
.
init
(()
{
_model
.
init
(()
{
...
@@ -255,9 +254,7 @@ class LevelOneState extends BaseState<LevelOnePage>
...
@@ -255,9 +254,7 @@ class LevelOneState extends BaseState<LevelOnePage>
List
<
Widget
>
getTabs
()
{
List
<
Widget
>
getTabs
()
{
List
<
Widget
>
list
=
[];
List
<
Widget
>
list
=
[];
for
(
int
i
=
0
;
i
<
_model
.
tabsList
.
length
;
i
++)
{
for
(
int
i
=
0
;
i
<
_model
.
tabsList
.
length
;
i
++)
{
list
.
add
(
baseTabBarItem
(
_model
.
tabsList
[
i
].
name
,
list
.
add
(
baseTabBarItem
(
_model
.
tabsList
[
i
].
name
));
leftPadding:
i
==
0
?
21.5
:
14
,
rightPadding:
i
==
_model
.
tabsList
.
length
-
1
?
21.5
:
14
));
}
}
return
list
;
return
list
;
}
}
...
@@ -441,32 +438,29 @@ class LevelOneState extends BaseState<LevelOnePage>
...
@@ -441,32 +438,29 @@ class LevelOneState extends BaseState<LevelOnePage>
));
));
if
(
_model
.
planoverItem
!=
null
)
{
if
(
_model
.
planoverItem
!=
null
)
{
_model
.
planoverItem
.
explanationAttrs
.
forEach
((
element
)
{
_model
.
planoverItem
.
explanationAttrs
.
forEach
((
element
)
{
List
<
Widget
>
textList
=
[];
if
(
element
.
attrName
.
length
<
4
)
{
for
(
int
i
=
0
;
i
<
element
.
attrName
.
length
;
i
++)
{
textList
.
add
(
baseText
(
element
.
attrName
.
substring
(
i
,
i
+
1
),
13
,
Color
(
0xff999999
)));
if
(
i
<
element
.
attrName
.
length
-
1
)
{
textList
.
add
(
Expanded
(
child:
Container
(),
));
}
}
}
list
.
add
(
Container
(
list
.
add
(
Container
(
margin:
EdgeInsets
.
only
(
bottom:
10
),
margin:
EdgeInsets
.
only
(
bottom:
10
),
child:
Row
(
child:
Row
(
children:
<
Widget
>[
children:
<
Widget
>[
Container
(
Container
(
width:
55
,
width:
52
,
// constraints: BoxConstraints(
child:
element
.
attrName
.
length
<
4
// maxWidth: 55,
?
Row
(
// minWidth: 50
children:
textList
,
// ),
)
child:
Text
(
:
baseText
(
element
.
attrName
,
13
,
Color
(
0xff999999
))),
element
.
attrName
.
length
==
2
?
"
${element.attrName.substring(0, 1)}
${element.attrName.substring(1, 2)}
"
:
element
.
attrName
,
textScaleFactor:
1.0
,
softWrap:
true
,
maxLines:
1
,
overflow:
TextOverflow
.
ellipsis
,
textAlign:
TextAlign
.
start
,
style:
TextStyle
(
decoration:
TextDecoration
.
none
,
fontSize:
13
,
color:
Color
(
0xff999999
),
fontStyle:
FontStyle
.
normal
,
fontWeight:
FontWeight
.
w400
),
)),
Expanded
(
Expanded
(
child:
Container
(
child:
Container
(
margin:
EdgeInsets
.
only
(
left:
12
),
margin:
EdgeInsets
.
only
(
left:
12
),
...
@@ -482,8 +476,6 @@ class LevelOneState extends BaseState<LevelOnePage>
...
@@ -482,8 +476,6 @@ class LevelOneState extends BaseState<LevelOnePage>
fontStyle:
FontStyle
.
normal
,
fontStyle:
FontStyle
.
normal
,
fontWeight:
FontWeight
.
w400
),
fontWeight:
FontWeight
.
w400
),
),
),
// baseText(element.attrValue, 13, Color(0xff666666)
// ),
),
),
)
)
],
],
...
@@ -522,7 +514,7 @@ class LevelOneState extends BaseState<LevelOnePage>
...
@@ -522,7 +514,7 @@ class LevelOneState extends BaseState<LevelOnePage>
.
jumpPage
(
context
,
"level_one_plan_compare"
,
map
,
false
);
.
jumpPage
(
context
,
"level_one_plan_compare"
,
map
,
false
);
},
},
child:
Container
(
child:
Container
(
margin:
EdgeInsets
.
only
(
left:
21
),
margin:
EdgeInsets
.
only
(
left:
21
,
right:
20
),
width:
30
,
width:
30
,
child:
Column
(
child:
Column
(
mainAxisSize:
MainAxisSize
.
min
,
mainAxisSize:
MainAxisSize
.
min
,
...
@@ -541,12 +533,12 @@ class LevelOneState extends BaseState<LevelOnePage>
...
@@ -541,12 +533,12 @@ class LevelOneState extends BaseState<LevelOnePage>
),
),
),
),
Expanded
(
Expanded
(
child:
Container
(),
child:
GestureDetector
(
),
GestureDetector
(
behavior:
HitTestBehavior
.
opaque
,
behavior:
HitTestBehavior
.
opaque
,
onTap:
()
{
onTap:
()
{
if
(
CacheManager
.
getInstance
().
get
(
MEMORY_CACHE
).
get
(
USER_ID
)
==
if
(
CacheManager
.
getInstance
()
.
get
(
MEMORY_CACHE
)
.
get
(
USER_ID
)
==
null
&&
null
&&
RouterCenterImpl
().
findMainRouter
().
isWithNative
())
{
RouterCenterImpl
().
findMainRouter
().
isWithNative
())
{
RouterCenterImpl
()
RouterCenterImpl
()
...
@@ -559,18 +551,23 @@ class LevelOneState extends BaseState<LevelOnePage>
...
@@ -559,18 +551,23 @@ class LevelOneState extends BaseState<LevelOnePage>
..
show
(
context
);
..
show
(
context
);
},
},
child:
Container
(
child:
Container
(
width:
ScreenUtil
().
setWidth
(
137
),
height:
40
,
height:
40
,
decoration:
BoxDecoration
(
decoration:
BoxDecoration
(
color:
Color
(
0xff51CDC7
),
color:
Color
(
0xff51CDC7
),
borderRadius:
BorderRadius
.
circular
(
20
)),
borderRadius:
BorderRadius
.
circular
(
20
)),
alignment:
Alignment
.
center
,
alignment:
Alignment
.
center
,
child:
baseText
(
"咨询"
,
14
,
Colors
.
white
,
bold:
true
),
child:
baseText
(
"咨询"
,
14
,
Colors
.
white
,
bold:
true
),
)),
))),
GestureDetector
(
Container
(
width:
15
,
),
Expanded
(
child:
GestureDetector
(
behavior:
HitTestBehavior
.
opaque
,
behavior:
HitTestBehavior
.
opaque
,
onTap:
()
{
onTap:
()
{
if
(
CacheManager
.
getInstance
().
get
(
MEMORY_CACHE
).
get
(
USER_ID
)
==
if
(
CacheManager
.
getInstance
()
.
get
(
MEMORY_CACHE
)
.
get
(
USER_ID
)
==
null
&&
null
&&
RouterCenterImpl
().
findMainRouter
().
isWithNative
())
{
RouterCenterImpl
().
findMainRouter
().
isWithNative
())
{
RouterCenterImpl
()
RouterCenterImpl
()
...
@@ -582,15 +579,16 @@ class LevelOneState extends BaseState<LevelOnePage>
...
@@ -582,15 +579,16 @@ class LevelOneState extends BaseState<LevelOnePage>
context
,
widget
.
PAGE_NAME
,
"
${widget.planId}
"
,
""
,
""
);
context
,
widget
.
PAGE_NAME
,
"
${widget.planId}
"
,
""
,
""
);
},
},
child:
Container
(
child:
Container
(
margin:
EdgeInsets
.
only
(
left:
15
,
right:
15
),
width:
ScreenUtil
().
setWidth
(
137
),
height:
40
,
height:
40
,
decoration:
BoxDecoration
(
decoration:
BoxDecoration
(
color:
Color
(
0xffF96079
),
color:
Color
(
0xffF96079
),
borderRadius:
BorderRadius
.
circular
(
20
)),
borderRadius:
BorderRadius
.
circular
(
20
)),
alignment:
Alignment
.
center
,
alignment:
Alignment
.
center
,
child:
baseText
(
"获取底价"
,
14
,
Colors
.
white
,
bold:
true
),
child:
baseText
(
"获取底价"
,
14
,
Colors
.
white
,
bold:
true
),
)),
))),
Container
(
width:
15
,
)
],
],
),
),
);
);
...
...
lib/ClueModel/page/levelTwo/LevelTwoPage.dart
View file @
6e6f686e
...
@@ -3,7 +3,6 @@
...
@@ -3,7 +3,6 @@
* @date 2020/6/29
* @date 2020/6/29
**/
**/
import
'dart:async'
;
import
'dart:async'
;
import
'dart:math'
;
import
'dart:ui'
;
import
'dart:ui'
;
import
'package:cached_network_image/cached_network_image.dart'
;
import
'package:cached_network_image/cached_network_image.dart'
;
...
@@ -25,7 +24,6 @@ import 'package:gm_flutter/commonModel/base/BaseState.dart';
...
@@ -25,7 +24,6 @@ import 'package:gm_flutter/commonModel/base/BaseState.dart';
import
'package:gm_flutter/commonModel/bean/Pair.dart'
;
import
'package:gm_flutter/commonModel/bean/Pair.dart'
;
import
'package:gm_flutter/commonModel/cache/CacheManager.dart'
;
import
'package:gm_flutter/commonModel/cache/CacheManager.dart'
;
import
'package:gm_flutter/commonModel/eventbus/SimpleEventBus.dart'
;
import
'package:gm_flutter/commonModel/eventbus/SimpleEventBus.dart'
;
import
'package:gm_flutter/commonModel/net/DioUtil.dart'
;
import
'package:gm_flutter/commonModel/view/baseRefreshIndicator.dart'
;
import
'package:gm_flutter/commonModel/view/baseRefreshIndicator.dart'
;
import
'package:gm_flutter/main.mark.dart'
;
import
'package:gm_flutter/main.mark.dart'
;
import
'package:pull_to_refresh/pull_to_refresh.dart'
;
import
'package:pull_to_refresh/pull_to_refresh.dart'
;
...
@@ -58,7 +56,6 @@ class LevelTwoState extends BaseState<LevelTwoPage>
...
@@ -58,7 +56,6 @@ class LevelTwoState extends BaseState<LevelTwoPage>
@override
@override
void
initState
()
{
void
initState
()
{
// DioUtil.getInstance().setProxy('172.30.9.253');
super
.
initState
();
super
.
initState
();
_model
.
plan_id
=
widget
.
planId
;
_model
.
plan_id
=
widget
.
planId
;
_model
.
init
(()
{
_model
.
init
(()
{
...
@@ -255,9 +252,7 @@ class LevelTwoState extends BaseState<LevelTwoPage>
...
@@ -255,9 +252,7 @@ class LevelTwoState extends BaseState<LevelTwoPage>
List
<
Widget
>
getTabs
()
{
List
<
Widget
>
getTabs
()
{
List
<
Widget
>
list
=
[];
List
<
Widget
>
list
=
[];
for
(
int
i
=
0
;
i
<
_model
.
tabsList
.
length
;
i
++)
{
for
(
int
i
=
0
;
i
<
_model
.
tabsList
.
length
;
i
++)
{
list
.
add
(
baseTabBarItem
(
_model
.
tabsList
[
i
].
name
,
list
.
add
(
baseTabBarItem
(
_model
.
tabsList
[
i
].
name
));
leftPadding:
i
==
0
?
21.5
:
14
,
rightPadding:
i
==
_model
.
tabsList
.
length
-
1
?
21.5
:
14
));
}
}
return
list
;
return
list
;
}
}
...
@@ -384,7 +379,7 @@ class LevelTwoState extends BaseState<LevelTwoPage>
...
@@ -384,7 +379,7 @@ class LevelTwoState extends BaseState<LevelTwoPage>
List
<
Widget
>
list
=
[];
List
<
Widget
>
list
=
[];
list
.
add
(
Row
(
list
.
add
(
Row
(
children:
<
Widget
>[
children:
<
Widget
>[
baseText
(
"项目说明"
,
15
,
Color
(
0xff282828
),
bold:
true
),
baseText
(
"项目说明"
,
15
,
Color
(
0xff282828
),
bold:
true
),
Expanded
(
Expanded
(
child:
Container
(),
child:
Container
(),
),
),
...
@@ -409,27 +404,29 @@ class LevelTwoState extends BaseState<LevelTwoPage>
...
@@ -409,27 +404,29 @@ class LevelTwoState extends BaseState<LevelTwoPage>
));
));
if
(
_model
.
planoverItem
!=
null
)
{
if
(
_model
.
planoverItem
!=
null
)
{
_model
.
planoverItem
.
explanationAttrs
.
forEach
((
element
)
{
_model
.
planoverItem
.
explanationAttrs
.
forEach
((
element
)
{
List
<
Widget
>
textList
=
[];
if
(
element
.
attrName
.
length
<
4
)
{
for
(
int
i
=
0
;
i
<
element
.
attrName
.
length
;
i
++)
{
textList
.
add
(
baseText
(
element
.
attrName
.
substring
(
i
,
i
+
1
),
13
,
Color
(
0xff999999
)));
if
(
i
<
element
.
attrName
.
length
-
1
)
{
textList
.
add
(
Expanded
(
child:
Container
(),
));
}
}
}
list
.
add
(
Container
(
list
.
add
(
Container
(
margin:
EdgeInsets
.
only
(
bottom:
10
),
margin:
EdgeInsets
.
only
(
bottom:
10
),
child:
Row
(
child:
Row
(
children:
<
Widget
>[
children:
<
Widget
>[
Container
(
Container
(
width:
55
,
width:
52
,
child:
Text
(
child:
element
.
attrName
.
length
<
4
element
.
attrName
.
length
==
2
?
Row
(
?
"
${element.attrName.substring(0, 1)}
${element.attrName.substring(1, 2)}
"
children:
textList
,
:
element
.
attrName
,
)
textScaleFactor:
1.0
,
:
baseText
(
element
.
attrName
,
13
,
Color
(
0xff999999
))),
softWrap:
true
,
maxLines:
1
,
overflow:
TextOverflow
.
ellipsis
,
style:
TextStyle
(
decoration:
TextDecoration
.
none
,
fontSize:
13
,
color:
Color
(
0xff999999
),
fontStyle:
FontStyle
.
normal
,
fontWeight:
FontWeight
.
w400
),
)),
Expanded
(
Expanded
(
child:
Container
(
child:
Container
(
margin:
EdgeInsets
.
only
(
left:
12
),
margin:
EdgeInsets
.
only
(
left:
12
),
...
@@ -486,7 +483,7 @@ class LevelTwoState extends BaseState<LevelTwoPage>
...
@@ -486,7 +483,7 @@ class LevelTwoState extends BaseState<LevelTwoPage>
.
jumpPage
(
context
,
"level_two_plan_compare"
,
map
,
false
);
.
jumpPage
(
context
,
"level_two_plan_compare"
,
map
,
false
);
},
},
child:
Container
(
child:
Container
(
margin:
EdgeInsets
.
only
(
left:
21
),
margin:
EdgeInsets
.
only
(
left:
21
,
right:
20
),
width:
30
,
width:
30
,
child:
Column
(
child:
Column
(
mainAxisSize:
MainAxisSize
.
min
,
mainAxisSize:
MainAxisSize
.
min
,
...
@@ -504,10 +501,13 @@ class LevelTwoState extends BaseState<LevelTwoPage>
...
@@ -504,10 +501,13 @@ class LevelTwoState extends BaseState<LevelTwoPage>
),
),
),
),
),
),
GestureDetector
(
Expanded
(
child:
GestureDetector
(
behavior:
HitTestBehavior
.
opaque
,
behavior:
HitTestBehavior
.
opaque
,
onTap:
()
{
onTap:
()
{
if
(
CacheManager
.
getInstance
().
get
(
MEMORY_CACHE
).
get
(
USER_ID
)
==
if
(
CacheManager
.
getInstance
()
.
get
(
MEMORY_CACHE
)
.
get
(
USER_ID
)
==
null
&&
null
&&
RouterCenterImpl
().
findMainRouter
().
isWithNative
())
{
RouterCenterImpl
().
findMainRouter
().
isWithNative
())
{
RouterCenterImpl
()
RouterCenterImpl
()
...
@@ -520,8 +520,6 @@ class LevelTwoState extends BaseState<LevelTwoPage>
...
@@ -520,8 +520,6 @@ class LevelTwoState extends BaseState<LevelTwoPage>
..
show
(
context
);
..
show
(
context
);
},
},
child:
Container
(
child:
Container
(
width:
ScreenUtil
().
setWidth
(
137
),
margin:
EdgeInsets
.
only
(
left:
20
),
height:
40
,
height:
40
,
decoration:
BoxDecoration
(
decoration:
BoxDecoration
(
color:
Color
(
0xff51CDC7
),
color:
Color
(
0xff51CDC7
),
...
@@ -529,13 +527,17 @@ class LevelTwoState extends BaseState<LevelTwoPage>
...
@@ -529,13 +527,17 @@ class LevelTwoState extends BaseState<LevelTwoPage>
alignment:
Alignment
.
center
,
alignment:
Alignment
.
center
,
child:
baseText
(
"咨询"
,
14
,
Colors
.
white
,
bold:
true
),
child:
baseText
(
"咨询"
,
14
,
Colors
.
white
,
bold:
true
),
)),
)),
Expanded
(
child:
Container
(),
),
),
GestureDetector
(
Container
(
width:
15
,
),
Expanded
(
child:
GestureDetector
(
behavior:
HitTestBehavior
.
opaque
,
behavior:
HitTestBehavior
.
opaque
,
onTap:
()
{
onTap:
()
{
if
(
CacheManager
.
getInstance
().
get
(
MEMORY_CACHE
).
get
(
USER_ID
)
==
if
(
CacheManager
.
getInstance
()
.
get
(
MEMORY_CACHE
)
.
get
(
USER_ID
)
==
null
&&
null
&&
RouterCenterImpl
().
findMainRouter
().
isWithNative
())
{
RouterCenterImpl
().
findMainRouter
().
isWithNative
())
{
RouterCenterImpl
()
RouterCenterImpl
()
...
@@ -547,15 +549,16 @@ class LevelTwoState extends BaseState<LevelTwoPage>
...
@@ -547,15 +549,16 @@ class LevelTwoState extends BaseState<LevelTwoPage>
context
,
widget
.
PAGE_NAME
,
"
${widget.planId}
"
,
""
,
""
);
context
,
widget
.
PAGE_NAME
,
"
${widget.planId}
"
,
""
,
""
);
},
},
child:
Container
(
child:
Container
(
margin:
EdgeInsets
.
only
(
left:
15
,
right:
15
),
width:
ScreenUtil
().
setWidth
(
137
),
height:
40
,
height:
40
,
decoration:
BoxDecoration
(
decoration:
BoxDecoration
(
color:
Color
(
0xffF96079
),
color:
Color
(
0xffF96079
),
borderRadius:
BorderRadius
.
circular
(
20
)),
borderRadius:
BorderRadius
.
circular
(
20
)),
alignment:
Alignment
.
center
,
alignment:
Alignment
.
center
,
child:
baseText
(
"获取底价"
,
14
,
Colors
.
white
,
bold:
true
),
child:
baseText
(
"获取底价"
,
14
,
Colors
.
white
,
bold:
true
),
)),
))),
Container
(
width:
15
,
),
],
],
),
),
);
);
...
...
lib/ClueModel/page/plan/PlanModel.dart
View file @
6e6f686e
...
@@ -101,7 +101,8 @@ class PlanModel extends BaseModel {
...
@@ -101,7 +101,8 @@ class PlanModel extends BaseModel {
PlanModelInstance
.
getInstance
().
max_price
=
max_price
;
PlanModelInstance
.
getInstance
().
max_price
=
max_price
;
low
=
0
;
low
=
0
;
projectSelectIndex
=
0
;
projectSelectIndex
=
0
;
PlanModelInstance
.
getInstance
().
projectSelectIndex
=
projectSelectIndex
;
PlanModelInstance
.
getInstance
().
projectSelectIndex
=
projectSelectIndex
;
high
=
20100
;
high
=
20100
;
sortPos
=
0
;
sortPos
=
0
;
picLive
.
notifyView
(
event
.
data
.
ranks
);
picLive
.
notifyView
(
event
.
data
.
ranks
);
...
@@ -114,8 +115,10 @@ class PlanModel extends BaseModel {
...
@@ -114,8 +115,10 @@ class PlanModel extends BaseModel {
PlanModelInstance
.
getInstance
().
high
=
high
;
PlanModelInstance
.
getInstance
().
high
=
high
;
PlanModelInstance
.
getInstance
().
sortPos
=
sortPos
;
PlanModelInstance
.
getInstance
().
sortPos
=
sortPos
;
if
(
call
!=
null
)
{
if
(
call
!=
null
)
{
SimpleEventBus
.
instance
().
notifyListener
(
"FilterViewState"
,
"reset"
);
SimpleEventBus
.
instance
()
SimpleEventBus
.
instance
().
notifyListener
(
"ProjectViewState"
,
"reset"
);
.
notifyListener
(
"FilterViewState"
,
"reset"
);
SimpleEventBus
.
instance
()
.
notifyListener
(
"ProjectViewState"
,
"reset"
);
call
();
call
();
}
}
refreshFeed
(
true
,
needCache:
needCache
);
refreshFeed
(
true
,
needCache:
needCache
);
...
@@ -182,6 +185,19 @@ class PlanModel extends BaseModel {
...
@@ -182,6 +185,19 @@ class PlanModel extends BaseModel {
feedsLive
.
notifyView
(
Pair
(
ENDLOADING
,
[]));
feedsLive
.
notifyView
(
Pair
(
ENDLOADING
,
[]));
}
}
}
else
{
}
else
{
//去重复
event
.
data
.
plans
.
forEach
((
element
)
{
bool
haveIt
=
false
;
for
(
int
i
=
0
;
i
<
feedDatas
.
length
;
i
++)
{
if
(
feedDatas
[
i
].
id
==
element
.
id
)
{
haveIt
=
true
;
break
;
}
}
if
(!
haveIt
)
{
feedDatas
.
add
(
element
);
}
});
feedDatas
.
addAll
(
event
.
data
.
plans
);
feedDatas
.
addAll
(
event
.
data
.
plans
);
feedsLive
.
notifyView
(
Pair
(
ENDLOADING
,
feedDatas
));
feedsLive
.
notifyView
(
Pair
(
ENDLOADING
,
feedDatas
));
}
}
...
...
lib/ClueModel/page/plan/PlanPage.dart
View file @
6e6f686e
...
@@ -64,7 +64,6 @@ class PlanState extends BaseState<PlanPage> with TickerProviderStateMixin {
...
@@ -64,7 +64,6 @@ class PlanState extends BaseState<PlanPage> with TickerProviderStateMixin {
@override
@override
void
initState
()
{
void
initState
()
{
print
(
"LSY PLAN INIT "
);
print
(
"LSY PLAN INIT "
);
// DioUtil.getInstance().setProxy("172.30.9.128");
_model
.
init
(
needCache:
true
);
_model
.
init
(
needCache:
true
);
super
.
initState
();
super
.
initState
();
planBarView
=
planBarView
=
...
...
lib/ClueModel/page/top/TopListModel.dart
View file @
6e6f686e
...
@@ -44,8 +44,19 @@ class TopListModel extends BaseModel {
...
@@ -44,8 +44,19 @@ class TopListModel extends BaseModel {
datasLive
.
notifyView
([]);
datasLive
.
notifyView
([]);
}
}
}
else
{
}
else
{
event
.
data
.
plans
.
forEach
((
element
)
{
bool
haveIt
=
false
;
for
(
int
i
=
0
;
i
<
datas
.
length
;
i
++)
{
if
(
datas
[
i
].
id
==
element
.
id
)
{
haveIt
=
true
;
break
;
}
}
if
(!
haveIt
)
{
datas
.
add
(
element
);
}
});
stateLive
.
notifyView
(
ENDLOADING
);
stateLive
.
notifyView
(
ENDLOADING
);
datas
.
addAll
(
event
.
data
.
plans
);
datasLive
.
notifyView
(
datas
);
datasLive
.
notifyView
(
datas
);
}
}
}
else
{
}
else
{
...
...
lib/ClueModel/page/top/TopPage.dart
View file @
6e6f686e
...
@@ -49,7 +49,6 @@ class TopPageState extends BaseState<TopPage> with TickerProviderStateMixin {
...
@@ -49,7 +49,6 @@ class TopPageState extends BaseState<TopPage> with TickerProviderStateMixin {
@override
@override
void
initState
()
{
void
initState
()
{
// DioUtil.getInstance().setProxy("172.30.8.245");
_model
.
rank_type
=
widget
.
rank_type
;
_model
.
rank_type
=
widget
.
rank_type
;
init
();
init
();
super
.
initState
();
super
.
initState
();
...
@@ -200,7 +199,8 @@ class TopPageState extends BaseState<TopPage> with TickerProviderStateMixin {
...
@@ -200,7 +199,8 @@ class TopPageState extends BaseState<TopPage> with TickerProviderStateMixin {
for
(
int
i
=
0
;
i
<
_model
.
tabs
.
length
;
i
++)
{
for
(
int
i
=
0
;
i
<
_model
.
tabs
.
length
;
i
++)
{
list
.
add
(
baseTabBarItem
(
_model
.
tabs
[
i
].
name
,
list
.
add
(
baseTabBarItem
(
_model
.
tabs
[
i
].
name
,
leftPadding:
i
==
0
?
21.5
:
14
,
leftPadding:
i
==
0
?
21.5
:
14
,
rightPadding:
i
==
_model
.
tabs
.
length
-
1
?
21.5
:
14
));
rightPadding:
i
==
_model
.
tabs
.
length
-
1
?
21.5
:
14
,
isScroll:
true
));
}
}
return
list
;
return
list
;
}
}
...
...
lib/commonModel/base/BaseComponent.dart
View file @
6e6f686e
...
@@ -457,10 +457,14 @@ Widget baseTabBar(
...
@@ -457,10 +457,14 @@ Widget baseTabBar(
}
}
Widget
baseTabBarItem
(
String
text
,
Widget
baseTabBarItem
(
String
text
,
{
double
leftPadding
,
double
rightPadding
,
double
wantWidth
})
{
{
double
leftPadding
,
double
rightPadding
,
double
wantWidth
,
bool
isScroll
=
false
})
{
leftPadding
=
leftPadding
??
14.0
;
leftPadding
=
leftPadding
??
14.0
;
rightPadding
=
rightPadding
??
14.0
;
rightPadding
=
rightPadding
??
14.0
;
return
Row
(
return
isScroll
?
Row
(
mainAxisSize:
MainAxisSize
.
min
,
mainAxisSize:
MainAxisSize
.
min
,
children:
<
Widget
>[
children:
<
Widget
>[
Container
(
Container
(
...
@@ -473,6 +477,11 @@ Widget baseTabBarItem(String text,
...
@@ -473,6 +477,11 @@ Widget baseTabBarItem(String text,
width:
rightPadding
,
width:
rightPadding
,
)
)
],
],
)
:
Center
(
child:
Tab
(
text:
text
,
),
);
);
// Container(
// Container(
// height: 40.0,
// height: 40.0,
...
...
lib/commonModel/net/Api.dart
View file @
6e6f686e
...
@@ -13,7 +13,7 @@ import 'DioUtil.dart';
...
@@ -13,7 +13,7 @@ import 'DioUtil.dart';
/**
/**
* 生产环境
* 生产环境
*/
*/
const
String
APP_HOST_RELEASE
=
"http
://backend.paas-merchant.env
"
;
const
String
APP_HOST_RELEASE
=
"http
s://backend.igengmei.com
"
;
/**
/**
* 测试环境
* 测试环境
*/
*/
...
@@ -26,7 +26,7 @@ const String APP_HOST_DEBUG = "http://backend.paas-merchant.env";
...
@@ -26,7 +26,7 @@ const String APP_HOST_DEBUG = "http://backend.paas-merchant.env";
/**
/**
* 开发环境
* 开发环境
*/
*/
const
String
APP_HOST_DEV
=
"https://
x6cgr5y5-gengmei.mock.coding.io
"
;
const
String
APP_HOST_DEV
=
"https://
backend.igengmei.com
"
;
class
Api
{
class
Api
{
static
String
BUILD_CONFIG
;
static
String
BUILD_CONFIG
;
...
...
updateAar.sh
View file @
6e6f686e
...
@@ -18,6 +18,6 @@ flutter build aar --release --target-platform android-arm
...
@@ -18,6 +18,6 @@ flutter build aar --release --target-platform android-arm
#rm -rf /Users/apple/lsy/gengmei_android/gm-flutter/libs/flutterApp.aar
#rm -rf /Users/apple/lsy/gengmei_android/gm-flutter/libs/flutterApp.aar
#cp -r ${projectDir}/build/host/outputs/repo/com/example/gm_flutter/flutter_release/1.0/flutter_release-1.0.aar /Users/zcc/Downloads/gm-flutter/libs/flutterApp.aar
#cp -r ${projectDir}/build/host/outputs/repo/com/example/gm_flutter/flutter_release/1.0/flutter_release-1.0.aar /Users/zcc/Downloads/gm-flutter/libs/flutterApp.aar
cp
-r
${
projectDir
}
/build/host/outputs/repo/com/example/gm_flutter/flutter_release/1.0/flutter_release-1.0.aar /Users/apple/lsy/gengmei_android/libs/flutterApp.aar
cp
-r
${
projectDir
}
/build/host/outputs/repo/com/example/gm_flutter/flutter_release/1.0/flutter_release-1.0.aar /Users/apple/lsy/gengmei_android/
gm-flutter/
libs/flutterApp.aar
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment