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

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

@@ -702,13 +702,11 @@
 				}).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=' + addrId
+							url: `/pages/goods/order_confirm/index?is_address=1&orderNo=${res.data.orderNo}&addressId=${this.addressInfo?.id}`
 						})
 					}
 				}).catch(err => {