From ec8982948f336e405f2552b73c515215dc080b2b Mon Sep 17 00:00:00 2001 From: xiaozhiyong Date: Tue, 19 Sep 2023 10:23:27 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/tabbar/home/home.vue | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pages/tabbar/home/home.vue b/pages/tabbar/home/home.vue index b6d7f8d..dc0e28c 100644 --- a/pages/tabbar/home/home.vue +++ b/pages/tabbar/home/home.vue @@ -880,6 +880,13 @@ if (result.qrcodeText) { let accountResult = await accountApi.getUserAccount() if (accountResult.data.length) { + if (accountResult.data[0].oilCardType != 3) { + uni.showToast({ + title: '非外请油卡不支持赠送金额', + icon: 'none' + }) + return + } accountApi.checkQrStr(result.giveCustomerId, result.qrcodeText).then( res => { let currentCard = accountResult.data[0] || []