Commit d092123b by 高淑倩

注释 开卡

parent 3ad27d86
...@@ -74,28 +74,26 @@ Component({ ...@@ -74,28 +74,26 @@ Component({
}, },
setUserInfo: function (e) { setUserInfo: function (e) {
console.log('开卡') console.log('开卡')
if (!app.globalData.openCard) { // 没有开卡并且需要开卡 // if (!app.globalData.openCard) { // 没有开卡并且需要开卡
wxService.openCard() // wxService.openCard()
return false // return false
} // }
// 跳转
const urls = getCurrentPages() const urls = getCurrentPages()
// setTimeout(() => { setTimeout(() => {
// const item = urls[0].options const item = urls[0].options
// if (item.route) { console.log('----', item.route)
// try { if (item.route) {
// const options = JSON.parse(item.options) try {
// wxService.router(`/${item.route}`).search(options).replace() const options = JSON.parse(item.options)
// } catch (e) { wxService.router(`/${item.route}`).search(options).replace()
// wx.switchTab({ } catch (e) {
// url: '/pages/userCenter/userCenter' wxService.router('/pages/userCenter/userCenter')
// }) }
// } } else {
// } else { wxService.router('/pages/userCenter/userCenter')
// wx.switchTab({ }
// url: '/pages/userCenter/userCenter' }, 200)
// })
// }
// }, 200)
} }
} }
......
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