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 { };