feat: 给艳姐增加外部链接
This commit is contained in:
@@ -3,17 +3,18 @@ import app from './app';
|
||||
import FittingRoomApi from '../api/fittingRoom';
|
||||
import sheep from '@/sheep';
|
||||
|
||||
const _tabsMap = [undefined, 'topCloth', 'bottomCloth', 'dress', 'suit', 'hair'];
|
||||
const _tabsMap = [undefined, 'topCloth', 'bottomCloth', 'dress', 'suit', 'hair', 'hair'];
|
||||
|
||||
export const pattern = [
|
||||
{ value: 'body', label: '腰部以上' },
|
||||
{ value: 'body', label: '胸' },
|
||||
{ value: 'waist', label: '腰' },
|
||||
{ value: 'thigh', label: '跨' },
|
||||
{ value: 'thigh1', label: '大腿上部1/3' },
|
||||
{ value: 'thigh2', label: '大腿中部' },
|
||||
{ value: 'thigh1', label: '大腿' },
|
||||
// { value: 'thigh1', label: '大腿上部1/3' },
|
||||
// { value: 'thigh2', label: '大腿中部' },
|
||||
{ value: 'knee', label: '膝盖' },
|
||||
{ value: 'leg', label: '小腿' },
|
||||
{ value: 'leg1', label: '小腿上部1/3' },
|
||||
// { value: 'leg1', label: '小腿上部1/3' },
|
||||
{ value: 'foot', label: '脚踝' },
|
||||
{ value: 'mopping', label: '拖地' },
|
||||
];
|
||||
@@ -26,7 +27,7 @@ const fittingRoom = defineStore({
|
||||
modelList: [], // 模特列表
|
||||
currentModel: {},
|
||||
type: false, // true: 我的衣橱, false: 衣服库
|
||||
tab: 0, // 对应下面tabs的序号
|
||||
tab: 6, // 对应下面tabs的序号
|
||||
tabs: ['全部', '上衣', '下装', '连衣裙', '外套', '套装', '发型'],
|
||||
tabsMap: _tabsMap,
|
||||
disableTabs: [6], // 不允许上传图的tab索引
|
||||
@@ -80,7 +81,6 @@ const fittingRoom = defineStore({
|
||||
});
|
||||
this.testResults = result;
|
||||
return result;
|
||||
console.log('🚀 ~ getTestResults 🐶76 ~ httpResponse: ', httpResponse.data?.list);
|
||||
},
|
||||
|
||||
// 获取衣服类型数据查询
|
||||
@@ -120,6 +120,8 @@ const fittingRoom = defineStore({
|
||||
sheep.$helper.toast('请选择衣服');
|
||||
return;
|
||||
}
|
||||
|
||||
const fittingRoomStore = sheep.$store('fittingRoom');
|
||||
// 那改成 clothUrl 和 kuziUrl 吧,当 kuziUrl 有值时,再传个 suit: true
|
||||
const httpResponse =
|
||||
this.tab === 6
|
||||
@@ -138,6 +140,7 @@ const fittingRoom = defineStore({
|
||||
? this.currentClothes[1]?.fileUrl
|
||||
: undefined,
|
||||
suit: this.currentClothes?.[1]?.fileUrl ? true : undefined,
|
||||
cloth_len: fittingRoomStore.selectPattern,
|
||||
});
|
||||
if (httpResponse.code !== 0) {
|
||||
sheep.$helper.toast(httpResponse.msg);
|
||||
|
||||
Reference in New Issue
Block a user