gjy před 3 roky
rodič
revize
2bca63d139

+ 2 - 0
pages/attestation/indexThree.vue

@@ -146,9 +146,11 @@
 						commonId: this.userInfo.id,
 						pcFlag: 0
 					}, 'application/json;charset=UTF-8').then(res => {
+						console.log(res.data.data.records)
 						for(var i = 0 ; i < res.data.data.records.length ; i++){
 							res.data.data.records[i].logo = res.data.data.records[i].driverName.substr(0,1)
 						}
+						
 						this.drivers = res.data.data.records
 					})
 					.catch(res => {

+ 7 - 6
pages/attestation/indexTwo.vue

@@ -145,8 +145,7 @@
 					this.identityAuthenticationInfo.commonId = this.userInfo.id
 					this.identityAuthenticationInfo.defaultFlag = 1
 					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 => {
 							for (var i = 0; i < this.businessman.length; i++) {
 								if (this.businessman.defaultFlag == 1) {
@@ -204,17 +203,19 @@
 						}
 						var data = res.data.data.records
 						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
 
 					})
 					.catch(res => {
-						if(res.errmsg){
+						if(res.message){
 							uni.showToast({
-								title: res.errmsg,
+								title: res.message,
 								icon: 'none',
 								duration: 2000
 							})