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 `![]()