Commit ea219ed5 authored by 朱璇's avatar 朱璇

埋点修改

parent 7c85e881
...@@ -448,7 +448,7 @@ class LevelOneState extends BaseState<LevelOnePage> ...@@ -448,7 +448,7 @@ class LevelOneState extends BaseState<LevelOnePage>
// ), // ),
child: Text( child: Text(
element.attrName.length == 2 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, : element.attrName,
textScaleFactor: 1.0, textScaleFactor: 1.0,
softWrap: true, softWrap: true,
...@@ -537,9 +537,7 @@ class LevelOneState extends BaseState<LevelOnePage> ...@@ -537,9 +537,7 @@ class LevelOneState extends BaseState<LevelOnePage>
GestureDetector( GestureDetector(
behavior: HitTestBehavior.opaque, behavior: HitTestBehavior.opaque,
onTap: () { onTap: () {
if (CacheManager.getInstance() if (CacheManager.getInstance().get(MEMORY_CACHE).get(USER_ID) ==
.get(MEMORY_CACHE)
.get(USER_ID) ==
null && null &&
RouterCenterImpl().findMainRouter().isWithNative()) { RouterCenterImpl().findMainRouter().isWithNative()) {
RouterCenterImpl() RouterCenterImpl()
...@@ -563,9 +561,7 @@ class LevelOneState extends BaseState<LevelOnePage> ...@@ -563,9 +561,7 @@ class LevelOneState extends BaseState<LevelOnePage>
GestureDetector( GestureDetector(
behavior: HitTestBehavior.opaque, behavior: HitTestBehavior.opaque,
onTap: () { onTap: () {
if (CacheManager.getInstance() if (CacheManager.getInstance().get(MEMORY_CACHE).get(USER_ID) ==
.get(MEMORY_CACHE)
.get(USER_ID) ==
null && null &&
RouterCenterImpl().findMainRouter().isWithNative()) { RouterCenterImpl().findMainRouter().isWithNative()) {
RouterCenterImpl() RouterCenterImpl()
...@@ -573,19 +569,11 @@ class LevelOneState extends BaseState<LevelOnePage> ...@@ -573,19 +569,11 @@ 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}", "", "");
}, },
child: Container( child: Container(
margin: EdgeInsets.only(left: 15,right: 15), margin: EdgeInsets.only(left: 15, right: 15),
width: ScreenUtil().setWidth(137), width: ScreenUtil().setWidth(137),
height: 40, height: 40,
decoration: BoxDecoration( decoration: BoxDecoration(
...@@ -594,7 +582,6 @@ class LevelOneState extends BaseState<LevelOnePage> ...@@ -594,7 +582,6 @@ class LevelOneState extends BaseState<LevelOnePage>
alignment: Alignment.center, alignment: Alignment.center,
child: baseText("获取底价", 14, Colors.white, bold: true), child: baseText("获取底价", 14, Colors.white, bold: true),
)), )),
], ],
), ),
); );
......
...@@ -536,19 +536,11 @@ class LevelTwoState extends BaseState<LevelTwoPage> ...@@ -536,19 +536,11 @@ class LevelTwoState extends BaseState<LevelTwoPage>
.jumpPage(context, "show_login", null, true); .jumpPage(context, "show_login", null, true);
return; 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( DiscussLowPricePopView.showPopView(
context, widget.PAGE_NAME, "${widget.planId}", "", ""); context, widget.PAGE_NAME, "${widget.planId}", "", "");
}, },
child: Container( child: Container(
margin: EdgeInsets.only(left: 15,right: 15), margin: EdgeInsets.only(left: 15, right: 15),
width: ScreenUtil().setWidth(137), width: ScreenUtil().setWidth(137),
height: 40, height: 40,
decoration: BoxDecoration( decoration: BoxDecoration(
...@@ -557,7 +549,6 @@ class LevelTwoState extends BaseState<LevelTwoPage> ...@@ -557,7 +549,6 @@ class LevelTwoState extends BaseState<LevelTwoPage>
alignment: Alignment.center, alignment: Alignment.center,
child: baseText("获取底价", 14, Colors.white, bold: true), child: baseText("获取底价", 14, Colors.white, bold: true),
)), )),
], ],
), ),
); );
......
...@@ -40,16 +40,16 @@ class TopModel extends BaseModel { ...@@ -40,16 +40,16 @@ class TopModel extends BaseModel {
if (tabIndex == index) { if (tabIndex == index) {
return; return;
} }
tabIndex = index;
Map<String, dynamic> map = { Map<String, dynamic> map = {
"page_name": "favor_plan", "page_name": "favor_plan",
"referrer": "plan_home", "referrer": "plan_home",
"referrer": "plan_home", "referrer": "plan_home",
"referrer_id": "", "referrer_id": "",
"referrer_link": ["plan_home"], "referrer_link": ["plan_home"],
"from_tab_name": "", "from_tab_name": tabs[tabIndex].name,
"tab_name": tabs[index].name, "tab_name": tabs[index].name,
}; };
tabIndex = index;
RouterCenterImpl().findMainRouter().buriedEvent("on_click_tab", map); 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