From f06d8756e1aee39db65a9ee79ed6bc46cc7b7030 Mon Sep 17 00:00:00 2001 From: gyq <875626088@qq.com> Date: Sat, 27 Sep 2025 13:24:39 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/user/coupon.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pages/user/coupon.vue b/pages/user/coupon.vue index cd0b68e..56f3675 100644 --- a/pages/user/coupon.vue +++ b/pages/user/coupon.vue @@ -38,7 +38,7 @@ {{ item.name }} - {{ dayjs(item.effectStartTime).format('YYYY.M.D') }} - {{ dayjs(item.effectEndTime).format('YYYY.M.D') }} + 有效期至:{{ dayjs(item.effectStartTime).format('YYYY.M.D') }} - {{ dayjs(item.effectEndTime).format('YYYY.M.D') }} @@ -197,7 +197,7 @@ async function getCouponList() { userId: uni.cache.get('userInfo').id, name: querForm.value.searchValue, status: statusList.value[querForm.value.statusActiveIndex].value, - shopId: querForm.value.shopId ? querForm.value.shopId : uni.cache.get('shopId'), + // shopId: querForm.value.shopId ? querForm.value.shopId : uni.cache.get('shopId'), page: list.page, size: list.size }); From f066bd171beef3c759d9338a1861476632c6ca9c Mon Sep 17 00:00:00 2001 From: gyq <875626088@qq.com> Date: Sat, 27 Sep 2025 15:52:09 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=BC=98=E6=83=A0?= =?UTF-8?q?=E5=88=B8=E5=BC=B9=E7=AA=97/=E7=94=A8=E6=88=B7=E4=B8=AD?= =?UTF-8?q?=E5=BF=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/coupon-modal.vue | 15 +++++++++++---- pages/user/user.vue | 4 ++-- 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/components/coupon-modal.vue b/components/coupon-modal.vue index 294c500..eda950c 100644 --- a/components/coupon-modal.vue +++ b/components/coupon-modal.vue @@ -40,9 +40,7 @@ - - 有效期至:{{ dayjs(val.validStartTime).format('YYYY.M.D') }}-{{ dayjs(val.validEndTime).format('YYYY.M.D') }} - + 有效期至:{{ dayjs(val.validStartTime).format('YYYY.M.D') }}-{{ dayjs(val.validEndTime).format('YYYY.M.D') }} @@ -235,9 +233,17 @@ onMounted(() => { } } .title { + width: 280upx; font-size: 28upx; color: #fff; font-weight: bold; + /* 禁止换行 */ + white-space: nowrap; + /* 超出部分隐藏 */ + overflow: hidden; + /* 显示省略号 */ + text-overflow: ellipsis; + /* 确保元素有明确的宽度限制(可继承父元素宽度或手动设置) */ } .time { display: flex; @@ -249,7 +255,7 @@ onMounted(() => { display: flex; align-items: center; .t { - font-size: 10px; + font-size: 18upx; color: #c50914; } } @@ -266,6 +272,7 @@ onMounted(() => { justify-content: center; border-radius: 50%; background-color: #fe413d; + box-shadow: 0 8upx 8upx rgba(254, 65, 61, 0.6); .t { color: #fff; font-size: 20upx; diff --git a/pages/user/user.vue b/pages/user/user.vue index 51679f4..c4ad308 100644 --- a/pages/user/user.vue +++ b/pages/user/user.vue @@ -63,7 +63,7 @@ - + 会员 @@ -101,7 +101,7 @@ {{userInfo.accountPoints || 0}} - {{userInfo.couponNum || 0}} + 查看