From 72705cb101d3ab26ebf5c1a90cf8744d093bfff8 Mon Sep 17 00:00:00 2001 From: YuanHuakk <1751826683@qq.com> Date: Mon, 18 Nov 2024 22:56:23 +0800 Subject: [PATCH] =?UTF-8?q?feat(custom):=20=E5=A2=9E=E5=8A=A0=E6=B2=A1?= =?UTF-8?q?=E6=9C=89=E8=B1=86=E5=AD=90=E4=B8=8D=E5=8F=AF=E8=BF=9B=E5=85=A5?= =?UTF-8?q?=E6=B8=B8=E6=88=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/game/gamedetail/index.vue | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/pages/game/gamedetail/index.vue b/src/pages/game/gamedetail/index.vue index 4f701f6..eb2e8c2 100644 --- a/src/pages/game/gamedetail/index.vue +++ b/src/pages/game/gamedetail/index.vue @@ -32,8 +32,12 @@ const startGame = () => { url: info.value.url, }); } else { - // const user = Taro.getStorageSync('userInfo') - // if(user.data.pulse <= 0) return Taro.showToast({title: '您的豆子不足,无法进入游戏', icon: 'none'}) + const user = Taro.getStorageSync('userInfo'); + if (user.data.pulse <= 0) + return Taro.showToast({ + title: '您的豆子不足,无法进入游戏', + icon: 'none', + }); Taro.setStorageSync( 'game_url', `${info.value.url}?uid=${Taro.getStorageSync('token')}&id=${