From 4fd6837d929e778688c96ff49bbb4e837afdb185 Mon Sep 17 00:00:00 2001 From: lqq Date: Mon, 11 Nov 2019 14:42:34 +0800 Subject: [PATCH] =?UTF-8?q?=E7=82=B9=E8=B5=9E=E5=92=8C=E6=8A=A5=E5=90=8D?= =?UTF-8?q?=E9=AA=8C=E8=AF=81=E6=8E=88=E6=9D=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/article/index.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/pages/article/index.js b/pages/article/index.js index 7c85eb9..14440a5 100644 --- a/pages/article/index.js +++ b/pages/article/index.js @@ -26,7 +26,13 @@ Page({ }, onClickCollect () { // 收藏功能 - this.addOrRemoveCollectionApi() + if (store.hasBindUserInfo()) { + this.addOrRemoveCollectionApi() + } else { + wx.redirectTo({ + url: '/pages/weChatAuth/index', + }) + } }, onlineSubmit () { //console.log('在线报名')