Browse Source

1.6.25 修复modulelist跳转详情;;

release
ZhaoTongYao 5 years ago
parent
commit
3da6b1e759
  1. 2
      pages/toRegister/toRegister.js
  2. 25
      subpages/oneKeyService/pages/moduleList/moduleList.js

2
pages/toRegister/toRegister.js

@ -21,7 +21,7 @@ Page({
// }
// })
let that = this
const versionNum = "1.6.24"
const versionNum = "1.6.25"
api.getScanSwitch(versionNum).then(function (res) {
console.log(res.data)
let state = res.data.scanFlag

25
subpages/oneKeyService/pages/moduleList/moduleList.js

@ -50,14 +50,16 @@ Page({
this.getNoticelist()
} else if (this.getModuleStyleType() == 'module_list') {
this.getModuleCategory()
} else if (options.modulestyle == '4') {
wx.navigateTo({
url: `../noticeDetail/noticeDetail?pid=${this.data.moduleInfo.pid}&bannerflag=${this.data.moduleInfo.bannerflag}&categorycode=${this.data.moduleInfo.categorycode}&modulestyle=${this.data.moduleInfo.modulestyle}&categoryname=${this.data.moduleInfo.categoryname}`
})
} else if (this.getModuleStyleType() == 'notice_tab_list') {
this.getModuleCategoryList().then(() => {
this.getNoticelist(this.data.newsCategoryList[0].value)
})
} else {
wx.showToast({
title: '样式错误',
icon: 'none',
duration: 2500
})
}
},
@ -100,7 +102,7 @@ Page({
} else if (moduleStyle == '8') {
return 'notice_tab_list'
}
return 'notice_list'
return 'none'
},
//获取模块列表
getModuleCategory() {
@ -286,15 +288,14 @@ Page({
*/
navigateToType (e) {
const info = e.currentTarget.dataset.info
if (info.moduleStyle) {
if (info.moduleStyle == '4') {
wx.navigateTo({
url: `./moduleList?pid=${info.id}&bannerflag=${info.bannerFlag}&categorycode=${info.categoryCode}&modulestyle=${info.moduleStyle}&categoryname=${info.categoryName}`
url: `../noticeDetail/noticeDetail?pid=${info.pid}&bannerflag=${info.bannerFlag}&categorycode=${info.categoryCode}&modulestyle=${info.moduleStyle}&categoryname=${info.categoryName}`
})
} else {
wx.showToast({
title: '该模块未选择展示形式',
icon: 'none',
duration: 2000
}
else {
wx.navigateTo({
url: `./moduleList?pid=${info.id}&bannerflag=${info.bannerFlag}&categorycode=${info.categoryCode}&modulestyle=${info.moduleStyle}&categoryname=${info.categoryName}`
})
}
},

Loading…
Cancel
Save