|
@@ -145,8 +145,7 @@
|
|
this.identityAuthenticationInfo.commonId = this.userInfo.id
|
|
this.identityAuthenticationInfo.commonId = this.userInfo.id
|
|
this.identityAuthenticationInfo.defaultFlag = 1
|
|
this.identityAuthenticationInfo.defaultFlag = 1
|
|
this.identityAuthenticationInfo.id = item.id
|
|
this.identityAuthenticationInfo.id = item.id
|
|
- this.$api.doRequest('post', '/identityAuthenticationInfo/api/setDefault', this
|
|
|
|
- .identityAuthenticationInfo,
|
|
|
|
|
|
+ this.$api.doRequest('post', '/identityAuthenticationInfo/api/setDefault', this.identityAuthenticationInfo,
|
|
'application/json;charset=UTF-8').then(res => {
|
|
'application/json;charset=UTF-8').then(res => {
|
|
for (var i = 0; i < this.businessman.length; i++) {
|
|
for (var i = 0; i < this.businessman.length; i++) {
|
|
if (this.businessman.defaultFlag == 1) {
|
|
if (this.businessman.defaultFlag == 1) {
|
|
@@ -204,17 +203,19 @@
|
|
}
|
|
}
|
|
var data = res.data.data.records
|
|
var data = res.data.data.records
|
|
for(var i=0;i<data.length;i++){
|
|
for(var i=0;i<data.length;i++){
|
|
- if(data[i].compName.length > 10){
|
|
|
|
- data[i].compName = data[i].compName.substring(0,10) + "..."
|
|
|
|
|
|
+ if(data[i].customerTypeFlag==2){
|
|
|
|
+ if(data[i].compName&&data[i].compName.length > 10){
|
|
|
|
+ data[i].compName = data[i].compName.substring(0,10) + "..."
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
this.businessman = res.data.data.records
|
|
this.businessman = res.data.data.records
|
|
|
|
|
|
})
|
|
})
|
|
.catch(res => {
|
|
.catch(res => {
|
|
- if(res.errmsg){
|
|
|
|
|
|
+ if(res.message){
|
|
uni.showToast({
|
|
uni.showToast({
|
|
- title: res.errmsg,
|
|
|
|
|
|
+ title: res.message,
|
|
icon: 'none',
|
|
icon: 'none',
|
|
duration: 2000
|
|
duration: 2000
|
|
})
|
|
})
|