From 2474c2019475cc26b3fed3025839058f87913860 Mon Sep 17 00:00:00 2001 From: iceling Date: Sat, 11 Jan 2020 14:28:49 +0800 Subject: [PATCH] 首页新人有礼bug修改 --- pages/index/index/index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pages/index/index/index.js b/pages/index/index/index.js index bd585b5..864eb26 100644 --- a/pages/index/index/index.js +++ b/pages/index/index/index.js @@ -89,8 +89,7 @@ Page({ }); } }) - th.is_new(); - // th.is_festival(); + // th.is_festival(); }, //关闭新用户领取广告 @@ -102,6 +101,7 @@ Page({ }, async onShow() { var th = this; + th.is_new(); if (getApp().globalData.user_id) getApp().requestCardNum(); await this.init_load(); //显示的时候要开启计时器 @@ -660,7 +660,7 @@ Page({ }, new_nav: function(e) { var th = this; - var new_nav = e.currentTarget.dataset.url; + var new_nav = th.data.new_nav; getApp().goto(new_nav); }, //跳转到权益 -- libgit2 0.21.4