|
@ -50,15 +50,17 @@ 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,16 +288,15 @@ 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({ |
|
|
|
|
|
url: `../noticeDetail/noticeDetail?pid=${info.pid}&bannerflag=${info.bannerFlag}&categorycode=${info.categoryCode}&modulestyle=${info.moduleStyle}&categoryname=${info.categoryName}` |
|
|
|
|
|
}) |
|
|
|
|
|
} |
|
|
|
|
|
else { |
|
|
wx.navigateTo({ |
|
|
wx.navigateTo({ |
|
|
url: `./moduleList?pid=${info.id}&bannerflag=${info.bannerFlag}&categorycode=${info.categoryCode}&modulestyle=${info.moduleStyle}&categoryname=${info.categoryName}` |
|
|
url: `./moduleList?pid=${info.id}&bannerflag=${info.bannerFlag}&categorycode=${info.categoryCode}&modulestyle=${info.moduleStyle}&categoryname=${info.categoryName}` |
|
|
}) |
|
|
}) |
|
|
} else { |
|
|
|
|
|
wx.showToast({ |
|
|
|
|
|
title: '该模块未选择展示形式', |
|
|
|
|
|
icon: 'none', |
|
|
|
|
|
duration: 2000 |
|
|
|
|
|
}) |
|
|
|
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|