|
@@ -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: "已取消添加",
|