From 00637f239336024eb215e21b7558e3c2a74f55df Mon Sep 17 00:00:00 2001 From: java110 <928255095@qq.com> Date: Thu, 3 Dec 2020 19:03:06 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/fee/feeApi.js | 26 +++ api/index/indexApi.js | 2 +- components/vc-discount/vc-discount.vue | 82 ++++++++++ components/vc-price/vc-price.vue | 2 +- constant/url.js | 1 + pages.json | 6 + pages/roomFee/roomFee.vue | 43 ++--- pages/roomFeeListNew/roomFeeListNew.css | 33 ++++ pages/roomFeeListNew/roomFeeListNew.vue | 207 ++++++++++++++++++++++++ 9 files changed, 373 insertions(+), 29 deletions(-) create mode 100644 components/vc-discount/vc-discount.vue create mode 100644 pages/roomFeeListNew/roomFeeListNew.css create mode 100644 pages/roomFeeListNew/roomFeeListNew.vue diff --git a/api/fee/feeApi.js b/api/fee/feeApi.js index c29b338..11f9826 100644 --- a/api/fee/feeApi.js +++ b/api/fee/feeApi.js @@ -104,4 +104,30 @@ export function getRoomOweFees(_objData) { } }); }) +} + +/** + * 查询优惠信息 + * @param {Object} _objData 费用 + */ +export function getFeeDiscounts(_objData) { + return new Promise((resolve, reject) => { + request({ + url: url.computeFeeDiscount, + method: "GET", + data: _objData, //动态数据 + success: function(res) { + if (res.statusCode == 200) { + //成功情况下跳转 + let _feeDiscounts = res.data.data; + resolve(_feeDiscounts); + return; + } + reject(); + }, + fail: function(e) { + reject(); + } + }); + }) } \ No newline at end of file diff --git a/api/index/indexApi.js b/api/index/indexApi.js index 09f79b8..4dbf8d5 100644 --- a/api/index/indexApi.js +++ b/api/index/indexApi.js @@ -48,7 +48,7 @@ export function getCategoryList() { pageone: [{ name: "物业费", src: "/static/images/index_property.png", - href: "/pages/roomFeeList/roomFeeList" + href: "/pages/roomFeeListNew/roomFeeListNew" }, { name: "停车费", src: "/static/images/index_park.png", diff --git a/components/vc-discount/vc-discount.vue b/components/vc-discount/vc-discount.vue new file mode 100644 index 0000000..a5e85eb --- /dev/null +++ b/components/vc-discount/vc-discount.vue @@ -0,0 +1,82 @@ + + + + + diff --git a/components/vc-price/vc-price.vue b/components/vc-price/vc-price.vue index 7cb8be6..5f285f8 100644 --- a/components/vc-price/vc-price.vue +++ b/components/vc-price/vc-price.vue @@ -80,7 +80,7 @@ +