Commit 9da4861c by 宋冰琦

提交代码修复扫码点单登录问题

parent 36814f71
......@@ -98,6 +98,11 @@ export default {
}
},
onLoad(option) {
if(!this.userms){
User.wxLoginAndGetOpenid(true).then(loginInfo=>{
this.loginInfo = loginInfo
})
}
// 商品详情页点击立即支付进入
if (option.goodsList) {
const shopData = uni.getStorageSync('shopData');
......@@ -146,12 +151,6 @@ export default {
}).then(({ data }) => {
this.duration = data.data
})
if(!this.userms){
User.wxLoginAndGetOpenid(true).then(loginInfo=>{
this.loginInfo = loginInfo
})
}
},
data() {
return {
......
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