|
@@ -212,7 +212,12 @@
|
|
:key="courseware_i"
|
|
:key="courseware_i"
|
|
class="btn"
|
|
class="btn"
|
|
@click="
|
|
@click="
|
|
- preview(courseware.courseware_id, 'courseware', courseware.courseware_book_id)
|
|
|
|
|
|
+ preview(
|
|
|
|
+ courseware.courseware_id,
|
|
|
|
+ 'courseware',
|
|
|
|
+ courseware.courseware_book_id,
|
|
|
|
+ courseware.group_id_selected_info
|
|
|
|
+ )
|
|
"
|
|
"
|
|
>
|
|
>
|
|
<img src="../../assets/course_details/file.png" alt="" />
|
|
<img src="../../assets/course_details/file.png" alt="" />
|
|
@@ -279,7 +284,13 @@
|
|
<Payment ref="Confirmorder" :order-id="orderId" @judgePayResult="judgePayResult"></Payment>
|
|
<Payment ref="Confirmorder" :order-id="orderId" @judgePayResult="judgePayResult"></Payment>
|
|
</el-dialog>
|
|
</el-dialog>
|
|
|
|
|
|
- <preview-course :file-id="fileId" :file-type="fileType" :visible="visible" @dialogClose="dialogClose" />
|
|
|
|
|
|
+ <preview-course
|
|
|
|
+ :file-id="fileId"
|
|
|
|
+ :file-type="fileType"
|
|
|
|
+ :visible="visible"
|
|
|
|
+ :preview-group-id="previewGroupId"
|
|
|
|
+ @dialogClose="dialogClose"
|
|
|
|
+ />
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
@@ -330,7 +341,8 @@ export default {
|
|
orderId: '',
|
|
orderId: '',
|
|
visible: false,
|
|
visible: false,
|
|
fileId: '',
|
|
fileId: '',
|
|
- fileType: ''
|
|
|
|
|
|
+ fileType: '',
|
|
|
|
+ previewGroupId: '[]'
|
|
};
|
|
};
|
|
},
|
|
},
|
|
created() {
|
|
created() {
|
|
@@ -466,7 +478,7 @@ export default {
|
|
this.auditShow = false;
|
|
this.auditShow = false;
|
|
},
|
|
},
|
|
|
|
|
|
- preview(fileId, fileType, goods_id) {
|
|
|
|
|
|
+ preview(fileId, fileType, goods_id, group_id_selected_info) {
|
|
if (fileType === 'courseware') {
|
|
if (fileType === 'courseware') {
|
|
CheckMyGoodsBuyStatus({ goods_id, goods_type: 101 }).then(({ is_buy }) => {
|
|
CheckMyGoodsBuyStatus({ goods_id, goods_type: 101 }).then(({ is_buy }) => {
|
|
if (is_buy === 'false') {
|
|
if (is_buy === 'false') {
|
|
@@ -474,6 +486,7 @@ export default {
|
|
}
|
|
}
|
|
this.fileId = fileId;
|
|
this.fileId = fileId;
|
|
this.fileType = fileType;
|
|
this.fileType = fileType;
|
|
|
|
+ this.previewGroupId = group_id_selected_info ?? '[]';
|
|
this.visible = true;
|
|
this.visible = true;
|
|
});
|
|
});
|
|
}
|
|
}
|