From a4844baf19604b1c5b06edf428a4dc534765e4d0 Mon Sep 17 00:00:00 2001 From: yvan.ni <765199919@qq.com> Date: Sat, 7 Nov 2020 15:00:56 +0800 Subject: [PATCH] 收货地址要用 地址详情里面的手机号 --- pages/cart/cart2/cart2.js | 2 +- pages/cart/cart2_pt/cart2_pt.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pages/cart/cart2/cart2.js b/pages/cart/cart2/cart2.js index ff1e2ae..3096aca 100644 --- a/pages/cart/cart2/cart2.js +++ b/pages/cart/cart2/cart2.js @@ -1838,7 +1838,7 @@ Page({ 'twon': addr == null ? 0 : addr.twon, 'address': addr == null ? "" : addr.address, 'more_address': addr == null ? "" : addr.more_address, - 'mobile': th.data.userinfo.mobile, + 'mobile': addr == null ? th.data.userinfo.mobile : addr.mobile, 'email': '', 'shipping_code': th.data.is_all_zt == 1 ? 0 : th.data.wu_arr[t_item.wind].code, 'shipping_name': th.data.is_all_zt == 1 ? '' : th.data.wu_arr[t_item.wind].name, diff --git a/pages/cart/cart2_pt/cart2_pt.js b/pages/cart/cart2_pt/cart2_pt.js index 52adf3e..447c03e 100644 --- a/pages/cart/cart2_pt/cart2_pt.js +++ b/pages/cart/cart2_pt/cart2_pt.js @@ -488,7 +488,7 @@ Page({ 'twon': addr == null ? 0 : addr.twon, 'address': addr == null ? "": addr.address, 'more_address': addr == null ? "" : addr.more_address, - 'mobile': th.data.userinfo.mobile, + 'mobile': addr == null ? th.data.userinfo.mobile:addr.mobile, 'email':'', 'invoice_title':'', 'goods_price': th.data.formData.all_price, //商品总价 -- libgit2 0.21.4