Commit 2bb7c4b9 authored by Aivs's avatar Aivs

有手机号不用绑定

parent 77a29f17
...@@ -43,18 +43,25 @@ Page({ ...@@ -43,18 +43,25 @@ Page({
}) })
user.loginByWeixin(e.detail.userInfo).then(res => { user.loginByWeixin(e.detail.userInfo).then(res => {
app.globalData.hasLogin = true; app.globalData.hasLogin = true;
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({ this.setData({
hasLogin:true hasLogin:true
}) })
// if (getCurrentPages().length>1) { }
// wx.navigateBack({
// delta: 1
// })
// } else {
// wx.reLaunch({
// url: '/pages/ucenter/index/index',
// })
// }
wx.hideLoading(); wx.hideLoading();
}).catch((err) => { }).catch((err) => {
console.log(err) console.log(err)
...@@ -68,7 +75,7 @@ Page({ ...@@ -68,7 +75,7 @@ Page({
let that = this; let that = this;
if (e.detail.errMsg !== "getPhoneNumber:ok") { if (e.detail.errMsg !== "getPhoneNumber:ok") {
// 拒绝授权 // 拒绝授权
wx.clearStorageSync('token')
return; return;
} }
......
...@@ -474,7 +474,6 @@ Page({ ...@@ -474,7 +474,6 @@ Page({
} }
let checkedProduct = checkedProductArray[0]; let checkedProduct = checkedProductArray[0];
debugger
if (checkedProduct.number > 0) { if (checkedProduct.number > 0) {
this.setData({ this.setData({
checkedSpecPrice: checkedProduct.price, 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