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
101f8906
Commit
101f8906
authored
Jul 09, 2020
by
林生雨
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
commit
parent
d2794f3c
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
62 additions
and
54 deletions
+62
-54
LevelTwoPage.dart
lib/ClueModel/page/levelTwo/LevelTwoPage.dart
+42
-13
PlanModel.dart
lib/ClueModel/page/plan/PlanModel.dart
+2
-3
PlanPage.dart
lib/ClueModel/page/plan/PlanPage.dart
+1
-10
MainRouter.dart
lib/MainRouter/MainRouter.dart
+0
-3
MainRouterImpl.dart
lib/MainRouter/MainRouterImpl.dart
+0
-5
MainManager.dart
lib/MainRouter/manager/MainManager.dart
+17
-17
DioInterceptor.dart
lib/commonModel/net/DioInterceptor.dart
+0
-3
No files found.
lib/ClueModel/page/levelTwo/LevelTwoPage.dart
View file @
101f8906
...
@@ -300,10 +300,8 @@ class LevelTwoState extends BaseState<LevelTwoPage>
...
@@ -300,10 +300,8 @@ class LevelTwoState extends BaseState<LevelTwoPage>
Text
(
'指导价:'
,
Text
(
'指导价:'
,
style:
TextStyle
(
style:
TextStyle
(
color:
Color
(
0xff999999
),
fontSize:
12
)),
color:
Color
(
0xff999999
),
fontSize:
12
)),
Text
(
Expanded
(
'¥'
+
_model
.
planoverItem
.
guidePrice
,
child:
baseText
(
'¥'
+
_model
.
planoverItem
.
guidePrice
,
12
,
Color
(
0xffFF5963
)),
style:
TextStyle
(
color:
Color
(
0xffFF5963
),
fontSize:
12
),
)
)
],
],
)
)
...
@@ -373,11 +371,11 @@ class LevelTwoState extends BaseState<LevelTwoPage>
...
@@ -373,11 +371,11 @@ class LevelTwoState extends BaseState<LevelTwoPage>
),
),
GestureDetector
(
GestureDetector
(
onTap:
()
{
onTap:
()
{
//
RouterCenterImpl().findMainRouter().jumpPage(
RouterCenterImpl
().
findMainRouter
().
jumpPage
(
//
context,
context
,
//
"level_one_plan_instruction",
"level_one_plan_instruction"
,
//
{"planId": widget.planId},
{
"planId"
:
widget
.
planId
},
//
false);
false
);
},
},
behavior:
HitTestBehavior
.
opaque
,
behavior:
HitTestBehavior
.
opaque
,
child:
baseText
(
"了解更多"
,
12
,
Color
(
0xff3FB5AF
)),
child:
baseText
(
"了解更多"
,
12
,
Color
(
0xff3FB5AF
)),
...
@@ -388,13 +386,44 @@ class LevelTwoState extends BaseState<LevelTwoPage>
...
@@ -388,13 +386,44 @@ class LevelTwoState extends BaseState<LevelTwoPage>
if
(
_model
.
planoverItem
!=
null
)
{
if
(
_model
.
planoverItem
!=
null
)
{
_model
.
planoverItem
.
explanationAttrs
.
forEach
((
element
)
{
_model
.
planoverItem
.
explanationAttrs
.
forEach
((
element
)
{
list
.
add
(
Container
(
list
.
add
(
Container
(
height:
28
,
margin:
EdgeInsets
.
only
(
bottom:
15
)
,
child:
Row
(
child:
Row
(
children:
<
Widget
>[
children:
<
Widget
>[
baseText
(
element
.
attrName
,
13
,
Color
(
0xff999999
)),
Container
(
Container
(
margin:
EdgeInsets
.
only
(
left:
12
),
constraints:
BoxConstraints
(
child:
baseText
(
element
.
attrValue
,
13
,
Color
(
0xff666666
)),
maxWidth:
52
,
),
child:
Text
(
element
.
attrName
,
textScaleFactor:
1.0
,
softWrap:
true
,
maxLines:
1
,
overflow:
TextOverflow
.
ellipsis
,
style:
TextStyle
(
decoration:
TextDecoration
.
none
,
fontSize:
13
,
color:
Color
(
0xff999999
),
fontStyle:
FontStyle
.
normal
,
fontWeight:
FontWeight
.
w400
),
)),
Expanded
(
child:
Container
(
margin:
EdgeInsets
.
only
(
left:
12
),
child:
Text
(
element
.
attrValue
,
textScaleFactor:
1.0
,
softWrap:
false
,
overflow:
TextOverflow
.
ellipsis
,
style:
TextStyle
(
decoration:
TextDecoration
.
none
,
fontSize:
13
,
color:
Color
(
0xff666666
),
fontStyle:
FontStyle
.
normal
,
fontWeight:
FontWeight
.
w400
),
),
// baseText(element.attrValue, 13, Color(0xff666666)
// ),
),
)
)
],
],
),
),
...
...
lib/ClueModel/page/plan/PlanModel.dart
View file @
101f8906
...
@@ -110,7 +110,6 @@ class PlanModel extends BaseModel {
...
@@ -110,7 +110,6 @@ class PlanModel extends BaseModel {
}
}
void
refreshFeed
(
bool
clear
,
{
RefreshController
controller
})
{
void
refreshFeed
(
bool
clear
,
{
RefreshController
controller
})
{
if
(
clear
)
{
if
(
clear
)
{
page
=
1
;
page
=
1
;
feedDatas
.
clear
();
feedDatas
.
clear
();
...
@@ -184,8 +183,8 @@ class PlanModel extends BaseModel {
...
@@ -184,8 +183,8 @@ class PlanModel extends BaseModel {
if
(
max_price
==
max
.
toString
()
&&
min_price
==
min
.
toString
())
{
if
(
max_price
==
max
.
toString
()
&&
min_price
==
min
.
toString
())
{
return
;
return
;
}
}
max_price
=
max
.
toString
()
;
max_price
=
"
${max}
"
;
min_price
=
min
.
toString
()
;
min_price
=
"
${min}
"
;
feedsLive
.
notifyView
(
Pair
(
LOADING
,
null
));
feedsLive
.
notifyView
(
Pair
(
LOADING
,
null
));
refreshFeed
(
true
);
refreshFeed
(
true
);
}
}
...
...
lib/ClueModel/page/plan/PlanPage.dart
View file @
101f8906
...
@@ -59,28 +59,19 @@ class PlanState extends BaseState<PlanPage> with TickerProviderStateMixin {
...
@@ -59,28 +59,19 @@ class PlanState extends BaseState<PlanPage> with TickerProviderStateMixin {
PlanBarView
planBarView
;
PlanBarView
planBarView
;
double
stateBarHeight
;
double
stateBarHeight
;
double
topHeight
;
double
topHeight
;
Function
(
String
str
)
func
;
@override
@override
void
initState
()
{
void
initState
()
{
print
(
"LSY PLAN INIT"
);
print
(
"LSY PLAN INIT"
);
// DioUtil.getInstance().setProxy("172.30.9.128");
// DioUtil.getInstance().setProxy("172.30.9.128");
_model
.
init
();
super
.
initState
();
super
.
initState
();
func
=
(
str
)
{
_model
.
init
();
};
if
(
CacheManager
.
getInstance
().
get
(
MEMORY_CACHE
).
get
(
COOKIE
)
==
null
)
{
SimpleEventBus
.
instance
().
resignEvent
(
"PlanPage!initState"
,
func
);
}
else
{
_model
.
init
();
}
planBarView
=
planBarView
=
PlanBarView
(
_model
.
managerLive
,
clickIndex
,
hideAllMenuListener
);
PlanBarView
(
_model
.
managerLive
,
clickIndex
,
hideAllMenuListener
);
}
}
@override
@override
void
dispose
()
{
void
dispose
()
{
SimpleEventBus
.
instance
().
unResignEvent
(
"PlanPage!initState"
,
func
);
hideAllMenuListener
.
dispose
();
hideAllMenuListener
.
dispose
();
projectMenuListener
.
dispose
();
projectMenuListener
.
dispose
();
sortMenuListener
.
dispose
();
sortMenuListener
.
dispose
();
...
...
lib/MainRouter/MainRouter.dart
View file @
101f8906
...
@@ -20,7 +20,4 @@ abstract class MainRouter extends RouterBaser {
...
@@ -20,7 +20,4 @@ abstract class MainRouter extends RouterBaser {
Widget
getProxyPage
();
Widget
getProxyPage
();
void
catchErrorToBugly
(
String
err
);
void
catchErrorToBugly
(
String
err
);
void
getInitParams
(
VoidCallback
callback
);
}
}
lib/MainRouter/MainRouterImpl.dart
View file @
101f8906
...
@@ -42,9 +42,4 @@ class MainRouterImpl implements MainRouter {
...
@@ -42,9 +42,4 @@ class MainRouterImpl implements MainRouter {
void
catchErrorToBugly
(
String
err
)
{
void
catchErrorToBugly
(
String
err
)
{
MainManager
.
getInstance
().
catchErrorToBugly
(
err
);
MainManager
.
getInstance
().
catchErrorToBugly
(
err
);
}
}
@override
void
getInitParams
(
VoidCallback
callback
)
{
MainManager
.
getInstance
().
getInitParams
(
callback
);
}
}
}
lib/MainRouter/manager/MainManager.dart
View file @
101f8906
...
@@ -83,7 +83,7 @@ class MainManager {
...
@@ -83,7 +83,7 @@ class MainManager {
"LSY QQWWEERRTTYY
${CacheManager.getInstance().get(MEMORY_CACHE).get(COOKIE)}
"
"LSY QQWWEERRTTYY
${CacheManager.getInstance().get(MEMORY_CACHE).get(COOKIE)}
"
"
${CacheManager.getInstance().get(MEMORY_CACHE).get(COOKIE) is String}
"
);
"
${CacheManager.getInstance().get(MEMORY_CACHE).get(COOKIE) is String}
"
);
DioUtil
.
getInstance
().
changeOpt
();
DioUtil
.
getInstance
().
changeOpt
();
SimpleEventBus
.
instance
().
notifyListener
(
"PlanPage!initState"
,
""
);
//
SimpleEventBus.instance().notifyListener("PlanPage!initState", "");
}
}
void
innerSetData
(
Map
<
String
,
dynamic
>
map
,
String
str
)
{
void
innerSetData
(
Map
<
String
,
dynamic
>
map
,
String
str
)
{
...
@@ -110,20 +110,20 @@ class MainManager {
...
@@ -110,20 +110,20 @@ class MainManager {
}
}
}
}
void
getInitParams
(
VoidCallback
callback
)
{
//
void getInitParams(VoidCallback callback) {
if
(
isInit
)
{
//
if (isInit) {
if
(
flutterChannel
!=
null
)
{
//
if (flutterChannel != null) {
flutterChannel
.
invokeMethod
(
"get_common_params"
).
then
((
data
)
{
//
flutterChannel.invokeMethod("get_common_params").then((data) {
if
(
data
is
Map
)
{
//
if (data is Map) {
var
map
=
Map
<
String
,
dynamic
>.
from
(
data
);
//
var map = Map<String, dynamic>.from(data);
initParams
(
map
,
callback:
callback
);
//
initParams(map, callback: callback);
}
//
}
}).
whenComplete
(()
{
//
}).whenComplete(() {
// callback();
//
//
callback();
});
//
});
return
;
//
return;
}
//
}
}
//
}
callback
();
//
callback();
}
//
}
}
}
lib/commonModel/net/DioInterceptor.dart
View file @
101f8906
...
@@ -27,10 +27,7 @@ class DioInterceptorManager {
...
@@ -27,10 +27,7 @@ class DioInterceptorManager {
if
(
opt
.
headers
==
null
)
{
if
(
opt
.
headers
==
null
)
{
opt
.
headers
=
Map
();
opt
.
headers
=
Map
();
}
}
print
(
"INTERCEPTOR"
);
if
(
CacheManager
.
getInstance
().
get
(
MEMORY_CACHE
).
get
(
COOKIE
)
!=
null
)
{
if
(
CacheManager
.
getInstance
().
get
(
MEMORY_CACHE
).
get
(
COOKIE
)
!=
null
)
{
print
(
"INTERCEPTOR 11
${CacheManager.getInstance().get(MEMORY_CACHE).get(COOKIE)}
"
);
opt
.
headers
[
HttpHeaders
.
cookieHeader
]
=
opt
.
headers
[
HttpHeaders
.
cookieHeader
]
=
CacheManager
.
getInstance
().
get
(
MEMORY_CACHE
).
get
(
COOKIE
);
CacheManager
.
getInstance
().
get
(
MEMORY_CACHE
).
get
(
COOKIE
);
}
}
...
...
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