// 新增满免金额
// const { thresholdMoney, enableMoney } = this.store
// const totalMoney = goods.reduce(
// (i, next) => plus(i, next.money, precision),
// '0'
// );
// if(){
// fee = 0;
// }
// 新增逻辑
// const incrementMoney = minus(thresholdMoney, totalMoney, precision);
// const money = times(incrementMoney,orderMoneyRatio);
// fee = divide(money,100, precision);
const enableFee = false;
const chargeType = 5;
const totalMoney = 100;
const thresholdMoney = 100;
// 大于
const isGreaterThan = (a,b) => a > b;
if(!isGreaterThan(thresholdMoney,totalMoney)){
console.log("免配送费");
}
else if(enableFee && chargeType === 6 && isGreaterThan(totalMoney,thresholdMoney) ) {
console.log("执行新逻辑")
}else{
console.log("执行老逻辑")
}