From 847a4f3a29a4fbde5e8b55979dd060a63f20b4f3 Mon Sep 17 00:00:00 2001 From: sszdot Date: Wed, 11 Dec 2024 19:15:21 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E7=B1=BB=20=20=E5=9E=8B=E3=80=91?= =?UTF-8?q?=EF=BC=9Afeat=20=E3=80=90=E5=8E=9F=20=20=E5=9B=A0=E3=80=91?= =?UTF-8?q?=EF=BC=9A=20=E3=80=90=E8=BF=87=20=20=E7=A8=8B=E3=80=91=EF=BC=9A?= =?UTF-8?q?=E6=96=B0=E7=9A=84=E5=9C=B0=E5=9D=80=E5=9B=BE=E7=89=87=20?= =?UTF-8?q?=E3=80=90=E5=BD=B1=20=20=E5=93=8D=E3=80=91=EF=BC=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit # 类型 包含: # feat:新功能(feature) # fix:修补bug # docs:文档(documentation) # style: 格式(不影响代码运行的变动) # refactor:重构(即不是新增功能,也不是修改bug的代码变动) # test:增加测试 # chore:构建过程或辅助工具的变动 --- App.vue | 6 +-- pages/shop/order.vue | 111 +++++++++++++++++++++++++++++++------------ static/colorBar.png | Bin 0 -> 164 bytes 3 files changed, 83 insertions(+), 34 deletions(-) create mode 100644 static/colorBar.png diff --git a/App.vue b/App.vue index fa75234..21eb7f0 100644 --- a/App.vue +++ b/App.vue @@ -257,15 +257,15 @@ } .fz24 { - font-size: $uni-font-size-sm; + font-size: 24rpx; } .fz28 { - font-size: $uni-font-size-base; + font-size: 28rpx; } .fz32 { - font-size: $uni-font-size-lg; + font-size: 32rpx; } .fz36 { diff --git a/pages/shop/order.vue b/pages/shop/order.vue index eebb888..ac6a49d 100644 --- a/pages/shop/order.vue +++ b/pages/shop/order.vue @@ -7,56 +7,84 @@ - - + + - {{siteCon.sitename}} + 收货站点:{{siteCon.sitename}} + - + + 配置物流 {{shopCon.name}} - + 送达时间 预估30分钟之后送达 - 商品详情 - + + 餐品详情 - - - - - - {{item.spu_name}} - 1 X {{i}} - ¥{{item | calculateTotal}} + + + + + {{item.spu_name}} + + X1 {{i}} + + X{{item.countG[0]}} + + ¥{{item | calculateTotal}} - 价格明细 - - 商品小计 - ¥{{total | formatPrice}} + + 价格明细 + + 商品小计 + ¥{{total | formatPrice}} + + + 外送费 + ¥5.00 + + + 打包服务费 + ¥2.00 + + + 合计 + ¥{{total | formatPrice}} + - - - - - 合计: - ¥{{total | formatPrice}} + + 备注 + + 口味、偏好等要求 + - + + + + 合计 + + + ¥{{total | formatPrice}} + 共{{totalCount}}件 + + 提交订单 Checkout @@ -86,7 +114,7 @@ return this.$store.state.siteList.find(item => item.id === this.$store.state.site_id.toString()) }, //商铺信息 - shopCon(){ + shopCon() { return this.$store.state.shopCon }, //购物车列表 @@ -97,6 +125,16 @@ total() { return this.totalPrice(this.$store.state.cartList) }, + //购物车货品总数 ps:sku的总数 + totalCount() { + let total = 0 + for (let i = 0; i < this.cartList.length; i++) { + for (let j = 0; j < this.cartList[i].countG.length; j++) { + total += this.cartList[i].countG[j] + } + } + return total + }, //用户信息 userInfo() { return this.$store.state.userInfo @@ -107,7 +145,7 @@ totalPrice, //提交订单 handleCheckout() { - if (this.isPressed) {//防止提交订单按钮重复点击 + if (this.isPressed) { //防止提交订单按钮重复点击 return } this.isPressed = true @@ -169,13 +207,24 @@ \ No newline at end of file diff --git a/static/colorBar.png b/static/colorBar.png new file mode 100644 index 0000000000000000000000000000000000000000..f180db71af3c5ea768eb5121d240384a373e4eca GIT binary patch literal 164 zcmeAS@N?(olHy`uVBq!ia0vp^ia^ZD!3HEx-)!{8U}fi7AzZCsS>JirhS1978H@C8anppOYlfqO%ugA1D6?H+OmOGf!tB7HaDYL<-iYl$F3%~Ti42~u KelF{r5}E+Dfia%| literal 0 HcmV?d00001