una 4 mēneši atpakaļ
vecāks
revīzija
f59ae12bcb
1 mainītis faili ar 5 papildinājumiem un 8 dzēšanām
  1. 5 8
      pages/mall/checkout/checkout.js

+ 5 - 8
pages/mall/checkout/checkout.js

@@ -1203,10 +1203,13 @@ await	this.getWxCode();
 	},
 	addressConfirm(e) {
 		let address = e.currentTarget.dataset.address;
+	
 		this.setData({
 				checkedAddress: address,
-				addressShow: false
+				addressShow: false,
+				addressId:address.id
 		});
+	
 },
 getAddressList() {
 	util.request(mall.AddressList).then((res) => {
@@ -1230,13 +1233,7 @@ addressSelect() {
 			addressShow: true
 	});
 },
-addressConfirm(e) {
-	let address = e.currentTarget.dataset.address;
-	this.setData({
-		checkedAddress: address,
-		addressShow: false
-	});
-},
+
 onAddressClose() {
 	this.setData({
 		addressShow: false