feat(fittingRoom): 更新试衣间图片展示逻辑并添加自定义指示器样式

- 将试衣结果图片URL从thumbnailFileUrl改为fileUrl以获取高清图- 新增自定义轮播图指示器组件及样式
- 添加指示器点击事件处理函数
- 设置激活状态下的指示器宽度和颜色变化- 调整指示器布局为水平居中对齐- 优化指示器元素间的间距与透明度设置
This commit is contained in:
liguigong
2025-10-09 10:57:35 +08:00
parent 013e9eb740
commit ea68d3235e
2 changed files with 29 additions and 1 deletions
+28
View File
@@ -23,6 +23,17 @@
/>
</view>
</template>
<template #indicator="{ currentIndex, total, handleClick }">
<view class="custom-indicators">
<view
v-for="i in total"
:key="i"
:class="{ active: currentIndex === i - 1 }"
class="custom-indicator"
@click="handleClick(i - 1)"
></view>
</view>
</template>
</hbxw-stack-carousel>
<s-select-mote />
<Clothespic />
@@ -179,4 +190,21 @@
width: 550rpx;
padding: 0 100rpx;
}
.custom-indicators {
display: flex;
justify-content: center;
align-items: center;
.custom-indicator {
width: 10rpx;
height: 1px;
opacity: 0.5;
background: #fff;
margin: 0 5rpx;
}
.active {
width: 30rpx;
height: 1px;
background: #171717;
}
}
</style>