From 6b86a9aedce3600a2ff0caaf20221e148cfc3705 Mon Sep 17 00:00:00 2001 From: macro Date: Tue, 9 Apr 2019 21:41:16 +0800 Subject: [PATCH] =?UTF-8?q?=E7=99=BB=E5=BD=95=E9=80=BB=E8=BE=91=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/support.js | 10 ++++++++++ src/views/login/index.vue | 30 ++++++++++++++++++++++++++++-- 2 files changed, 38 insertions(+), 2 deletions(-) create mode 100644 src/utils/support.js diff --git a/src/utils/support.js b/src/utils/support.js new file mode 100644 index 000000000..31aa30f24 --- /dev/null +++ b/src/utils/support.js @@ -0,0 +1,10 @@ +import Cookies from "js-cookie"; +const SupportKey='supportKey'; +export const SupportUrl='https://e.coding.net/?utm_source=macrozheng&utm_medium=banner&utm_campaign=march2019'; +export function getSupport() { + return Cookies.get(SupportKey) +} + +export function setSupport(isSupport) { + return Cookies.set(SupportKey, isSupport,{ expires: 3 }) +} diff --git a/src/views/login/index.vue b/src/views/login/index.vue index 4f78bfc7c..dbbb88cba 100644 --- a/src/views/login/index.vue +++ b/src/views/login/index.vue @@ -44,11 +44,22 @@ + + mall项目已由CODING特别赞助,点击去支持,页面加载完后点击免费试用按钮即可完成支持,谢谢! + + 残忍拒绝 + 去支持 + +