Преглед на файлове

fix:“优化闹钟页面”

soobin преди 1 година
родител
ревизия
882522a4a6
променени са 1 файла, в които са добавени 14 реда и са изтрити 7 реда
  1. 14 7
      packageA/pages/remote/alarmClockItem.vue

+ 14 - 7
packageA/pages/remote/alarmClockItem.vue

@@ -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());
 			},