Commit bd367685 authored by 朱璇's avatar 朱璇

埋点修改

parent 33c53ac4
......@@ -67,20 +67,8 @@ class LevelOneItem extends StatelessWidget {
return GestureDetector(
behavior: HitTestBehavior.opaque,
onTap: () {
Map<String, dynamic> buriedMap;
buriedMap = {
"tab_name": tabName,
"position": position,
"card_id": cards.doctor.doctor_id,
"card_name": "card",
"card_type": "card",
"transaction_type": "",
"card_content_type": "doctor"
};
RouterCenterImpl()
.findMainRouter()
.buriedEvent("on_click_card", buriedMap);
buried_on_click_card(
position, tabName, "doctor", cards.doctor.doctor_id);
Map<String, dynamic> map = {
"business_id": "${cards.doctor.doctor_id}",
};
......@@ -198,19 +186,8 @@ class LevelOneItem extends StatelessWidget {
return GestureDetector(
behavior: HitTestBehavior.opaque,
onTap: () {
Map<String, dynamic> buriedMap;
buriedMap = {
"tab_name": tabName,
"position": position,
"card_id": cards.hospital.hosiptalId,
"card_name": "card",
"card_type": "card",
"transaction_type": "",
"card_content_type": "hospital"
};
RouterCenterImpl()
.findMainRouter()
.buriedEvent("on_click_card", buriedMap);
buried_on_click_card(
position, tabName, "hospital", cards.hospital.hosiptalId);
Map<String, dynamic> map = {
"business_id": "${cards.hospital.hosiptalId}",
};
......@@ -396,20 +373,8 @@ class LevelOneItem extends StatelessWidget {
],
),
).gestureDetector(() {
Map<String, dynamic> buriedMap;
buriedMap = {
"tab_name": tabName,
"position": position,
"card_id": cards.plan.plan_id,
"card_name": "card",
"card_type": "card",
"transaction_type": "",
"card_content_type": "level_two_plan"
};
RouterCenterImpl()
.findMainRouter()
.buriedEvent("on_click_card", buriedMap);
buried_on_click_card(
position, tabName, "level_two_plan", "${cards.plan.plan_id}");
Map<String, dynamic> map = {
"business_id": "${cards.plan.plan_id}",
"planId": cards.plan.plan_id
......@@ -652,4 +617,19 @@ class LevelOneItem extends StatelessWidget {
"gengmei://diary?diary_id=${cards.diary.diaryId}", null, true);
});
}
buried_on_click_card(
int position, String btnName, String cardContentType, String cardId) {
Map<String, dynamic> buriedMap;
buriedMap = {
"tab_name": tabName,
"position": position,
"card_id": cardId,
"card_name": "card",
"card_type": "card",
"transaction_type": "",
"card_content_type": cardContentType
};
RouterCenterImpl().findMainRouter().buriedEvent("on_click_card", buriedMap);
}
}
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