浏览代码

添加课程打开次数

11wqe1 2 月之前
父节点
当前提交
a4a142afad
共有 1 个文件被更改,包括 14 次插入0 次删除
  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) {