refactor(user): 优化用户优惠券相关功能

- 移除新增收货地址页面
- 删除 ShopArticle 相关代码
- 优化优惠券详情页面布局- 更新优惠券筛选和使用逻辑
- 调整 app配置,重新启用优惠券功能
- 优化 Tailwind CSS配置,禁用不必要功能
This commit is contained in:
2025-08-13 10:44:27 +08:00
parent a1cacc04e8
commit 5d4dc4518f
7 changed files with 20 additions and 333 deletions

View File

@@ -240,7 +240,7 @@ const CouponManage = () => {
// 筛选条件变更
const handleFiltersChange = (newFilters: any) => {
setFilters(newFilters)
reload(true)
reload(true).then()
}
// 检查即将过期的优惠券
@@ -290,6 +290,7 @@ const CouponManage = () => {
// 使用即将过期的优惠券
const handleUseExpiringSoonCoupon = (coupon: ExpiringSoon) => {
console.log(coupon, '使用即将过期优惠券')
setShowExpireNotice(false)
// 跳转到商品页面
Taro.navigateTo({
@@ -447,7 +448,7 @@ const CouponManage = () => {
onClose={() => setShowGuide(false)}
/>
{/* 筛选弹窗 */}
{/*/!* 筛选弹窗 *!/*/}
<CouponFilter
visible={showFilter}
filters={filters}
@@ -455,7 +456,7 @@ const CouponManage = () => {
onClose={() => setShowFilter(false)}
/>
{/* 到期提醒弹窗 */}
{/*/!* 到期提醒弹窗 *!/*/}
<CouponExpireNotice
visible={showExpireNotice}
expiringSoonCoupons={expiringSoonCoupons}