Ver código fonte

名片地址

xhj 2 anos atrás
pai
commit
022dbea667
1 arquivos alterados com 5 adições e 4 exclusões
  1. 5 4
      card/create/create.vue

+ 5 - 4
card/create/create.vue

@@ -459,8 +459,8 @@ export default {
 					this.city = data.ad_info.province+data.ad_info.city+data.ad_info.district
 					this.areaCode = data.ad_info.adcode;
 					this.morCity = [this.areaCode.substring(0,2)+'0000',this.areaCode.substring(0,4)+'00',this.areaCode]
-					this.longitude = data.ad_info.location.lng
-					this.latitude = data.ad_info.location.lat
+					this.longitude = data.location.lng
+					this.latitude = data.location.lat
 				}).catch(err => {
 					console.log(err);
 				});
@@ -473,8 +473,8 @@ export default {
 					this.city = data.ad_info.province+data.ad_info.city+data.ad_info.district
 					this.areaCode = data.ad_info.adcode;
 					this.morCity = [this.areaCode.substring(0,2)+'0000',this.areaCode.substring(0,4)+'00',this.areaCode]
-					this.longitude = data.ad_info.location.lng
-					this.latitude = data.ad_info.location.lat
+					this.longitude = data.location.lng
+					this.latitude = data.location.lat
 				});
 			//#endif
 		},
@@ -525,6 +525,7 @@ export default {
 			dataP.styleImg = this.styleImgUrls.join(',');
 			dataP.companyCode = this.companyCode
 			var url = '';
+			console.log(dataP)
 			if (this.id) {
 				dataP.id = this.id;
 				uni.showModal({