|
@@ -342,24 +342,28 @@
|
|
},
|
|
},
|
|
amendprice() {
|
|
amendprice() {
|
|
var that = this
|
|
var that = this
|
|
- this.$api.doRequest('get', '/commonUser/loginVerifyCode', {
|
|
|
|
- phone: this.identityAuthenticationInfo.customerPhone,
|
|
|
|
- verifyCode: this.verifyCode
|
|
|
|
- }).then(res => {
|
|
|
|
- if (res.data.code == 200) {
|
|
|
|
- if (that.userInfo) {
|
|
|
|
- that.identityAuthenticationInfo.commonId = that.userInfo.id
|
|
|
|
- } else {
|
|
|
|
- that.identityAuthenticationInfo.commonId = res.data.data.id
|
|
|
|
- }
|
|
|
|
- that.identityAuthenticationInfo.payeeAddressUrl = that.bankid.toString()
|
|
|
|
- that.identityAuthenticationInfo.compId = "2710b21efc1e4393930c5dc800010dc4"
|
|
|
|
- uni.showModal({
|
|
|
|
- content: "粮商身份信息审核通过后不可修改,是否确定提交?",
|
|
|
|
- showCancel: true,
|
|
|
|
- confirmText: '确定',
|
|
|
|
- success: function(res) {
|
|
|
|
- if (res.confirm) {
|
|
|
|
|
|
+ uni.showModal({
|
|
|
|
+ content: "粮商身份信息审核通过后不可修改,是否确定提交?",
|
|
|
|
+ showCancel: true,
|
|
|
|
+ confirmText: '确定',
|
|
|
|
+ success: function(res) {
|
|
|
|
+ if (res.confirm) {
|
|
|
|
+ uni.showLoading({
|
|
|
|
+ title:"正在提交",
|
|
|
|
+ mask:true
|
|
|
|
+ })
|
|
|
|
+ that.$api.doRequest('get', '/commonUser/loginVerifyCode', {
|
|
|
|
+ phone: that.identityAuthenticationInfo.customerPhone,
|
|
|
|
+ verifyCode: that.verifyCode
|
|
|
|
+ }).then(res => {
|
|
|
|
+ if (res.data.code == 200) {
|
|
|
|
+ if (that.userInfo) {
|
|
|
|
+ that.identityAuthenticationInfo.commonId = that.userInfo.id
|
|
|
|
+ } else {
|
|
|
|
+ that.identityAuthenticationInfo.commonId = res.data.data.id
|
|
|
|
+ }
|
|
|
|
+ that.identityAuthenticationInfo.payeeAddressUrl = that.bankid.toString()
|
|
|
|
+ that.identityAuthenticationInfo.compId = "2710b21efc1e4393930c5dc800010dc4"
|
|
that.identityAuthenticationInfos.customerPhone = that
|
|
that.identityAuthenticationInfos.customerPhone = that
|
|
.identityAuthenticationInfo.customerPhone
|
|
.identityAuthenticationInfo.customerPhone
|
|
that.$api.doRequest('get',
|
|
that.$api.doRequest('get',
|
|
@@ -378,17 +382,15 @@
|
|
.identityAuthenticationInfo
|
|
.identityAuthenticationInfo
|
|
)
|
|
)
|
|
.then(res => {
|
|
.then(res => {
|
|
- if (res.data
|
|
|
|
- .code ==
|
|
|
|
- 200) {
|
|
|
|
|
|
+ if (res.data.code ==200) {
|
|
uni.showToast({
|
|
uni.showToast({
|
|
title: '提交成功',
|
|
title: '提交成功',
|
|
icon: 'none',
|
|
icon: 'none',
|
|
duration: 2000
|
|
duration: 2000
|
|
})
|
|
})
|
|
- uni.navigateBack({
|
|
|
|
|
|
+ setTimeout(()=>{uni.navigateBack({
|
|
delta: 3
|
|
delta: 3
|
|
- })
|
|
|
|
|
|
+ })},2000);
|
|
}
|
|
}
|
|
})
|
|
})
|
|
}
|
|
}
|
|
@@ -405,11 +407,13 @@
|
|
icon: 'none',
|
|
icon: 'none',
|
|
duration: 2000
|
|
duration: 2000
|
|
})
|
|
})
|
|
- uni.navigateBack({
|
|
|
|
|
|
+ setTimeout(()=>{uni.navigateBack({
|
|
delta: 3
|
|
delta: 3
|
|
- })
|
|
|
|
|
|
+ })},2000);
|
|
|
|
+
|
|
}
|
|
}
|
|
else{
|
|
else{
|
|
|
|
+ console.log("异常1:",res)
|
|
uni.showToast({
|
|
uni.showToast({
|
|
title: "系统异常,请联系管理员",
|
|
title: "系统异常,请联系管理员",
|
|
icon: 'none',
|
|
icon: 'none',
|
|
@@ -418,37 +422,44 @@
|
|
}
|
|
}
|
|
})
|
|
})
|
|
}
|
|
}
|
|
|
|
+ uni.hideLoading()
|
|
}).catch(res => {
|
|
}).catch(res => {
|
|
|
|
+ console.log("异常:",res)
|
|
uni.showToast({
|
|
uni.showToast({
|
|
title: "系统异常,请联系管理员",
|
|
title: "系统异常,请联系管理员",
|
|
icon: 'none',
|
|
icon: 'none',
|
|
duration: 2000
|
|
duration: 2000
|
|
})
|
|
})
|
|
|
|
+ uni.hideLoading()
|
|
})
|
|
})
|
|
- } else if (res.cancel) {
|
|
|
|
- // console.log('用户点击取消');
|
|
|
|
|
|
+ } else {
|
|
|
|
+ that.verification = false
|
|
|
|
+ uni.showToast({
|
|
|
|
+ title: res.data.message,
|
|
|
|
+ icon: 'none',
|
|
|
|
+ duration: 2000
|
|
|
|
+ })
|
|
|
|
+ uni.hideLoading()
|
|
|
|
+ return false
|
|
}
|
|
}
|
|
- }
|
|
|
|
- })
|
|
|
|
- } else {
|
|
|
|
- that.verification = false
|
|
|
|
- uni.showToast({
|
|
|
|
- title: res.data.message,
|
|
|
|
- icon: 'none',
|
|
|
|
- duration: 2000
|
|
|
|
- })
|
|
|
|
- return false
|
|
|
|
|
|
+ })
|
|
|
|
+ .catch(res => {
|
|
|
|
+ that.verification = false
|
|
|
|
+ uni.showToast({
|
|
|
|
+ title: res.data.message,
|
|
|
|
+ icon: 'none',
|
|
|
|
+ duration: 2000
|
|
|
|
+ })
|
|
|
|
+ uni.hideLoading()
|
|
|
|
+ return false
|
|
|
|
+ });
|
|
|
|
+
|
|
|
|
+ } else if (res.cancel) {
|
|
|
|
+ // console.log('用户点击取消');
|
|
}
|
|
}
|
|
- })
|
|
|
|
- .catch(res => {
|
|
|
|
- that.verification = false
|
|
|
|
- uni.showToast({
|
|
|
|
- title: res.data.message,
|
|
|
|
- icon: 'none',
|
|
|
|
- duration: 2000
|
|
|
|
- })
|
|
|
|
- return false
|
|
|
|
- });
|
|
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+
|
|
},
|
|
},
|
|
getcode() {
|
|
getcode() {
|
|
var that = this
|
|
var that = this
|