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 @@