فهرست منبع

购买错误课程

y595705120 2 سال پیش
والد
کامیت
7fe8fb694d
1فایلهای تغییر یافته به همراه6 افزوده شده و 8 حذف شده
  1. 6 8
      src/containers/center/market/index.vue

+ 6 - 8
src/containers/center/market/index.vue

@@ -55,8 +55,8 @@
                 <div class="mask-bg"></div>
                 <el-button @click="gotoPlay(item.course_id)" v-if="item.is_pay==1" class="ui-btn">进入学习</el-button>
 
-                <el-button @click="goPay(index)" v-else-if="item.is_pay==2 || !!item.buyImg" class="ui-btn btn-o">补充材料</el-button>
-                <el-button @click="goPay(index)" v-else class="ui-btn btn-o">购买课程</el-button>
+                <el-button @click="goPay(item)" v-else-if="item.is_pay==2 || !!item.buyImg" class="ui-btn btn-o">补充材料</el-button>
+                <el-button @click="goPay(item)" v-else class="ui-btn btn-o">购买课程</el-button>
               </div>
             </div>
 
@@ -261,7 +261,9 @@
         width: "",
         type: '',
         list: [],
-        showData: [],
+        nd: new Date().getFullYear()+'',
+        ndList:[],
+        allList:[],
         isCommitment: "",
         buyCourseDialog: false,
         showExample: false,
@@ -290,9 +292,6 @@
         media: {},
         commitmentDialog: false,
         exampleImg: exampleImg,
-        nd: new Date().getFullYear()+'',
-        ndList:[],
-        allList:[],
         rules: {
           rzCode: [{
             required: true,
@@ -445,8 +444,7 @@
       uploadBuyImg(url) {
         this.buyForm.buyImg = url;
       },
-      goPay(index) {
-        let item = this.list[index];
+      goPay( item ) {
         this.buyForm = Object.assign(this.buyForm, item)
         this.buyForm.company = this.userInfo.company;
         this.buyForm.temp = item;