29 lines
545 B
JavaScript
29 lines
545 B
JavaScript
|
|
// pages/warning/settings/settings.js
|
||
|
|
Page({
|
||
|
|
data: {
|
||
|
|
warningDays: 30
|
||
|
|
},
|
||
|
|
|
||
|
|
showDaysPicker() {
|
||
|
|
wx.showActionSheet({
|
||
|
|
itemList: ['7天', '15天', '30天', '60天', '90天'],
|
||
|
|
success: (res) => {
|
||
|
|
const days = [7, 15, 30, 60, 90][res.tapIndex];
|
||
|
|
this.setData({ warningDays: days });
|
||
|
|
wx.showToast({
|
||
|
|
title: '设置成功',
|
||
|
|
icon: 'success'
|
||
|
|
});
|
||
|
|
}
|
||
|
|
});
|
||
|
|
},
|
||
|
|
|
||
|
|
goToMessageSettings() {
|
||
|
|
wx.showToast({
|
||
|
|
title: '功能开发中',
|
||
|
|
icon: 'none'
|
||
|
|
});
|
||
|
|
}
|
||
|
|
});
|
||
|
|
|