Commit 57a59bca authored by 朱璇's avatar 朱璇

埋点添加 business_id

parent acd7a6be
......@@ -140,15 +140,17 @@ class LevelOneListState extends State<LevelOneList>
}
},
compare: () {
Map<String, dynamic> map = {
"business_id": "${widget.planId}",
"planId": widget.planId,
"planType": widget.index == 0 ? 1 : 2
};
RouterCenterImpl().findMainRouter().jumpPage(
context,
widget.index == 0
? "level_one_plan_compare"
: "level_two_plan_compare",
{
"planId": widget.planId,
"planType": widget.index == 0 ? 1 : 2
},
map,
false);
},
);
......
......@@ -319,10 +319,9 @@ class LevelOneState extends BaseState<LevelOnePage>
child: baseText(
"${(_model.planoverItem.positiveRate.contains(".") ? _model.planoverItem.positiveRate.split(".")[0] : _model.planoverItem.positiveRate).replaceAll("%", "")}",
20,
Color(0xffFF5963),
bold: true),
Color(0xffFF5963)),
),
baseText("%", 10, Color(0xffFF5963)),
baseText("%", 11, Color(0xffFF5963)),
],
),
),
......@@ -367,7 +366,7 @@ class LevelOneState extends BaseState<LevelOnePage>
fontSize: 14,
color: Color(0xff282828),
fontStyle: FontStyle.normal,
fontWeight: FontWeight.w500),
fontWeight: FontWeight.w400),
),
),
Container(
......@@ -416,8 +415,7 @@ class LevelOneState extends BaseState<LevelOnePage>
Widget explain() {
List<Widget> list = [];
list.add(Container(
height: 18,
margin: EdgeInsets.only(top: 0, bottom: 10),
height: 31,
child: Row(
children: <Widget>[
baseText("项目说明", 15, Color(0xff282828)),
......@@ -426,11 +424,13 @@ class LevelOneState extends BaseState<LevelOnePage>
),
GestureDetector(
onTap: () {
RouterCenterImpl().findMainRouter().jumpPage(
context,
"level_one_plan_instruction",
{"planId": widget.planId},
false);
Map<String, dynamic> map = {
"business_id": "${widget.planId}",
"planId": widget.planId
};
RouterCenterImpl()
.findMainRouter()
.jumpPage(context, "level_one_plan_instruction", map, false);
},
behavior: HitTestBehavior.opaque,
child: baseText("了解更多", 12, Color(0xff3FB5AF)),
......@@ -439,13 +439,9 @@ class LevelOneState extends BaseState<LevelOnePage>
),
));
if (_model.planoverItem != null) {
int index = 0;
_model.planoverItem.explanationAttrs.forEach((element) {
list.add(Container(
margin: EdgeInsets.only(
bottom: index == _model.planoverItem.explanationAttrs.length - 1
? 0
: 15),
margin: EdgeInsets.only(bottom: 15),
child: Row(
children: <Widget>[
Container(
......@@ -514,11 +510,14 @@ class LevelOneState extends BaseState<LevelOnePage>
GestureDetector(
behavior: HitTestBehavior.opaque,
onTap: () {
RouterCenterImpl().findMainRouter().jumpPage(
context,
"level_two_plan_compare",
{"planType": 1, "planId": widget.planId},
false);
Map<String, dynamic> map = {
"business_id": "${widget.planId}",
"planId": widget.planId,
"planType": 1
};
RouterCenterImpl()
.findMainRouter()
.jumpPage(context, "level_two_plan_compare", map, false);
},
child: Container(
margin: EdgeInsets.only(left: 21),
......@@ -559,7 +558,6 @@ class LevelOneState extends BaseState<LevelOnePage>
},
child: Container(
width: ScreenUtil().setWidth(137),
margin: EdgeInsets.only(left: 20),
height: 40,
decoration: BoxDecoration(
color: Color(0xff51CDC7),
......@@ -578,14 +576,6 @@ class LevelOneState extends BaseState<LevelOnePage>
.jumpPage(context, "show_login", null, true);
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(
context, widget.PAGE_NAME, "${widget.planId}", "", "");
},
......
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