From c3d6b25a5ec2f013d735be7bcee0a0ed44cd1754 Mon Sep 17 00:00:00 2001 From: linxi Date: Fri, 28 Feb 2025 16:03:30 +0800 Subject: [PATCH] =?UTF-8?q?Fix=EF=BC=9A3315=20=E3=80=90=E7=A4=BC=E5=93=81?= =?UTF-8?q?=E5=8A=9F=E8=83=BD=E3=80=91=E5=BE=85=E5=8F=91=E8=B4=A7=E8=AE=A2?= =?UTF-8?q?=E5=8D=95=E9=80=80=E6=AC=BE=E8=AF=A6=E6=83=85=E9=A1=B5=E4=B8=8D?= =?UTF-8?q?=E8=A6=81=E6=98=BE=E7=A4=BA=E7=89=A9=E6=B5=81=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/gift.js | 8 +++ pages/order/OrderDetails/index.vue | 3 +- .../views/gift/components/CoverPicker.vue | 12 ++++- pkg_user/views/gift/components/GiftCard.vue | 2 +- pkg_user/views/gift/components/giftTips.vue | 14 +++-- pkg_user/views/gift/gift.vue | 54 +++++++++++++------ 6 files changed, 70 insertions(+), 23 deletions(-) diff --git a/api/gift.js b/api/gift.js index a2dcbc5..a8b60ac 100644 --- a/api/gift.js +++ b/api/gift.js @@ -47,4 +47,12 @@ export function getGiftCardSendNotice(data) { */ export function getGiftCardSendOrderAmount(key, data) { return request.post("giftCard/computed/" + key, data); +} + +/** + * 再送一份 + * @param {*} data + */ +export function getGiftCardResend(data) { + return request.post("/giftCard/makeAgain", data); } \ No newline at end of file diff --git a/pages/order/OrderDetails/index.vue b/pages/order/OrderDetails/index.vue index 5a16356..7ed5c0f 100644 --- a/pages/order/OrderDetails/index.vue +++ b/pages/order/OrderDetails/index.vue @@ -29,7 +29,7 @@ - + {{ delivery.deliveryName }}:{{ delivery.deliveryId }} @@ -554,6 +554,7 @@ export default { // this.$forceUpdate() }, getExpressInfo(delivery, i) { + if(delivery.deliveryId === null) return let params = { orderCode: this.orderInfo.id, shipperCode: delivery.deliverySn, diff --git a/pkg_user/views/gift/components/CoverPicker.vue b/pkg_user/views/gift/components/CoverPicker.vue index 9aa5e9a..86e5ae7 100644 --- a/pkg_user/views/gift/components/CoverPicker.vue +++ b/pkg_user/views/gift/components/CoverPicker.vue @@ -9,6 +9,7 @@ 选择封面 export default { props: { + index: { + type: Number, + default: 0 + }, show: { type: Boolean, default: true @@ -62,7 +67,12 @@ export default { }, data() { return { - currentIndex: 0 + currentIndex: this.index + } + }, + watch: { + index(val) { + this.currentIndex = val } }, methods: { diff --git a/pkg_user/views/gift/components/GiftCard.vue b/pkg_user/views/gift/components/GiftCard.vue index 2a997c9..ffed8c7 100644 --- a/pkg_user/views/gift/components/GiftCard.vue +++ b/pkg_user/views/gift/components/GiftCard.vue @@ -236,7 +236,7 @@ export default { } .auto-text-color { color: #fff; - font-size: 28rpx; + font-size: 32rpx; opacity: 0.8; margin-top: 150rpx; width: 400rpx; diff --git a/pkg_user/views/gift/components/giftTips.vue b/pkg_user/views/gift/components/giftTips.vue index e19f98f..a09aec9 100644 --- a/pkg_user/views/gift/components/giftTips.vue +++ b/pkg_user/views/gift/components/giftTips.vue @@ -12,7 +12,9 @@ 赠礼须知 - + + + @@ -36,10 +38,12 @@ export default {