refactor(app): 调整商品价格显示逻辑

- 注释掉原代码中处理活动价的部分
- 新增高级会员价处理逻辑
- 修改价格显示为成本价
- 更新商品名称后缀为"高级会员价"
This commit is contained in:
mkm 2025-03-14 16:56:05 +08:00
parent 092e5e1785
commit b2e51cbf5f

View File

@ -152,11 +152,13 @@ class StoreProductLists extends BaseAdminDataLists implements ListsSearchInterfa
$item['status_msg'] = '下架|不常用|是否有替换';
}
if ($order_type == 2) {
$price = StoreProductGroupPrice::where('group_id', 42)->where('product_id', $item['product_id'])->value('price');
if ($price > 0) {
$item['price'] = $price;
$item['store_name'] = $item['store_name'] . '|活动价';
}
// $price = StoreProductGroupPrice::where('group_id', 42)->where('product_id', $item['product_id'])->value('price');
// if ($price > 0) {
// $item['price'] = $price;
// $item['store_name'] = $item['store_name'] . '|活动价';
// }
$item['price'] = $item['cost'];
$item['store_name'] = $item['store_name'] . '|高级会员价';
}elseif($is_true == true && $userShip>0){
$item['price'] = $item['vip_price'];
$item['store_name'] = $item['store_name'] . '|会员价';