|
@@ -558,13 +558,20 @@
|
|
|
param['adminId'] = this.globalUser.id;
|
|
|
this.updateAlarmClock(param)
|
|
|
.then(res => {
|
|
|
- uni.showToast({
|
|
|
- title: res.message,
|
|
|
- duration: 2000,
|
|
|
- success: uni.navigateBack({
|
|
|
- url: 'alarmClockList'
|
|
|
- }),
|
|
|
- });
|
|
|
+ uni.showModal({
|
|
|
+ title: this.$t('common.tip'),
|
|
|
+ content: res.message,
|
|
|
+ success: (re) => {
|
|
|
+ if (re.confirm) {
|
|
|
+ // uni.navigateTo({
|
|
|
+ // url: 'alarmClockList',
|
|
|
+ // });
|
|
|
+ uni.navigateBack({
|
|
|
+ url: 'alarmClockList'
|
|
|
+ });
|
|
|
+ }
|
|
|
+ }
|
|
|
+ })
|
|
|
|
|
|
}, _ => void uni.stopPullDownRefresh());
|
|
|
},
|