mirror of
https://gitee.com/lab1024/smart-admin.git
synced 2025-10-02 18:26:38 +08:00
commit
d255a56845
@ -91,7 +91,6 @@ export const monitorOrderNotify = (OrderNumber) => {
|
|||||||
* 删除购物车
|
* 删除购物车
|
||||||
*/
|
*/
|
||||||
export const deleteCart = ( productCode) => {
|
export const deleteCart = ( productCode) => {
|
||||||
debugger;
|
|
||||||
var data = {
|
var data = {
|
||||||
productCode
|
productCode
|
||||||
}
|
}
|
||||||
|
@ -277,7 +277,14 @@ export default {
|
|||||||
},
|
},
|
||||||
wholeOrderDiscount(){
|
wholeOrderDiscount(){
|
||||||
this.discountedItemIndex = 0;
|
this.discountedItemIndex = 0;
|
||||||
if(this.curCoupon.minPrice && this.curCoupon.minPrice < this.sumPrice) {
|
let checkResult = true;
|
||||||
|
if(this.curCoupon.minPrice && this.curCoupon.minPrice > this.sumPrice) {
|
||||||
|
checkResult = false;
|
||||||
|
}
|
||||||
|
if(this.curCoupon.couponAmount && this.curCoupon.couponAmount > this.sumPrice) {
|
||||||
|
checkResult = false;
|
||||||
|
}
|
||||||
|
if(checkResult) {
|
||||||
if(this.curCoupon.couponAmount && this.curCoupon.couponAmount>0) {
|
if(this.curCoupon.couponAmount && this.curCoupon.couponAmount>0) {
|
||||||
this.discountAmount = this.curCoupon.couponAmount;
|
this.discountAmount = this.curCoupon.couponAmount;
|
||||||
return this.sumPrice - this.curCoupon.couponAmount;
|
return this.sumPrice - this.curCoupon.couponAmount;
|
||||||
|
Loading…
Reference in New Issue
Block a user