diff --git a/pages/cart/cart_wk/cart_wk.js b/pages/cart/cart_wk/cart_wk.js index 0d0d3cb..7e613c2 100644 --- a/pages/cart/cart_wk/cart_wk.js +++ b/pages/cart/cart_wk/cart_wk.js @@ -200,6 +200,7 @@ Page({ distr_type = 0, exp_type = 0, teamgroup = null, + teamlist=null, th = this; //---获取订单--- await getApp().request.promiseGet("/api/weshop/order/get/" + oo.stoid + "/" + ord, {}).then(res => { @@ -234,8 +235,18 @@ Page({ teamgroup = res.data.data.pageData[0]; }); + await getApp().request.promiseGet("/api/weshop/teamlist/get/" + os.stoid + "/" + order.pt_prom_id, { + data: { } + }).then(res => { + if(res.data.code==0) teamlist=res.data.data; + }); + + + var jsarr = JSON.parse(teamgroup.jt_json); var count = teamgroup.jt_ct_num; + if(teamgroup.is_xuni_ct) count=teamlist.ct_num; + //要计算尾款的价钱 var price = 0; jsarr.forEach(function (value, index) { @@ -275,7 +286,8 @@ Page({ pickup: pickup, exp_type: exp_type, goods: goods, - teamgroup: teamgroup + teamgroup: teamgroup, + teamlist: teamlist, }); //--计算物流-- diff --git a/pages/cart/cart_wk/cart_wk.wxml b/pages/cart/cart_wk/cart_wk.wxml index 3db2b84..dca4ecd 100644 --- a/pages/cart/cart_wk/cart_wk.wxml +++ b/pages/cart/cart_wk/cart_wk.wxml @@ -71,7 +71,11 @@ 成团人数 - {{teamgroup.jt_ct_num}} + + {{teamgroup.jt_ct_num}} + {{teamgroup.jt_ct_num}} + 人 + 成团金额