00c48219 by lttnew
2 parents 8d0f93af 6eba4489
...@@ -239,6 +239,7 @@ let hasOpenedBindPopup = false ...@@ -239,6 +239,7 @@ let hasOpenedBindPopup = false
239 239
240 onShow(() => { 240 onShow(() => {
241 let webUserName = uni.getStorageSync('webUserName') 241 let webUserName = uni.getStorageSync('webUserName')
242 console.log(webUserName)
242 if (!webUserName) { 243 if (!webUserName) {
243 wxLogin().then(getWebInfo) 244 wxLogin().then(getWebInfo)
244 } 245 }
...@@ -345,15 +346,7 @@ const confirmBind = async () => { ...@@ -345,15 +346,7 @@ const confirmBind = async () => {
345 idcCode: bindForm.value.idcCode 346 idcCode: bindForm.value.idcCode
346 })) 347 }))
347 uni.hideLoading() 348 uni.hideLoading()
348 349 if (res.data != 1) {
349 if (err) {
350 console.log(err)
351 // uni.showToast({
352 // title: err?.data?.msg || err?.message || '绑定失败,请稍后重试',
353 // icon: 'none',
354 // duration: 3000
355 // })
356 // return
357 handelGo() 350 handelGo()
358 closeBindPopup() 351 closeBindPopup()
359 } else { 352 } else {
...@@ -364,11 +357,30 @@ const confirmBind = async () => { ...@@ -364,11 +357,30 @@ const confirmBind = async () => {
364 closeBindPopup() 357 closeBindPopup()
365 await getWebInfo() 358 await getWebInfo()
366 } 359 }
360 if (err) {
361 console.log(err)
362 handelGo()
363 closeBindPopup()
364 }
367 365
366 // if (err) {
367 // console.log(err)
368 // // uni.showToast({
369 // // title: err?.data?.msg || err?.message || '绑定失败,请稍后重试',
370 // // icon: 'none',
371 // // duration: 3000
372 // // })
373 // // return
374 // handelGo()
375 // closeBindPopup()
376 // } else {
368 // uni.showToast({ 377 // uni.showToast({
369 // title: '绑定成功', 378 // title: '绑定成功',
370 // icon: 'success' 379 // icon: 'success'
371 // }) 380 // })
381 // closeBindPopup()
382 // await getWebInfo()
383 // }
372 384
373 } 385 }
374 386
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!