Commit 0e3e1c066129f9695bebf90c2146513170fa57ad
1 parent
bf0d28a2
测试重复提交了,先隐藏及注册时对应导购
Showing
1 changed file
with
6 additions
and
5 deletions
packageE/pages/qy/contactMe/contactMe.js
@@ -78,7 +78,7 @@ Page({ | @@ -78,7 +78,7 @@ Page({ | ||
78 | '86007': '不合法的群成员', | 78 | '86007': '不合法的群成员', |
79 | }, | 79 | }, |
80 | }, | 80 | }, |
81 | - onLoad: function (tt) { | 81 | + onLoad:async function (tt) { |
82 | // tt.scene="0_0_16" | 82 | // tt.scene="0_0_16" |
83 | if (tt && tt.scene) { | 83 | if (tt && tt.scene) { |
84 | var first_leader_str = decodeURIComponent(tt.scene); | 84 | var first_leader_str = decodeURIComponent(tt.scene); |
@@ -93,6 +93,7 @@ Page({ | @@ -93,6 +93,7 @@ Page({ | ||
93 | this.setData({ | 93 | this.setData({ |
94 | id: f_arr[2] | 94 | id: f_arr[2] |
95 | }) | 95 | }) |
96 | + await this.getopenuserid(f_arr[2]) | ||
96 | //判断是否有注册,如果没有注册必须先注册 | 97 | //判断是否有注册,如果没有注册必须先注册 |
97 | let userinfo = wx.getStorageSync('userinfo'); | 98 | let userinfo = wx.getStorageSync('userinfo'); |
98 | if (!userinfo) { | 99 | if (!userinfo) { |
@@ -106,7 +107,7 @@ Page({ | @@ -106,7 +107,7 @@ Page({ | ||
106 | this.setData({ | 107 | this.setData({ |
107 | phone:userinfo.mobile | 108 | phone:userinfo.mobile |
108 | }) | 109 | }) |
109 | - this.getopenuserid(f_arr[2]) | 110 | + |
110 | }else{ | 111 | }else{ |
111 | 112 | ||
112 | wx.removeStorageSync('userinfo') | 113 | wx.removeStorageSync('userinfo') |
@@ -177,9 +178,9 @@ Page({ | @@ -177,9 +178,9 @@ Page({ | ||
177 | }) | 178 | }) |
178 | // wx.removeStorageSync('qyzsdg') | 179 | // wx.removeStorageSync('qyzsdg') |
179 | } | 180 | } |
180 | - if (this.data.id) { | ||
181 | - this.getopenuserid(this.data.id) | ||
182 | - } | 181 | + // if (this.data.id) { |
182 | + // this.getopenuserid(this.data.id) | ||
183 | + // } | ||
183 | }, | 184 | }, |
184 | getopenuserid(id) { | 185 | getopenuserid(id) { |
185 | let url = `/api/weshop/qyWeChat/qywxStaffcode/get/${id}` | 186 | let url = `/api/weshop/qyWeChat/qywxStaffcode/get/${id}` |