From 677b76c6f784f57bbef0befbc28c3796f1d575a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B2=A9=E4=BB=9488?= <> Date: Thu, 21 May 2026 09:43:32 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9B=A2=E6=A3=80=E9=A2=84=E7=BA=A6=E8=B0=83?= =?UTF-8?q?=E6=95=B42?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Laravel/app/Http/Controllers/API/H5/OrderController.php | 8 +++++++- h5/pages/main/tj/choose.vue | 9 +++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/Laravel/app/Http/Controllers/API/H5/OrderController.php b/Laravel/app/Http/Controllers/API/H5/OrderController.php index ca4a8f9..7611352 100644 --- a/Laravel/app/Http/Controllers/API/H5/OrderController.php +++ b/Laravel/app/Http/Controllers/API/H5/OrderController.php @@ -375,6 +375,9 @@ public function Create() 'id' => $r_v['item_id'], 'name' => $r_v['item_name'], 'pay_type' => isset($r_v['pay_type']) ? $r_v['pay_type'] : '统收', + 'org_price' => isset($r_v['org_price']) ? $r_v['org_price'] : null, + 'youhui_type' => isset($r_v['youhui_type']) ? $r_v['youhui_type'] : null, + 'youhui_value' => isset($r_v['youhui_value']) ? $r_v['youhui_value'] : null, ]; } } @@ -1235,7 +1238,10 @@ public function Finish($order_number) 'Id' => $gitem['id'], '分组项目' => true, '收费方式'=>'统收', - '已收费' => true + '已收费' => true, + '原价' => isset($gitem['org_price']) ? $gitem['org_price'] : null, + '优惠方式' => isset($gitem['youhui_type']) ? $gitem['youhui_type'] : null, + '优惠值' => isset($gitem['youhui_value']) ? $gitem['youhui_value'] : null, ]; } $item_arr= array_merge($item_arr,$item_temp); diff --git a/h5/pages/main/tj/choose.vue b/h5/pages/main/tj/choose.vue index 5ec6863..e1ee3d9 100644 --- a/h5/pages/main/tj/choose.vue +++ b/h5/pages/main/tj/choose.vue @@ -146,16 +146,25 @@ const nextItemClick = () => { } let item_name=""; let pay_type="统收"; + let org_price=null; + let youhui_type=null; + let youhui_value=null; multipleList.value[multipleIndex.value]['item_list'].forEach((vv,ii)=>{ if(vv.item_id==itemId.value){ item_name=vv.item_name if(vv.pay_type) pay_type=vv.pay_type + if(vv.org_price!==undefined) org_price=vv.org_price + if(vv.youhui_type!==undefined) youhui_type=vv.youhui_type + if(vv.youhui_value!==undefined) youhui_value=vv.youhui_value } }) itemIds.value.push({ item_id: itemId.value, item_name:item_name, pay_type: pay_type, + org_price: org_price, + youhui_type: youhui_type, + youhui_value: youhui_value, zu_name: multipleList.value[multipleIndex.value]["0"]["zu_name"], }); if (multipleIndex.value == multipleList.value.length - 1) {