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 {