From 150b8b3ac7051d766f02bc26e336a68d2594e1ff Mon Sep 17 00:00:00 2001 From: dzc <2388224167@qq.com> Date: Tue, 26 May 2026 18:24:57 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E6=94=AF=E4=BB=98=E9=80=89=E6=8B=A9?= =?UTF-8?q?=E4=BC=98=E6=83=A0=E5=88=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env | 4 +- src/pages/merchant/components/coupon-card.vue | 50 +++-- src/pages/merchant/merchant-activity.vue | 110 +++++++--- src/pages/merchant/my-act-list.vue | 28 ++- .../pay/components/select-coupon-card.vue | 193 ++++++++++++++++++ src/pages/pay/scanPay.vue | 145 +++++++++++-- src/pages/pay/transferMoney.vue | 1 - src/pages/tabbar/order.vue | 9 +- src/sheep/api/act-coupon.ts | 9 + .../base-just-flot-nav/base-just-flot-nav.vue | 1 + .../components/base/base-nav/base-nav.vue | 1 + .../crud/crud-layout/crud-layout.vue | 21 +- src/sheep/components/number-keyboard.vue | 117 ++++++++--- src/sheep/constant/service-enum.ts | 1 + src/sheep/hooks/use-scan-code.ts | 7 +- 15 files changed, 591 insertions(+), 106 deletions(-) create mode 100644 src/pages/pay/components/select-coupon-card.vue diff --git a/.env b/.env index c26753f..691b9c4 100644 --- a/.env +++ b/.env @@ -17,9 +17,9 @@ VITE_PWD_ENC_KEY='pigxpigxpigxpigx' VITE_OAUTH2_APP_CLIENT='mini:mini' # --------------------------- start 开发环境 start ---------------------------------- -VITE_APP_DEV_SERVICE = https://stgl.pj.gov.cn/api +# VITE_APP_DEV_SERVICE = https://stgl.pj.gov.cn/api # VITE_APP_DEV_SERVICE = http://localhost:9999 -# VITE_APP_DEV_SERVICE = https://dzc-test-1.fy.takin.cc +VITE_APP_DEV_SERVICE = https://dzc-test-1.fy.takin.cc # VITE_IMAGE_DEV_PATH = http://localhost:9999 # VITE_IMAGE_DEV_PATH = https://dzc-test-1.fy.takin.cc/api diff --git a/src/pages/merchant/components/coupon-card.vue b/src/pages/merchant/components/coupon-card.vue index 7361a6c..0d73b35 100644 --- a/src/pages/merchant/components/coupon-card.vue +++ b/src/pages/merchant/components/coupon-card.vue @@ -2,19 +2,25 @@ import { reactive, ref, computed } from "vue" import { onLoad, onShow } from "@dcloudio/uni-app" +import * as hooks from "@@/hooks" import { serviceEnum } from "@@/constant" const { actCouponTypeEnum } = serviceEnum -const emit = defineEmits(["doVisibleQrcode"]) +const emit = defineEmits(["doVisibleQrcode", "doUse"]) -const props = withDefaults(defineProps<{ detail: any }>(), { +const props = withDefaults(defineProps<{ mode?: 'list' | 'select', detail: any }>(), { + mode: "list", detail: {}, }) const doVisibleQrcode = () => { emit("doVisibleQrcode", { type: 'ACT_COUPON', detail: props.detail }) } + +const doUse = () => { + emit("doUse", { type: 'ACT_COUPON', detail: props.detail }) +} @@ -117,7 +139,7 @@ const doVisibleQrcode = () => { } .amount { - font-size: 48rpx; + font-size: 28rpx; font-weight: bold; margin: 0 8rpx 0 2rpx; line-height: 1; @@ -134,6 +156,8 @@ const doVisibleQrcode = () => { } .condition { + display: flex; + align-items: center; font-size: 24rpx; color: #0094ff; opacity: 0.8; @@ -188,7 +212,7 @@ const doVisibleQrcode = () => { /* 右侧按钮区 */ .coupon-right { - width: 160rpx; + width: 140rpx; display: flex; align-items: center; justify-content: center; diff --git a/src/pages/merchant/merchant-activity.vue b/src/pages/merchant/merchant-activity.vue index daeb415..1b07652 100644 --- a/src/pages/merchant/merchant-activity.vue +++ b/src/pages/merchant/merchant-activity.vue @@ -1,23 +1,23 @@