优化代码

This commit is contained in:
java110 2021-06-30 15:24:34 +08:00
parent 879ba3924f
commit 78d31b6540

View File

@ -41,6 +41,16 @@
});
},
methods: {
getOnePrice1:function(fee) {
let _price = fee.mwPrice;
if (!_price) {
return fee.squarePrice;
}
if (parseFloat(_price) > 0) {
return _price;
}
return fee.mwPrice;
},
_loadListRoomCreateFeeInfo: function (_page, _row) {
var param = {
params: {
@ -178,16 +188,6 @@
console.log('请求失败处理');
}
);
},
getOnePrice1:function(fee) {
let _price = fee.mwPrice;
if (!_price) {
return fee.squarePrice;
}
if (parseFloat(_price) > 0) {
return _price;
}
return fee.mwPrice;
}
}
});