Commit 89fc2a16 authored by 朱翠翠's avatar 朱翠翠

Merge branches 'test' and 'zcc/flutter' of…

Merge branches 'test' and 'zcc/flutter' of http://git.wanmeizhensuo.com/linshengyu/gm_flutter into zcc/flutter
parents b0224d03 ce97a652
...@@ -140,15 +140,17 @@ class LevelOneListState extends State<LevelOneList> ...@@ -140,15 +140,17 @@ class LevelOneListState extends State<LevelOneList>
} }
}, },
compare: () { compare: () {
Map<String, dynamic> map = {
"business_id": "${widget.planId}",
"planId": widget.planId,
"planType": widget.index == 0 ? 1 : 2
};
RouterCenterImpl().findMainRouter().jumpPage( RouterCenterImpl().findMainRouter().jumpPage(
context, context,
widget.index == 0 widget.index == 0
? "level_one_plan_compare" ? "level_one_plan_compare"
: "level_two_plan_compare", : "level_two_plan_compare",
{ map,
"planId": widget.planId,
"planType": widget.index == 0 ? 1 : 2
},
false); false);
}, },
); );
......
...@@ -319,10 +319,9 @@ class LevelOneState extends BaseState<LevelOnePage> ...@@ -319,10 +319,9 @@ class LevelOneState extends BaseState<LevelOnePage>
child: baseText( child: baseText(
"${(_model.planoverItem.positiveRate.contains(".") ? _model.planoverItem.positiveRate.split(".")[0] : _model.planoverItem.positiveRate).replaceAll("%", "")}", "${(_model.planoverItem.positiveRate.contains(".") ? _model.planoverItem.positiveRate.split(".")[0] : _model.planoverItem.positiveRate).replaceAll("%", "")}",
20, 20,
Color(0xffFF5963), Color(0xffFF5963)),
bold: true),
), ),
baseText("%", 10, Color(0xffFF5963)), baseText("%", 11, Color(0xffFF5963)),
], ],
), ),
), ),
...@@ -367,7 +366,7 @@ class LevelOneState extends BaseState<LevelOnePage> ...@@ -367,7 +366,7 @@ class LevelOneState extends BaseState<LevelOnePage>
fontSize: 14, fontSize: 14,
color: Color(0xff282828), color: Color(0xff282828),
fontStyle: FontStyle.normal, fontStyle: FontStyle.normal,
fontWeight: FontWeight.w500), fontWeight: FontWeight.w400),
), ),
), ),
Container( Container(
...@@ -416,8 +415,7 @@ class LevelOneState extends BaseState<LevelOnePage> ...@@ -416,8 +415,7 @@ class LevelOneState extends BaseState<LevelOnePage>
Widget explain() { Widget explain() {
List<Widget> list = []; List<Widget> list = [];
list.add(Container( list.add(Container(
height: 18, height: 31,
margin: EdgeInsets.only(top: 0, bottom: 10),
child: Row( child: Row(
children: <Widget>[ children: <Widget>[
baseText("项目说明", 15, Color(0xff282828)), baseText("项目说明", 15, Color(0xff282828)),
...@@ -426,11 +424,13 @@ class LevelOneState extends BaseState<LevelOnePage> ...@@ -426,11 +424,13 @@ class LevelOneState extends BaseState<LevelOnePage>
), ),
GestureDetector( GestureDetector(
onTap: () { onTap: () {
RouterCenterImpl().findMainRouter().jumpPage( Map<String, dynamic> map = {
context, "business_id": "${widget.planId}",
"level_one_plan_instruction", "planId": widget.planId
{"planId": widget.planId}, };
false); RouterCenterImpl()
.findMainRouter()
.jumpPage(context, "level_one_plan_instruction", map, false);
}, },
behavior: HitTestBehavior.opaque, behavior: HitTestBehavior.opaque,
child: baseText("了解更多", 12, Color(0xff3FB5AF)), child: baseText("了解更多", 12, Color(0xff3FB5AF)),
...@@ -439,13 +439,9 @@ class LevelOneState extends BaseState<LevelOnePage> ...@@ -439,13 +439,9 @@ class LevelOneState extends BaseState<LevelOnePage>
), ),
)); ));
if (_model.planoverItem != null) { if (_model.planoverItem != null) {
int index = 0;
_model.planoverItem.explanationAttrs.forEach((element) { _model.planoverItem.explanationAttrs.forEach((element) {
list.add(Container( list.add(Container(
margin: EdgeInsets.only( margin: EdgeInsets.only(bottom: 15),
bottom: index == _model.planoverItem.explanationAttrs.length - 1
? 0
: 15),
child: Row( child: Row(
children: <Widget>[ children: <Widget>[
Container( Container(
...@@ -514,11 +510,14 @@ class LevelOneState extends BaseState<LevelOnePage> ...@@ -514,11 +510,14 @@ class LevelOneState extends BaseState<LevelOnePage>
GestureDetector( GestureDetector(
behavior: HitTestBehavior.opaque, behavior: HitTestBehavior.opaque,
onTap: () { onTap: () {
RouterCenterImpl().findMainRouter().jumpPage( Map<String, dynamic> map = {
context, "business_id": "${widget.planId}",
"level_two_plan_compare", "planId": widget.planId,
{"planType": 1, "planId": widget.planId}, "planType": 1
false); };
RouterCenterImpl()
.findMainRouter()
.jumpPage(context, "level_two_plan_compare", map, false);
}, },
child: Container( child: Container(
margin: EdgeInsets.only(left: 21), margin: EdgeInsets.only(left: 21),
...@@ -559,7 +558,6 @@ class LevelOneState extends BaseState<LevelOnePage> ...@@ -559,7 +558,6 @@ class LevelOneState extends BaseState<LevelOnePage>
}, },
child: Container( child: Container(
width: ScreenUtil().setWidth(137), width: ScreenUtil().setWidth(137),
margin: EdgeInsets.only(left: 20),
height: 40, height: 40,
decoration: BoxDecoration( decoration: BoxDecoration(
color: Color(0xff51CDC7), color: Color(0xff51CDC7),
...@@ -578,14 +576,6 @@ class LevelOneState extends BaseState<LevelOnePage> ...@@ -578,14 +576,6 @@ class LevelOneState extends BaseState<LevelOnePage>
.jumpPage(context, "show_login", null, true); .jumpPage(context, "show_login", null, true);
return; return;
} }
Map<String, dynamic> map = {
"page_name": "level_one_plan_deatil",
"referrer_link": [],
"popup_name": "interested_plan"
};
RouterCenterImpl()
.findMainRouter()
.buriedEvent("popup_view", map);
DiscussLowPricePopView.showPopView( DiscussLowPricePopView.showPopView(
context, widget.PAGE_NAME, "${widget.planId}", "", ""); context, widget.PAGE_NAME, "${widget.planId}", "", "");
}, },
......
...@@ -391,11 +391,13 @@ class LevelTwoState extends BaseState<LevelTwoPage> ...@@ -391,11 +391,13 @@ class LevelTwoState extends BaseState<LevelTwoPage>
), ),
GestureDetector( GestureDetector(
onTap: () { onTap: () {
RouterCenterImpl().findMainRouter().jumpPage( Map<String, dynamic> map = {
context, "business_id": "${widget.planId}",
"level_one_plan_instruction", "planId": widget.planId,
{"planId": widget.planId}, };
false); RouterCenterImpl()
.findMainRouter()
.jumpPage(context, "level_one_plan_instruction", map, false);
}, },
behavior: HitTestBehavior.opaque, behavior: HitTestBehavior.opaque,
child: baseText("了解更多", 12, Color(0xff3FB5AF)), child: baseText("了解更多", 12, Color(0xff3FB5AF)),
...@@ -471,11 +473,14 @@ class LevelTwoState extends BaseState<LevelTwoPage> ...@@ -471,11 +473,14 @@ class LevelTwoState extends BaseState<LevelTwoPage>
GestureDetector( GestureDetector(
behavior: HitTestBehavior.opaque, behavior: HitTestBehavior.opaque,
onTap: () { onTap: () {
RouterCenterImpl().findMainRouter().jumpPage( Map<String, dynamic> map = {
context, "business_id": "${widget.planId}",
"level_two_plan_compare", "planId": widget.planId,
{"planType": 2, "planId": widget.planId}, "planType": 2
false); };
RouterCenterImpl()
.findMainRouter()
.jumpPage(context, "level_two_plan_compare", map, false);
}, },
child: Container( child: Container(
margin: EdgeInsets.only(left: 21), margin: EdgeInsets.only(left: 21),
......
...@@ -163,11 +163,14 @@ class PlanItem extends StatelessWidget { ...@@ -163,11 +163,14 @@ class PlanItem extends StatelessWidget {
} }
RouterCenterImpl().findMainRouter().buriedEvent("on_click_card", map); RouterCenterImpl().findMainRouter().buriedEvent("on_click_card", map);
RouterCenterImpl().findMainRouter().jumpPage( Map<String, dynamic> buriedMap = {
context, "business_id": "${plans.id}",
"level_one_plan_detail", "planId": plans.id,
{"planId": plans.id, "title": "${plans.name}"}, "title": "${plans.name}"
false); };
RouterCenterImpl()
.findMainRouter()
.jumpPage(context, "level_one_plan_detail", buriedMap, false);
})); }));
} }
} }
...@@ -202,7 +202,7 @@ class PlanState extends BaseState<PlanPage> with TickerProviderStateMixin { ...@@ -202,7 +202,7 @@ class PlanState extends BaseState<PlanPage> with TickerProviderStateMixin {
leftPos: data.data[0], leftPos: data.data[0],
topPos: data.data[1], topPos: data.data[1],
width: MediaQuery.of(context).size.width, width: MediaQuery.of(context).size.width,
maxHeight: 45*_model.sortList.length, maxHeight: 45 * _model.sortList.length,
listener: sortMenuListener, listener: sortMenuListener,
child: SortView(_model.sortList, _model.sortPos, (index) { child: SortView(_model.sortList, _model.sortPos, (index) {
clickIndexOther(1); clickIndexOther(1);
...@@ -444,7 +444,9 @@ class PlanState extends BaseState<PlanPage> with TickerProviderStateMixin { ...@@ -444,7 +444,9 @@ class PlanState extends BaseState<PlanPage> with TickerProviderStateMixin {
"rank_type": "0", "rank_type": "0",
"id": "${data.data[0].id}", "id": "${data.data[0].id}",
"title": "${data.data[0].name}", "title": "${data.data[0].name}",
"business_id": "${data.data[0].id}",
}; };
RouterCenterImpl() RouterCenterImpl()
.findMainRouter() .findMainRouter()
.jumpPage(context, "favor_plan", map, false); .jumpPage(context, "favor_plan", map, false);
...@@ -473,7 +475,9 @@ class PlanState extends BaseState<PlanPage> with TickerProviderStateMixin { ...@@ -473,7 +475,9 @@ class PlanState extends BaseState<PlanPage> with TickerProviderStateMixin {
"rank_type": "1", "rank_type": "1",
"id": "${data.data[1].id}", "id": "${data.data[1].id}",
"title": "${data.data[1].name}", "title": "${data.data[1].name}",
"business_id": "${data.data[1].id}",
}; };
RouterCenterImpl() RouterCenterImpl()
.findMainRouter() .findMainRouter()
.jumpPage(context, "hot_plan", map, false); .jumpPage(context, "hot_plan", map, false);
......
...@@ -5,8 +5,8 @@ ...@@ -5,8 +5,8 @@
class PlanOverViewBean { class PlanOverViewBean {
int error; int error;
String message; String message;
Map extra; Null extra;
Map errorExtra; Null errorExtra;
UserType userType; UserType userType;
PlanOverData data; PlanOverData data;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment