From 138c3ffb1876a0ac324a876068be4599a0ffd221 Mon Sep 17 00:00:00 2001 From: java110 <928255095@qq.com> Date: Fri, 4 Dec 2020 10:55:17 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=89=8B=E6=9C=BA=E7=AB=AF?= =?UTF-8?q?=E5=81=9C=E8=BD=A6=E8=B4=B9=E5=92=8C=E7=89=A9=E4=B8=9A=E8=B4=B9?= =?UTF-8?q?=20=E6=89=93=E6=8A=98=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/payParkingFee/payParkingFee.vue | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/pages/payParkingFee/payParkingFee.vue b/pages/payParkingFee/payParkingFee.vue index 065fc96..f38da97 100644 --- a/pages/payParkingFee/payParkingFee.vue +++ b/pages/payParkingFee/payParkingFee.vue @@ -83,6 +83,9 @@ {{endTime }} + + @@ -109,6 +112,7 @@ // pages/payParkingFee/payParkingFee.js const context = require("../../context/Java110Context.js"); const constant = context.constant; + import vcDiscount from '@/components/vc-discount/vc-discount.vue' import { addMonth, formatDate @@ -122,6 +126,9 @@ // #endif export default { + components: { + vcDiscount + }, data() { return { showFeeMonth: false, @@ -192,6 +199,7 @@ var prevPage = pages[pages.length - 2]; //上一个页面 //直接调用上一个页面的setData()方法,把数据存到上一个页面中去 prevPage.needFefresh = false; + this.$refs.vcDiscountRef._loadFeeDiscount(this.feeId, this.communityId, this.feeMonth); }, /** @@ -199,7 +207,9 @@ */ onShareAppMessage: function() {}, methods: { - + computeFeeDiscount: function(_price) { + this.receivableAmount = this.receivableAmount - _price; + }, dateChange: function(e) { console.log("onConfirm", e); let _feeMonthName = null; @@ -216,6 +226,7 @@ this.receivableAmount = _receivableAmount; this.feeMonth = _feeMonth; this.endTime = formatDate(_newDate); + this.$refs.vcDiscountRef._loadFeeDiscount(this.feeId, this.communityId, this.feeMonth); }, onFeeMonthCancel: function(e) { this.showFeeMonth = false;