diff --git a/components/discountCoupon/index.js b/components/discountCoupon/index.js index ac53312..2b2cddd 100644 --- a/components/discountCoupon/index.js +++ b/components/discountCoupon/index.js @@ -50,6 +50,7 @@ Component({ alertInfo(message) return; } + alertSuccess("领取成功") that.triggerEvent("get", { id, type: 1 }) }) diff --git a/pages/discountCoupon/index.wxml b/pages/discountCoupon/index.wxml index ff79806..9f03dd2 100644 --- a/pages/discountCoupon/index.wxml +++ b/pages/discountCoupon/index.wxml @@ -7,7 +7,7 @@ - + diff --git a/pages/home/index.js b/pages/home/index.js index 6d1b144..d80532a 100644 --- a/pages/home/index.js +++ b/pages/home/index.js @@ -126,6 +126,10 @@ Page({ }, async recharge() { const { user, money, meter, tenement, park } = this.data; + if (!user || !user.id) { + alertInfo("请先登录") + return; + } const { code, message, data } = await getTenementExceptionalCase(park?.id, tenement?.id); if (code !== OK) { alertInfo(message) diff --git a/pages/integralRecord/index.wxml b/pages/integralRecord/index.wxml index 1ef3cb6..0eff632 100644 --- a/pages/integralRecord/index.wxml +++ b/pages/integralRecord/index.wxml @@ -9,7 +9,6 @@ title="{{item.type}}" value="{{item.value}}" label="{{item.createdAt}}" - border="{{ false }}" />