From 14f2702ba8ffda7770bb36efa77c4a51bd8ea015 Mon Sep 17 00:00:00 2001 From: weiwei Date: Sat, 20 Sep 2025 17:15:45 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E5=95=86=E5=AE=B6=E6=B4=BB=E5=8A=A8?= =?UTF-8?q?=E5=85=91=E6=8D=A2=E5=88=B8=E6=A0=B8=E9=94=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/integrated/notice/detail.vue | 2 + src/pages/merchant/coupon-list.vue | 42 ++++++--- src/pages/merchant/merchant-activity.vue | 85 +++++++++++++------ src/pages/pay/scanPay.vue | 8 -- src/pages/tabbar/my.vue | 37 +++++++- src/sheep/api/act-cancel.ts | 2 +- .../crud/crud-layout/crud-layout.vue | 1 - src/sheep/hooks/use-scan-code.ts | 16 +++- 8 files changed, 136 insertions(+), 57 deletions(-) diff --git a/src/pages/integrated/notice/detail.vue b/src/pages/integrated/notice/detail.vue index 7620983..c83e0c3 100644 --- a/src/pages/integrated/notice/detail.vue +++ b/src/pages/integrated/notice/detail.vue @@ -95,6 +95,8 @@ function downloadFile(file: any) { onLoad(async (options: any) => { const id = options.id if (!id) return + // 临时商户活动的通知公告跳转链接 + if (id == "1969326082705055746") return uni.navigateTo({ url: "/pages/merchant/merchant-activity" }) try { // 增加浏览量 diff --git a/src/pages/merchant/coupon-list.vue b/src/pages/merchant/coupon-list.vue index 75bbeeb..e7dcaf6 100644 --- a/src/pages/merchant/coupon-list.vue +++ b/src/pages/merchant/coupon-list.vue @@ -1,20 +1,32 @@ @@ -22,16 +34,18 @@ import { actCancel } from "@/sheep/api" import { onLoad } from "@dcloudio/uni-app" import { reactive, ref } from "vue" +import zTabs from "@@/components/other/z-tabs/z-tabs.vue" const tabs = [ { id: null, name: "全部", disabled: false }, - { id: 1, name: "未核销", disabled: false }, - { id: 1, name: "已核销", disabled: false }, + { id: 1, name: "未核销", disabled: false, color: "#1879ff77" }, + { id: 2, name: "已核销", disabled: false, color: "#03DC6C77" }, + { id: 3, name: "已过期", disabled: false, color: "#FF672B77" }, ] const params = reactive({ actStatus: tabs[0].id, }) -const couponList = ref([]) +const couponList = ref([]) onLoad(() => { getCouponList() @@ -42,6 +56,10 @@ const doTab = (e: any) => { getCouponList() } +const getActStatus = (actStatus: string | number) => { + return tabs.find((item: any) => item.id == actStatus) +} + // 商家查看优惠券列表 const getCouponList = async () => { const { code, data, msg }: any = await actCancel.appMchPage(params) @@ -56,12 +74,10 @@ const getCouponList = async () => { background-repeat: no-repeat; background-size: contain; background-position: 150%; - background-color: #1879ff77; } .ribbon { width: 160rpx; height: 40rpx; - background: #dd0d1f; position: absolute; left: -40rpx; top: 20rpx; diff --git a/src/pages/merchant/merchant-activity.vue b/src/pages/merchant/merchant-activity.vue index 9241872..dca9d47 100644 --- a/src/pages/merchant/merchant-activity.vue +++ b/src/pages/merchant/merchant-activity.vue @@ -4,39 +4,69 @@ 兑换券 - 限时领取 - 2025-09-21 + 限时领取 + 2025-09-21 - 店内消费额外支付1元可领取衣服一件 - 限量领取 先到先得 + 店内消费额外支付1元可领取价值89元的速干T恤1件 + 限量领取 先领先得 已 领 取 立 即 领 取 - - - - 去支付 + + 我的核销码 + + + + + + + + diff --git a/src/pages/pay/scanPay.vue b/src/pages/pay/scanPay.vue index 82f2292..7ed7401 100644 --- a/src/pages/pay/scanPay.vue +++ b/src/pages/pay/scanPay.vue @@ -77,14 +77,6 @@ onLoad(async (options: any) => { return } - const { actId } = options - if (!isEmpty(actId)) { - amount.value = "1.00" - scanPayState.mchName = "活动支付" - numberKeyboardShow.value = false - return - } - const { id } = options if (!isEmpty(id)) { scanPayState.mchId = id diff --git a/src/pages/tabbar/my.vue b/src/pages/tabbar/my.vue index 8e82ed3..61fb539 100644 --- a/src/pages/tabbar/my.vue +++ b/src/pages/tabbar/my.vue @@ -1,7 +1,7 @@