Commit 2bb7c4b9 authored by Aivs's avatar Aivs

有手机号不用绑定

parent 77a29f17
......@@ -43,18 +43,25 @@ Page({
})
user.loginByWeixin(e.detail.userInfo).then(res => {
app.globalData.hasLogin = true;
this.setData({
hasLogin:true
})
// if (getCurrentPages().length>1) {
// wx.navigateBack({
// delta: 1
// })
// } else {
// wx.reLaunch({
// url: '/pages/ucenter/index/index',
// })
// }
if(wx.getStorageSync('userInfo').tel){
this.setData({
phoneshow:true
})
if (getCurrentPages().length>1) {
wx.navigateBack({
delta: 1
})
} else {
wx.reLaunch({
url: '/pages/ucenter/index/index',
})
}
}else{
this.setData({
hasLogin:true
})
}
wx.hideLoading();
}).catch((err) => {
console.log(err)
......@@ -68,7 +75,7 @@ Page({
let that = this;
if (e.detail.errMsg !== "getPhoneNumber:ok") {
// 拒绝授权
wx.clearStorageSync('token')
return;
}
......
......@@ -474,7 +474,6 @@ Page({
}
let checkedProduct = checkedProductArray[0];
debugger
if (checkedProduct.number > 0) {
this.setData({
checkedSpecPrice: checkedProduct.price,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment