8.28 修改事件详情相关概念模块样式,增加股票详情信息来源展示
This commit is contained in:
@@ -50,17 +50,17 @@ Component({
|
||||
const data = e.currentTarget.dataset;
|
||||
const url = data.path;
|
||||
const index = data.index
|
||||
// if(index==2||index==4)
|
||||
// {
|
||||
// //如果是购物车和我的,需要登录
|
||||
// let token = wx.getStorageSync('token')
|
||||
// if (!token) {
|
||||
// wx.navigateTo({
|
||||
// url:'/pages/login/login'
|
||||
// })
|
||||
// return
|
||||
// }
|
||||
// }
|
||||
if(index==2)
|
||||
{
|
||||
//如果是购物车和我的,需要登录
|
||||
let token = wx.getStorageSync('token')
|
||||
if (!token) {
|
||||
wx.navigateTo({
|
||||
url:'/pages/login/login'
|
||||
})
|
||||
return
|
||||
}
|
||||
}
|
||||
app.globalData.tabIndex = index
|
||||
wx.switchTab({url})
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user