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