From 22f2e9779afd79bc1980c5f15669eff6b70ab8b2 Mon Sep 17 00:00:00 2001 From: modendeveloper Date: Sun, 8 Sep 2024 15:10:49 +0800 Subject: [PATCH] =?UTF-8?q?Feat(=E6=8F=90=E4=BA=A4=E8=AE=A2=E5=8D=95)?= =?UTF-8?q?=EF=BC=9AUI=E8=B0=83=E6=95=B4=EF=BC=88=E5=B7=B2=E5=AE=8C?= =?UTF-8?q?=E6=88=90=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/css/v12-style.less | 28 +- components/CouponsPopup.vue | 6 +- components/OrderGoods.vue | 34 ++- pages/cart.vue | 1 - pages/order/OrderSubmission/index.vue | 270 +++++++++++------- .../user/address/AddressManagement/index.vue | 2 +- 6 files changed, 215 insertions(+), 126 deletions(-) diff --git a/assets/css/v12-style.less b/assets/css/v12-style.less index 86c904a..42961ff 100644 --- a/assets/css/v12-style.less +++ b/assets/css/v12-style.less @@ -59,13 +59,18 @@ each(@colors, { margin-bottom: @baseNum; } .v12-ma-@{i} { - margin: @baseNum; + margin-left: @baseNum; + margin-right: @baseNum; + margin-bottom: @baseNum; + margin-top: @baseNum; } .v12-mx-@{i} { - margin: 0 @baseNum; + margin-left: @baseNum; + margin-right: @baseNum; } .v12-my-@{i} { - margin: @baseNum 0; + margin-bottom: @baseNum; + margin-top: @baseNum; } .v12-pt-@{i} { padding-top: @baseNum; @@ -80,13 +85,18 @@ each(@colors, { padding-bottom: @baseNum; } .v12-pa-@{i} { - padding: @baseNum; + padding-top: @baseNum; + padding-bottom: @baseNum; + padding-right: @baseNum; + padding-left: @baseNum; } .v12-px-@{i} { - padding: 0 @baseNum + padding-right: @baseNum; + padding-left: @baseNum; } .v12-py-@{i} { - padding: @baseNum 0 + padding-top: @baseNum; + padding-bottom: @baseNum; } .generateMarginAndPadding(@n, (@i + 1)) } @@ -133,7 +143,11 @@ each(@colors, { } .v12-justify-start{ display: flex; - justify-content: start; + justify-content: flex-start; +} +.v12-justify-end{ + display: flex; + justify-content: flex-end; } .v12-d-grid-columns-2 { display: grid; diff --git a/components/CouponsPopup.vue b/components/CouponsPopup.vue index c33589e..b9df96f 100644 --- a/components/CouponsPopup.vue +++ b/components/CouponsPopup.vue @@ -61,7 +61,8 @@ export default { return { webUrl: this.$VUE_APP_RESOURCES_URL, current: 0, - couponId: uni.getStorageSync('couponId') || 0 + couponId: uni.getStorageSync('couponId') || 0, + selectItem: {} } }, computed: { @@ -88,6 +89,7 @@ export default { }, selectCoupon(id) { this.couponId = id + this.selectItem = this.list.find(e => e.id === id) this.list.map(item => { item.checked = id === item.id }) @@ -95,7 +97,7 @@ export default { setCoupon() { if (this.current === 1) return uni.setStorageSync('couponId', this.couponId) - this.$emit('change') + this.$emit('change', this.selectItem || {}) } } } diff --git a/components/OrderGoods.vue b/components/OrderGoods.vue index 8f7ddcb..4a9f27e 100644 --- a/components/OrderGoods.vue +++ b/components/OrderGoods.vue @@ -2,43 +2,43 @@ - - + /> --> + {{ title }} 共{{ cartInfo.length }}件商品 - + - {{ cart.productInfo.storeName }} + {{ cart.productInfo.storeName }} 规格:{{ cart.productInfo.attrInfo.sku }} @@ -49,8 +49,12 @@ >评价 - ¥{{ cart.truePrice }} - x{{ cart.cartNum }} + + 应付: + + {{ cart.truePrice }} + + x{{ cart.cartNum }} @@ -86,6 +90,12 @@ export default { };