瀏覽代碼

匹配类型

y595705120 3 天之前
父節點
當前提交
9ed142f941
共有 2 個文件被更改,包括 3 次插入7 次删除
  1. 1 1
      src/containers/center/market/index.vue
  2. 2 6
      src/containers/login/login.vue

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

@@ -589,8 +589,8 @@
         this.buyForm.company = this.userInfo.company;
         this.buyForm.temp = item;
         this.buyForm.courseName = item.name;
-        this.matchPromise(item.name);
         this.matchType(item.type);
+        this.matchPromise(item.name);
         // this.testBuyOK(item)
         // return;
         // 检查

+ 2 - 6
src/containers/login/login.vue

@@ -65,8 +65,8 @@
         <h2 class="title">教育培训</h2>
       </div>
       <el-row :gutter="20" class="shadow p10 mt20" >
-        <el-col :span="+item.span" class="nopad"  v-for="(item, index) in typeList" :key="index" v-if="item.isNew==1">
-          <el-card shadow="hover" class="grid-content nopad "  >
+        <el-col :span="+item.span" class="nopad" style="flex:1" v-for="(item, index) in typeList" :key="index" v-if="item.isNew==1">
+          <el-card shadow="hover" class="grid-content nopad"  >
             <div class="mt10 typelist" @click="gotoCourse(item)">
               <i class="p-ico"  :class="item.icon" style="color:#69c0ff"></i>
               <p style="font-size: 13px;">{{ item.name }}</p>
@@ -152,10 +152,8 @@ export default {
   created(){
     this.getPostList()
     this.loginOk = false
-    console.log("created", this.userInfo);
     if( this.userInfo && this.userInfo.token && this.userInfo.uid){
       this.loadBaseInfo().then(res=>{
-        console.log("loadBaseInfo", res);
          if( !res || !res.uid ){
            this.loginOk = false
            this.doLogout()
@@ -163,8 +161,6 @@ export default {
            this.loginOk = true
          }
       })
-    }else{
-      console.log("loadBaseInfo", this.userInfo.uid,this.userInfo.token );
     }
   },
   methods: {