|
|
@ -8,7 +8,7 @@ |
|
|
|
<view class="form-item"> |
|
|
|
<view class="label">法人真实姓名</view> |
|
|
|
<view class="input"> |
|
|
|
<input type="text" v-model="form.name" /> |
|
|
|
<input type="text" v-model="certifiedIndividual.name" /> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
|
|
|
@ -17,7 +17,7 @@ |
|
|
|
<view class="form-item"> |
|
|
|
<view class="label">法人身份证号</view> |
|
|
|
<view class="input"> |
|
|
|
<input type="text" v-model="form.card" /> |
|
|
|
<input type="text" v-model="certifiedIndividual.card" /> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
|
|
|
@ -26,7 +26,7 @@ |
|
|
|
<view class="form-item"> |
|
|
|
<view class="label">营业执照</view> |
|
|
|
<view class="avatarFace" @click="uploadImage('tradeImage')"> |
|
|
|
<image v-if="form.tradeImage" :src="form.tradeImage" style="width: 100%;height: 100%"></image> |
|
|
|
<image v-if="certifiedIndividual.tradeImage" :src="certifiedIndividual.tradeImage" style="width: 100%;height: 100%"></image> |
|
|
|
<image v-else src="../static/auth/3.png" style="width: 50%;height: 50%"></image> |
|
|
|
</view> |
|
|
|
</view> |
|
|
@ -63,7 +63,8 @@ |
|
|
|
|
|
|
|
|
|
|
|
<!--下一步按钮--> |
|
|
|
<button @click="onNextClick" class="bottomBtn"> |
|
|
|
<button @click="onNextClick" class="bottomBtn" |
|
|
|
v-if="certifiedIndividual.state != 1"> |
|
|
|
立即认证 |
|
|
|
</button> |
|
|
|
|
|
|
@ -122,6 +123,19 @@ |
|
|
|
mounted() { |
|
|
|
this.openConfigMenu("getPrivacyPolicy") |
|
|
|
}, |
|
|
|
onShow() { |
|
|
|
let self = this |
|
|
|
|
|
|
|
console.log(this.certifiedIndividual); |
|
|
|
|
|
|
|
this.certifiedIndividual.otherImage && this.certifiedIndividual.otherImage.split(',') |
|
|
|
.forEach(url => { |
|
|
|
self.fileList.push({ |
|
|
|
url |
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
|
}, |
|
|
|
methods: { |
|
|
|
//打开配置信息菜单 |
|
|
|
openConfigMenu(key) { |
|
|
@ -148,7 +162,7 @@ |
|
|
|
success: url => { |
|
|
|
this.$nextTick(() => { |
|
|
|
// this.form.tradeImage = url |
|
|
|
this.$set(this.form, key, url); |
|
|
|
this.$set(this.certifiedIndividual, key, url); |
|
|
|
// this.$set(this.form, key, url); |
|
|
|
}) |
|
|
|
} |
|
|
@ -160,11 +174,11 @@ |
|
|
|
this.form.imageStraight = this.certifiedIndividual.imageStraight |
|
|
|
this.form.imageReverseSide = this.certifiedIndividual.imageReverseSide |
|
|
|
// this.form.tradeImage = this.certifiedIndividual.tradeImage |
|
|
|
if (this.$utils.verificationAll(this.form, { |
|
|
|
if (this.$utils.verificationAll(this.certifiedIndividual, { |
|
|
|
imageReverseSide: '请上传身份证背面', |
|
|
|
imageStraight: '请上传身份证正面', |
|
|
|
card: '请输入身份证号', |
|
|
|
name: '请输入姓名', |
|
|
|
tradeImage: '请上传身份证正面', |
|
|
|
})) { |
|
|
|
return |
|
|
|
} |
|
|
@ -179,13 +193,18 @@ |
|
|
|
this.$refs.confirmationPopup.open() |
|
|
|
}, 500) |
|
|
|
} else { |
|
|
|
this.form.image = this.fileList.map((item) => item.url).join(",") |
|
|
|
this.form.imageStraight = this.certifiedIndividual.imageStraight |
|
|
|
this.form.imageReverseSide = this.certifiedIndividual.imageReverseSide |
|
|
|
this.form.tradeImage = this.certifiedIndividual.tradeImage |
|
|
|
this.$api('infoSubmitCompanyCertification', this.form, |
|
|
|
this.certifiedIndividual.otherImage = this.fileList.map((item) => item.url).join(",") |
|
|
|
// this.form.imageStraight = this.certifiedIndividual.imageStraight |
|
|
|
// this.form.imageReverseSide = this.certifiedIndividual.imageReverseSide |
|
|
|
// this.form.tradeImage = this.certifiedIndividual.tradeImage |
|
|
|
this.$api('infoSubmitCompanyCertification', this.certifiedIndividual, |
|
|
|
res => { |
|
|
|
if (res.code == 200) { |
|
|
|
|
|
|
|
if(this.certifiedIndividual.state == 2){ |
|
|
|
return self.$refs.confirmationPopupUpload.open() |
|
|
|
} |
|
|
|
|
|
|
|
const self = this |
|
|
|
uni.requestPayment({ |
|
|
|
provider: 'wxpay', // 服务提提供商 |
|
|
|