Browse Source

添加课程打开次数

11wqe1 3 weeks ago
parent
commit
a4a142afad
1 changed files with 14 additions and 0 deletions
  1. 14 0
      src/components/courseDetail.vue

+ 14 - 0
src/components/courseDetail.vue

@@ -1437,6 +1437,20 @@ export default {
           );
         }
       }
+
+      let params = [
+        {
+          courseId: this.id,
+        },
+      ];
+      this.ajax
+        .post(this.$store.state.api + "addOpenCoursenum", params)
+        .then((res) => {})
+        .catch((err) => {
+          console.error(err);
+        });
+
+
     },
     goToStudyOrDia(l) {
       if (l.length > 0) {