LXT-NJ\Admin há 2 anos atrás
pai
commit
d0931be966
2 ficheiros alterados com 7 adições e 1 exclusões
  1. 1 0
      pages/dizhi/index.vue
  2. 6 1
      pages/shouhuodi/index.vue

+ 1 - 0
pages/dizhi/index.vue

@@ -88,6 +88,7 @@
 			// 编辑地址
 			goRedact(item) {
 				uni.navigateTo({
+					// url: '/pages/shouhuodi/index?data='+data
 					url: '/pages/shouhuodi/index?id='+item.id
 				})
 			}

+ 6 - 1
pages/shouhuodi/index.vue

@@ -191,7 +191,12 @@
 				}).then(res => {
 					console.log(res.data);
 					if (res.data.code == 200) {
-						that.dizhi = res.data.data;
+						// that.dizhi = res.data.data;
+						that.dizhi.name=res.data.data.name;
+						that.dizhi.mobile=res.data.data.mobile;
+						that.dizhi.region=res.data.data.region;
+						that.dizhi.address=res.data.data.address;
+						that.dizhi.label=res.data.data.label;
 						that.dizhi.isdefault=res.data.data.default_address;
 						this.tags.forEach((item, index) => {
 							if (that.dizhi.label == item.name) {