y595705120 hace 4 días
padre
commit
7eaa33f3ae

+ 1 - 1
src/containers/center/components/menu/iheader.vue

@@ -14,7 +14,7 @@
         </li>
         </li>
 
 
         <li :class="{'navfirst': isActive('/center/class/train')}">
         <li :class="{'navfirst': isActive('/center/class/train')}">
-          <a href="#/center/class/train" @click="goto('/center/class/train')">我的课程</a>
+          <a href="#/center/class/train" @click="goto('/center/class/train')">我的学习</a>
         </li>
         </li>
 
 
         <li :class="{'navfirst': isActive('/center/market')}">
         <li :class="{'navfirst': isActive('/center/market')}">

+ 1 - 1
src/containers/center/components/menu/menu.js

@@ -11,7 +11,7 @@ const menu = [
 	},
 	},
    {
    {
      path: '/center/class/train',
      path: '/center/class/train',
-     name: '我的课程',
+     name: '我的学习',
      icon: 'ico-course'
      icon: 'ico-course'
    },
    },
    {
    {

+ 4 - 0
src/containers/center/components/navbar/index.css

@@ -105,6 +105,10 @@
 .header .nav .ico-center {
 .header .nav .ico-center {
   background-position: -240px 0;
   background-position: -240px 0;
 }
 }
+
+.header .nav .ico-course {
+  background-position: -96px -428px;
+}
 .header .nav .ico-exit {
 .header .nav .ico-exit {
   background-position: -270px 0;
   background-position: -270px 0;
 }
 }

+ 3 - 3
src/containers/center/components/navbar/index.vue

@@ -25,9 +25,9 @@
           <span class="nav-txt">继续教育</span>
           <span class="nav-txt">继续教育</span>
         </a>
         </a>
 
 
-        <a href="javascript:void(0)" @click="gotoPage('/center/trainMarket')" :class="{'current': $route.path == '/center/trainMarket'}">
-          <span class="p-ico2 ico-bmpx"></span>
-          <span class="nav-txt">教育培训</span>
+        <a href="javascript:void(0)" @click="gotoPage('/center/class/train')" :class="{'current': $route.path == '/center/class/train'}">
+          <span class="p-ico2 ico-course"></span>
+          <span class="nav-txt">我的学习</span>
         </a>
         </a>
 
 
         <span class="p-ico2 ico-line"></span>
         <span class="p-ico2 ico-line"></span>

+ 1 - 1
src/containers/center/exam/index.vue

@@ -244,7 +244,7 @@ export default {
       let courseId = this.info.courseId
       let courseId = this.info.courseId
       this.timer &&  window.clearInterval(this.timer);
       this.timer &&  window.clearInterval(this.timer);
       delExam( )
       delExam( )
-      this.$router.push(`/center/play/${courseId}`);
+      this.$router.push({name:'play', params:{courseId}})
     },
     },
     submitPaper() {
     submitPaper() {
       let that = this
       let that = this

+ 1 - 1
src/containers/center/exam/indexTest.vue

@@ -314,7 +314,7 @@ export default {
       let courseId = this.info.courseId
       let courseId = this.info.courseId
       this.timer &&  window.clearInterval(this.timer);
       this.timer &&  window.clearInterval(this.timer);
       delExam( )
       delExam( )
-      this.$router.push(`/center/play/${courseId}`);
+      this.$router.push({name:'play', params:{courseId}})
     },
     },
     submitPaper() {
     submitPaper() {
       let that = this
       let that = this

+ 2 - 2
src/containers/center/market/index.vue

@@ -497,7 +497,7 @@
         this.showAllRzcodeDialog = false;
         this.showAllRzcodeDialog = false;
       },
       },
       gotoDetail(courseId) {
       gotoDetail(courseId) {
-        this.$router.push(`/main/course/${courseId}`);
+        this.$router.push({name:'play', params:{courseId}})
       },
       },
       goPay(item) {
       goPay(item) {
         this.showPay = false;
         this.showPay = false;
@@ -517,7 +517,7 @@
         });
         });
       },
       },
       gotoPlay(item) {
       gotoPlay(item) {
-        let courseId = item.courseId;
+        let courseId = item.course_id;
         if( curDatetime() < item.startDate){
         if( curDatetime() < item.startDate){
           this.$message.warning("还未到学习时间");
           this.$message.warning("还未到学习时间");
           return
           return

+ 1 - 1
src/containers/center/market/trainIndex.vue

@@ -476,7 +476,7 @@
         })
         })
       },
       },
       gotoDetail(courseId) {
       gotoDetail(courseId) {
-        this.$router.push(`/main/course/${courseId}`);
+        this.$router.push({name:'play', params:{courseId}})
       },
       },
       uploadBuyImg(url) {
       uploadBuyImg(url) {
         this.buyForm.buyImg = url;
         this.buyForm.buyImg = url;

+ 1 - 5
src/containers/login/login.vue

@@ -180,11 +180,7 @@ export default {
          this.$message.errorMsg("暂未开放", 1)
          this.$message.errorMsg("暂未开放", 1)
          return
          return
       }
       }
-      if( item.isNew){
-        this.$router.push( {path:'/center/trainMarket', query:{type: item.name}})
-      }else{
-        this.$router.push( {path:'/center/market', query:{type: item.name}})
-      }
+      this.$router.push( {path:'/center/market', query:{type: item.name}})
     },
     },
     closeDialog() {
     closeDialog() {
       this.loginDialog = false;
       this.loginDialog = false;

+ 2 - 2
src/containers/main/index/index.vue

@@ -177,7 +177,7 @@ export default {
       });
       });
     },
     },
     gotoDetail(courseId) {
     gotoDetail(courseId) {
-      this.$router.push(`/main/course/${courseId}`);
+      this.$router.push({name:'play', params:{courseId}})
     },
     },
     goPay(index) {
     goPay(index) {
       let item = this.list[index];
       let item = this.list[index];
@@ -206,7 +206,7 @@ export default {
           this.user = { nickname, token, uid };
           this.user = { nickname, token, uid };
           this.loginOk = true
           this.loginOk = true
           this.loginDialog = false
           this.loginDialog = false
-        } 
+        }
       })
       })
      }
      }
   },
   },

+ 0 - 4
src/router/index.js

@@ -192,10 +192,6 @@ export default new Router({
           path: 'market',
           path: 'market',
           component: CenterMarket,
           component: CenterMarket,
         },
         },
-        {
-          path: 'trainMarket',
-          component: CenterTrainMarket,
-        },
         {
         {
           path: 'sign',
           path: 'sign',
           component: CenterSign,
           component: CenterSign,