Commit ea219ed5 authored by 朱璇's avatar 朱璇

埋点修改

parent 7c85e881
......@@ -448,7 +448,7 @@ class LevelOneState extends BaseState<LevelOnePage>
// ),
child: Text(
element.attrName.length == 2
? "${element.attrName.substring(0,1)} ${element.attrName.substring(1,2)}"
? "${element.attrName.substring(0, 1)} ${element.attrName.substring(1, 2)}"
: element.attrName,
textScaleFactor: 1.0,
softWrap: true,
......@@ -537,9 +537,7 @@ class LevelOneState extends BaseState<LevelOnePage>
GestureDetector(
behavior: HitTestBehavior.opaque,
onTap: () {
if (CacheManager.getInstance()
.get(MEMORY_CACHE)
.get(USER_ID) ==
if (CacheManager.getInstance().get(MEMORY_CACHE).get(USER_ID) ==
null &&
RouterCenterImpl().findMainRouter().isWithNative()) {
RouterCenterImpl()
......@@ -563,9 +561,7 @@ class LevelOneState extends BaseState<LevelOnePage>
GestureDetector(
behavior: HitTestBehavior.opaque,
onTap: () {
if (CacheManager.getInstance()
.get(MEMORY_CACHE)
.get(USER_ID) ==
if (CacheManager.getInstance().get(MEMORY_CACHE).get(USER_ID) ==
null &&
RouterCenterImpl().findMainRouter().isWithNative()) {
RouterCenterImpl()
......@@ -573,19 +569,11 @@ 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}", "", "");
},
child: Container(
margin: EdgeInsets.only(left: 15,right: 15),
margin: EdgeInsets.only(left: 15, right: 15),
width: ScreenUtil().setWidth(137),
height: 40,
decoration: BoxDecoration(
......@@ -594,7 +582,6 @@ class LevelOneState extends BaseState<LevelOnePage>
alignment: Alignment.center,
child: baseText("获取底价", 14, Colors.white, bold: true),
)),
],
),
);
......
......@@ -536,19 +536,11 @@ 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}", "", "");
},
child: Container(
margin: EdgeInsets.only(left: 15,right: 15),
margin: EdgeInsets.only(left: 15, right: 15),
width: ScreenUtil().setWidth(137),
height: 40,
decoration: BoxDecoration(
......@@ -557,7 +549,6 @@ class LevelTwoState extends BaseState<LevelTwoPage>
alignment: Alignment.center,
child: baseText("获取底价", 14, Colors.white, bold: true),
)),
],
),
);
......
......@@ -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);
}
......
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