From 58600a13ffe0d5225573f404a7f66118bc05f850 Mon Sep 17 00:00:00 2001
From: peng <peng.com>
Date: 星期一, 15 九月 2025 14:44:14 +0800
Subject: [PATCH] 处理登录后不显示问题

---
 pages/order/claim-coupon/claim-coupon.vue |   14 +++++++++-----
 1 files changed, 9 insertions(+), 5 deletions(-)

diff --git a/pages/order/claim-coupon/claim-coupon.vue b/pages/order/claim-coupon/claim-coupon.vue
index 2acfa09..4e26ca6 100644
--- a/pages/order/claim-coupon/claim-coupon.vue
+++ b/pages/order/claim-coupon/claim-coupon.vue
@@ -12,12 +12,12 @@
 				<!-- 鍟嗗搧鍥剧墖 -->
 				<view class="goods-image-container">
 					<u-image 
-						:src="couponInfo.goodsImage || '/static/default_goods.png'" 
+						:src="couponInfo.goodsUrl"
 						width="100%" 
 						height="300rpx" 
 						mode="aspectFit"
 						border-radius="16"
-						@click="previewImage(couponInfo.goodsImage)"
+						@click="previewImage(couponInfo.goodsUrl)"
 					></u-image>
 				</view>
 				
@@ -89,16 +89,20 @@
 				couponInfo: null, // 鍗曚釜浼樻儬鍒镐俊鎭�
 				loading: false,
 				showShoppingModal: false ,// 鎺у埗鍘昏喘鐗╁脊绐楁樉绀�
-				couponId:''
+				couponId:'',
+				cardId:''
 			}
+		},
+		onShow() {
+			this.loadCouponInfo(this.cardId);
 		},
 		onLoad(options) {
 			// 閫氳繃鍙傛暟浼犻�掍紭鎯犲埜ID
 			// 渚嬪: /pages/order/claim-coupon/claim-coupon?id=123
-			options.id = '1966390012058017794'
 			
 			this.couponId = ''
 			if (options.id) {
+				this.cardId = options.id
 				this.loadCouponInfo(options.id);
 			} else {
 				// 濡傛灉娌℃湁浼犻�扞D锛屾樉绀虹┖鐘舵��
@@ -148,7 +152,7 @@
 					uni.showLoading({
 						title: '棰嗗彇涓�...'
 					});
-					
+					console.log(this.couponInfo)
 					// 璋冪敤棰嗗彇浼樻儬鍒告帴鍙�
 					const res = await claimVirtualCoupon(this.couponInfo.id);
 					

--
Gitblit v1.8.0