From b613bb368d4e678b42d25e94397d0aab3e213438 Mon Sep 17 00:00:00 2001
From: doum <doum>
Date: 星期三, 25 二月 2026 09:41:01 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'

---
 mini-program/pages/coupon-details/coupon-details.vue |   58 ++++++++++++++++++++++++++++++++++++++++------------------
 1 files changed, 40 insertions(+), 18 deletions(-)

diff --git a/mini-program/pages/coupon-details/coupon-details.vue b/mini-program/pages/coupon-details/coupon-details.vue
index 09ab9f6..c848a6c 100644
--- a/mini-program/pages/coupon-details/coupon-details.vue
+++ b/mini-program/pages/coupon-details/coupon-details.vue
@@ -1,38 +1,30 @@
 <template>
-	<view class="box">
+	<view class="box" v-if="info">
 		<view class="item">
 			<view class="item-a">
-				<text class="item-a-num">8</text>
-				<text>婊�100鍙敤</text>
+				<text class="item-a-num" v-if="info.couponType === 0">{{info.price}}</text>
+				<text class="item-a-num1" v-else-if="info.couponType === 1">{{info.price}}</text>
+				<text>婊{info.limitPrice}}鍙敤</text>
 			</view>
 			<view class="item-b">
 				<view class="item-b-left">
-					<text>鏂板涓撲韩</text>
-					<text>2020.5.25 鏃ュ埌鏈�</text>
+					<text>{{info.name}}</text>
+					<text>{{info.endDate.substring(0, 10)}} 鏃ュ埌鏈�</text>
 				</view>
 			</view>
 		</view>
 		<view class="info">
 			<view class="info-item">
 				<view class="info-item-label">浣跨敤鏃堕棿</view>
-				<view class="info-item-val">2020.5.25 鏃ュ埌鏈�</view>
+				<view class="info-item-val">{{info.endDate.substring(0, 10)}} 鏃ュ埌鏈�</view>
 			</view>
 			<view class="info-item">
 				<view class="info-item-label">閫傜敤瀵硅薄</view>
-				<view class="info-item-val">鏀噸杞�佸杞�</view>
+				<view class="info-item-val">{{info.relationInfoList.join('銆�')}}</view>
 			</view>
 			<view class="info-item">
 				<view class="info-item-label">浣跨敤璇存槑</view>
-				<view class="info-item-val">涓虹‘淇濋『鍒╀娇鐢紝璇锋偍鐣欐剰锛�
-				路鏈夋晥鏈燂細姣忓紶浼樻儬鍒稿潎鏈夋槑纭殑浣跨敤璧锋鏃ユ湡锛岃繃鏈熻嚜鍔ㄥけ鏁堬紝璇峰強鏃朵娇鐢ㄣ��
-				路閫傜敤鑼冨洿锛氬埜闈細娉ㄦ槑鏄惁閫傜敤浜庡叏骞冲彴鍟嗗搧锛屾垨浠呴檺鎸囧畾鍝佺墝銆佸搧绫汇�佺壒瀹氬晢鍝佸弬涓庛�傝鍦ㄥ埜璇︽儏椤垫垨鍟嗗搧椤垫牳瀵光�滃彲鐢ㄤ紭鎯犫�濄��
-				鎸戦�夊績浠晢鍝佸姞鍏ヨ喘鐗╄溅銆�
-				杩涘叆缁撶畻椤甸潰锛岀‘璁ゆ敹璐у湴鍧�鍜屽晢鍝佷俊鎭��
-				鍦ㄢ�滄敮浠樹俊鎭�濆尯鍩熸壘鍒般�屼紭鎯犲埜銆嶆垨銆岄�夋嫨浼樻儬銆嶅叆鍙c��
-				绯荤粺灏嗚嚜鍔ㄧ瓫閫夊嚭褰撳墠璁㈠崟鍙敤鐨勪紭鎯犲埜锛岃閫夋嫨鎮ㄥ笇鏈涗娇鐢ㄧ殑涓�寮犮��
-				閫夋嫨鍚庯紝璁㈠崟鎬婚灏嗙珛鍗虫洿鏂帮紝鏄剧ず鎶垫墸鍚庣殑鏈�缁堟敮浠橀噾棰濄��
-				纭鏃犺锛屽畬鎴愭敮浠樺嵆鍙��
-				</view>
+				<view class="info-item-val">{{info.info}}</view>
 			</view>
 		</view>
 	</view>
@@ -42,8 +34,24 @@
 	export default {
 		data() {
 			return {
-				
+				id: null,
+				info: null
 			};
+		},
+		onLoad(option) {
+			this.id = option.id
+			this.getDetails()
+		},
+		methods: {
+			getDetails() {
+				this.$u.api.memberCouponDetail({ id: this.id })
+					.then(res => {
+						if (res.code === 200) {
+							console.log(res)
+							this.info = res.data
+						}
+					})
+			}
 		}
 	}
 </script>
@@ -63,6 +71,9 @@
 				padding: 30rpx 0;
 				box-sizing: border-box;
 				border-bottom: 1rpx solid #E5E5E5;
+				&:last-child {
+					border-bottom: none !important;
+				}
 				.info-item-label {
 					font-weight: 500;
 					font-size: 32rpx;
@@ -108,6 +119,17 @@
 						color: #E4001D;
 					}
 				}
+				.item-a-num1 {
+					font-weight: 600;
+					font-size: 44rpx;
+					color: #E4001D;
+					&::after {
+						content: '鎶�';
+						font-weight: 600;
+						font-size: 24rpx;
+						color: #E4001D;
+					}
+				}
 				text {
 					font-weight: 400;
 					font-size: 24rpx;

--
Gitblit v1.9.3