From 0e3e1c066129f9695bebf90c2146513170fa57ad Mon Sep 17 00:00:00 2001 From: WXD-SEASON\season Date: Mon, 25 Nov 2024 16:55:02 +0800 Subject: [PATCH] 测试重复提交了,先隐藏及注册时对应导购 --- packageE/pages/qy/contactMe/contactMe.js | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/packageE/pages/qy/contactMe/contactMe.js b/packageE/pages/qy/contactMe/contactMe.js index 6b583d9..877a642 100644 --- a/packageE/pages/qy/contactMe/contactMe.js +++ b/packageE/pages/qy/contactMe/contactMe.js @@ -78,7 +78,7 @@ Page({ '86007': '不合法的群成员', }, }, - onLoad: function (tt) { + onLoad:async function (tt) { // tt.scene="0_0_16" if (tt && tt.scene) { var first_leader_str = decodeURIComponent(tt.scene); @@ -93,6 +93,7 @@ Page({ this.setData({ id: f_arr[2] }) + await this.getopenuserid(f_arr[2]) //判断是否有注册,如果没有注册必须先注册 let userinfo = wx.getStorageSync('userinfo'); if (!userinfo) { @@ -106,7 +107,7 @@ Page({ this.setData({ phone:userinfo.mobile }) - this.getopenuserid(f_arr[2]) + }else{ wx.removeStorageSync('userinfo') @@ -177,9 +178,9 @@ Page({ }) // wx.removeStorageSync('qyzsdg') } - if (this.data.id) { - this.getopenuserid(this.data.id) - } + // if (this.data.id) { + // this.getopenuserid(this.data.id) + // } }, getopenuserid(id) { let url = `/api/weshop/qyWeChat/qywxStaffcode/get/${id}` -- libgit2 0.21.4