mirror of
https://gitee.com/java110/MicroCommunityWeb.git
synced 2026-02-25 06:09:11 +08:00
缴费功能测试完成 加入 打折功能
This commit is contained in:
parent
27bd302ac5
commit
405e563f50
@ -72,22 +72,23 @@
|
||||
$that.payFeeDiscountInfo.feeDiscounts = _payFeeDiscountInfo.data;
|
||||
$that.payFeeDiscountInfo.feeDiscounts.forEach(item => {
|
||||
$that.payFeeDiscountInfo.selectDiscountIds.push(item.discountId);
|
||||
if (item.value === "1") {
|
||||
// 当映射开关值为1时向下取整
|
||||
item.discountPrice = $that._mathFloor(item.discountPrice);
|
||||
} else if (item.value === "2") {
|
||||
// 2正常显示
|
||||
return item.discountPrice;
|
||||
} else if (item.value === "3") {
|
||||
// 3向上取整
|
||||
item.discountPrice = $that._mathCeil(item.discountPrice);
|
||||
} else if (item.value === "5") {
|
||||
// 5保留一位
|
||||
item.discountPrice = $that._mathToFixed1(item.discountPrice);
|
||||
} else {
|
||||
// 其他保留两位
|
||||
item.discountPrice = $that._mathToFixed2(item.discountPrice);
|
||||
}
|
||||
//这里注释 后端根据费用项设置情况 算费
|
||||
// if (item.value === "1") {
|
||||
// // 当映射开关值为1时向下取整
|
||||
// item.discountPrice = $that._mathFloor(item.discountPrice);
|
||||
// } else if (item.value === "2") {
|
||||
// // 2正常显示
|
||||
// return item.discountPrice;
|
||||
// } else if (item.value === "3") {
|
||||
// // 3向上取整
|
||||
// item.discountPrice = $that._mathCeil(item.discountPrice);
|
||||
// } else if (item.value === "5") {
|
||||
// // 5保留一位
|
||||
// item.discountPrice = $that._mathToFixed1(item.discountPrice);
|
||||
// } else {
|
||||
// // 其他保留两位
|
||||
// item.discountPrice = $that._mathToFixed2(item.discountPrice);
|
||||
// }
|
||||
})
|
||||
}, function (errInfo, error) {
|
||||
console.log('请求失败处理');
|
||||
|
||||
Loading…
Reference in New Issue
Block a user