From f12fb1012d7977e58c115a4f7865b9db52f81a7e Mon Sep 17 00:00:00 2001 From: lifizer <913626195@qq.com> Date: Fri, 14 Nov 2025 17:55:45 +0800 Subject: [PATCH 01/78] =?UTF-8?q?Feat(=E9=9D=9E=E9=81=97=E6=96=87=E5=88=9B?= =?UTF-8?q?):=E5=A2=9E=E5=8A=A0AI=E5=85=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkg_product/views/heritage/index.vue | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkg_product/views/heritage/index.vue b/pkg_product/views/heritage/index.vue index 2f3abd6..7cc81eb 100644 --- a/pkg_product/views/heritage/index.vue +++ b/pkg_product/views/heritage/index.vue @@ -87,12 +87,17 @@ class="img-nodata" /> + \ No newline at end of file From efd70ae003aa5c8e0fe3f46735327eb3eb55ca9a Mon Sep 17 00:00:00 2001 From: linxi <957440651@qq.com> Date: Sat, 22 Nov 2025 15:15:13 +0800 Subject: [PATCH 30/78] =?UTF-8?q?Feat=EF=BC=9A=E5=9B=A2=E8=B4=AD=E7=A4=BC?= =?UTF-8?q?=E5=93=81=E6=94=AF=E6=8C=81=E4=BC=98=E6=83=A0=E5=88=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/gift.js | 12 +++++++++ pkg_user/views/gift/gift.vue | 47 +++++++++++++++++++++++++----------- 2 files changed, 45 insertions(+), 14 deletions(-) diff --git a/api/gift.js b/api/gift.js index 1963088..3f33c62 100644 --- a/api/gift.js +++ b/api/gift.js @@ -112,3 +112,15 @@ export function fetchSojoumGroupBuyGiftCarousel(params) { login: true }) } + +/** + * 计算旅居团购礼品订单价格 + * @param {*} params + * @returns + */ + +export function computedSojoumGroupBuyGiftOrderPrice(params) { + return request.post("/travel/giftCardOrder/computed/" + params.key, params, { + login: true + }) +} diff --git a/pkg_user/views/gift/gift.vue b/pkg_user/views/gift/gift.vue index c306cd4..ffc34d5 100644 --- a/pkg_user/views/gift/gift.vue +++ b/pkg_user/views/gift/gift.vue @@ -81,7 +81,7 @@ {{ isGroupBuy ? goodsInfo.price : computedResult.totalPrice }} - + 平台折扣: - @@ -89,7 +89,7 @@ {{ computedResult.discountPrice }} - + 优惠券: @@ -111,7 +111,7 @@ 合计: - {{ isGroupBuy ? goodsInfo.price : computedResult.payPrice }} + {{ computedResult.payPrice }} @@ -146,7 +146,7 @@ ref='payPwdPop' showMoney v-if="isShowPayPwdPop" - :money="isGroupBuy ? goodsInfo.price : payPrice" + :money="payPrice" :show="isShowPayPwdPop" @close="isShowPayPwdPop = false" @finish="pwdPopFinish" @@ -186,7 +186,8 @@ import { getGiftCardResend, createGroupBuyGift, createSojoumGroupBuyGift, - fetchSojoumGroupBuyGiftCarousel + fetchSojoumGroupBuyGiftCarousel, + computedSojoumGroupBuyGiftOrderPrice } from '@/api/gift' import { weappPay } from "@/libs/wechat"; import {mapGetters} from "vuex"; @@ -249,7 +250,11 @@ export default { async couponId(value) { this.couponIndex = this.couponList['usable']?.findIndex(item => item.id === +value) this.couponTitle = this.couponList['usable']?.[this.couponIndex]?.couponTitle - await this.computedPrice(this.goodsInfo.cartNum, 1) + if(this.isGroupBuy) { + await this.computedTravelGroupPrice(true) + } else { + await this.computedPrice(this.goodsInfo.cartNum, 1) + } } }, onLoad(opts) { @@ -284,14 +289,23 @@ export default { imageUrl: this.shareImage } }, - // onReady() { - // this.$nextTick(() => { - // this.$refs.textarea.setFormatter(val => { - // return val.length > 30 ? val.substring(0, 30) : val - // }) - // }) - // }, methods: { + // 团购价计算 + computedTravelGroupPrice(useDefaultCouponId) { + const params = { + key: this.orderKey, + couponId: this.couponId + } + computedSojoumGroupBuyGiftOrderPrice(params).then(res => { + this.computedResult = res.data.result + this.couponList = res.data.result.couponList + this.payPrice = res.data.result.payPrice + this.$forceUpdate() + if(useDefaultCouponId) { + this.couponId = res.data.result.defaultCouponId || 0 + } + }) + }, handleShowCover() { this.showCoverPicker = true }, @@ -310,7 +324,11 @@ export default { if(!item.id) { this.couponId = 0 this.couponTitle = '' - this.computedPrice(this.goodsInfo.cartNum, 1) + if(this.isGroupBuy) { + this.computedTravelGroupPrice(false) + } else { + this.computedPrice(this.goodsInfo.cartNum, 1) + } return } this.couponId = item.id @@ -576,6 +594,7 @@ export default { } } this.giftNotice = res.data.giftCardGiftNotice + this.computedTravelGroupPrice(true) } }) } From d43fc253c93189df923b357c9f8261d207a7c2b5 Mon Sep 17 00:00:00 2001 From: linxi <957440651@qq.com> Date: Sat, 22 Nov 2025 15:22:46 +0800 Subject: [PATCH 31/78] =?UTF-8?q?Fix=EF=BC=9A4646=20=E3=80=90=E6=97=85?= =?UTF-8?q?=E5=B1=85=E5=95=86=E5=9F=8E=E5=B0=8F=E7=A8=8B=E5=BA=8F=E3=80=91?= =?UTF-8?q?=E5=9B=A2=E8=B4=AD=E7=A4=BC=E5=8C=85=E9=80=80=E6=AC=BE=E5=90=8E?= =?UTF-8?q?=EF=BC=8C=E6=94=B6=E7=A4=BC=E6=96=B9=E9=A2=86=E5=8F=96=E6=97=B6?= =?UTF-8?q?=E7=9A=84=E6=8F=90=E7=A4=BA=E4=BF=A1=E6=81=AF=E6=94=B9=E4=B8=BA?= =?UTF-8?q?=E2=80=9C=E7=A4=BC=E5=93=81=E5=8D=A1=E5=B7=B2=E5=A4=B1=E6=95=88?= =?UTF-8?q?=E2=80=9D=EF=BC=88iOS=E9=9C=80=E4=BF=AE=E6=94=B9=E6=8F=90?= =?UTF-8?q?=E7=A4=BA=EF=BC=8C=E5=AE=89=E5=8D=93=E9=9C=80=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E6=8F=90=E7=A4=BA=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkg_user/views/gift/components/GiftCard.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg_user/views/gift/components/GiftCard.vue b/pkg_user/views/gift/components/GiftCard.vue index 884f1d0..3038f77 100644 --- a/pkg_user/views/gift/components/GiftCard.vue +++ b/pkg_user/views/gift/components/GiftCard.vue @@ -271,11 +271,11 @@ export default { uni.reLaunch({ url: '/pkg_user/views/gift/receiveDone?obj=' + JSON.stringify(res.data) }) }).catch(() => { uni.showToast({ - title: '领取失败,请重试', + title: '礼品卡已失效', icon: 'none' }); }).finally(() => { - uni.hideLoading(); + // uni.hideLoading(); }); }, async showTips() { From b2121e71efef99c60e77c573b8e83ec5484dfd6c Mon Sep 17 00:00:00 2001 From: linxi <957440651@qq.com> Date: Sat, 22 Nov 2025 15:59:16 +0800 Subject: [PATCH 32/78] =?UTF-8?q?Fix=EF=BC=9A4628=20=E3=80=90=E6=97=85?= =?UTF-8?q?=E5=B1=85=E5=95=86=E5=9F=8E=E5=B0=8F=E7=A8=8B=E5=BA=8F=E3=80=91?= =?UTF-8?q?=E5=9B=A2=E8=B4=AD=E8=AE=A2=E5=8D=95=E6=8F=90=E4=BA=A4=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E2=80=94=E2=80=94=E8=BE=93=E5=85=A5=E6=A1=86=E5=86=85?= =?UTF-8?q?=E5=AE=B9=EF=BC=8C=E6=9C=AA=E5=9B=BA=E5=AE=9A=E4=BD=8D=E7=BD=AE?= =?UTF-8?q?=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkg_product/views/submitOrder.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg_product/views/submitOrder.vue b/pkg_product/views/submitOrder.vue index ec8de6c..c2dd0ca 100644 --- a/pkg_product/views/submitOrder.vue +++ b/pkg_product/views/submitOrder.vue @@ -1,6 +1,6 @@