|  | @@ -104,7 +104,12 @@
 | 
											
												
													
														|  |            <div class="moreList">
 |  |            <div class="moreList">
 | 
											
												
													
														|  |              <div v-for="(item, i) in CourseData.book_list" :key="i" class="moreOne">
 |  |              <div v-for="(item, i) in CourseData.book_list" :key="i" class="moreOne">
 | 
											
												
													
														|  |                <div>
 |  |                <div>
 | 
											
												
													
														|  | -                <img :src="item.book_picture_url" alt="" />
 |  | 
 | 
											
												
													
														|  | 
 |  | +                <img
 | 
											
												
													
														|  | 
 |  | +                  :style="{ cursor: 'pointer' }"
 | 
											
												
													
														|  | 
 |  | +                  :src="item.book_picture_url"
 | 
											
												
													
														|  | 
 |  | +                  alt="picture"
 | 
											
												
													
														|  | 
 |  | +                  @click="goBook(item.book_id)"
 | 
											
												
													
														|  | 
 |  | +                />
 | 
											
												
													
														|  |                </div>
 |  |                </div>
 | 
											
												
													
														|  |                <div class="text">
 |  |                <div class="text">
 | 
											
												
													
														|  |                  <p class="p1">
 |  |                  <p class="p1">
 | 
											
										
											
												
													
														|  | @@ -206,6 +211,7 @@
 | 
											
												
													
														|  |                                      v-for="(courseware, courseware_i) in it.courseware_list"
 |  |                                      v-for="(courseware, courseware_i) in it.courseware_list"
 | 
											
												
													
														|  |                                      :key="courseware_i"
 |  |                                      :key="courseware_i"
 | 
											
												
													
														|  |                                      class="btn"
 |  |                                      class="btn"
 | 
											
												
													
														|  | 
 |  | +                                    @click="preview(courseware.courseware_id, 'courseware')"
 | 
											
												
													
														|  |                                    >
 |  |                                    >
 | 
											
												
													
														|  |                                      <img src="../../assets/course_details/file.png" alt="" />
 |  |                                      <img src="../../assets/course_details/file.png" alt="" />
 | 
											
												
													
														|  |                                      <span> {{ courseware.courseware_name }} </span>
 |  |                                      <span> {{ courseware.courseware_name }} </span>
 | 
											
										
											
												
													
														|  | @@ -219,6 +225,7 @@
 | 
											
												
													
														|  |                                      v-for="(accessory, accessory_i) in it.accessory_list"
 |  |                                      v-for="(accessory, accessory_i) in it.accessory_list"
 | 
											
												
													
														|  |                                      :key="accessory_i"
 |  |                                      :key="accessory_i"
 | 
											
												
													
														|  |                                      class="btn"
 |  |                                      class="btn"
 | 
											
												
													
														|  | 
 |  | +                                    @click="preview(accessory.file_id, 'file')"
 | 
											
												
													
														|  |                                    >
 |  |                                    >
 | 
											
												
													
														|  |                                      <img src="../../assets/course_details/fileType1.png" alt="" />
 |  |                                      <img src="../../assets/course_details/fileType1.png" alt="" />
 | 
											
												
													
														|  |                                      <span> {{ accessory.file_name }} </span>
 |  |                                      <span> {{ accessory.file_name }} </span>
 | 
											
										
											
												
													
														|  | @@ -269,11 +276,14 @@
 | 
											
												
													
														|  |      >
 |  |      >
 | 
											
												
													
														|  |        <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" />
 | 
											
												
													
														|  |    </div>
 |  |    </div>
 | 
											
												
													
														|  |  </template>
 |  |  </template>
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |  <script>
 |  |  <script>
 | 
											
												
													
														|  |  import Audit from '@/components/payment/Audit.vue';
 |  |  import Audit from '@/components/payment/Audit.vue';
 | 
											
												
													
														|  | 
 |  | +import PreviewCourse from '@/components/preview/PreviewCourse.vue';
 | 
											
												
													
														|  |  import Payment from '@/components/payment/Payment.vue';
 |  |  import Payment from '@/components/payment/Payment.vue';
 | 
											
												
													
														|  |  import {
 |  |  import {
 | 
											
												
													
														|  |    GetCourseInfoBox,
 |  |    GetCourseInfoBox,
 | 
											
										
											
												
													
														|  | @@ -288,7 +298,8 @@ export default {
 | 
											
												
													
														|  |    name: 'CourseDetails',
 |  |    name: 'CourseDetails',
 | 
											
												
													
														|  |    components: {
 |  |    components: {
 | 
											
												
													
														|  |      Audit,
 |  |      Audit,
 | 
											
												
													
														|  | -    Payment
 |  | 
 | 
											
												
													
														|  | 
 |  | +    Payment,
 | 
											
												
													
														|  | 
 |  | +    PreviewCourse
 | 
											
												
													
														|  |    },
 |  |    },
 | 
											
												
													
														|  |    data() {
 |  |    data() {
 | 
											
												
													
														|  |      const query = this.$route.query;
 |  |      const query = this.$route.query;
 | 
											
										
											
												
													
														|  | @@ -314,7 +325,10 @@ export default {
 | 
											
												
													
														|  |          { id: 'after_task_list', name: 'Key355' }
 |  |          { id: 'after_task_list', name: 'Key355' }
 | 
											
												
													
														|  |        ],
 |  |        ],
 | 
											
												
													
														|  |        visiblePay: false,
 |  |        visiblePay: false,
 | 
											
												
													
														|  | -      orderId: ''
 |  | 
 | 
											
												
													
														|  | 
 |  | +      orderId: '',
 | 
											
												
													
														|  | 
 |  | +      visible: false,
 | 
											
												
													
														|  | 
 |  | +      fileId: '',
 | 
											
												
													
														|  | 
 |  | +      fileType: ''
 | 
											
												
													
														|  |      };
 |  |      };
 | 
											
												
													
														|  |    },
 |  |    },
 | 
											
												
													
														|  |    created() {
 |  |    created() {
 | 
											
										
											
												
													
														|  | @@ -349,7 +363,7 @@ export default {
 | 
											
												
													
														|  |      handleChange(val) {
 |  |      handleChange(val) {
 | 
											
												
													
														|  |        this.openList.includes(val) ? this.openList.splice(this.openList.indexOf(val), 1) : this.openList.push(val);
 |  |        this.openList.includes(val) ? this.openList.splice(this.openList.indexOf(val), 1) : this.openList.push(val);
 | 
											
												
													
														|  |      },
 |  |      },
 | 
											
												
													
														|  | -    goBook(book_id, is_buy = true) {
 |  | 
 | 
											
												
													
														|  | 
 |  | +    goBook(book_id, is_buy = false) {
 | 
											
												
													
														|  |        if (!is_buy) {
 |  |        if (!is_buy) {
 | 
											
												
													
														|  |          window.location.href = `/GCLS-Book/#/GoodsDetail?goods_id=${book_id}&goods_type=101&invok_module=${
 |  |          window.location.href = `/GCLS-Book/#/GoodsDetail?goods_id=${book_id}&goods_type=101&invok_module=${
 | 
											
												
													
														|  |            this.invok_module ? this.invok_module : 'GCLS-Learn'
 |  |            this.invok_module ? this.invok_module : 'GCLS-Learn'
 | 
											
										
											
												
													
														|  | @@ -449,6 +463,23 @@ export default {
 | 
											
												
													
														|  |      closeaudit() {
 |  |      closeaudit() {
 | 
											
												
													
														|  |        this.auditShow = false;
 |  |        this.auditShow = false;
 | 
											
												
													
														|  |      },
 |  |      },
 | 
											
												
													
														|  | 
 |  | +
 | 
											
												
													
														|  | 
 |  | +    preview(fileId, fileType) {
 | 
											
												
													
														|  | 
 |  | +      if (!this.is_buy) {
 | 
											
												
													
														|  | 
 |  | +        this.$message.warning('请先购买该课程');
 | 
											
												
													
														|  | 
 |  | +        return;
 | 
											
												
													
														|  | 
 |  | +      }
 | 
											
												
													
														|  | 
 |  | +      this.visible = true;
 | 
											
												
													
														|  | 
 |  | +      this.fileId = fileId;
 | 
											
												
													
														|  | 
 |  | +      this.fileType = fileType;
 | 
											
												
													
														|  | 
 |  | +    },
 | 
											
												
													
														|  | 
 |  | +
 | 
											
												
													
														|  | 
 |  | +    dialogClose() {
 | 
											
												
													
														|  | 
 |  | +      this.visible = false;
 | 
											
												
													
														|  | 
 |  | +      this.fileId = '';
 | 
											
												
													
														|  | 
 |  | +      this.fileType = '';
 | 
											
												
													
														|  | 
 |  | +    },
 | 
											
												
													
														|  | 
 |  | +
 | 
											
												
													
														|  |      // 获取当前时间到指定时间的倒计时
 |  |      // 获取当前时间到指定时间的倒计时
 | 
											
												
													
														|  |      getBackTime() {
 |  |      getBackTime() {
 | 
											
												
													
														|  |        const date = new Date(this.CourseData.end_date);
 |  |        const date = new Date(this.CourseData.end_date);
 |