epmet 工作端 小程序
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.

66 lines
1.6 KiB

const app = getApp()
Page({
data: {
monthOptions: [{
value: 1,
label: '本月'
}, {
value: 2,
label: '上月'
}, {
value: 3,
label: '近3月'
}, {
value: 4,
label: '近半年'
}, {
value: 5,
label: '近1年'
}],
monthIndex: 0,
stayVal: '1',
curVal: '1',
tabValue: ''
},
onLoad(options) {
this.setData({
statusHeight: app.globalData.deviceInfo.statusHeight,
navigationHeight: app.globalData.deviceInfo.navigationHeight,
agencyName: app.globalData.user.agencyName,
})
},
monthChange({currentTarget: {dataset: {index}}}) {
this.setData({
monthIndex: index
})
},
gotopage({currentTarget: {dataset}}) {
const {url} = dataset
console.log(url)
wx.navigateTo({
url
})
},
setStay({currentTarget: {dataset: {index}}}) {
this.setData({
stayVal: index
})
},
setCur({currentTarget: {dataset: {index}}}) {
this.setData({
curVal: index
})
},
tabChange({detail}) {
this.setData({
tabValue: detail
})
},
gotoAttack(){
let worktoken=wx.getStorageSync('token')
console.log(worktoken,"执行一次");
wx.navigateTo({
url: '/pages/webView/webView?worktoken='+worktoken+'&AttackEvent='+'https://epmet-preview.elinkservice.cn/#/AttackEvent',
})
}
})