Bladeren bron

fix:课程已看完状态和直播购买课程

xuqiaoying 3 jaren geleden
bovenliggende
commit
305ef60cb4
4 gewijzigde bestanden met toevoegingen van 13 en 10 verwijderingen
  1. 2 2
      build/webpack.prod.conf.js
  2. 4 4
      src/axios.js
  3. 6 3
      src/pages/course-detail/index.vue
  4. 1 1
      src/pages/living-room/index.vue

+ 2 - 2
build/webpack.prod.conf.js

@@ -36,8 +36,8 @@ const webpackConfig = merge(baseWebpackConfig, {
       uglifyOptions: {
         compress: {
           warnings: false,
-          drop_debugger: true,
-          drop_console: true
+          drop_debugger: true
+          // drop_console: false
         }
       },
       sourceMap: config.build.productionSourceMap,

+ 4 - 4
src/axios.js

@@ -1,9 +1,9 @@
 import axios from 'axios'
 import store from './store'
 import { Message } from 'element-ui'
-export const BASE_URL = 'https://api.xyyxt.net'   //release
+// export const BASE_URL = 'https://api.xyyxt.net'   //release
 // export const BASE_URL = 'http://42.192.164.187:19005'    //test
-// export const BASE_URL = 'https://test.xyyxt.net'   //预发布
+export const BASE_URL = 'https://test.xyyxt.net'   //预发布
 // export const BASE_URL = 'http://192.168.1.7:5055'    //dev
 // export const BASE_URL = 'http://120.79.166.78:19012'    //测试-外网
 // export const BASE_URL = 'http://42.192.164.187:19005'    //test
@@ -12,8 +12,8 @@ export const tenantId = '867735392558919680'
 
 
 //图片上传api
-export const BASE_IMG_URL = 'https://file.xyyxt.net/'     //release
-// export const BASE_IMG_URL = 'https://file-dev.xyyxt.net/'  //test
+// export const BASE_IMG_URL = 'https://file.xyyxt.net/'     //release
+export const BASE_IMG_URL = 'https://file-dev.xyyxt.net/'  //test
 
 import tools from './common/tools'
 import router from './router'

+ 6 - 3
src/pages/course-detail/index.vue

@@ -58,7 +58,7 @@
                 <div class="right-box">
                   <div class="right-box__header">
                     <div class="tabs">
-                      <el-tabs v-model="courseTabIndex">
+                      <el-tabs v-model="courseTabIndex" @tab-click="handleClick">
                         <el-tab-pane
                           :name="tab.name"
                           v-for="(tab, index) in menuTab"
@@ -3162,6 +3162,9 @@ export default {
     openChangeCourseBoxs() {
       this.dialogVisible = true;
     },
+    handleClick(tab) {
+      console.log('tab', tab)
+    },
     /**
      * 确定选中
      */
@@ -6465,7 +6468,7 @@ export default {
                     chapter.moduleId == sectionItem.moduleId &&
                     chapter.chapterId == sectionItem.chapterId
                   ) {
-                    chapter.learning = res.data[0].learning
+                    // chapter.learning = res.data[0].learning
                     console.log(res.data, "res.data");
                     chapter.list = res.data;
                     console.log(chapter.list, "chapter.list");
@@ -6473,7 +6476,7 @@ export default {
                 });
               }
             });
-
+            console.log('this.menuList', this.menuList)
             
           });
 

+ 1 - 1
src/pages/living-room/index.vue

@@ -283,7 +283,7 @@ export default {
     this.sectionType = sectionType
     this.vid = vid
     this.identification = new Date().valueOf() + ""
-    this.buyCourse = 0
+    this.buyCourse = 1 // 不是复制链接进来的,说明已经购买课程
     this.playVideo();
     if (this.sectionType !=3 ) {
       this.studyRecordGetLastLive();