|
|
@@ -47,8 +47,8 @@
|
|
|
<div class="right_box">
|
|
|
<div class="rightT">
|
|
|
<div class="right_box_title">{{ courseDetail.title }}</div>
|
|
|
- <div class="jd" v-if="courseDetail.state!=7">{{ chapInfo.length }}{{ lang.ssStageText }}</div>
|
|
|
- <div class="jd" v-if="courseDetail.state!=7">{{ rw }}{{ lang.ssTaskText }}</div>
|
|
|
+ <div class="jd" v-if="courseDetail.state!=7">{{ lang.ssStage3.replace(/\*/g, chapInfo.length) }}</div>
|
|
|
+ <div class="jd" v-if="courseDetail.state!=7">{{ lang.ssTaskText }}{{ rw }}</div>
|
|
|
</div>
|
|
|
<div class="cType" v-if="courseType.length">
|
|
|
<div
|
|
|
@@ -89,7 +89,7 @@
|
|
|
<div class="person" style="font-weight: bold; color: #0e1e33">
|
|
|
{{
|
|
|
courseDetail.vcount != null ? courseDetail.vcount : 0
|
|
|
- }}{{ lang.ssPerson }}
|
|
|
+ }} {{ lang.ssPerson }}
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
@@ -238,7 +238,7 @@
|
|
|
v-if="((tType == 1 || tType == 4) && type == 2) || tType == 2"
|
|
|
:class="courseDetail.brief != '' ? 'rightTd' : 'noBRight'"
|
|
|
style="width: 100%; padding-top: 20px"
|
|
|
- >
|
|
|
+ >
|
|
|
<template v-if="courseDetail.state!=7">
|
|
|
<div
|
|
|
class="courseItem"
|
|
|
@@ -265,7 +265,7 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</template>
|
|
|
-
|
|
|
+
|
|
|
|
|
|
<div
|
|
|
class="courseItem"
|
|
|
@@ -1954,7 +1954,7 @@ export default {
|
|
|
}
|
|
|
let a = this.inviteCode;
|
|
|
console.log(this.inviteCode);
|
|
|
- this.addInviteCode();
|
|
|
+ // this.addInviteCode();
|
|
|
}
|
|
|
this.groupInfo = "";
|
|
|
if (groupData.length) {
|
|
|
@@ -2533,7 +2533,9 @@ export default {
|
|
|
}
|
|
|
};
|
|
|
},
|
|
|
- selectClassSuccess(classId){
|
|
|
+ async selectClassSuccess(classId){
|
|
|
+ let data = await this.addInviteCodeOne(classId)
|
|
|
+ console.log("addInviteCodeOne",data)
|
|
|
this.gotoCourse(classId);
|
|
|
this.$refs.selectTeachingClassDialogRef.close();
|
|
|
},
|
|
|
@@ -2549,7 +2551,7 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
|
|
|
- this.inviteCodeFn();
|
|
|
+ //this.inviteCodeFn();
|
|
|
},
|
|
|
// 随机码
|
|
|
async inviteCodeFn(){
|
|
|
@@ -2572,9 +2574,30 @@ export default {
|
|
|
}
|
|
|
let a = this.inviteCode;
|
|
|
console.log(this.inviteCode);
|
|
|
- this.addInviteCode();
|
|
|
+ // this.addInviteCode();
|
|
|
}
|
|
|
- }
|
|
|
+ },
|
|
|
+ addInviteCodeOne(cid) {
|
|
|
+ return new Promise((resolve)=>{
|
|
|
+ let params = [
|
|
|
+ {
|
|
|
+ courseId: this.id,
|
|
|
+ inviteCode: cid,
|
|
|
+ },
|
|
|
+ ];
|
|
|
+ this.ajax
|
|
|
+ .post(this.$store.state.api + "add_courseInviteCode2", params)
|
|
|
+ .then((res) => {
|
|
|
+ console.log(res.data)
|
|
|
+ resolve(res.data)
|
|
|
+ })
|
|
|
+ .catch((err) => {
|
|
|
+ resolve(err.messages)
|
|
|
+ console.error(err);
|
|
|
+ });
|
|
|
+ })
|
|
|
+ },
|
|
|
+
|
|
|
},
|
|
|
created() {
|
|
|
// if(this.tType == 1 || this.tType == 4){
|
|
|
@@ -3014,7 +3037,7 @@ export default {
|
|
|
border-radius: 4px;
|
|
|
font-size: 14px;
|
|
|
color: #3d3d3d;
|
|
|
- width: 90px;
|
|
|
+ width: 105px;
|
|
|
height: 28px;
|
|
|
text-align: center;
|
|
|
line-height: 28px;
|