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