|
@@ -331,7 +331,7 @@
|
|
return
|
|
return
|
|
}
|
|
}
|
|
if (this.identityAuthenticationInfo.compAddress.length < 2 || this.identityAuthenticationInfo
|
|
if (this.identityAuthenticationInfo.compAddress.length < 2 || this.identityAuthenticationInfo
|
|
- .compAddress.length > 20) {
|
|
|
|
|
|
+ .compAddress.length > 40) {
|
|
this.$api.msg('联系地址输入错误')
|
|
this.$api.msg('联系地址输入错误')
|
|
return
|
|
return
|
|
}
|
|
}
|
|
@@ -363,8 +363,6 @@
|
|
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: "正在提交",
|
|
title: "正在提交",
|
|
@@ -374,15 +372,13 @@
|
|
phone: that.identityAuthenticationInfo.customerPhone,
|
|
phone: that.identityAuthenticationInfo.customerPhone,
|
|
verifyCode: that.verifyCode
|
|
verifyCode: that.verifyCode
|
|
}).then(res => {
|
|
}).then(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
|
|
@@ -390,7 +386,6 @@
|
|
'/identityAuthenticationInfo/selectPhone', that
|
|
'/identityAuthenticationInfo/selectPhone', that
|
|
.identityAuthenticationInfos)
|
|
.identityAuthenticationInfos)
|
|
.then(res => {
|
|
.then(res => {
|
|
- console.log("selectPhone:", res)
|
|
|
|
if (res.data.code == '11018') {
|
|
if (res.data.code == '11018') {
|
|
uni.showModal({
|
|
uni.showModal({
|
|
title: '提示',
|
|
title: '提示',
|
|
@@ -455,23 +450,46 @@
|
|
.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
|
|
})
|
|
})
|
|
- setTimeout
|
|
|
|
- (() => {
|
|
|
|
|
|
+ //判断是不是从邀请页面进来的,如果是邀请进来的就直接邀请成功!
|
|
|
|
+ if(that.identityAuthenticationInfo.invitation || that.identityAuthenticationInfo.inviteCompany){
|
|
|
|
+ that.$api.doRequest('get', '/identityAuthenticationInfo/saveCompanyIdentity', {
|
|
|
|
+ id: res.data.data,
|
|
|
|
+ compId: that.identityAuthenticationInfo.inviteCompany,
|
|
|
|
+ }, 'application/json;charset=UTF-8').then(res => {
|
|
|
|
+ if (res.data.code == 200) {
|
|
|
|
+ // this.getList()
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ .catch(res => {
|
|
|
|
+ if (res.message) {
|
|
|
|
+ uni.showToast({
|
|
|
|
+ title: res.message,
|
|
|
|
+ icon: 'none',
|
|
|
|
+ duration: 2000
|
|
|
|
+ })
|
|
|
|
+ } else {
|
|
|
|
+ uni.showToast({
|
|
|
|
+ title: "接受邀请失败,请稍后再试。",
|
|
|
|
+ icon: 'none',
|
|
|
|
+ duration: 2000
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
+ setTimeout(() => {
|
|
uni.navigateBack({
|
|
uni.navigateBack({
|
|
delta: 3
|
|
delta: 3
|
|
})
|
|
})
|
|
},
|
|
},
|
|
2000
|
|
2000
|
|
);
|
|
);
|
|
|
|
+
|
|
}
|
|
}
|
|
})
|
|
})
|
|
}
|
|
}
|
|
@@ -527,6 +545,32 @@
|
|
icon: 'none',
|
|
icon: 'none',
|
|
duration: 2000
|
|
duration: 2000
|
|
})
|
|
})
|
|
|
|
+ //判断是不是从邀请页面进来的,如果是邀请进来的就直接邀请成功!
|
|
|
|
+ if(that.identityAuthenticationInfo.invitation || that.identityAuthenticationInfo.inviteCompany){
|
|
|
|
+ that.$api.doRequest('get', '/identityAuthenticationInfo/saveCompanyIdentity', {
|
|
|
|
+ id: res.data.data,
|
|
|
|
+ compId: that.identityAuthenticationInfo.inviteCompany,
|
|
|
|
+ }, 'application/json;charset=UTF-8').then(res => {
|
|
|
|
+ if (res.data.code == 200) {
|
|
|
|
+ // this.getList()
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ .catch(res => {
|
|
|
|
+ if (res.message) {
|
|
|
|
+ uni.showToast({
|
|
|
|
+ title: res.message,
|
|
|
|
+ icon: 'none',
|
|
|
|
+ duration: 2000
|
|
|
|
+ })
|
|
|
|
+ } else {
|
|
|
|
+ uni.showToast({
|
|
|
|
+ title: "接受邀请失败,请稍后再试。",
|
|
|
|
+ icon: 'none',
|
|
|
|
+ duration: 2000
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ }
|
|
setTimeout(() => {
|
|
setTimeout(() => {
|
|
uni.navigateBack({
|
|
uni.navigateBack({
|
|
delta: 3
|
|
delta: 3
|
|
@@ -582,6 +626,7 @@
|
|
}
|
|
}
|
|
}
|
|
}
|
|
})
|
|
})
|
|
|
|
+
|
|
|
|
|
|
},
|
|
},
|
|
getcode() {
|
|
getcode() {
|