feat: 给艳姐增加外部链接

This commit is contained in:
kenny
2025-11-05 11:11:58 +08:00
parent d18c097f54
commit fb2e1794ca
7 changed files with 57 additions and 15 deletions
+11 -1
View File
@@ -23,7 +23,7 @@ const ReportApi = {
// data: data,
// });
return Promise.resolve({data: {}})
return Promise.resolve({ data: {} });
},
praiseTextApi: (data) => {
return request({
@@ -112,6 +112,16 @@ const ReportApi = {
method: 'get',
}),
getToken: () =>
request({
url: '/member/auth/login',
method: 'post',
data: {
mobile: '18399996666',
password: '123456',
},
}),
// https://puton.huimeimeta.com/app-api/cloth/getFaceList
};
export default ReportApi;
+10 -7
View File
@@ -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);