From 1625b684412694851576dc2f2812b4d20c577803 Mon Sep 17 00:00:00 2001
From: xuxueyang <xuxy@fengyuntec.com>
Date: 星期二, 03 九月 2024 15:34:39 +0800
Subject: [PATCH] update 兑换券的(之后还有会员价格)

---
 sub_pages/customer/coupon/coupon-self.vue |   13 +++++++++----
 1 files changed, 9 insertions(+), 4 deletions(-)

diff --git a/sub_pages/customer/coupon/coupon-self.vue b/sub_pages/customer/coupon/coupon-self.vue
index ab9131d..086df04 100644
--- a/sub_pages/customer/coupon/coupon-self.vue
+++ b/sub_pages/customer/coupon/coupon-self.vue
@@ -6,18 +6,22 @@
 			</top-tabs>
 		</view>
 		<view class="">
+			<no-data v-if="!list||list.length==0" style="width: 100%;"></no-data>
+			
 			<view v-for="(item,index) of list" :key="index" class="coupont-item" :class="[query.status]">
 				<view class="flex container img100">
 					<view class="info-price">
-						<view class="price1">¥7.70</view>
-						<view class="price2">满¥100可用</view>
+						<view class="price1">
+							{{item.maxDiscountAmount?(`${item.maxDiscountAmount}折`):(`¥${item.couponDiscountValue}`)}}
+						</view>
+						<view class="price2">{{item.minOrderAmount?(`满¥${item.minOrderAmount}可用`):'无门槛'}}</view>
 					</view>
 					<view class="info flex1">
 						<view class="title">
-							七夕专属福利券
+							{{item.couponName||'-'}}
 						</view>
 						<view class="time">
-							有效期至2024-07-26 09:58:30
+							有效期至{{item.usageEndDate||'-'}}
 						</view>
 					</view>
 				</view>
@@ -70,6 +74,7 @@
 
 		methods: {
 			changeTab(flg) {
+				this.flg = '' + flg
 				this.query.status = this.tabs[flg].status
 				this.listApi = '/api/v2/coupon/app' + `/mine/${this.query.status}/list`
 				this.refreshList()

--
Gitblit v1.9.3