|
@@ -7789,8 +7789,11 @@ export default {
|
|
|
this.courseType
|
|
|
];
|
|
|
this.chapInfoList = JSON.parse(this.courseDetail.chapters);
|
|
|
- if (this.tcid && res.data[0][0].inviteCode) {
|
|
|
- let _inviteA = JSON.parse(res.data[0][0].inviteCode)
|
|
|
+ if (this.tcid && res.data[4].length) {
|
|
|
+ let _inviteA = []
|
|
|
+ for (var ik = 0; ik < res.data[4].length; ik++) {
|
|
|
+ _inviteA.push({cid:res.data[4][ik].classid,ic:res.data[4][ik].code});
|
|
|
+ }
|
|
|
for (var ik = 0; ik < _inviteA.length; ik++) {
|
|
|
if (_inviteA[ik].cid == this.tcid) {
|
|
|
this.inviteCode = _inviteA[ik].ic
|