From c3b7541ca0b33ee1a93096ac3d9c396aa713481c Mon Sep 17 00:00:00 2001 From: Jay Date: Fri, 24 Aug 2018 20:09:59 +0800 Subject: [PATCH] add url show --- .../channel/opay/components/opay-setting.vue | 11 +++++++++++ src/components/common/donate-bar.vue | 1 + 2 files changed, 12 insertions(+) diff --git a/src/components/ControlPanel/channel/opay/components/opay-setting.vue b/src/components/ControlPanel/channel/opay/components/opay-setting.vue index 1bb9e7b..f60c7cd 100644 --- a/src/components/ControlPanel/channel/opay/components/opay-setting.vue +++ b/src/components/ControlPanel/channel/opay/components/opay-setting.vue @@ -4,6 +4,12 @@ + + Donate Bar URL + + {{url}} + + @@ -83,6 +89,11 @@ export default { } }, computed: { + url: function () { + let path = this.$router.resolve(`/donatebar/${this.$route.params.chid}/opay`).href + let origin = window.location.origin + return `${origin.replace(/\/$/, '')}${path}` + }, amountInt: function () { return toInt(this.amount, 0) }, diff --git a/src/components/common/donate-bar.vue b/src/components/common/donate-bar.vue index d408f6e..9e9b7d8 100644 --- a/src/components/common/donate-bar.vue +++ b/src/components/common/donate-bar.vue @@ -30,6 +30,7 @@ height: 30px; position: relative; border-radius: 10px; + border: 3px solid black; .progress-body { border-radius: 10px;