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
acd7a6be
Commit
acd7a6be
authored
Jul 11, 2020
by
林生雨
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'test' of git.wanmeizhensuo.com:linshengyu/gm_flutter into test
parents
05fdeeeb
51d8dafd
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
43 additions
and
48 deletions
+43
-48
LevelOnePage.dart
lib/ClueModel/page/levelOne/LevelOnePage.dart
+1
-0
LevelTwoPage.dart
lib/ClueModel/page/levelTwo/LevelTwoPage.dart
+1
-8
MechanismBoxPage.dart
lib/ClueModel/page/mechanismBox/MechanismBoxPage.dart
+22
-21
TopModel.dart
lib/ClueModel/page/top/TopModel.dart
+2
-2
MainManager.dart
lib/MainRouter/manager/MainManager.dart
+17
-17
No files found.
lib/ClueModel/page/levelOne/LevelOnePage.dart
View file @
acd7a6be
...
...
@@ -559,6 +559,7 @@ class LevelOneState extends BaseState<LevelOnePage>
},
child:
Container
(
width:
ScreenUtil
().
setWidth
(
137
),
margin:
EdgeInsets
.
only
(
left:
20
),
height:
40
,
decoration:
BoxDecoration
(
color:
Color
(
0xff51CDC7
),
...
...
lib/ClueModel/page/levelTwo/LevelTwoPage.dart
View file @
acd7a6be
...
...
@@ -513,6 +513,7 @@ class LevelTwoState extends BaseState<LevelTwoPage>
},
child:
Container
(
width:
ScreenUtil
().
setWidth
(
137
),
margin:
EdgeInsets
.
only
(
left:
20
),
height:
40
,
decoration:
BoxDecoration
(
color:
Color
(
0xff51CDC7
),
...
...
@@ -534,14 +535,6 @@ class LevelTwoState extends BaseState<LevelTwoPage>
.
jumpPage
(
context
,
"show_login"
,
null
,
true
);
return
;
}
Map
<
String
,
dynamic
>
map
=
{
"page_name"
:
"level_two_plan_deatil"
,
"referrer_link"
:
[],
"popup_name"
:
"interested_plan"
};
RouterCenterImpl
()
.
findMainRouter
()
.
buriedEvent
(
"popup_view"
,
map
);
DiscussLowPricePopView
.
showPopView
(
context
,
widget
.
PAGE_NAME
,
"
${widget.planId}
"
,
""
,
""
);
},
...
...
lib/ClueModel/page/mechanismBox/MechanismBoxPage.dart
View file @
acd7a6be
...
...
@@ -138,11 +138,11 @@ class MechanismBox implements IBottomPicker {
// 弹窗标题
Widget
title
(
mq
)
{
return
Container
(
margin:
EdgeInsets
.
only
(
left:
20
,
right:
20
),
margin:
EdgeInsets
.
only
(
left:
15
,
right:
15
),
width:
mq
.
size
.
width
,
decoration:
BoxDecoration
(
border:
Border
(
bottom:
BorderSide
(
width:
1
,
color:
Color
(
0xffE5E5E5
)))),
Border
(
bottom:
BorderSide
(
width:
.
5
,
color:
Color
(
0xffE5E5E5
)))),
height:
50
,
child:
Stack
(
alignment:
Alignment
.
center
,
...
...
@@ -150,22 +150,19 @@ class MechanismBox implements IBottomPicker {
Container
(
child:
Text
(
'请选择要咨询的机构'
,
style:
TextStyle
(
color:
Color
(
0xff282828
),
fontSize:
17
,
fontWeight:
FontWeight
.
bold
),
style:
TextStyle
(
color:
Color
(
0xff282828
),
fontSize:
17
),
),
),
Positioned
(
right:
0
,
top:
16.
0
,
right:
5
,
top:
16.
5
,
child:
GestureDetector
(
onTap:
()
{
dismissCall
();
},
child:
Container
(
width:
1
4
,
height:
1
4
,
width:
1
3.5
,
height:
1
3.5
,
child:
Image
.
asset
(
"assets/close-btn.png"
),
),
))
...
...
@@ -198,7 +195,7 @@ class MechanismBox implements IBottomPicker {
(
BuildContext
context
,
int
index
)
{
if
(
index
==
_levelModel
.
data
.
length
)
{
return
Container
(
height:
4
0
,
height:
0
,
color:
Color
(
0xffF7F6FA
),
);
}
...
...
@@ -225,7 +222,6 @@ class MechanismBox implements IBottomPicker {
return
GestureDetector
(
behavior:
HitTestBehavior
.
opaque
,
onTap:
()
{
print
(
hospital
.
toJson
());
if
(
doctor_ids
.
indexOf
(
hospital
.
doctorId
)
!=
-
1
)
{
doctor_ids
.
remove
(
hospital
.
doctorId
);
}
else
{
...
...
@@ -239,7 +235,7 @@ class MechanismBox implements IBottomPicker {
height:
91.5
,
decoration:
BoxDecoration
(
border:
Border
(
bottom:
BorderSide
(
width:
1
,
color:
Color
(
0xffE5E5E5
)))),
bottom:
BorderSide
(
width:
.
5
,
color:
Color
(
0xffE5E5E5
)))),
child:
Stack
(
children:
<
Widget
>[
Positioned
(
...
...
@@ -265,9 +261,8 @@ class MechanismBox implements IBottomPicker {
),
Positioned
(
left:
89
,
top:
15
,
child:
baseText
(
hospital
.
name
,
15
,
Color
(
0xff333333
),
bold:
true
),
top:
16
,
child:
baseText
(
hospital
.
name
,
15
,
Color
(
0xff333333
)),
),
Positioned
(
top:
38
,
...
...
@@ -278,12 +273,13 @@ class MechanismBox implements IBottomPicker {
children:
<
Widget
>[
baseText
(
"¥"
,
12
,
Color
(
0xffFF5963
)),
baseText
(
"
${hospital.minPrice}
-
${hospital.maxPrice}
"
,
15
,
Color
(
0xffFF5963
)),
Color
(
0xffFF5963
),
bold:
true
),
],
),
),
Positioned
(
bottom:
21
,
bottom:
16
,
left:
89
,
child:
Container
(
width:
230
,
...
...
@@ -292,7 +288,7 @@ class MechanismBox implements IBottomPicker {
),
Positioned
(
left:
89
,
top:
38.5
,
top:
40
,
child:
FiveStarView
(
int
.
parse
(
hospital
.
star
),
5
),
)
],
...
...
@@ -399,12 +395,17 @@ class MechanismBox implements IBottomPicker {
}
}
},
style:
TextStyle
(
fontSize:
12
),
style:
TextStyle
(
fontSize:
14
,
color:
Color
(
0xff282828
)),
maxLines:
1
,
decoration:
InputDecoration
(
contentPadding:
EdgeInsets
.
only
(
left:
16
,
top:
0
,
bottom:
1
2
,
right:
16
),
left:
16
,
top:
0
,
bottom:
1
1.5
,
right:
16
),
hintText:
'请输入您想了解的问题'
,
hintStyle:
TextStyle
(
color:
Color
(
0xff999999
),
fontSize:
12
,
height:
2.2
),
border:
InputBorder
.
none
));
},
))
...
...
lib/ClueModel/page/top/TopModel.dart
View file @
acd7a6be
...
...
@@ -40,16 +40,16 @@ class TopModel extends BaseModel {
if
(
tabIndex
==
index
)
{
return
;
}
tabIndex
=
index
;
Map
<
String
,
dynamic
>
map
=
{
"page_name"
:
"favor_plan"
,
"referrer"
:
"plan_home"
,
"referrer"
:
"plan_home"
,
"referrer_id"
:
""
,
"referrer_link"
:
[
"plan_home"
],
"from_tab_name"
:
""
,
"from_tab_name"
:
tabs
[
tabIndex
].
name
,
"tab_name"
:
tabs
[
index
].
name
,
};
tabIndex
=
index
;
RouterCenterImpl
().
findMainRouter
().
buriedEvent
(
"on_click_tab"
,
map
);
}
...
...
lib/MainRouter/manager/MainManager.dart
View file @
acd7a6be
...
...
@@ -10,7 +10,6 @@ import 'package:flutter_boost/flutter_boost.dart';
import
'package:gm_flutter/commonModel/GMBase.dart'
;
import
'package:gm_flutter/commonModel/base/BaseUtil.dart'
;
import
'package:gm_flutter/commonModel/cache/CacheManager.dart'
;
import
'package:gm_flutter/commonModel/eventbus/SimpleEventBus.dart'
;
import
'package:gm_flutter/commonModel/util/DartUtil.dart'
;
import
'../../commonModel/App.dart'
;
...
...
@@ -119,20 +118,21 @@ class MainManager {
}
}
// void getInitParams(VoidCallback callback) {
// if (isInit) {
// if (flutterChannel != null) {
// flutterChannel.invokeMethod("get_common_params").then((data) {
// if (data is Map) {
// var map = Map<String, dynamic>.from(data);
// initParams(map, callback: callback);
// }
// }).whenComplete(() {
//// callback();
// });
// return;
// }
// }
// callback();
// }
void
getInitParams
(
VoidCallback
callback
)
{
if
(
isInit
)
{
if
(
flutterChannel
!=
null
)
{
flutterChannel
.
invokeMethod
(
"get_common_params"
).
then
((
data
)
{
if
(
data
is
Map
)
{
var
map
=
Map
<
String
,
dynamic
>.
from
(
data
);
initParams
(
map
,
callback:
callback
);
}
}).
whenComplete
(()
{
// callback();
});
return
;
}
}
callback
();
}
}
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