From 505721d393befee5435f20bdbc0a7b95da939ed1 Mon Sep 17 00:00:00 2001 From: wong1988 Date: Sat, 2 Dec 2023 16:23:53 +0800 Subject: [PATCH] =?UTF-8?q?=E5=95=86=E5=93=81=E8=AF=A6=E6=83=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/card/card_booking.vue | 33 ++++++++-------- pages/card/card_detail.vue | 17 ++++----- pages/good/goodsDetail.vue | 76 +++++++++++++++++++++++++++++++++---- 3 files changed, 94 insertions(+), 32 deletions(-) diff --git a/pages/card/card_booking.vue b/pages/card/card_booking.vue index d9cd768..2f80d20 100644 --- a/pages/card/card_booking.vue +++ b/pages/card/card_booking.vue @@ -40,10 +40,11 @@ - 提 货 人 - 提 货 人 + + :value="data.userName" @input="onKeyInput1" /> @@ -62,17 +63,18 @@ 商品明细 - - + {{item.goods}} - {{item.remarks}} + {{item.remarks}} - + @@ -108,8 +110,8 @@ goodsVos: [], value: "", select: [], - userName:"", - userPhone:"", + userName: "", + userPhone: "", } } }, @@ -159,12 +161,12 @@ this.shortToast('请输入手机号码') return } - if (this.data.userPhone.length!=11) { + if (this.data.userPhone.length != 11) { this.shortToast('手机号码格式不对') return } - - + + let num = 0; for (var i = 0; i < this.data.goodsVos.length; i++) { num += Number(this.data.goodsVos[i].select); @@ -184,10 +186,9 @@ }) }, - goodDetail(sid){ - // 商品详情 + itemClick(goodsSid) { uni.navigateTo({ - url: '/pages/good/goodsDetail?sid=' + sid + url: '/pages/good/goodsDetail?sid=' + goodsSid }) } } diff --git a/pages/card/card_detail.vue b/pages/card/card_detail.vue index baff969..bce0919 100644 --- a/pages/card/card_detail.vue +++ b/pages/card/card_detail.vue @@ -36,18 +36,18 @@ 商品明细 - - + {{item.goods}} {{item.remarks}} - 总数:{{item.num}} - - 剩余:{{item.lnum}} + 总数:{{item.num}} + + 剩余:{{item.lnum}} @@ -58,7 +58,7 @@ style="position: fixed;bottom: 0;height: 50px;background: #f3f4f6;border-top: 1rpx #cacaca solid;width: 100%;display: flex;flex-direction: row;box-sizing: border-box;align-items: center;padding-right: 15px;"> + @click.stop="showRecord(page.sid)"> 预约记录 预约提货 @@ -124,10 +124,9 @@ url: '/pages/card/card_booking?sid=' + sid }) }, - goodDetail(sid){ - // 商品详情 + itemClick(goodsSid) { uni.navigateTo({ - url: '/pages/good/goodsDetail?sid=' + sid + url: '/pages/good/goodsDetail?sid=' + goodsSid }) } } diff --git a/pages/good/goodsDetail.vue b/pages/good/goodsDetail.vue index 8183fd0..e75dd19 100644 --- a/pages/good/goodsDetail.vue +++ b/pages/good/goodsDetail.vue @@ -1,22 +1,84 @@ + uni-page-body, + page { + background: #f3f4f6; + } + \ No newline at end of file