From 97315e76842772661d194b04f8cf861b22afeeda Mon Sep 17 00:00:00 2001 From: Jay Date: Sun, 26 Aug 2018 21:30:49 +0800 Subject: [PATCH] update donate bar --- .../channel/opay/components/opay-setting.vue | 20 ++++++++----------- src/components/common/donate-bar.vue | 3 ++- src/components/showDonateBar/index.vue | 7 +------ 3 files changed, 11 insertions(+), 19 deletions(-) diff --git a/src/components/ControlPanel/channel/opay/components/opay-setting.vue b/src/components/ControlPanel/channel/opay/components/opay-setting.vue index 5986ddc..768ac69 100644 --- a/src/components/ControlPanel/channel/opay/components/opay-setting.vue +++ b/src/components/ControlPanel/channel/opay/components/opay-setting.vue @@ -12,20 +12,20 @@ - + - + - - + + - + @@ -52,7 +52,7 @@ export default { return { title: '', amount: 0, - sDate: '', + startAmount: 0, eDate: '' } }, @@ -60,10 +60,6 @@ export default { ...mapActions(['changeOpaySetting']), ...mapMutations(['addDialog']), formSubmit: function () { - let sts = 0 - try { - sts = new Date(this.sDate).getTime() - } catch (err) {} let ets = 0 try { ets = new Date(this.eDate).getTime() @@ -71,7 +67,7 @@ export default { let data = { title: this.title, amount: this.amount, - start: sts, + start_amount: this.startAmount, end: ets } this.changeOpaySetting({ @@ -84,7 +80,7 @@ export default { setting: function (val, old) { this.title = val.title this.amount = val.target_amount - this.sDate = val.start_date + this.startAmount = val.start_amount this.eDate = val.end_date } }, diff --git a/src/components/common/donate-bar.vue b/src/components/common/donate-bar.vue index 9e9b7d8..9fd4aed 100644 --- a/src/components/common/donate-bar.vue +++ b/src/components/common/donate-bar.vue @@ -18,8 +18,9 @@ -