Przeglądaj źródła

Merge branch '1xinfeng-fix' of www.gitinn.com:proginn/proginn-frontend

xinfeng 6 lat temu
rodzic
commit
b024d39947

+ 0 - 1
components/credit/dealData.js

@@ -23,7 +23,6 @@ export default class DealData {
       ])
     }
     
-    
     if (res.data && Array.isArray(res.data)) {
       list = []
       res.data.forEach(item => {

+ 6 - 1
pages/otherpage/companyVerifyInput/index.vue

@@ -22,6 +22,7 @@
         <div class="uploadFile">
           <p class="name">请上传 <span>加盖公章</span> 的营业执照</p>
           <el-upload
+            v-loading="uploading"
             class="avatar-uploader"
             action="#"
             :show-file-list="false"
@@ -61,7 +62,8 @@
           { name: 'phone', title: '联系方式', value: '' },
         ],
         imageUrl: '',
-        dataInfo: {}
+        dataInfo: {},
+        uploading: false
       }
     },
     asyncData({ app }) {
@@ -200,6 +202,9 @@
           .finally(() => {
             this.uploading = false;
           });
+      },
+      handleDeleteFile() {
+        this.imageUrl = ''
       }
     },
 

+ 3 - 11
pages/type/vip/developer.vue

@@ -19,7 +19,7 @@
           <img src="@/assets/img/vip/ordinary_avatar.png" alt="">
         </div>
         <div class="ordinary-content">
-          <p>每月最多确认接单{{commonUser.limit1}}次</p>
+          <p>每月最多确认接单{{vipList[3].devAcceptTimes}}次</p>
           <p>仅1单</p>
           <p>普通权重</p>
           <p>无折扣</p>
@@ -79,8 +79,7 @@
                 type: "dev", // com: 企业会员, dev: 开发者会员
                 vipList: [],
                 vipDetail: {},
-                item: {},
-                commonUser:{}
+                item: {}
             };
         },
         async mounted() {
@@ -98,14 +97,7 @@
                     extraHeaders = this.getSign();
                 }
                 let res = await this.$axios.$post(`/api/vip/getList`, extraHeaders);
-                let params = {
-                    'id':'4'
-                };
-                let commonUser = await this.$axios.$post("/api/admin/vip/get_rights", params);
-                if (res) {
-                    this.vipList = res.data;
-                    this.commonUser = commonUser.data;
-                }
+                this.vipList = res.data;
             },
             /**
              * 点击支付

+ 4 - 13
pages/type/vip/enterprise.vue

@@ -21,9 +21,9 @@
           <img src="@/assets/img/vip/ordinary_avatar.png" alt="">
         </div>
         <div class="ordinary-content">
-          <p>{{commonUser.limit3}}次/天</p>
+          <p>{{vipList[3].userHire || 0}}次/天</p>
           <p>无</p>
-          <p>{{commonUser.limit2}}人次/天</p>
+          <p>{{vipList[3].userChat || 0}}人次/天</p>
           <p>无</p>
           <p>免费</p>
           <p>无</p>
@@ -96,8 +96,7 @@
                 type: "com", // com: 企业会员, dev: 开发者会员
                 vipList: [],
                 vipDetail: {},
-                item:{},
-                commonUser:{}
+                item:{}
             }
         },
         components: {
@@ -114,14 +113,7 @@
                     extraHeaders = this.getSign();
                 }
                 let res = await this.$axios.$post(`/api/vip/getList`, extraHeaders);
-                let params = {
-                    'id':'4'
-                };
-                let commonUser = await this.$axios.$post("/api/admin/vip/get_rights", params);
-                if (res) {
-                    this.vipList = res.data;
-                    this.commonUser = commonUser.data;
-                }
+                this.vipList = res.data;
             },
             async getVipDetail() {
                 let res = await this.$axios.$post("/api/vip/getVipUserDetail");
@@ -139,7 +131,6 @@
                         break;
                 }
                 this.buyDialog = true;
-                // location.href = `/vip/pay?product_id=${item.id}&number=3&next=/type/vip/`;
             },
             handleClose() {
                 this.buyDialog = false;

+ 1 - 6
pages/type/vip/index.vue

@@ -4,17 +4,12 @@
 
 <script>
 import { mapState } from "vuex";
-// import http from '@/plugins/http'
 import pc from "@/components/type/vip/pc";
 import mobile from "@/components/type/vip/mobile";
 import getDeviceType from "@/mixins/getDeviceType";
 import qs from "qs";
 
 export default {
-  // async asyncData({ $axios, params }) {
-  //   let res = await $axios.$get(`/api/vip/getList`)
-  //   console.log('init', res)
-  // },
   head: {
     title: "会员中心页 - 程序员客栈"
   },
@@ -59,7 +54,7 @@ export default {
         extraHeaders = this.getSign();
       }
       let res = await this.$axios.$post(`/api/vip/getList`, extraHeaders);
-      if (res) {
+      if (Number(res.status) === 1) {
         this.vipList = res.data;
       }
     },