From 4426281ca68a21d4f01d8ded524fba609e540882 Mon Sep 17 00:00:00 2001 From: "1054425342@qq.com" <1054425342@qq.com> Date: Wed, 13 Aug 2025 13:53:23 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E8=AF=A6=E6=83=85=E5=AD=97=E6=AE=B5?= =?UTF-8?q?=E5=AF=B9=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/DynamicIsland.vue | 2 +- subPackages/equityGoods/detail.vue | 19 +++++++++++++++---- 2 files changed, 16 insertions(+), 5 deletions(-) diff --git a/components/DynamicIsland.vue b/components/DynamicIsland.vue index e1fc7a5..00cb435 100644 --- a/components/DynamicIsland.vue +++ b/components/DynamicIsland.vue @@ -150,7 +150,7 @@ export default { isExpanded: false, statusBarHeight: 0, isScrolled: false, - scrollThreshold: 140, // 灵动岛大卡片高度(160rpx) + scrollThreshold: 160, // 灵动岛大卡片高度(160rpx) // 内部数据,减少对外部props的依赖 currentTitle: "Hi!用户,欢迎回来~", currentSubtitle: "2个权益 | 120时间银行", diff --git a/subPackages/equityGoods/detail.vue b/subPackages/equityGoods/detail.vue index b5c30ee..9e198f8 100644 --- a/subPackages/equityGoods/detail.vue +++ b/subPackages/equityGoods/detail.vue @@ -179,14 +179,19 @@ v-if="currentTab === 2 && goodsInfo.sku && goodsInfo.sku.product" class="tab-panel" > - - - + + + + + + @@ -213,6 +218,7 @@ export default { tabList: [], equityList: [], goodsInfo: null, + scene:null, }; }, computed: { @@ -237,6 +243,11 @@ export default { res.data.goodsVos.forEach((element) => { element.detailUrl = this.addImgStyleToHtml(element.detailUrl); }); + if(res.data.sku){ + this.scene = JSON.parse(res.data.sku.product.scene) + this.scene.content = this.addImgStyleToHtml(this.scene.content); + } + console.log(this.scene,'场景信息') this.goodsInfo = res.data; this.goodsInfo.ipDigitalAsset.detailUrl = this.addImgStyleToHtml( this.goodsInfo.ipDigitalAsset.detailUrl @@ -283,7 +294,6 @@ export default { addImgStyleToHtml(htmlStr) { return htmlStr.replace(/]*)>/gi, (match, attrs) => { // 检查是否已有 style 属性 - console.log("====开始计算"); if (/style\s*=/.test(attrs)) { // 已有 style,合并 width:100% return `