mirror of
https://gitee.com/java110/MicroCommunityWeb.git
synced 2026-06-12 10:00:56 +08:00
优化代码
This commit is contained in:
parent
300f6e1c95
commit
4726be82ad
@ -89,23 +89,6 @@
|
|||||||
$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时向下取整
|
|
||||||
// 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) {
|
}, function (errInfo, error) {
|
||||||
console.log('请求失败处理');
|
console.log('请求失败处理');
|
||||||
|
|||||||
@ -2,9 +2,9 @@
|
|||||||
|
|
||||||
<div class="ibox ">
|
<div class="ibox ">
|
||||||
<div class="ibox-title">
|
<div class="ibox-title">
|
||||||
<h5><span>
|
<h5>
|
||||||
<vc:i18n name="查询条件"></vc:i18n>
|
<vc:i18n name="查询条件"></vc:i18n>
|
||||||
</span></h5>
|
</h5>
|
||||||
<div class="ibox-tools" style="top:10px;">
|
<div class="ibox-tools" style="top:10px;">
|
||||||
<!-- <button type="button" class="btn btn-link btn-sm" style="margin-right:10px;"
|
<!-- <button type="button" class="btn btn-link btn-sm" style="margin-right:10px;"
|
||||||
v-on:click="_moreCondition()">{{couponPropertyPoolManageInfo.moreCondition ==
|
v-on:click="_moreCondition()">{{couponPropertyPoolManageInfo.moreCondition ==
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user