refactor(user/gift): 修复 CSS 兼容性问题并优化礼品卡功能

- 移除了不兼容的 CSS 类名,解决了 WXSS 编译错误
- 优化了礼品卡详细页面,添加了二维码弹窗功能
- 简化了礼品卡统计组件,提高了页面加载速度
- 修复了 SimpleQRCodeModal组件中的样式问题
- 优化了验证页面中的布局结构
This commit is contained in:
2025-08-17 11:02:14 +08:00
parent ecfbdc0286
commit 6d66b7abbf
12 changed files with 876 additions and 194 deletions

View File

@@ -7,7 +7,6 @@ import {User} from "@/api/system/user/model";
import navTo from "@/utils/common";
import {TenantId} from "@/config/app";
import {getMyAvailableCoupons} from "@/api/shop/shopUserCoupon";
import {getUserPointsStats} from "@/api/user/points";
import {useUser} from "@/hooks/useUser";
function UserCard() {
@@ -46,6 +45,7 @@ function UserCard() {
})
// 加载积分数量
console.log(userId)
// getUserPointsStats(userId)
// .then((res: any) => {
// setPointsCount(res.currentPoints || 0)
@@ -61,6 +61,7 @@ function UserCard() {
}
const reload = () => {
setPointsCount(0)
Taro.getUserInfo({
success: (res) => {
const avatar = res.userInfo.avatarUrl;