fix(uploadClothes): 修复上传页面分类选择逻辑 调整上传衣服页面的分类选择逻辑,使用 uv-radio-group 实现单选功能,支持衣服类型和长度部位的选择。引入 fittingRoom store 中的 tabs 和 pattern 数据,优化用户交互体验。 chore(deps): 更新 uv-icon 和 uv-radio 组件版本更新 uv-icon 和 uv-radio 组件的 package.json 配置文件,设置版本号为1.0.13。更新 changelog 文档,记录组件的优化和 bug 修复历史。完善组件的平台兼容性配置和依赖关系。 style(components): 调整上传页面样式布局优化上传衣服页面的样式布局,新增 warp、title、container 等样式类,改善分类和长度选择区域的显示效果。调整单选框的间距和对齐方式,提升用户界面的美观性和可用性。
60 lines
1.3 KiB
Vue
60 lines
1.3 KiB
Vue
<!--
|
|
* @Author: liguigong liguigong@shopline.com
|
|
* @Date: 2025-09-26 19:17:18
|
|
* @LastEditors:
|
|
* @LastEditTime: 2025-09-27 16:38:42
|
|
* @FilePath: pages/fittingRoom/components/Clothespic.vue
|
|
* @Description: 这是默认设置,可以在设置》工具》File Description中进行配置
|
|
-->
|
|
<template>
|
|
<view class="clothes-box">
|
|
<view v-for="item in fittingRoomStore.currentClothes" class="clothes-pic">
|
|
<image class="pic" :src="item.fileUrl" mode="aspectFill"></image>
|
|
</view>
|
|
<view class="btn" @click="tryItOn">试穿</view>
|
|
</view>
|
|
</template>
|
|
<script setup>
|
|
import sheep from '@/sheep';
|
|
|
|
const fittingRoomStore = sheep.$store('fittingRoom');
|
|
function tryItOn() {
|
|
fittingRoomStore.tryOn()
|
|
}
|
|
|
|
</script>
|
|
<style lang="scss" scoped>
|
|
.clothes-box {
|
|
position: absolute;
|
|
top: 50rpx;
|
|
height: 600rpx;
|
|
right: 30rpx;
|
|
overflow: hidden;
|
|
width: 120rpx;
|
|
z-index: 200;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
.clothes-pic {
|
|
width: 120rpx;
|
|
height: 180rpx;
|
|
overflow: hidden;
|
|
margin-bottom: 16rpx;
|
|
}
|
|
.pic {
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
.btn {
|
|
height: 48rpx;
|
|
background: #000;
|
|
color: #fff;
|
|
font-size: 24rpx;
|
|
line-height: 48rpx;
|
|
text-align: center;
|
|
width: 100%;
|
|
}
|
|
</style>
|