瀏覽代碼

修改文案

bding 1 年之前
父節點
當前提交
b60fb765fe
共有 1 個文件被更改,包括 7 次插入0 次删除
  1. 7 0
      components/modalDialog.vue

+ 7 - 0
components/modalDialog.vue

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