feat(fittingRoom): 新增发型优化试穿功能并-模型选择逻辑Api 在 FittingRoom 中新增发型试穿接口 hairstyleTryOnApi

- 修改 getModelList 方法支持根据 modelId 初始化当前模型
-优化试穿逻辑,根据 tab 切换调用不同试穿接口- 页面加载时根据 URL 参数初始化模型和测试结果
-修复 swiper 组件当前索引绑定问题
-限制模型列表显示数量为 4个
- 更新 README 文档,添加发型试穿链接和测试地址
This commit is contained in:
liguigong
2025-10-13 15:21:47 +08:00
parent 8fca9979b5
commit 757b562aee
5 changed files with 64 additions and 24 deletions
@@ -24,7 +24,11 @@
>选择
</uni-file-picker>
</view>
<view v-for="item of fittingRoom.modelList" class="item" @click="switchModels(item)">
<view
v-for="item of fittingRoom.modelList.slice(0, 4)"
class="item"
@click="switchModels(item)"
>
<view class="item-text"></view>
<image :src="item.thumbnailFileUrl" class="item-image" mode="aspectFill"></image>
</view>