From cf082c0d35bdfe379d41fec7e5293220b8daa622 Mon Sep 17 00:00:00 2001 From: wanghongjun <1445693971@qq,com> Date: Fri, 29 Mar 2024 17:19:18 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B7=B3=E8=BD=AC=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/goods/detail.vue | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/pages/goods/detail.vue b/pages/goods/detail.vue index 8b764b2..99fb09c 100644 --- a/pages/goods/detail.vue +++ b/pages/goods/detail.vue @@ -394,9 +394,14 @@ } } else { app.$toast("请先登录") - setTimeout(app.jumpUrl('/pages/login/index'),3000) + setTimeout(app.jumpUrl,3000) } }, + jumpUrl () { + uni.navigateTo({ + url:'/pages/login/index' + }) + }, jumpMycertinfoUrl (url) { uni.navigateTo({ url:'/pages/user/mycertinfo/mycertinfo' @@ -466,7 +471,7 @@ } } else { app.$toast("请先登录") - setTimeout(app.jumpUrl('/pages/login/index'),3000) + setTimeout(app.jumpUrl,3000) } }, Buy_now() {