谢杰标 hace 2 años
padre
commit
a37b0ea75b
Se han modificado 1 ficheros con 16 adiciones y 0 borrados
  1. 16 0
      pages3/polyv/detail.vue

+ 16 - 0
pages3/polyv/detail.vue

@@ -1019,12 +1019,28 @@ export default {
     async qCheckIsCanLearn() {
       let res = await this.$api.qCheckIsCanLearn(this.orderGoodsId);
       if (res.data.code !== 200) {
+        uni.showModal({
+          showCancel: false,
+          title: "提示",
+          content: "无法进入学习!",
+          success: (resultst) => {
+            uni.navigateBack();
+          },
+        });
         return Promise.reject();
       }
       let res1 = await this.$api.syncSevenPublicClass({
         orderGoodsId: this.orderGoodsId,
       });
       if (res1.data.code !== 200) {
+        uni.showModal({
+          showCancel: false,
+          title: "提示",
+          content: "无法进入学习!",
+          success: (resultst) => {
+            uni.navigateBack();
+          },
+        });
         return Promise.reject();
       }
     },