临时处理活动前端关闭
This commit is contained in:
parent
5f268a60f5
commit
9f36a0e968
@ -55,7 +55,8 @@ class CartList extends BaseAdminDataLists implements ListsSearchInterface, Lists
|
|||||||
return $item;
|
return $item;
|
||||||
})
|
})
|
||||||
->toArray();
|
->toArray();
|
||||||
$off_activity = Config::where('name', 'off_activity')->value('value');
|
// $off_activity = Config::where('name', 'off_activity')->value('value');
|
||||||
|
$off_activity = 0;
|
||||||
$this->off_activity = $off_activity;
|
$this->off_activity = $off_activity;
|
||||||
foreach ($list as $key => &$item) {
|
foreach ($list as $key => &$item) {
|
||||||
$find = StoreBranchProduct::where(['product_id' => $item['product_id'], 'store_id' => $item['store_id']])
|
$find = StoreBranchProduct::where(['product_id' => $item['product_id'], 'store_id' => $item['store_id']])
|
||||||
@ -107,7 +108,6 @@ class CartList extends BaseAdminDataLists implements ListsSearchInterface, Lists
|
|||||||
'pay_price' => $this->total_price
|
'pay_price' => $this->total_price
|
||||||
];
|
];
|
||||||
if ($this->off_activity == 1) {
|
if ($this->off_activity == 1) {
|
||||||
$this->activity_price = $this->total_price;
|
|
||||||
$data['pay_price'] = $this->activity_price;
|
$data['pay_price'] = $this->activity_price;
|
||||||
if ($this->activity_price < 500) {
|
if ($this->activity_price < 500) {
|
||||||
$data['msg'] = '还差' . bcsub(500, $this->activity_price, 2) . '元可获得10%品牌礼品券';
|
$data['msg'] = '还差' . bcsub(500, $this->activity_price, 2) . '元可获得10%品牌礼品券';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user