|
@@ -2,20 +2,21 @@
|
|
<view class="center">
|
|
<view class="center">
|
|
<view>
|
|
<view>
|
|
<!-- 上传银行卡正面 -->
|
|
<!-- 上传银行卡正面 -->
|
|
- <upload class="upload" ref="upload" :action="action" :max-size="maxSize" :max-count="1"
|
|
|
|
- :size-type="['compressed']" @on-success="getImgUrl" @on-remove="onRemove"
|
|
|
|
|
|
+ <upload class="upload" :file-list='payeeAddressUrlList[0]' ref="upload" :action="action" :max-size="maxSize"
|
|
|
|
+ :max-count="1" :size-type="['compressed']" @on-success="getImgUrl" @on-remove="onRemove"
|
|
@on-uploaded="isAdd = true" :before-upload="filterFileType" :options="uploadOptions"
|
|
@on-uploaded="isAdd = true" :before-upload="filterFileType" :options="uploadOptions"
|
|
:custom="uploadCustom"></upload>
|
|
:custom="uploadCustom"></upload>
|
|
<!-- 上传银行卡反面 -->
|
|
<!-- 上传银行卡反面 -->
|
|
- <upload class="upload" ref="upload" :action="action" :max-size="maxSize" :max-count="1"
|
|
|
|
- :size-type="['compressed']" @on-success="getImgUrl1" @on-remove="onRemove"
|
|
|
|
|
|
+ <upload class="upload" :file-list='payeeAddressUrlList[1]' ref="upload" :action="action" :max-size="maxSize"
|
|
|
|
+ :max-count="1" :size-type="['compressed']" @on-success="getImgUrl1" @on-remove="onRemove"
|
|
@on-uploaded="isAdd = true" :before-upload="filterFileType" :options="uploadOptions1"
|
|
@on-uploaded="isAdd = true" :before-upload="filterFileType" :options="uploadOptions1"
|
|
- :custom="uploadCustom" ></upload>
|
|
|
|
|
|
+ :custom="uploadCustom"></upload>123456
|
|
</view>
|
|
</view>
|
|
<view class="c-row b-b">
|
|
<view class="c-row b-b">
|
|
<text class="tit">银行卡号</text>
|
|
<text class="tit">银行卡号</text>
|
|
<view class="con-list">
|
|
<view class="con-list">
|
|
- <input type='number' placeholder="请填写银行卡号" name="input" v-model="identityAuthenticationInfo.bankCard"></input>
|
|
|
|
|
|
+ <input type='number' placeholder="请填写银行卡号" name="input"
|
|
|
|
+ v-model="identityAuthenticationInfo.bankCard"></input>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="c-row b-b">
|
|
<view class="c-row b-b">
|
|
@@ -129,6 +130,7 @@
|
|
zhihangStatus: true,
|
|
zhihangStatus: true,
|
|
verification: true,
|
|
verification: true,
|
|
identityAuthenticationInfos: {},
|
|
identityAuthenticationInfos: {},
|
|
|
|
+ payeeAddressUrlList: []
|
|
}
|
|
}
|
|
},
|
|
},
|
|
computed: {
|
|
computed: {
|
|
@@ -140,6 +142,16 @@
|
|
this.identityAuthenticationInfo.payeeName = this.identityAuthenticationInfo.customerName
|
|
this.identityAuthenticationInfo.payeeName = this.identityAuthenticationInfo.customerName
|
|
this.identityAuthenticationInfo.payeeNumberCard = this.identityAuthenticationInfo.customerNumberCard
|
|
this.identityAuthenticationInfo.payeeNumberCard = this.identityAuthenticationInfo.customerNumberCard
|
|
}
|
|
}
|
|
|
|
+ if (this.identityAuthenticationInfo.payeeAddressUrl) {
|
|
|
|
+ let _lsit = []
|
|
|
|
+ _lsit = this.identityAuthenticationInfo.payeeAddressUrl.split(',')
|
|
|
|
+ this.payeeAddressUrlList[0] = [{
|
|
|
|
+ url: _lsit[0]
|
|
|
|
+ }]
|
|
|
|
+ this.payeeAddressUrlList[1] = [{
|
|
|
|
+ url: _lsit[0]
|
|
|
|
+ }]
|
|
|
|
+ }
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
filterFileType(index, lists) {
|
|
filterFileType(index, lists) {
|
|
@@ -321,15 +333,15 @@
|
|
// return
|
|
// return
|
|
// }
|
|
// }
|
|
} else if (this.identityAuthenticationInfo.customerTypeFlag == 2) {
|
|
} else if (this.identityAuthenticationInfo.customerTypeFlag == 2) {
|
|
- // if (!this.identityAuthenticationInfo.compAddress) {
|
|
|
|
- // this.$api.msg('公司地址不能为空')
|
|
|
|
- // return
|
|
|
|
- // }
|
|
|
|
- // if (this.identityAuthenticationInfo.compAddress.length < 2 || this.identityAuthenticationInfo
|
|
|
|
- // .compAddress.length > 20) {
|
|
|
|
- // this.$api.msg('公司地址输入错误')
|
|
|
|
- // return
|
|
|
|
- // }
|
|
|
|
|
|
+ if (!this.identityAuthenticationInfo.compAddress) {
|
|
|
|
+ this.$api.msg('公司地址不能为空')
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+ if (this.identityAuthenticationInfo.compAddress.length < 2 || this.identityAuthenticationInfo
|
|
|
|
+ .compAddress.length > 20) {
|
|
|
|
+ this.$api.msg('公司地址输入错误')
|
|
|
|
+ return
|
|
|
|
+ }
|
|
}
|
|
}
|
|
this.amendprice()
|
|
this.amendprice()
|
|
|
|
|
|
@@ -348,23 +360,26 @@
|
|
showCancel: true,
|
|
showCancel: true,
|
|
confirmText: '确定',
|
|
confirmText: '确定',
|
|
success: function(res) {
|
|
success: function(res) {
|
|
|
|
+
|
|
|
|
+ console.log('confirmInfo', that.identityAuthenticationInfo)
|
|
if (res.confirm) {
|
|
if (res.confirm) {
|
|
uni.showLoading({
|
|
uni.showLoading({
|
|
- title:"正在提交",
|
|
|
|
- mask:true
|
|
|
|
|
|
+ title: "正在提交",
|
|
|
|
+ mask: true
|
|
})
|
|
})
|
|
that.$api.doRequest('get', '/commonUser/loginVerifyCode', {
|
|
that.$api.doRequest('get', '/commonUser/loginVerifyCode', {
|
|
phone: that.identityAuthenticationInfo.customerPhone,
|
|
phone: that.identityAuthenticationInfo.customerPhone,
|
|
verifyCode: that.verifyCode
|
|
verifyCode: that.verifyCode
|
|
}).then(res => {
|
|
}).then(res => {
|
|
- console.log("loginVerifyCode:",res)
|
|
|
|
|
|
+ console.log("loginVerifyCode:", res)
|
|
if (res.data.code == 200) {
|
|
if (res.data.code == 200) {
|
|
if (that.userInfo) {
|
|
if (that.userInfo) {
|
|
that.identityAuthenticationInfo.commonId = that.userInfo.id
|
|
that.identityAuthenticationInfo.commonId = that.userInfo.id
|
|
} else {
|
|
} else {
|
|
that.identityAuthenticationInfo.commonId = res.data.data.id
|
|
that.identityAuthenticationInfo.commonId = res.data.data.id
|
|
}
|
|
}
|
|
- that.identityAuthenticationInfo.payeeAddressUrl = that.bankid.toString()
|
|
|
|
|
|
+ that.identityAuthenticationInfo.payeeAddressUrl = that.bankid
|
|
|
|
+ .toString()
|
|
// that.identityAuthenticationInfo.compId = "2710b21efc1e4393930c5dc800010dc4"
|
|
// that.identityAuthenticationInfo.compId = "2710b21efc1e4393930c5dc800010dc4"
|
|
that.identityAuthenticationInfos.customerPhone = that
|
|
that.identityAuthenticationInfos.customerPhone = that
|
|
.identityAuthenticationInfo.customerPhone
|
|
.identityAuthenticationInfo.customerPhone
|
|
@@ -372,63 +387,164 @@
|
|
'/identityAuthenticationInfo/selectPhone', that
|
|
'/identityAuthenticationInfo/selectPhone', that
|
|
.identityAuthenticationInfos)
|
|
.identityAuthenticationInfos)
|
|
.then(res => {
|
|
.then(res => {
|
|
- console.log("selectPhone:",res)
|
|
|
|
|
|
+ console.log("selectPhone:", res)
|
|
if (res.data.code == '11018') {
|
|
if (res.data.code == '11018') {
|
|
uni.showModal({
|
|
uni.showModal({
|
|
title: '提示',
|
|
title: '提示',
|
|
content: '该手机号已认证过个人粮商,再次认证将覆盖之前的认证信息,是否确定认证?',
|
|
content: '该手机号已认证过个人粮商,再次认证将覆盖之前的认证信息,是否确定认证?',
|
|
success: function(res) {
|
|
success: function(res) {
|
|
if (res.confirm) {
|
|
if (res.confirm) {
|
|
- that.$api.doRequest('post',
|
|
|
|
- '/identityAuthenticationInfo/api/addIdentityAuthenticationInfo',
|
|
|
|
- that
|
|
|
|
- .identityAuthenticationInfo
|
|
|
|
|
|
+ if (that
|
|
|
|
+ .identityAuthenticationInfo
|
|
|
|
+ .id) {
|
|
|
|
+ that.$api.doRequest(
|
|
|
|
+ 'post',
|
|
|
|
+ '/identityAuthenticationInfo/api/editIdentityAuthenticationInfo',
|
|
|
|
+ that
|
|
|
|
+ .identityAuthenticationInfo,
|
|
|
|
+ 'application/json;charset=UTF-8'
|
|
|
|
+ ).then(res => {
|
|
|
|
+ console
|
|
|
|
+ .log(
|
|
|
|
+ "成功连接"
|
|
|
|
+ )
|
|
|
|
+ if (!that
|
|
|
|
+ .identityAuthenticationInfo
|
|
|
|
+ .goodsName
|
|
|
|
+ ) {
|
|
|
|
+ that.$api
|
|
|
|
+ .msg(
|
|
|
|
+ '修改成功!'
|
|
|
|
+ )
|
|
|
|
+ uni.navigateTo({
|
|
|
|
+ url: `/pages/attestation/index`
|
|
|
|
+ })
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ })
|
|
|
|
+ .catch(res => {
|
|
|
|
+ if (res
|
|
|
|
+ .errmsg
|
|
|
|
+ ) {
|
|
|
|
+ uni.showToast({
|
|
|
|
+ title: res
|
|
|
|
+ .errmsg,
|
|
|
|
+ icon: 'none',
|
|
|
|
+ duration: 2000
|
|
|
|
+ })
|
|
|
|
+ } else {
|
|
|
|
+ uni.showToast({
|
|
|
|
+ title: "系统异常,请联系管理员",
|
|
|
|
+ icon: 'none',
|
|
|
|
+ duration: 2000
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ } else {
|
|
|
|
+ that.$api.doRequest(
|
|
|
|
+ 'post',
|
|
|
|
+ '/identityAuthenticationInfo/api/addIdentityAuthenticationInfo',
|
|
|
|
+ that
|
|
|
|
+ .identityAuthenticationInfo
|
|
)
|
|
)
|
|
- .then(res => {
|
|
|
|
- if (res.data.code ==200) {
|
|
|
|
- uni.showToast({
|
|
|
|
- title: '提交成功',
|
|
|
|
- icon: 'none',
|
|
|
|
- duration: 2000
|
|
|
|
- })
|
|
|
|
- setTimeout(()=>{uni.navigateBack({
|
|
|
|
- delta: 3
|
|
|
|
- })},2000);
|
|
|
|
- }
|
|
|
|
- })
|
|
|
|
|
|
+ .then(res => {
|
|
|
|
+ if (res
|
|
|
|
+ .data
|
|
|
|
+ .code ==
|
|
|
|
+ 200) {
|
|
|
|
+ uni.showToast({
|
|
|
|
+ title: '提交成功',
|
|
|
|
+ icon: 'none',
|
|
|
|
+ duration: 2000
|
|
|
|
+ })
|
|
|
|
+ setTimeout
|
|
|
|
+ (() => {
|
|
|
|
+ uni.navigateBack({
|
|
|
|
+ delta: 3
|
|
|
|
+ })
|
|
|
|
+ },
|
|
|
|
+ 2000
|
|
|
|
+ );
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
});
|
|
});
|
|
} else if (res.data.code == 200) {
|
|
} else if (res.data.code == 200) {
|
|
- that.$api.doRequest('post',
|
|
|
|
- '/identityAuthenticationInfo/api/addIdentityAuthenticationInfo',
|
|
|
|
- that.identityAuthenticationInfo)
|
|
|
|
- .then(res => {
|
|
|
|
- console.log("addIdentityAuthenticationInfo:",res)
|
|
|
|
- if (res.data.code == 200) {
|
|
|
|
- uni.showToast({
|
|
|
|
- title: '提交成功',
|
|
|
|
- icon: 'none',
|
|
|
|
- duration: 2000
|
|
|
|
- })
|
|
|
|
- setTimeout(()=>{uni.navigateBack({
|
|
|
|
- delta: 3
|
|
|
|
- })},2000);
|
|
|
|
-
|
|
|
|
- }
|
|
|
|
- else{
|
|
|
|
- console.log("异常1:",res)
|
|
|
|
- uni.showToast({
|
|
|
|
- title: "系统异常,请联系管理员",
|
|
|
|
- icon: 'none',
|
|
|
|
- duration: 2000
|
|
|
|
|
|
+ if (that.identityAuthenticationInfo.id) {
|
|
|
|
+ that.$api.doRequest('post',
|
|
|
|
+ '/identityAuthenticationInfo/api/editIdentityAuthenticationInfo',
|
|
|
|
+ that.identityAuthenticationInfo,
|
|
|
|
+ 'application/json;charset=UTF-8').then(
|
|
|
|
+ res => {
|
|
|
|
+ console.log("成功连接")
|
|
|
|
+ if (!that
|
|
|
|
+ .identityAuthenticationInfo
|
|
|
|
+ .goodsName) {
|
|
|
|
+ that.$api.msg('修改成功!')
|
|
|
|
+ uni.navigateTo({
|
|
|
|
+ url: `/pages/attestation/index`
|
|
|
|
+ })
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+
|
|
})
|
|
})
|
|
- }
|
|
|
|
- })
|
|
|
|
|
|
+ .catch(res => {
|
|
|
|
+ if (res.errmsg) {
|
|
|
|
+ uni.showToast({
|
|
|
|
+ title: res.errmsg,
|
|
|
|
+ icon: 'none',
|
|
|
|
+ duration: 2000
|
|
|
|
+ })
|
|
|
|
+ } else {
|
|
|
|
+ uni.showToast({
|
|
|
|
+ title: "系统异常,请联系管理员",
|
|
|
|
+ icon: 'none',
|
|
|
|
+ duration: 2000
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+
|
|
|
|
+ } else {
|
|
|
|
+ that.$api.doRequest('post',
|
|
|
|
+ '/identityAuthenticationInfo/api/addIdentityAuthenticationInfo',
|
|
|
|
+ that.identityAuthenticationInfo)
|
|
|
|
+ .then(res => {
|
|
|
|
+ console.log(
|
|
|
|
+ "addIdentityAuthenticationInfo:",
|
|
|
|
+ res)
|
|
|
|
+ if (res.data.code == 200) {
|
|
|
|
+ uni.showToast({
|
|
|
|
+ title: '提交成功',
|
|
|
|
+ icon: 'none',
|
|
|
|
+ duration: 2000
|
|
|
|
+ })
|
|
|
|
+ setTimeout(() => {
|
|
|
|
+ uni.navigateBack({
|
|
|
|
+ delta: 3
|
|
|
|
+ })
|
|
|
|
+ }, 2000);
|
|
|
|
+
|
|
|
|
+ } else {
|
|
|
|
+ console.log("异常1:", res)
|
|
|
|
+ uni.showToast({
|
|
|
|
+ title: "系统异常,请联系管理员",
|
|
|
|
+ icon: 'none',
|
|
|
|
+ duration: 2000
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+
|
|
}
|
|
}
|
|
uni.hideLoading()
|
|
uni.hideLoading()
|
|
}).catch(res => {
|
|
}).catch(res => {
|
|
- console.log("异常:",res)
|
|
|
|
|
|
+ console.log("异常:", res)
|
|
uni.showToast({
|
|
uni.showToast({
|
|
title: "系统异常,请联系管理员",
|
|
title: "系统异常,请联系管理员",
|
|
icon: 'none',
|
|
icon: 'none',
|
|
@@ -457,13 +573,13 @@
|
|
uni.hideLoading()
|
|
uni.hideLoading()
|
|
return false
|
|
return false
|
|
});
|
|
});
|
|
-
|
|
|
|
|
|
+
|
|
} else if (res.cancel) {
|
|
} else if (res.cancel) {
|
|
// console.log('用户点击取消');
|
|
// console.log('用户点击取消');
|
|
}
|
|
}
|
|
}
|
|
}
|
|
})
|
|
})
|
|
-
|
|
|
|
|
|
+
|
|
},
|
|
},
|
|
getcode() {
|
|
getcode() {
|
|
var that = this
|
|
var that = this
|
|
@@ -591,10 +707,12 @@
|
|
top: -150px;
|
|
top: -150px;
|
|
text-align: center;
|
|
text-align: center;
|
|
}
|
|
}
|
|
|
|
+
|
|
.upload {
|
|
.upload {
|
|
margin: 20rpx 0;
|
|
margin: 20rpx 0;
|
|
}
|
|
}
|
|
- .tit_red{
|
|
|
|
|
|
+
|
|
|
|
+ .tit_red {
|
|
color: #E54D42;
|
|
color: #E54D42;
|
|
}
|
|
}
|
|
</style>
|
|
</style>
|