00c48219 by lttnew
2 parents 8d0f93af 6eba4489
......@@ -239,6 +239,7 @@ let hasOpenedBindPopup = false
onShow(() => {
let webUserName = uni.getStorageSync('webUserName')
console.log(webUserName)
if (!webUserName) {
wxLogin().then(getWebInfo)
}
......@@ -345,15 +346,7 @@ const confirmBind = async () => {
idcCode: bindForm.value.idcCode
}))
uni.hideLoading()
if (err) {
console.log(err)
// uni.showToast({
// title: err?.data?.msg || err?.message || '绑定失败,请稍后重试',
// icon: 'none',
// duration: 3000
// })
// return
if (res.data != 1) {
handelGo()
closeBindPopup()
} else {
......@@ -364,11 +357,30 @@ const confirmBind = async () => {
closeBindPopup()
await getWebInfo()
}
if (err) {
console.log(err)
handelGo()
closeBindPopup()
}
// uni.showToast({
// title: '绑定成功',
// icon: 'success'
// })
// if (err) {
// console.log(err)
// // uni.showToast({
// // title: err?.data?.msg || err?.message || '绑定失败,请稍后重试',
// // icon: 'none',
// // duration: 3000
// // })
// // return
// handelGo()
// closeBindPopup()
// } else {
// uni.showToast({
// title: '绑定成功',
// icon: 'success'
// })
// closeBindPopup()
// await getWebInfo()
// }
}
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!