From 103c10347c1c05943a52f0aebb448b91fc619f0b Mon Sep 17 00:00:00 2001 From: qiaomu <3520484422@qq.com> Date: Tue, 21 Jan 2025 14:32:41 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A2=84=E7=95=99=E6=89=8B=E6=9C=BA=E5=8F=B7?= =?UTF-8?q?=E6=96=B0=E5=8A=A0=E8=A7=A3=E9=87=8A=EF=BC=8C=E4=BC=98=E6=83=A0?= =?UTF-8?q?=E5=88=B8=E6=96=B0=E5=A2=9E=E5=A4=87=E6=B3=A8=EF=BC=8C=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=E9=83=A8=E5=88=86=E6=A0=B7=E5=BC=8F=EF=BC=8C=E4=BC=98?= =?UTF-8?q?=E5=8C=96table=E7=BB=84=E4=BB=B6=E5=8F=AF=E4=BB=A5=E4=BC=A0?= =?UTF-8?q?=E5=B1=9E=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/discountCoupon/index.js | 19 ++++++++++++++++++- components/discountCoupon/index.json | 3 ++- components/discountCoupon/index.wxml | 7 ++++--- components/discountCoupon/index.wxss | 13 +++++++++---- components/table/table.js | 3 +++ components/table/table.wxml | 15 +++++++++++---- pages/handleLogin/index.js | 9 +++++++++ pages/handleLogin/index.json | 3 ++- pages/handleLogin/index.wxml | 14 +++++++++++--- pages/meterList/index.wxml | 13 +++++++++++-- pages/meterList/index.wxss | 11 ++++++++++- project.private.config.json | 7 +++++++ utils/index.js | 4 ++-- 13 files changed, 99 insertions(+), 22 deletions(-) diff --git a/components/discountCoupon/index.js b/components/discountCoupon/index.js index 2b2cddd..eeff869 100644 --- a/components/discountCoupon/index.js +++ b/components/discountCoupon/index.js @@ -38,10 +38,27 @@ Component({ that.triggerEvent("change", { id, type: 2 }) }) }, + showRemark() { + wx.showModal({ + title: '备注', + content: this.data?.data?.remark, + showCancel: false, + complete: (res) => { + if (res.cancel) { + + } + + if (res.confirm) { + + } + } + }) + + }, handleUseIt() { alertInfo("敬请期待") }, - async handleUse(e) { + async handleUse() { const { data } = this.data; const that = this; loadingFunc(async () => { diff --git a/components/discountCoupon/index.json b/components/discountCoupon/index.json index 3b51cdc..6a35321 100644 --- a/components/discountCoupon/index.json +++ b/components/discountCoupon/index.json @@ -1,6 +1,7 @@ { "component": true, "usingComponents": { - "van-button": "@vant/weapp/button/index" + "van-button": "@vant/weapp/button/index", + "van-dialog": "@vant/weapp/dialog/index" } } \ No newline at end of file diff --git a/components/discountCoupon/index.wxml b/components/discountCoupon/index.wxml index 8db85d7..4e012c2 100644 --- a/components/discountCoupon/index.wxml +++ b/components/discountCoupon/index.wxml @@ -26,8 +26,8 @@ - - + + {{data.remark}} 去领取 @@ -35,4 +35,5 @@ 去使用 - \ No newline at end of file + + \ No newline at end of file diff --git a/components/discountCoupon/index.wxss b/components/discountCoupon/index.wxss index 4dac214..214f566 100644 --- a/components/discountCoupon/index.wxss +++ b/components/discountCoupon/index.wxss @@ -10,7 +10,7 @@ display: flex; justify-content: space-between; border-bottom: 1rpx dashed #ccc; - padding-bottom: 20rpx; + padding-bottom: 30rpx; } .top .right { @@ -25,7 +25,7 @@ .typeText { font-weight: 700; - font-size: 42rpx; + font-size: 36rpx; margin-bottom: 20rpx; } @@ -51,5 +51,10 @@ .bottom .left { flex: 1; - font-size: 32rpx; -} \ No newline at end of file + max-width: calc(100vw - 60rpx - 250rpx); + overflow: hidden; + white-space: nowrap; + text-overflow: ellipsis; + font-size: 30rpx; + color: rgba(0, 0, 0, 0.7) +} diff --git a/components/table/table.js b/components/table/table.js index e4dd2c2..c104dcd 100644 --- a/components/table/table.js +++ b/components/table/table.js @@ -27,6 +27,9 @@ Component({ type: String, value: '#d6e8ff' }, + topColor: String, + topStyle: String, + bodyStyle: String, maxLine: { type: Number, value: 2 diff --git a/components/table/table.wxml b/components/table/table.wxml index 54a5a3b..e46080e 100644 --- a/components/table/table.wxml +++ b/components/table/table.wxml @@ -8,12 +8,19 @@