From 38da3cf56f8486d1a15a755a739240724689a444 Mon Sep 17 00:00:00 2001 From: mkm <727897186@qq.com> Date: Sat, 1 Feb 2025 17:08:15 +0800 Subject: [PATCH] =?UTF-8?q?feat(app):=20=E4=B8=BA=20StoreProductLists=20?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E4=BC=9A=E5=91=98=E4=BB=B7=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在 StoreProductLists 类中增加了对会员价的处理 - 当 is_true 为 true 且 userShip 大于 0 时,显示会员价 - 会员价显示在商品价格位置,并在店铺名称后添加 "|会员价" 标识 --- app/admin/lists/store_product/StoreProductLists.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/admin/lists/store_product/StoreProductLists.php b/app/admin/lists/store_product/StoreProductLists.php index 1d9ea3cc7..221455025 100644 --- a/app/admin/lists/store_product/StoreProductLists.php +++ b/app/admin/lists/store_product/StoreProductLists.php @@ -154,6 +154,9 @@ class StoreProductLists extends BaseAdminDataLists implements ListsSearchInterfa $item['price'] = $price; $item['store_name'] = $item['store_name'] . '|活动价'; } + }elseif($is_true == true && $userShip>0){ + $item['price'] = $item['vip_price']; + $item['store_name'] = $item['store_name'] . '|会员价'; }