Przeglądaj źródła

接口增加商品类型

谢杰标 2 lat temu
rodzic
commit
6cd75e8b33

+ 3 - 2
common/httpList/goods.js

@@ -320,8 +320,9 @@ export default {
 
 	examWrongRecordWrongNum(data) {
 		return myRequest({
-			url: `/exam/wwrong/record/wrongNum/${data}`,
-			method: 'get'
+			url: `/exam/wwrong/record/wrongNum`,
+			method: 'get',
+			data
 		})
 	},
 

+ 2 - 1
pages2/bank/questionBank.vue

@@ -2306,7 +2306,8 @@ export default {
                   "&bankNum=" +
                   this.bankNum +
                   "&doMode=" +
-                  this.doMode,
+                  this.doMode +
+                  "&courseType=1",
               });
             }, 1000);
           }

+ 6 - 2
pages2/bank/question_record.vue

@@ -265,7 +265,9 @@ export default {
             "&orderGoodsId=" +
             record.orderGoodsId +
             "&doMode=" +
-            record.doMode,
+            record.doMode +
+            "&courseType=" +
+            record.courseType,
         });
       } else {
         let entryType = record.doMode == 2 ? "random" : "";
@@ -286,7 +288,9 @@ export default {
             "&entryType=" +
             entryType +
             "&doMode=" +
-            record.doMode,
+            record.doMode +
+            "&courseType=" +
+            record.courseType,
         });
       }
     },

+ 11 - 4
pages2/bank/question_report.vue

@@ -246,6 +246,7 @@ export default {
       bankNum: 5, // 随机练习的题目数量
       examName: "", // 试卷名称
       doMode: "",
+      courseType:''
     };
   },
   onUnload() {},
@@ -267,6 +268,7 @@ export default {
     this.chapterId = option.chapterId || 0;
     this.goodsId = option.goodsId || "";
     this.doMode = option.doMode;
+    this.courseType = option.courseType
     this.examWrongRecordWrongNum();
     this.bankExamNextExam();
     // await this.bankExam();
@@ -582,10 +584,15 @@ export default {
     },
     examWrongRecordWrongNum() {
       return new Promise((resolve) => {
-        this.$api.examWrongRecordWrongNum(this.recordId).then((res) => {
-          this.wrongRecordWrongNum = res.data.data || 0;
-          resolve();
-        });
+        this.$api
+          .examWrongRecordWrongNum({
+            recordId: this.recordId,
+            courseType: this.courseType,
+          })
+          .then((res) => {
+            this.wrongRecordWrongNum = res.data.data || 0;
+            resolve();
+          });
       });
     },
     /**

+ 1 - 4
pages2/learn/my_learn.vue

@@ -102,7 +102,7 @@
               <view class="btnBox"
                 ><view
                   class="btn"
-                  v-if="!showLearn(item)"
+                  v-if="item.externalLinkStatus || !showLearn(item)"
                   @click="jumpPage(item, 1, index)"
                   >课程学习</view
                 ></view
@@ -273,9 +273,6 @@ export default {
   },
   methods: {
     showLearn(item) {
-      if (item.externalLinkStatus) {
-        return true;
-      }
       return (
         (item.interfacePushId > 0 && item.officialStatus != 1) ||
         this.sysTime <= item.serviceStartTime ||