소스 검색

补充提示

谢杰标 2 년 전
부모
커밋
a37b0ea75b
1개의 변경된 파일16개의 추가작업 그리고 0개의 파일을 삭제
  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();
       }
     },