From a094955ccf193257d9ae24a33d89d983e572bb09 Mon Sep 17 00:00:00 2001 From: Jay Date: Fri, 24 Aug 2018 00:27:18 +0800 Subject: [PATCH] donate bar v1 --- package-lock.json | 5 ++ package.json | 1 + src/components/common/donate-bar.vue | 14 +++++- src/components/showDonateBar/index.vue | 66 ++++++++++++++++++++++++++ src/router.js | 7 +++ 5 files changed, 92 insertions(+), 1 deletion(-) create mode 100644 src/components/showDonateBar/index.vue diff --git a/package-lock.json b/package-lock.json index 9e22669..52eac26 100644 --- a/package-lock.json +++ b/package-lock.json @@ -8020,6 +8020,11 @@ "minimist": "0.0.8" } }, + "moment": { + "version": "2.22.2", + "resolved": "https://registry.npmjs.org/moment/-/moment-2.22.2.tgz", + "integrity": "sha1-PCV/mDn8DpP/UxSWMiOeuQeD/2Y=" + }, "move-concurrently": { "version": "1.0.1", "resolved": "http://registry.npm.taobao.org/move-concurrently/download/move-concurrently-1.0.1.tgz", diff --git a/package.json b/package.json index d000cd3..5b19ec9 100644 --- a/package.json +++ b/package.json @@ -9,6 +9,7 @@ }, "dependencies": { "axios": "^0.18.0", + "moment": "^2.22.2", "semantic-ui-css": "github:otakukaze/Semantic-UI-CSS#master", "semantic-ui-vue": "^0.2.11", "vue": "^2.5.17", diff --git a/src/components/common/donate-bar.vue b/src/components/common/donate-bar.vue index a749ec0..d408f6e 100644 --- a/src/components/common/donate-bar.vue +++ b/src/components/common/donate-bar.vue @@ -18,6 +18,8 @@ + + + + + + diff --git a/src/router.js b/src/router.js index 4ae8478..a0ffcc1 100644 --- a/src/router.js +++ b/src/router.js @@ -7,6 +7,8 @@ import ChannelList from '@/components/ControlPanel/channelList' import Channel from '@/components/ControlPanel/channel' import ChannelOpay from '@/components/ControlPanel/channel/opay' +import PublicOpayBar from '@/components/showDonateBar' + Vue.use(Router) export default new Router({ @@ -57,6 +59,11 @@ export default new Router({ redirect: 'channels' } ] + }, + { + path: '/donatebar/:chid/opay', + name: 'PublicOpayBar', + component: PublicOpayBar } ] })