You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
76 lines
2.4 KiB
76 lines
2.4 KiB
const api = require('../../../../utils/understandJs')
|
|
Page({
|
|
|
|
/**
|
|
* 页面的初始数据
|
|
*/
|
|
data: {
|
|
moduleCategory: 'module_type_service', //module_type_jmjs (解码锦水) //module_type_service (一键服务)
|
|
modulelist: []
|
|
},
|
|
|
|
/**
|
|
* 生命周期函数--监听页面加载
|
|
*/
|
|
onLoad: function (options) {
|
|
this.modulelist()
|
|
},
|
|
modulelist() {
|
|
let that = this;
|
|
api.modulelist(that.data.moduleCategory).then(function (res) {
|
|
that.setData({
|
|
modulelist: res.data,
|
|
})
|
|
})
|
|
},
|
|
|
|
/**
|
|
* 页面上拉触底事件的处理函数
|
|
*/
|
|
onReachBottom: function () {
|
|
|
|
},
|
|
|
|
// wx.showToast({
|
|
// title: '敬请期待',
|
|
// icon: 'none',
|
|
// duration: 1000
|
|
// })
|
|
//政策、通知 /subpages/home/pages/noticeNew/noticeNew
|
|
goDetails(e) {//模块编码(政策,通知,档案,警事,一键直通)
|
|
console.log(JSON.stringify(e.currentTarget.dataset) + e.currentTarget.dataset.modulecode)
|
|
if (e.currentTarget.dataset.modulecode == 'notice_navigation_hot') {
|
|
wx.navigateTo({
|
|
url: `../policyList/policyList?modulecode=${e.currentTarget.dataset.modulecode}`
|
|
})
|
|
} else if (e.currentTarget.dataset.modulecode == 'notice_navigation_new') {
|
|
wx.navigateTo({
|
|
url: `../policyList/policyList?modulecode=${e.currentTarget.dataset.modulecode}`
|
|
})
|
|
} else if (e.currentTarget.dataset.modulecode == 'module_file') {
|
|
wx.navigateTo({
|
|
url: '../archives/archives'
|
|
})
|
|
} else if (e.currentTarget.dataset.modulecode == 'notice_warning') {
|
|
wx.navigateTo({
|
|
url: `../warning/warning?modulecode=${e.currentTarget.dataset.modulecode}`
|
|
})
|
|
} else if (e.currentTarget.dataset.modulecode == 'module_hardcore') {
|
|
wx.navigateTo({
|
|
url: `../directTo/directTo?modulecode=${e.currentTarget.dataset.modulecode}`
|
|
})
|
|
} else if (e.currentTarget.dataset.modulecode == 'notice_zcwsc') {
|
|
wx.navigateTo({
|
|
url: `../warning/warning?modulecode=${e.currentTarget.dataset.modulecode}`
|
|
})
|
|
} else if (e.currentTarget.dataset.modulecode == 'notice_aq') {
|
|
wx.navigateTo({
|
|
url: `../warning/warning?modulecode=${e.currentTarget.dataset.modulecode}`
|
|
})
|
|
} else if (e.currentTarget.dataset.modulecode == 'notice_cgjj') {
|
|
wx.navigateTo({
|
|
url: `../warning/warning?modulecode=${e.currentTarget.dataset.modulecode}`
|
|
})
|
|
}
|
|
}
|
|
})
|