From ce39d00b8361d3cf516e5860a9d3943541aa892b Mon Sep 17 00:00:00 2001 From: lcc <1127794702@qq.com> Date: Wed, 29 May 2024 10:08:19 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=AD=BE=E5=90=8D=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/mine/index.js | 31 +++++++++++++++++++++++++------ pages/signup/code.js | 4 ++++ pages/signup/code.wxml | 2 +- 3 files changed, 30 insertions(+), 7 deletions(-) diff --git a/pages/mine/index.js b/pages/mine/index.js index 9743028..190b5dd 100644 --- a/pages/mine/index.js +++ b/pages/mine/index.js @@ -10,7 +10,7 @@ Page({ isShowSwitchingRoles:false, }, onLoad: function (options) { - + console.log(options) for (let key in options) { this.setData({ [key]: options[key] @@ -43,6 +43,16 @@ Page({ title:'签到码', url:'/pages/signup/code', }, + { + icon:'https://qs.haodian.cn/wechat_app/lichebao/mine/icon-sucai2.png', + title:'status', + url:'/pages/signup/status', + }, + { + icon:'https://qs.haodian.cn/wechat_app/lichebao/mine/icon-sucai2.png', + title:'index', + url:'/pages/signup/index', + }, { icon:'https://qs.haodian.cn/wechat_app/lichebao/mine/icon-sezhi2.png', title:'账户设置', @@ -54,6 +64,14 @@ Page({ // url:'/pages/siyutong/index', // }, ] + }else{ + list = [ + { + icon:'https://qs.haodian.cn/wechat_app/lichebao/mine/icon-sucai2.png', + title:'签到码', + url:'/pages/signup/code', + } + ] } this.setData({ @@ -143,11 +161,12 @@ Page({ params['group_id'] = e.currentTarget.dataset.key; _.apiQuery.putAppResetgroupid(params).then(res=>{ _.apiQuery.getUserInfo().then(res => { - if(res.biz_type==4){ - wx.reLaunch({ - url: '/pages/allot/index', - }) - }else if(res.group_id==4){ + // if(res.biz_type==4){ + // wx.reLaunch({ + // url: '/pages/allot/index', + // }) + // }else + if(res.group_id==4){ wx.reLaunch({ url: '/pages/channel/index', }) diff --git a/pages/signup/code.js b/pages/signup/code.js index f5ef66d..93a9871 100644 --- a/pages/signup/code.js +++ b/pages/signup/code.js @@ -21,6 +21,7 @@ Page({ qrcode_count_time: 30, wxTimerList: {}, wxTimer: null, + nowTime: "" }, /** @@ -42,6 +43,9 @@ Page({ */ onShow() { this.postMpQrcode() + this.setData({ + nowTime:_.utils.getNowTimeFormate("TIME") + }) }, onHide(){ diff --git a/pages/signup/code.wxml b/pages/signup/code.wxml index ea96f2c..879cc6a 100644 --- a/pages/signup/code.wxml +++ b/pages/signup/code.wxml @@ -4,7 +4,7 @@ - 2024-05-24 14:13 + {{nowTime}} 车管家 XXX