yijianjun 1 週間 前
コミット
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 => {