xuqiaoying 3 年 前
コミット
263541d4ea

+ 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,

+ 1 - 1
src/axios.js

@@ -4,7 +4,7 @@ import { Message } from 'element-ui'
 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 = 'http://192.168.1.24:5055'    //dev
+// 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
 // export const BASE_URL = 'http://192.168.1.222:5055'    //测试

+ 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();

+ 1 - 1
src/router/index.js

@@ -191,7 +191,7 @@ const router =  new Router({
     {
       path: '/living-room/:channelId',
       // name: '课程详情',
-      name: '直播页面详情',
+      name: '直播页面详情1',
       component: resolve => require(['@/pages/living-room/index'],resolve),
       meta: {
         title: '祥粤云学堂-一二级建造师、工程师、建筑师视频课程、免费直播课',