|
@@ -202,6 +202,7 @@
|
|
this.zhihangStatus = !this.zhihangStatus
|
|
this.zhihangStatus = !this.zhihangStatus
|
|
},
|
|
},
|
|
commit() {
|
|
commit() {
|
|
|
|
+ var that=this
|
|
if (this.bankid[0] == '' || this.bankid[0] == null) {
|
|
if (this.bankid[0] == '' || this.bankid[0] == null) {
|
|
this.$api.msg('请上传银行卡正面')
|
|
this.$api.msg('请上传银行卡正面')
|
|
return
|
|
return
|
|
@@ -260,17 +261,64 @@
|
|
this.$api.doRequest('post', '/identityAuthenticationInfo/api/addIdentityAuthenticationInfo', this
|
|
this.$api.doRequest('post', '/identityAuthenticationInfo/api/addIdentityAuthenticationInfo', this
|
|
.identityAuthenticationInfo)
|
|
.identityAuthenticationInfo)
|
|
.then(res => {
|
|
.then(res => {
|
|
- console.log(res.data.message)
|
|
|
|
- if(res.data.message == "Success"){
|
|
|
|
|
|
+ // console.log(res.data.message)
|
|
|
|
+ // if(res.data.message == "Success"){
|
|
|
|
+ // uni.navigateTo({
|
|
|
|
+ // url: `/pages/attestation/indexTwo` ,
|
|
|
|
+ // })
|
|
|
|
+ // }else{
|
|
|
|
+ // this.$api.msg(res.data.message)
|
|
|
|
+ // return
|
|
|
|
+ // }
|
|
|
|
+ if(res.data.code=='11018'){
|
|
|
|
+ uni.showModal({
|
|
|
|
+ title: '提示',
|
|
|
|
+ content: '该手机号已认证过个人粮商,再次认证将覆盖之前的认证信息,是否确定认证?',
|
|
|
|
+ success: function (res) {
|
|
|
|
+ if (res.confirm) {
|
|
|
|
+ that.identityAuthenticationInfo.cover=1
|
|
|
|
+ that.$api.doRequest('post', '/identityAuthenticationInfo/api/editIdentityAuthenticationInfo', that.identityAuthenticationInfo).then(res => {
|
|
|
|
+ uni.showToast({
|
|
|
|
+ title: '提交成功',
|
|
|
|
+ icon: 'none',
|
|
|
|
+ duration: 2000
|
|
|
|
+ })
|
|
|
|
+ uni.navigateTo({
|
|
|
|
+ url: `/pages/attestation/indexTwo` ,
|
|
|
|
+ })
|
|
|
|
+ }).catch(res => {
|
|
|
|
+ uni.showToast({
|
|
|
|
+ title: res.data.message,
|
|
|
|
+ icon: 'none',
|
|
|
|
+ duration: 2000
|
|
|
|
+ })
|
|
|
|
+ })
|
|
|
|
+ } else if (res.cancel) {
|
|
|
|
+ uni.showToast({
|
|
|
|
+ title: '提交失败',
|
|
|
|
+ icon: 'none',
|
|
|
|
+ duration: 2000
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ }else if(res.data.code==200){
|
|
|
|
+ uni.showToast({
|
|
|
|
+ title: '提交成功',
|
|
|
|
+ icon: 'none',
|
|
|
|
+ duration: 2000
|
|
|
|
+ })
|
|
uni.navigateTo({
|
|
uni.navigateTo({
|
|
- url: `/pages/attestation/indexTwo` ,
|
|
|
|
|
|
+ url: `/pages/attestation/indexTwo` ,
|
|
|
|
+ })
|
|
|
|
+ }else{
|
|
|
|
+ uni.showToast({
|
|
|
|
+ title: res.data.message,
|
|
|
|
+ icon: 'none',
|
|
|
|
+ duration: 2000
|
|
})
|
|
})
|
|
- }else{
|
|
|
|
- this.$api.msg(res.data.message)
|
|
|
|
- return
|
|
|
|
}
|
|
}
|
|
|
|
|
|
-
|
|
|
|
}).catch(res => {
|
|
}).catch(res => {
|
|
uni.showToast({
|
|
uni.showToast({
|
|
title: res.data.message,
|
|
title: res.data.message,
|