feat(CartList): 根据off_activity调整购物车支付价格计算逻辑
This commit is contained in:
parent
4c43c58f4e
commit
fdd0f89543
@ -120,14 +120,12 @@ class CartList extends BaseAdminDataLists implements ListsSearchInterface, Lists
|
||||
if($this->user_ship==0){
|
||||
$data['msg']='您已选购满500元,支付成功后即可获得'.bcmul($this->total_price,0.1,2).'元品牌礼品兑换券,可到线下门店兑换礼品。';
|
||||
}
|
||||
if($this->off_activity==0){//1
|
||||
$this->activity_price = $this->total_price;
|
||||
if($this->off_activity==1){//1
|
||||
$data['pay_price']=$this->activity_price;
|
||||
if($this->activity_price<500){
|
||||
if($this->user_ship==0){
|
||||
$data['msg']='还差'.bcsub(500,$this->activity_price,2).'即可获得10%的品牌礼品兑换券,可到线下门店兑换礼品。';
|
||||
}
|
||||
$data['pay_price']= $this->activity_price;
|
||||
}else{
|
||||
if($this->user_ship==0){
|
||||
$data['msg']= '您已选购满500元,支付成功后即可获得'.bcmul($this->activity_price,0.1,2).'元品牌礼品兑换券,可到线下门店兑换礼品。';
|
||||
|
Loading…
x
Reference in New Issue
Block a user