From 9c00f057e842428a4e6b2b8361f2e01487d1b59f Mon Sep 17 00:00:00 2001 From: zsk <710162063@qq.com> Date: Tue, 5 Mar 2024 10:42:57 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9C=AA=E7=99=BB=E5=BD=95=20=E6=97=A0?= =?UTF-8?q?=E6=B3=95=E6=9F=A5=E7=9C=8B=E8=AF=A6=E6=83=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/index/index.js | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/pages/index/index.js b/pages/index/index.js index 2b4fc0f..325a15f 100644 --- a/pages/index/index.js +++ b/pages/index/index.js @@ -1950,9 +1950,15 @@ Page({ goDetail (e) { console.log(e); var that = this; - wx.navigateTo({ - url: "../detail/index?storeJobId=" + e.currentTarget.dataset.id + "&wxCode=" + that.data.wxCode, - }); + if (this.data.isLogin) { + wx.navigateTo({ + url: "../detail/index?storeJobId=" + e.currentTarget.dataset.id + "&wxCode=" + that.data.wxCode, + }); + } else { + wx.navigateTo({ + url: "../login/index", + }); + } }, /**