zengyicheng 1 year ago
parent
commit
1ed0c7847b

BIN
src/assets/icon/newIcon/codeIcon.png


BIN
src/assets/icon/newIcon/groupIcon.png


+ 8 - 107
src/components/courseDetail.vue

@@ -1153,106 +1153,10 @@ export default {
       if (l.length > 0) {
         this.dialogVisibleSk = true;
       } else {
-        this.addUserRateNoClass(0);
+        this.addUserRate(0);
       }
     },
 
-    addUserRateNoClass(i) {
-      let params = {
-        uid: this.userid,
-        cid: this.id,
-      };
-      this.ajax
-        .get(this.$store.state.api + "addUserR", params)
-        .then((res) => {
-          this.updateVc();
-          if (this.tType == 1 || this.tType == 4) {
-            if (this.courseDetail.state == 1) {
-              this.goTo(
-                "/studyStudent?type=" +
-                  i +
-                  "&courseId=" +
-                  this.id +
-                  "&userid=" +
-                  this.userid +
-                  "&oid=" +
-                  this.oid +
-                  "&org=" +
-                  this.org +
-                  "&cid=" +
-                  this.classId +
-                  "&tType=" +
-                  this.tType +
-                  "&screenType=" +
-                  this.screenType
-              );
-            } else if (this.courseDetail.state == 2) {
-              this.goTo(
-                "/studystudentE2?type=" +
-                  i +
-                  "&courseId=" +
-                  this.id +
-                  "&userid=" +
-                  this.userid +
-                  "&oid=" +
-                  this.oid +
-                  "&org=" +
-                  this.org +
-                  "&cid=" +
-                  this.classId +
-                  "&tType=" +
-                  this.tType +
-                  "&screenType=" +
-                  this.screenType
-              );
-            } else if (this.courseDetail.state == 3) {
-              this.goTo(
-                "/studystudentE3?type=" +
-                  i +
-                  "&courseId=" +
-                  this.id +
-                  "&userid=" +
-                  this.userid +
-                  "&oid=" +
-                  this.oid +
-                  "&org=" +
-                  this.org +
-                  "&cid=" +
-                  this.classId +
-                  "&tType=" +
-                  this.tType +
-                  "&screenType=" +
-                  this.screenType
-              );
-            }
-          } else if (this.tType == 2) {
-            this.gotoCourse(this.classId);
-          } else {
-            this.goTo(
-              "/study?type=" +
-                i +
-                "&courseId=" +
-                this.id +
-                "&userid=" +
-                this.userid +
-                "&oid=" +
-                this.oid +
-                "&org=" +
-                this.org +
-                "&cid=" +
-                this.classId +
-                "&tType=" +
-                this.tType +
-                "&screenType=" +
-                this.screenType
-            );
-          }
-        })
-        .catch((err) => {
-          console.error(err);
-        });
-    },
-
     addUserRate(i) {
       // var suid = this.userid;
       // if (
@@ -1284,9 +1188,6 @@ export default {
       if (this.isFollow == 2 && this.tType == 2 && this.followC != i) {
         return;
       }
-      if (this.tType == 1 || this.tType == 4) {
-        return;
-      }
 
       let params = {
         uid: this.userid,
@@ -1880,14 +1781,14 @@ export default {
 }
 
 .now_study {
-  width: 136px;
-  height: 36px;
-  color: #0e1e33;
-  background: #f0f4fa;
+  width: 120px;
+  height: 45px;
+  color: #fff;
+  background: #3681fc;
   text-align: center;
-  line-height: 36px;
-  border-radius: 5px;
-  font-size: 13px;
+  line-height: 45px;
+  border-radius: 8px;
+  font-size: 16px;
   cursor: pointer;
   display: flex;
   flex-direction: row;

+ 1 - 2
src/components/easy2/studyStudent.vue

@@ -19452,7 +19452,6 @@ export default {
 .vedioBox {
   border-radius: 0 0 20px 20px;
   background: #fff;
-  margin-bottom: 10px;
   overflow: auto;
 }
 
@@ -19516,7 +19515,7 @@ export default {
 
 .tool_work_box {
   width: 100%;
-  padding: 0 37px 10px;
+  padding: 0 37px 0;
   box-sizing: border-box;
 }
 

+ 1 - 2
src/components/easy3/studyStudent.vue

@@ -19313,7 +19313,6 @@ export default {
 .vedioBox {
   border-radius: 0 0 20px 20px;
   background: #fff;
-  margin-bottom: 10px;
   overflow: auto;
 }
 
@@ -19377,7 +19376,7 @@ export default {
 
 .tool_work_box {
   width: 100%;
-  padding: 0 37px 10px;
+  padding: 0 37px 0;
   box-sizing: border-box;
 }
 

+ 2 - 3
src/components/studyStudent.vue

@@ -18190,7 +18190,7 @@ export default {
   flex-direction: row;
   flex-wrap: nowrap;
   align-items: center;
-  padding: 0 0 15px 0;
+  padding: 15px 0 15px 0;
 }
 .workNav::before {
   content: "";
@@ -18462,7 +18462,6 @@ export default {
 .vedioBox {
   border-radius: 20px;
   background: #fff;
-  margin-bottom: 10px;
   overflow: auto;
 }
 
@@ -20696,7 +20695,7 @@ ol {
 
 .tool_work_box {
   width: 100%;
-  padding: 0 37px 10px;
+  padding: 0 37px 0;
   box-sizing: border-box;
 }