feat(app): 为 StoreProductLists 添加会员价显示逻辑
- 在 StoreProductLists 类中增加了对会员价的处理 - 当 is_true 为 true 且 userShip 大于 0 时,显示会员价 - 会员价显示在商品价格位置,并在店铺名称后添加 "|会员价" 标识
This commit is contained in:
parent
07fb90ca8b
commit
38da3cf56f
@ -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'] . '|会员价';
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user