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=${