zhaoyun 5 天之前
父节点
当前提交
eba97463ce
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      mer_uniapp/pages/merchant/home/index.vue

+ 3 - 1
mer_uniapp/pages/merchant/home/index.vue

@@ -702,11 +702,13 @@
 				}).then(res => {
 					console.log('预下单接口', res)
 					if (res.code == 200) {
+						const addrId=(this.addressInfo!=undefined &&this.addressInfo!=null) ?this.addressInfo.id:'';
+						console.log('默认地址', this.addressInfo) 
 						// uni.setStorageSync('cart', JSON.parse(JSON.stringify(this.cart)))
 						uni.navigateTo({
 							// url: `/pages/goods/order_confirm/index?cartList=${cartList}`
 							url: '/pages/goods/order_confirm/index?is_address=1&orderNo=' + res.data.orderNo +
-								'&addressId=' + this.addressInfo.id
+								'&addressId=' + addrId
 						})
 					}
 				}).catch(err => {