Commit 6d481654 authored by 朱璇's avatar 朱璇

埋点修改

parent 3d73b796
......@@ -114,6 +114,18 @@ class LevelOneListState extends State<LevelOneList>
.jumpPage(context, "show_login", null, true);
return;
}
var data2 = _model.data[index];
if (data2.cardType == "doctor") {
buried_on_click_button(index, "bargain", "doctor",
data2.doctor.doctor_id);
} else if (data2.cardType == "hospital") {
buried_on_click_button(index, "bargain", "hospital",
data2.hospital.hosiptalId);
} else if (data2.cardType == "plan") {
buried_on_click_button(index, "bargain",
"level_two_plan", "${data2.plan.plan_id}");
}
DiscussLowPricePopView.showPopView(
context,
widget.pageName,
......@@ -128,18 +140,36 @@ class LevelOneListState extends State<LevelOneList>
ask: () {
var data2 = _model.data[index];
if (data2.cardType == "doctor") {
buried_on_click_button(index, "consult", "doctor",
data2.doctor.doctor_id);
RouterCenterImpl().findMainRouter().jumpPage(
context, data2.doctor.messageUrl, null, true);
} else if (data2.cardType == "hospital") {
buried_on_click_button(index, "consult", "hospital",
data2.hospital.hosiptalId);
RouterCenterImpl().findMainRouter().jumpPage(
context, data2.hospital.messageUrl, null, true);
} else if (data2.cardType == "plan") {
buried_on_click_button(index, "consult",
"level_two_plan", "${data2.plan.plan_id}");
BaseBottomPicker()
..setPicker(MechanismBox(data2.plan.plan_id))
..show(context);
}
},
compare: () {
var data2 = _model.data[index];
if (data2.cardType == "doctor") {
buried_on_click_button(index, "compare", "doctor",
data2.doctor.doctor_id);
} else if (data2.cardType == "hospital") {
buried_on_click_button(index, "compare", "hospital",
data2.hospital.hosiptalId);
} else if (data2.cardType == "plan") {
buried_on_click_button(index, "compare",
"level_two_plan", "${data2.plan.plan_id}");
}
Map<String, dynamic> map = {
"business_id": "${widget.planId}",
"planId": widget.planId,
......@@ -191,6 +221,23 @@ class LevelOneListState extends State<LevelOneList>
}, pullDown: false, pullUp: true, loadMoreColor: Color(0xffF7F6FA));
}
buried_on_click_button(
int position, String btnName, String cardContentType, String cardId) {
Map<String, dynamic> buriedMap;
buriedMap = {
"tab_name": _model.tab_type,
"position": position,
"card_id": cardId,
"button_name": btnName,
"card_type": "card",
"transaction_type": "",
"card_content_type": cardContentType
};
RouterCenterImpl()
.findMainRouter()
.buriedEvent("on_click_button", buriedMap);
}
@override
bool get wantKeepAlive => true;
}
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