feat(fittingRoom): 更新试衣间衣物部位选项与标签文案

- 为 pattern 中的每个对象添加尾随空格,以符合代码风格- 新增“套装”选项到 tabs 数组,并更新 disableTabs 索引- 添加 clothes 字段注释说明其用途
- 更新获取衣物列表接口地址,去除前缀 '/api'- 在 README 中新增 Figma 设计链接
```
This commit is contained in:
liguigong
2025-09-23 09:57:39 +08:00
parent dc2426936c
commit 43285ff677
3 changed files with 18 additions and 15 deletions
+2
View File
@@ -13,6 +13,8 @@ https://doc.iocoder.cn/quick-start-front/#_2-uni-app-%E5%95%86%E5%9F%8E%E7%A7%BB
https://www.kdocs.cn/l/cbQW5YSrFJP7 https://www.kdocs.cn/l/cbQW5YSrFJP7
Figma: https://www.figma.com/design/zoK4g7bB6lIn6TEvuvBIJA/%E7%BE%8E%E6%90%AD%E5%B0%8F%E7%A8%8B%E5%BA%8F?node-id=0-1&p=f&t=nAQLsfU7Pjt3uxWR-0
【云服务器】请在安全组放行 39733 端口 【云服务器】请在安全组放行 39733 端口
外网ipv4面板地址: https://42.193.102.139:39733/88f56d75 外网ipv4面板地址: https://42.193.102.139:39733/88f56d75
+2 -2
View File
@@ -2,7 +2,7 @@
* @Author: liguigong liguigong@shopline.com * @Author: liguigong liguigong@shopline.com
* @Date: 2025-09-23 09:41:10 * @Date: 2025-09-23 09:41:10
* @LastEditors: liguigong liguigong@shopline.com * @LastEditors: liguigong liguigong@shopline.com
* @LastEditTime: 2025-09-23 09:41:23 * @LastEditTime: 2025-09-23 09:44:50
* @FilePath: sheep/api/fittingRoom/index.js * @FilePath: sheep/api/fittingRoom/index.js
* @Description: 这是默认设置,可以在设置》工具》File Description中进行配置 * @Description: 这是默认设置,可以在设置》工具》File Description中进行配置
*/ */
@@ -11,7 +11,7 @@ import request from '@/sheep/request';
const FittingRoomApi = { const FittingRoomApi = {
getClothList: (data) => { getClothList: (data) => {
return request({ return request({
url: '/api/cloth/list', url: 'cloth/list',
method: 'POST', method: 'POST',
data: data, data: data,
}); });
+14 -13
View File
@@ -5,17 +5,17 @@ import FittingRoomApi from '../api/fittingRoom';
const tabsMap = [undefined, 'topCloth', 'bottomCloth', 'dress', 'suit', 'hair']; const tabsMap = [undefined, 'topCloth', 'bottomCloth', 'dress', 'suit', 'hair'];
export const pattern = [ export const pattern = [
{ value: 'body', label: '腰部以上'}, { value: 'body', label: '腰部以上' },
{ value: 'waist', label: '腰'}, { value: 'waist', label: '腰' },
{ value: 'thigh', label: '跨'}, { value: 'thigh', label: '跨' },
{ value: 'thigh1', label: '大腿上部1/3'}, { value: 'thigh1', label: '大腿上部1/3' },
{ value: 'thigh2', label: '大腿中部'}, { value: 'thigh2', label: '大腿中部' },
{ value: 'knee', label: '膝盖'}, { value: 'knee', label: '膝盖' },
{ value: 'leg', label: '小腿'}, { value: 'leg', label: '小腿' },
{ value: 'leg1', label: '小腿上部1/3'}, { value: 'leg1', label: '小腿上部1/3' },
{ value: 'foot', label: '脚踝'}, { value: 'foot', label: '脚踝' },
{ value: 'mopping', label: '拖地'}, { value: 'mopping', label: '拖地' },
] ];
const fittingRoom = defineStore({ const fittingRoom = defineStore({
id: 'fittingRoom', id: 'fittingRoom',
@@ -23,8 +23,9 @@ const fittingRoom = defineStore({
visable: false, // 上传模特, 选模特的 visable: false, // 上传模特, 选模特的
type: true, // true: 我的衣橱, false: 衣服库 type: true, // true: 我的衣橱, false: 衣服库
tab: 0, // 对应下面tabs的序号 tab: 0, // 对应下面tabs的序号
tabs: ['全部', '上衣', '下装', '连衣裙', '外套', '发型'], tabs: ['全部', '上衣', '下装', '连衣裙', '外套', '套装', '发型'],
disableTabs: [5], // 不允许上传图的tab索引 disableTabs: [6], // 不允许上传图的tab索引
clothes: [], // 接口返回的衣服数据
clothes: [], // 接口返回的衣服数据 clothes: [], // 接口返回的衣服数据
currentClothes: [], // 当前选的衣服 currentClothes: [], // 当前选的衣服
selectClothesType: 1, // 选中的衣服类型, 默认选中上衣 selectClothesType: 1, // 选中的衣服类型, 默认选中上衣