Explorar o código

企业认证 + bug fix

xinfeng %!s(int64=6) %!d(string=hai) anos
pai
achega
fc8d655ccf

+ 1 - 0
.nuxtignore

@@ -0,0 +1 @@
+node_modules

+ 1 - 1
assets/css/otherpage/companyVerifyInput.scss

@@ -191,7 +191,7 @@
 
 .companyVerifyInputMobile {
   width: 100vw !important;
-  //min-height: 937px;
+  -webkit-overflow-scrolling: touch;
   background: rgba(255, 255, 255, 1);
   padding: 0 pxtovw(10) pxtovw(80) pxtovw(10);
   margin: 0;

+ 1 - 1
components/credit/toast/education.vue

@@ -17,7 +17,7 @@
       </div>
     </div>
     <el-dialog
-      title="工作经历认证"
+      title="最高学历认证"
       :visible.sync="dialogVisible"
       width="657px"
       :append-to-body="true"

BIN=BIN
core


+ 46 - 12
pages/otherpage/companyVerifyInput/index.vue

@@ -41,7 +41,7 @@
       <div class="submitButton">
         <div class="left"></div>
         <div class="right" @click="submitForm" :class="isSubmit ? '' : 'noSubmit' ">
-          <p>确认提交</p>
+          <p>{{calcBtnWord}}</p>
         </div>
       </div>
     </div>
@@ -83,6 +83,19 @@
           return false
         }
         return true
+      },
+      calcBtnWord() {
+        let { status } = this.dataInfo || {}
+        status = Number(status || 0)
+        if (status === 0) {
+          return '立即认证'
+        } else if (status === 1) {
+          return '审核中'
+        } else if (status === 2) {
+          return '认证通过'
+        } else if (status === 3) {
+          return '立即认证'
+        }
       }
     },
     async created() {
@@ -95,7 +108,7 @@
     methods: {
       /** 获取展示状态 */
       getInfo() {
-        this.$axios.get('/api/remote/get_company_verify_info').then(res => {
+        this.$axios.get('/api/remote/get_company_verify_info_for_apply').then(res => {
           if (res.data.status === 1) {
             this.dataInfo = res.data.data
             // status: "0" 未认证 1认证中 2已成功 3被拒绝
@@ -126,23 +139,23 @@
           photo_url: ''
         }
         p.photo_url = this.imageUrl
-        this.inputList.forEach(item=>{
-           p[item.name] = item.value
+        this.inputList.forEach(item => {
+          p[ item.name ] = item.value
         })
 
-        if (p.name === '') {
+        if (!p.name) {
           this.$message.warning('请输入企业名称');
           return;
         }
-        if (p.register_number  === '') {
+        if (!p.register_number) {
           this.$message.warning('请输入工商执照注册号');
           return;
         }
-        if (p.phone === '') {
+        if (!p.phone) {
           this.$message.warning('请输入手机号码');
           return;
         }
-        if (p.photo_url === '') {
+        if (!p.photo_url) {
           this.$message.warning('请上传加盖公章的营业执照');
           return;
         }
@@ -150,10 +163,21 @@
         this.$axios.post('/api/remote/save_company_verify_apply', p).then(res => {
           let data = res.data
           if (data.status === 1) {
-            this.$message.success('提交成功')
-            setTimeout(() => {
-              history.back()
-            }, 1000)
+            //跳转到支付58元钱,之后提交
+            if (Number(this.dataInfo.status === 0)) {
+              let appUrl = "proginn://pay?product_type=5"
+              let url = '/pay?product_type=5'
+              let isApp = false //零时 需要新增一个字端判断是不是app登录
+              if (isApp) {
+                window.open(url, '_black')
+              } else {
+                location.href = appUrl
+              }
+            }
+            // this.$message.success('您已提交企业认证,请耐心等待审核结果!')
+            // setTimeout(() => {
+            //   history.back()
+            // }, 1000)
           } else {
             this.$message.error('提交失败')
           }
@@ -189,6 +213,7 @@
 </style>
 
 <style lang="scss">
+  @import '../../../assets/css/scssCommon.scss';
   .el-upload {
     width: 184px;
     height: 136px;
@@ -210,4 +235,13 @@
       }
     }
   }
+  .companyVerifyInputMobile {
+    .el-upload {
+      width: pxtovw(184);
+      height: pxtovw(136);
+      border: pxtovw(1) dashed #409eff;
+      border-radius: pxtovw(6);
+    }
+  }
+
 </style>

+ 1 - 1
pages/otherpage/userSetting/show.vue

@@ -41,7 +41,7 @@
           { name: '工作经历模块', status: 0, disable: false, key: 'show_experience' },
           { name: '教育经历模块', status: 0, disable: false, key: 'show_education' },
           { name: '专业技能模块', status: 1, disable: true, key: 'show_skill' },
-          { name: '代表作品模块', status: 0, disable: false, key: 'show_works' },
+          { name: '代表作品模块', status: 1, disable: false, key: 'show_works' },
           { name: '社区影响力模块', status: 1, disable: true, key: 'show_community_influence' },
           { name: '用户评价模块', status: 0, disable: false, key: 'show_rating' },
         ],