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.

41 lines
1.0 KiB

const app = getApp();
Page({
data: {
result: ['1', '2', '3'],
checked: false,
sSeriesName: ''
},
onLoad() {
wx.setNavigationBarTitle({
title: '危机事件推送设置'
})
},
onShow() {
let sSeriesName = wx.getStorageSync("sSeriesName") || '';
let sCrisis = wx.getStorageSync("sCrisis") || '1,2,3';
this.setData({
sSeriesName: sSeriesName,
result: sCrisis.split(",")
})
},
onChange(event) {
wx.setStorageSync('sCrisis', event.detail.toString());
this.setData({
result: event.detail,
});
},
onChange1({ detail }) {
this.setData({ checked: detail });
},
handlerModel() {
app.globalData.request({
action: 'getUserMainBrand',
token: wx.getStorageSync('token') || 't%2BrswgjvzGM='
}).then(res => {
wx.navigateTo({
url: '/pages/brandSearch/index?sBrand=' + res
})
})
},
})