From f63b2f3319068626973a0069f0300b51225940d2 Mon Sep 17 00:00:00 2001
From: qiaomu <3520484422@qq.com>
Date: Tue, 10 Dec 2024 17:35:28 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=98=BE=E7=A4=BA=E9=94=99?=
=?UTF-8?q?=E8=AF=AF?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
components/discountCoupon/index.js | 1 +
pages/discountCoupon/index.wxml | 2 +-
pages/home/index.js | 4 ++++
pages/integralRecord/index.wxml | 1 -
4 files changed, 6 insertions(+), 2 deletions(-)
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 }}"
/>