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('在线报名')