|
@@ -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;
|