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.
25 lines
526 B
25 lines
526 B
Page({ |
|
data: { |
|
notifyChecked: false, |
|
}, |
|
onLoad() {}, |
|
onShow() {}, |
|
handleBack() { |
|
wx.navigateBack() |
|
}, |
|
toggleNotify() { |
|
const notifyChecked = !this.data.notifyChecked |
|
this.setData({ notifyChecked }) |
|
if (notifyChecked) { |
|
wx.showToast({ title: '已开启上线通知', icon: 'none' }) |
|
} |
|
}, |
|
handleNotify() { |
|
if (!this.data.notifyChecked) { |
|
this.setData({ notifyChecked: true }) |
|
wx.showToast({ title: '已开启上线通知', icon: 'none' }) |
|
} |
|
}, |
|
}) |
|
|
|
export {}
|
|
|