|
@@ -1,20 +1,13 @@
|
|
|
<template>
|
|
|
<view class="center">
|
|
|
<view>
|
|
|
- <image @click='consent' style='width:14px;height:14px;position:relative;top:2px;margin-right:5px;'
|
|
|
- :src="consentStatus==true?'../../static/img/login/select@2x.png':'../../static/img/login/selected2.png'"
|
|
|
- alt=""></image>
|
|
|
- <text>公司</text>
|
|
|
- <image @click='consent' style='width:14px;height:14px;position:relative;top:2px;margin-right:5px;'
|
|
|
- :src="consentStatus1==true?'../../static/img/login/select@2x.png':'../../static/img/login/selected2.png'"
|
|
|
- alt=""></image>
|
|
|
- <text>个人</text>
|
|
|
+ <text @click='consent' v-bind:class="switchs1">公司</text>
|
|
|
+ <text @click='consent' v-bind:class="switchs2">个人</text>
|
|
|
</view>
|
|
|
<view v-if="consentStatus == true">
|
|
|
<view>
|
|
|
- <button type="default" @click="license">上传营业执照</button>
|
|
|
- <view style="width: 100px;margin: 0 auto;" v-if="license1 != ''">
|
|
|
- <image v-bind:src = "license1" style="width: 100px;height: 100px;"></image>
|
|
|
+ <view style="margin: 0 auto;" v-if="license1 != ''" @click="license">
|
|
|
+ <image v-bind:src = "license1" class="picture"></image>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="c-row b-b">
|
|
@@ -29,87 +22,14 @@
|
|
|
<input placeholder="请填写纳税人识别号" name="input"v-model="identityAuthenticationInfo.payTaxesCard"></input>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view>
|
|
|
- <button type="default" @click="idUp">上传身份证正面</button>
|
|
|
- <view style="width: 100px;margin: 0 auto;" v-if="id1 != ''">
|
|
|
- <image v-bind:src = "id1" style="width: 100px;height: 100px;"></image>
|
|
|
- </view>
|
|
|
- <button type="default" @click="idLow">上传身份证反面</button>
|
|
|
- <view style="width: 100px;margin: 0 auto;" v-if="id2 != ''">
|
|
|
- <image v-bind:src = "id2" style="width: 100px;height: 100px;"></image>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- <view class="c-row b-b">
|
|
|
- <text class="tit">姓名</text>
|
|
|
- <view class="con-list">
|
|
|
- <input placeholder="请填写姓名" name="input" v-model="identityAuthenticationInfo.customerName"></input>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- <view class="c-row b-b">
|
|
|
- <text class="tit">身份证号</text>
|
|
|
- <view class="con-list">
|
|
|
- <input placeholder="请填写身份证号" name="input"
|
|
|
- v-model="identityAuthenticationInfo.customerNumberCard"></input>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- <view>
|
|
|
- <button type="default" @click="bankUp()">上传银行卡正面</button>
|
|
|
- <view style="width: 100px;margin: 0 auto;" v-if="bank1 != ''">
|
|
|
- <image v-bind:src = "bank1" style="width: 100px;height: 100px;"></image>
|
|
|
- </view>
|
|
|
- <button type="default" @click="bankLow()">上传银行卡反面</button>
|
|
|
- <view style="width: 100px;margin: 0 auto;" v-if="bank2 != ''">
|
|
|
- <image v-bind:src = "bank2" style="width: 100px;height: 100px;"></image>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- <view class="c-row b-b">
|
|
|
- <text class="tit">银行卡号</text>
|
|
|
- <view class="con-list">
|
|
|
- <input placeholder="请填写银行卡号" name="input" v-model="identityAuthenticationInfo.bankCard"></input>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- <view class="c-row b-b">
|
|
|
- <text class="tit">开户行</text>
|
|
|
- <view class="con-list">
|
|
|
- <input placeholder="请填写开户行" name="input" v-model="identityAuthenticationInfo.bankDeposit"></input>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- <view class="c-row b-b">
|
|
|
- <text class="tit">开户支行</text>
|
|
|
- <view class="con-list">
|
|
|
- <input placeholder="请填写开户支行" name="input"
|
|
|
- v-model="identityAuthenticationInfo.bankDepositBranch"></input>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- <view class="c-row b-b">
|
|
|
- <text class="tit">手机号</text>
|
|
|
- <view class="con-list">
|
|
|
- <input placeholder="请填写手机号" @input='phoneinput' v-model="identityAuthenticationInfo.customerPhone"></input>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- <view style='width:100%;border-bottom:1px solid #E8E9ED;position:relative;padding:10px;' class="flex">
|
|
|
- <button :class='codestatus&&!sendDisabled?"active":""' @click='getcode'
|
|
|
- class='getcode'>{{sendText}}</button>
|
|
|
- <view style='width:70%;position:relative;margin-left: 200px;'>
|
|
|
- <input v-model='verifyCode' placeholder="请输入验证码" type="text">
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- <view class="c-row b-b">
|
|
|
- <text class="tit">公司地址</text>
|
|
|
- <view class="con-list">
|
|
|
- <input placeholder="请填写公司地址" name="input" v-model="identityAuthenticationInfo.compAddress"></input>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
</view>
|
|
|
- <view v-else>
|
|
|
+ <view v-else>
|
|
|
<view>
|
|
|
- <button type="default" @click="idUp">上传身份证正面</button>
|
|
|
- <view style="width: 100px;margin: 0 auto;" v-if="id1 != ''">
|
|
|
- <image v-bind:src = "id1" style="width: 100px;height: 100px;"></image>
|
|
|
+ <view style="margin: 0 auto;" @click="idUp">
|
|
|
+ <image v-bind:src = "id1" class="picture"></image>
|
|
|
</view>
|
|
|
- <button type="default" @click="idLow">上传身份证反面</button>
|
|
|
- <view style="width: 100px;margin: 0 auto;" v-if="id2 != ''">
|
|
|
- <image v-bind:src = "id2" style="width: 100px;height: 100px;"></image>
|
|
|
+ <view style="margin: 0 auto;" @click="idLow">
|
|
|
+ <image v-bind:src = "id2" class="picture"></image>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="c-row b-b">
|
|
@@ -125,72 +45,10 @@
|
|
|
v-model="identityAuthenticationInfo.customerNumberCard"></input>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view>
|
|
|
- <button type="default" @click="bankUp()">上传银行卡正面</button>
|
|
|
- <view style="width: 100px;margin: 0 auto;" v-if="bank1 != ''">
|
|
|
- <image v-bind:src = "bank1" style="width: 100px;height: 100px;"></image>
|
|
|
- </view>
|
|
|
- <button type="default" @click="bankLow()">上传银行卡反面</button>
|
|
|
- <view style="width: 100px;margin: 0 auto;" v-if="bank2 != ''">
|
|
|
- <image v-bind:src = "bank2" style="width: 100px;height: 100px;"></image>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- <view class="c-row b-b">
|
|
|
- <text class="tit">银行卡号</text>
|
|
|
- <view class="con-list">
|
|
|
- <input placeholder="请填写银行卡号" name="input" v-model="identityAuthenticationInfo.bankCard"></input>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- <view class="c-row b-b">
|
|
|
- <text class="tit">开户行</text>
|
|
|
- <view class="con-list">
|
|
|
- <input placeholder="请填写开户行" name="input" v-model="identityAuthenticationInfo.bankDeposit"></input>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- <view class="c-row b-b">
|
|
|
- <text class="tit">开户支行</text>
|
|
|
- <view class="con-list">
|
|
|
- <input placeholder="请填写开户支行" name="input"
|
|
|
- v-model="identityAuthenticationInfo.bankDepositBranch"></input>
|
|
|
- </view>
|
|
|
</view>
|
|
|
- <view class="c-row b-b">
|
|
|
- <text class="tit">收款人姓名</text>
|
|
|
- <view class="con-list">
|
|
|
- <input placeholder="请填写收款人姓名" name="input" v-model="identityAuthenticationInfo.payeeName"></input>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- <view class="c-row b-b">
|
|
|
- <text class="tit">收款人身份证号</text>
|
|
|
- <view class="con-list">
|
|
|
- <input placeholder="请填写收款身份证号" name="input"
|
|
|
- v-model="identityAuthenticationInfo.payeeNumberCard"></input>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- <view class="c-row b-b">
|
|
|
- <text class="tit">手机号</text>
|
|
|
- <view class="con-list">
|
|
|
- <input placeholder="请填写手机号" @input='phoneinput' v-model="identityAuthenticationInfo.customerPhone"></input>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- <view style='width:100%;border-bottom:1px solid #E8E9ED;position:relative;padding:10px;' class="flex">
|
|
|
- <button :class='codestatus&&!sendDisabled?"active":""' @click='getcode'
|
|
|
- class='getcode'>{{sendText}}</button>
|
|
|
- <view style='width:70%;position:relative;margin-left: 200px;'>
|
|
|
- <input v-model='verifyCode' placeholder="请输入验证码" type="text">
|
|
|
- </view>
|
|
|
-
|
|
|
- </view>
|
|
|
- <view class="c-row b-b">
|
|
|
- <text class="tit">联系地址</text>
|
|
|
- <view class="con-list">
|
|
|
- <input placeholder="请填写联系地址" name="input" v-model="identityAuthenticationInfo.compAddress"></input>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- <view class="padding flex flex-direction">
|
|
|
- <button class="cu-btn bg-red margin-tb-sm lg" @click="commit">提交</button>
|
|
|
- </view>
|
|
|
+ <!-- <view class="padding flex flex-direction"> -->
|
|
|
+ <button class="btns btn" @click="jumpUrl">下一步</button>
|
|
|
+
|
|
|
</view>
|
|
|
|
|
|
</template>
|
|
@@ -214,25 +72,17 @@
|
|
|
sendText: '获取验证码',
|
|
|
platform: '',
|
|
|
sendDisabled: false,
|
|
|
+ license1:"../../static/img/authentication/business@3x.png",
|
|
|
+ switchs1:"switchs1",
|
|
|
+ switchs2:"switchs2",
|
|
|
id:[],
|
|
|
- id1:"",
|
|
|
- id2:"",
|
|
|
- license1:"",
|
|
|
- bank1:"",
|
|
|
- bank2:"",
|
|
|
- bankid:[],
|
|
|
+ id1:"../../static/img/authentication/identityup(3).png",
|
|
|
+ id2:"../../static/img/authentication/identitylow(3).png",
|
|
|
+ identityImgs1:{},
|
|
|
|
|
|
- identityAuthenticationInfo: {
|
|
|
- customerPhone: '',
|
|
|
-
|
|
|
- },
|
|
|
+ identityAuthenticationInfo: {},
|
|
|
tempFilePaths: [],
|
|
|
businessLicenseAddressUrl:"",
|
|
|
-
|
|
|
- // userInfo:{
|
|
|
- // phone: ''
|
|
|
- // },
|
|
|
- identityAuthenticationInfo: {},
|
|
|
};
|
|
|
|
|
|
},
|
|
@@ -240,13 +90,64 @@
|
|
|
...mapState(['hasLogin','userInfo'])
|
|
|
},
|
|
|
methods: {
|
|
|
+ jumpUrl(){
|
|
|
+ if(this.consentStatus ){
|
|
|
+ if (!this.identityAuthenticationInfo.compName) {
|
|
|
+ this.$api.msg('公司名称不能为空')
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if (!this.identityAuthenticationInfo.payTaxesCard) {
|
|
|
+ this.$api.msg('纳税人识别号不能为空')
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if (this.identityAuthenticationInfo.businessLicenseAddressUrl == "" || this.identityAuthenticationInfo.businessLicenseAddressUrl == null) {
|
|
|
+ this.$api.msg('请上传营业执照')
|
|
|
+ return
|
|
|
+ }
|
|
|
+ this.identityAuthenticationInfo.customerTypeFlag = "2"
|
|
|
+ this.identityAuthenticationInfo.customerType = "企业"
|
|
|
+ this.identityAuthenticationInfo.businessLicenseAddressUrl = this.businessLicenseAddressUrl
|
|
|
+ var model = JSON.stringify(this.identityAuthenticationInfo);
|
|
|
+ uni.navigateTo({
|
|
|
+ url: `/pageD/identity/companyIdentityTwo?identityAuthenticationInfo=` + model,
|
|
|
+ })
|
|
|
+ }else if(this.consentStatus1 ){
|
|
|
+ this.identityAuthenticationInfo.cardAddressUrl = this.id.toString()
|
|
|
+ if(this.id[0] == '' || this.id[0] == null){
|
|
|
+ this.$api.msg('请上传身份证正面')
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if(this.id[1] == '' || this.id[1] == null){
|
|
|
+ this.$api.msg('请上传身份证反面')
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if (!this.identityAuthenticationInfo.customerName) {
|
|
|
+ this.$api.msg('姓名不能为空')
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if (!this.identityAuthenticationInfo.customerNumberCard) {
|
|
|
+ this.$api.msg('身份证号不能为空')
|
|
|
+ return
|
|
|
+ }
|
|
|
+ this.identityAuthenticationInfo.customerTypeFlag = "1"
|
|
|
+ this.identityAuthenticationInfo.customerType = "个人"
|
|
|
+ var model = JSON.stringify(this.identityAuthenticationInfo);
|
|
|
+ uni.navigateTo({
|
|
|
+ url: `/pageD/identity/companyIdentityThree?identityAuthenticationInfo=` + model,
|
|
|
+ })
|
|
|
+ }
|
|
|
+ },
|
|
|
consent() {
|
|
|
if (this.consentStatus == false && this.consentStatus1 == true) {
|
|
|
this.consentStatus = true
|
|
|
this.consentStatus1 = false
|
|
|
+ this.switchs1 = "switchs1"
|
|
|
+ this.switchs2 = "switchs2"
|
|
|
} else if (this.consentStatus == true && this.consentStatus1 == false) {
|
|
|
this.consentStatus = false
|
|
|
this.consentStatus1 = true
|
|
|
+ this.switchs1 = "switchs2"
|
|
|
+ this.switchs2 = "switchs1"
|
|
|
}
|
|
|
},
|
|
|
|
|
@@ -282,6 +183,17 @@
|
|
|
var strToObj = JSON.parse(data)
|
|
|
that.id[0] = strToObj.url
|
|
|
that.id1 = strToObj.url
|
|
|
+ that.identityImgs1.personImg = strToObj.url
|
|
|
+ that.$api.doRequest('get', '/driverViewInfo/personShibie', that.identityImgs1).then(res => {
|
|
|
+ that.$set(that.identityAuthenticationInfo,'customerName',res.data.data.recPerson)
|
|
|
+ that.$set(that.identityAuthenticationInfo,'customerNumberCard',res.data.data.recPersonNo)
|
|
|
+ }).catch(res => {
|
|
|
+ uni.showToast({
|
|
|
+ title: res.data.message,
|
|
|
+ icon: 'none',
|
|
|
+ duration: 2000
|
|
|
+ })
|
|
|
+ })
|
|
|
}
|
|
|
})
|
|
|
}
|
|
@@ -305,107 +217,6 @@
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
- bankUp(){
|
|
|
- var that = this
|
|
|
- wx.chooseImage({
|
|
|
- success: function(res) {
|
|
|
- wx.uploadFile({
|
|
|
- url: 'https://www.zthymaoyi.com/upload/admin',
|
|
|
- filePath: res.tempFilePaths[0],
|
|
|
- name: 'file',
|
|
|
- success(res) {
|
|
|
- var data = res.data
|
|
|
- var strToObj = JSON.parse(data)
|
|
|
- that.bankid[0] = strToObj.url
|
|
|
- that.bank1 = strToObj.url
|
|
|
- }
|
|
|
- })
|
|
|
- }
|
|
|
- })
|
|
|
- },
|
|
|
- bankLow(){
|
|
|
- var that = this
|
|
|
- wx.chooseImage({
|
|
|
- success: function(res) {
|
|
|
- wx.uploadFile({
|
|
|
- url: 'https://www.zthymaoyi.com/upload/admin',
|
|
|
- filePath: res.tempFilePaths[0],
|
|
|
- name: 'file',
|
|
|
- success(res) {
|
|
|
- var data = res.data
|
|
|
- var strToObj = JSON.parse(data)
|
|
|
- that.bankid[1] = strToObj.url
|
|
|
- that.bank2 = strToObj.url
|
|
|
- }
|
|
|
- })
|
|
|
- }
|
|
|
- })
|
|
|
- },
|
|
|
- commit() {
|
|
|
- this.identityAuthenticationInfo.commonId = this.userInfo.id
|
|
|
- this.identityAuthenticationInfo.cardAddressUrl = this.id.toString()
|
|
|
- this.identityAuthenticationInfo.payeeAddressUrl = this.bankid.toString()
|
|
|
- if(this.consentStatus1 == true){
|
|
|
- this.identityAuthenticationInfo.customerTypeFlag = "1"
|
|
|
- this.identityAuthenticationInfo.customerType = "个人"
|
|
|
- }else if(this.consentStatus == true){
|
|
|
- this.identityAuthenticationInfo.customerTypeFlag = "2"
|
|
|
- this.identityAuthenticationInfo.customerType = "企业"
|
|
|
- }
|
|
|
- this.$api.doRequest('post', '/identityAuthenticationInfo/api/addIdentityAuthenticationInfo', this
|
|
|
- .identityAuthenticationInfo)
|
|
|
- .then(res => {
|
|
|
- console.log(12545645)
|
|
|
- }).catch(res => {
|
|
|
- uni.showToast({
|
|
|
- title: res.data.message,
|
|
|
- icon: 'none',
|
|
|
- duration: 2000
|
|
|
- })
|
|
|
- })
|
|
|
- },
|
|
|
-
|
|
|
- getcode() {
|
|
|
- var that = this
|
|
|
- if (/^0?1[3|4|5|6|7|8][0-9]\d{8}$/.test(this.identityAuthenticationInfo.customerPhone)) {
|
|
|
- this.$api.doRequest('get', '/commonUser/sendVerifyCode', {
|
|
|
- phone: this.identityAuthenticationInfo.customerPhone
|
|
|
- }).then(res => {
|
|
|
- if (res.data.code == 200) {
|
|
|
- that.sendDisabled = true
|
|
|
- let sec = 60
|
|
|
- let interval = setInterval(() => {
|
|
|
- sec--;
|
|
|
- that.sendText = sec + 's后重发'
|
|
|
- if (sec <= 0) {
|
|
|
- that.sendDisabled = false
|
|
|
- that.sendText = "获取验证码"
|
|
|
- clearInterval(interval)
|
|
|
- }
|
|
|
- }, 1000)
|
|
|
- } else {
|
|
|
- uni.showToast({
|
|
|
- title: res.data.message,
|
|
|
- icon: 'none',
|
|
|
- duration: 2000
|
|
|
- })
|
|
|
- }
|
|
|
- })
|
|
|
- .catch(res => {
|
|
|
- uni.showToast({
|
|
|
- title: res.data.message,
|
|
|
- icon: 'none',
|
|
|
- duration: 2000
|
|
|
- })
|
|
|
- });
|
|
|
- } else {
|
|
|
- uni.showToast({
|
|
|
- title: '请输入正确的手机号',
|
|
|
- icon: 'none',
|
|
|
- duration: 2000
|
|
|
- })
|
|
|
- }
|
|
|
- },
|
|
|
phoneinput(e){
|
|
|
if(e.detail.value.length==11){
|
|
|
this.codestatus=true
|
|
@@ -455,19 +266,6 @@
|
|
|
padding-right: 20rpx;
|
|
|
font-size: 14px;
|
|
|
}
|
|
|
- .getcode {
|
|
|
- font-size: 14px;
|
|
|
- position: absolute;
|
|
|
- top: 50%;
|
|
|
- transform: translateY(-50%);
|
|
|
- color: #AFB3BF;
|
|
|
- background: #F5F6F9;
|
|
|
- height: 30px;
|
|
|
- line-height: 30px;
|
|
|
- }
|
|
|
- .getcode.active {
|
|
|
- border: none;
|
|
|
- }
|
|
|
.uni-navigator{
|
|
|
display:inline-block;
|
|
|
color:#22C572;
|
|
@@ -476,4 +274,29 @@
|
|
|
background: #22C572;
|
|
|
color: #fff;
|
|
|
}
|
|
|
+ .btn {
|
|
|
+ margin-top: 10px;
|
|
|
+ background-color: #FFFFFF;
|
|
|
+ border-radius: 25px;
|
|
|
+ border: none;
|
|
|
+ }
|
|
|
+ .btns{
|
|
|
+ background-color: #22C572;
|
|
|
+ }
|
|
|
+ .switchs1{
|
|
|
+ font-size: 20px;
|
|
|
+ font-weight: 700;
|
|
|
+ margin-right: 16px;
|
|
|
+ }
|
|
|
+ .switchs2{
|
|
|
+ font-size: 20px;
|
|
|
+
|
|
|
+ margin-right: 16px;
|
|
|
+ }
|
|
|
+ .picture{
|
|
|
+ width: 100%;
|
|
|
+ height: 220px;
|
|
|
+ text-align: center;
|
|
|
+ margin-top: 10px;
|
|
|
+ }
|
|
|
</style>
|