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 let that = this
const versionNum = "1.6.24" const versionNum = "1.6.25"
api.getScanSwitch(versionNum).then(function (res) { api.getScanSwitch(versionNum).then(function (res) {
console.log(res.data) console.log(res.data)
let state = res.data.scanFlag let state = res.data.scanFlag

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

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

Loading…
Cancel
Save