bding 1 год назад
Родитель
Сommit
b60fb765fe
1 измененных файлов с 7 добавлено и 0 удалено
  1. 7 0
      components/modalDialog.vue

+ 7 - 0
components/modalDialog.vue

@@ -509,6 +509,7 @@ export default {
           });
         },
         fail(res) {
+          console.log(res);
           // 日程添加失败的回调函数
           if (res.errMsg == "addPhoneCalendar:fail authorization refuesed") {
             wx.showToast({
@@ -516,6 +517,12 @@ export default {
               icon: "none",
               duration: 2000,
             });
+          }else if (res.errMsg == "addPhoneCalendar:fail auth deny") {
+            wx.showToast({
+              title: "添加失败,请确认允许小程序添加日历",
+              icon: "none",
+              duration: 2000,
+            });
           } else {
             wx.showToast({
               title: "已取消添加",