From 92e164747aa3910dd9b1aa4244adb85097f49d02 Mon Sep 17 00:00:00 2001 From: owen Date: Wed, 22 Nov 2023 16:57:59 +0800 Subject: [PATCH] =?UTF-8?q?=E8=90=A5=E9=94=80=EF=BC=9A=E9=80=82=E9=85=8D?= =?UTF-8?q?=E5=95=86=E5=9F=8E=E8=A3=85=E4=BF=AE=E7=BB=84=E4=BB=B6=E3=80=90?= =?UTF-8?q?=E4=BC=98=E6=83=A0=E5=88=B8=E3=80=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sheep/api/promotion/coupon.js | 12 + .../components/s-block-item/s-block-item.vue | 2 +- .../s-coupon-block/s-coupon-block.vue | 233 ++++++++---------- sheep/components/s-tabbar/s-tabbar.vue | 2 +- sheep/ui/su-coupon/su-coupon.vue | 6 +- sheep/util/const.js | 47 ++++ sheep/util/index.js | 79 ++++++ 7 files changed, 239 insertions(+), 142 deletions(-) create mode 100644 sheep/api/promotion/coupon.js create mode 100644 sheep/util/const.js create mode 100644 sheep/util/index.js diff --git a/sheep/api/promotion/coupon.js b/sheep/api/promotion/coupon.js new file mode 100644 index 00000000..d4e62dd5 --- /dev/null +++ b/sheep/api/promotion/coupon.js @@ -0,0 +1,12 @@ +import request from '@/sheep/request'; + +export default { + // 获得优惠劵模板列表 + getCouponTemplateListByIds: (ids) => { + return request({ + url: '/app-api/promotion/coupon-template/list-by-ids', + method: 'GET', + params: { ids } + }); + } +} diff --git a/sheep/components/s-block-item/s-block-item.vue b/sheep/components/s-block-item/s-block-item.vue index 7b6b0345..21fe32da 100644 --- a/sheep/components/s-block-item/s-block-item.vue +++ b/sheep/components/s-block-item/s-block-item.vue @@ -42,7 +42,7 @@ - + diff --git a/sheep/components/s-coupon-block/s-coupon-block.vue b/sheep/components/s-coupon-block/s-coupon-block.vue index d8060bce..af29c097 100644 --- a/sheep/components/s-coupon-block/s-coupon-block.vue +++ b/sheep/components/s-coupon-block/s-coupon-block.vue @@ -1,126 +1,54 @@ @@ -168,25 +131,21 @@ border-radius: 25rpx; font-size: 24rpx; line-height: 50rpx; + &.vertical { + width: 50rpx; + height: 140rpx; + margin: auto 20rpx auto 0; + + .btn-text { + font-size: 24rpx; + text-align: center; + writing-mode: vertical-lr; + } + } } .coupon-item { &:nth-of-type(1) { margin-left: 0 !important; } } - .md-coupon-wrap { - .card-btn { - width: 50rpx; - height: 140rpx; - margin: auto 0; - margin-right: 20rpx; - - .btn-text { - font-size: 24rpx; - text-align: center; - writing-mode: vertical-lr; - writing-mode: tb-lr; - } - } - } diff --git a/sheep/components/s-tabbar/s-tabbar.vue b/sheep/components/s-tabbar/s-tabbar.vue index 11c6cf34..369a8232 100644 --- a/sheep/components/s-tabbar/s-tabbar.vue +++ b/sheep/components/s-tabbar/s-tabbar.vue @@ -1,5 +1,5 @@