From 17e2c6c9068534fa043c3a2e092ce5f726460ed2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=A0=BC=E8=B0=83main?= Date: Sat, 21 Mar 2026 22:15:37 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=84=E7=90=86=E4=BC=98=E6=83=A0=E5=8D=B7?= =?UTF-8?q?=E8=AF=A6=E6=83=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/service.js | 9 + pages.json | 7 + pages/profileSub/couponDetail.vue | 403 ++++++++++++++++++++++++++++++ pages/profileSub/myCoupons.vue | 6 + 4 files changed, 425 insertions(+) create mode 100644 pages/profileSub/couponDetail.vue diff --git a/api/service.js b/api/service.js index 70e5022..9cc8a30 100644 --- a/api/service.js +++ b/api/service.js @@ -192,4 +192,13 @@ export function getLuCouponPage(params = {}) { }) } +// 获得优惠卷详情 +export function getLuCouponDetail(id) { + return request({ + url: '/app-api/member/lu-coupon/get', + method: 'GET', + data: { id }, + }) +} + diff --git a/pages.json b/pages.json index 03ef47e..19ae823 100644 --- a/pages.json +++ b/pages.json @@ -146,6 +146,13 @@ "navigationBarTitleText": "我的优惠卷", "navigationStyle": "custom" } + }, + { + "path": "couponDetail", + "style": { + "navigationBarTitleText": "优惠卷详情", + "navigationStyle": "custom" + } } ] } diff --git a/pages/profileSub/couponDetail.vue b/pages/profileSub/couponDetail.vue new file mode 100644 index 0000000..c73ce8c --- /dev/null +++ b/pages/profileSub/couponDetail.vue @@ -0,0 +1,403 @@ + + + + + \ No newline at end of file diff --git a/pages/profileSub/myCoupons.vue b/pages/profileSub/myCoupons.vue index 1651478..29e3685 100644 --- a/pages/profileSub/myCoupons.vue +++ b/pages/profileSub/myCoupons.vue @@ -61,6 +61,7 @@ v-for="(item, index) in coupons" :key="index" :class="{ disabled: isCouponDisabled(item) }" + @click="goToDetail(item)" > @@ -187,6 +188,11 @@ export default { handleLoadMore() { this.loadData(); }, + goToDetail(item) { + uni.navigateTo({ + url: `/pages/profileSub/couponDetail?id=${item.id}` + }); + }, isCouponDisabled(item) { return item.status === 1 || item.status === 2 || item.status === 3; },