Commit c6bcd90a by 高淑倩

首页重定向

parent 8107f5b5
...@@ -6,7 +6,7 @@ function currentLinkRouter(event, _this) { ...@@ -6,7 +6,7 @@ function currentLinkRouter(event, _this) {
let curItemType = ev.item let curItemType = ev.item
const userInfo = wx.getStorageSync('_baseUserInfo') const userInfo = wx.getStorageSync('_baseUserInfo')
// link row // link row
console.log('curItemType', curItemType)
if (curItemType.link) { if (curItemType.link) {
//处理返回值是空对象时 导致跳转失败 //处理返回值是空对象时 导致跳转失败
if (Object.keys(curItemType.link).length > 0){ if (Object.keys(curItemType.link).length > 0){
...@@ -27,7 +27,11 @@ function currentLinkRouter(event, _this) { ...@@ -27,7 +27,11 @@ function currentLinkRouter(event, _this) {
urls: [`${app.globalData.imageUrl}/${currentClickType.link.url}`] // 需要预览的图片http链接列表 urls: [`${app.globalData.imageUrl}/${currentClickType.link.url}`] // 需要预览的图片http链接列表
}) })
} else if (curItemType.link.type == 4) { } else if (curItemType.link.type == 4) {
if( currentClickType === '/pages/userCenter/userCenter') {
wxService.router(`${currentClickType}`).replace() // 是首页重定向
} else {
wxService.router(`${currentClickType}`) wxService.router(`${currentClickType}`)
}
} else if (curItemType.link.type == 5) { } else if (curItemType.link.type == 5) {
if (currentClickType == 1) { if (currentClickType == 1) {
wxService.openCard() wxService.openCard()
......
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