|
|
@@ -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>
|