From 77640a4888fb47e7bf276adbd1d1193d656eacdb Mon Sep 17 00:00:00 2001 From: yvan.ni Date: Thu, 9 Dec 2021 11:34:25 +0800 Subject: [PATCH] 到体验测试关注公众号 --- pages/index/index/index.js | 21 ++++++++++++--------- pages/index/index/index.wxml | 17 +++++++++++------ 2 files changed, 23 insertions(+), 15 deletions(-) diff --git a/pages/index/index/index.js b/pages/index/index/index.js index 2b747ba..f7a6153 100644 --- a/pages/index/index/index.js +++ b/pages/index/index/index.js @@ -87,7 +87,16 @@ Page({ }, onLoad: async function (tt) { - var th = this; + // onLoad生命周期内判断 + let obj = wx.getLaunchOptionsSync() + if (obj.scene === 1011 || + obj.scene === 1047 || + obj.scene === 1089 || + obj.scene === 1038) { + this.setData({is_ok_h5:1}) + } + + var th = this; var first_leader = tt.first_leader; if (!first_leader && tt.scene) { var first_leader_str = decodeURIComponent(tt.scene); @@ -383,6 +392,7 @@ Page({ var json_d = JSON.parse(e.switch_list); th.setData({ is_closecoupon: json_d.is_closecoupon }) th.setData({ is_topstore: json_d.is_show_storeselect }) + th.setData({is_gz_h5:json_d.is_gz_h5}) }, 1) if (typeof this.getTabBar === 'function' && this.getTabBar()) { @@ -616,14 +626,7 @@ Page({ }); } }) - - - - - - - - + //---调用信息--- // this.requestRecommend(); this.setData({ diff --git a/pages/index/index/index.wxml b/pages/index/index/index.wxml index 2f75180..9bbd82c 100644 --- a/pages/index/index/index.wxml +++ b/pages/index/index/index.wxml @@ -1,9 +1,6 @@ - - - 跳过 {{sec_show}} @@ -14,14 +11,17 @@ - + - + + + + + - @@ -409,6 +409,9 @@ + + + @@ -423,6 +426,8 @@ + + -- libgit2 0.21.4