diff --git a/pages/report/api.js b/pages/report/api.js index 2d1f6b6..8bfce90 100644 --- a/pages/report/api.js +++ b/pages/report/api.js @@ -1,8 +1,8 @@ import { request } from "../../http/index.js"; let baseUrl = "https://llshop.zglvling.com/soapi/"; // let baseUrl = "https://test.zglvling.com/soapi/"; -// const praiseTextApi = (params) => -// request.post(baseUrl + "ai/praiseTexttwo", params); +const praiseTextApi = (params) => + request.post(baseUrl + "ai/praiseTexttwo", params); const userFaceInoApi = (params) => request.post(baseUrl + "userinfo/get_user_face_info", params); const hairstyleListApi = (params) => diff --git a/pages/report/index.vue b/pages/report/index.vue index bafdb5d..9f24cbf 100644 --- a/pages/report/index.vue +++ b/pages/report/index.vue @@ -399,16 +399,6 @@ import { faceList, shengxiaoImgList, } from "./database"; -import { - praiseTextApi, - userFaceInoApi, - exchangeHairHistoryByTaskId, - wardrobeListApi, - getStyleApi, - hairStyleListApi, - addHairApi, - getHairApi, -} from "./api"; import { uploadFormData, downloadFile, @@ -426,6 +416,16 @@ import CustomSwiper from "./component/CustomSwiper/CustomSwiper"; import SensoryTypes from "./component/FirstStyleType/SensoryTypes.vue"; import TypeOfMass from "./component/FirstStyleType/TypeOfMass.vue"; import Movementtype from "./component/FirstStyleType/Movementtype.vue"; +import ReportApi from "../../sheep/api/report"; +const { + praiseTextApi, + getStyleApi, + exchangeHairHistoryByTaskId, + wardrobeListApi, + hairStyleListApi, + addHairApi, + getHairApi, +} = ReportApi; // if ( // typeof window !== "undefined" && // /MicroMessenger/i.test(navigator.userAgent) @@ -1105,7 +1105,7 @@ const getHair = async (data) => { return res.data; }; const getUserFaceInfo = async () => { - userFaceInoApi({ openId: openId }).then(async (res) => { + getStyleApi({ openId: openId }).then(async (res) => { newColorTypeList.value = reorderByValue( colorTypeList, res?.detail?.sj_color_type diff --git a/sheep/api/report/index.js b/sheep/api/report/index.js index 2682683..b3beed5 100644 --- a/sheep/api/report/index.js +++ b/sheep/api/report/index.js @@ -1,21 +1,45 @@ import request from '@/sheep/request'; const ReportApi = { - // 查询分类列表 - getCategoryList: () => { - return request({ - url: '/product/category/list', - method: 'GET', - }); - }, - // 查询分类列表,指定编号 - getCategoryListByIds: (ids) => { - return request({ - url: '/product/category/list-by-ids', - method: 'GET', - params: { ids }, - }); - }, -}; - -export default ReportApi; + getHairApi: (data) => { + return request({ + url: '/userinfo/get_hair_data', method: 'POST', data: data, + }); + }, + addHairApi: (data) => { + return request({ + url: '/userinfo/add_hair_data', method: 'POST', data: data, + }); + }, + getStyleApi: (data) => { + return request({ + url: '/userinfo/get_user_face_info', method: 'POST', data: data, + }) + }, + praiseTextApi: (data) => { + return request({ + url: '/ai/praiseTexttwo', method: 'POST', data: data, + }) + }, + wardrobeListApi: (data) => { + return request({ + url: '/wardrobe/clothes_list', method: 'POST', data: data, + }) + }, + exchangeHairApi: (data) => { + return request({ + url: '/api/v1/test/exchangeHair', method: 'POST', data: data, + }) + }, + exchangeHairHistoryByTaskId: (data) => { + return request({ + url: '/api/v1/test/exchangeHairHistoryByTaskId', method: 'POST', data: data, + }) + }, + hairStyleListApi: (data) => { + return request({ + url: '/api/v1/test/getHairDetails', method: 'POST', data: data, + }) + } +} +export default ReportApi diff --git a/static/avantGarde.png b/static/avantGarde.png new file mode 100644 index 0000000..68185a0 Binary files /dev/null and b/static/avantGarde.png differ diff --git a/static/classical.png b/static/classical.png new file mode 100644 index 0000000..ea5d53a Binary files /dev/null and b/static/classical.png differ diff --git a/static/dramaType.png b/static/dramaType.png new file mode 100644 index 0000000..b888c9f Binary files /dev/null and b/static/dramaType.png differ diff --git a/static/elegant.png b/static/elegant.png new file mode 100644 index 0000000..c43c959 Binary files /dev/null and b/static/elegant.png differ diff --git a/static/girlShaped.png b/static/girlShaped.png new file mode 100644 index 0000000..498de47 Binary files /dev/null and b/static/girlShaped.png differ diff --git a/static/logo.png b/static/logo.png new file mode 100644 index 0000000..b5771e2 Binary files /dev/null and b/static/logo.png differ diff --git a/static/natural.png b/static/natural.png new file mode 100644 index 0000000..3963e0f Binary files /dev/null and b/static/natural.png differ diff --git a/static/reportCompleted.png b/static/reportCompleted.png new file mode 100644 index 0000000..8373bdf Binary files /dev/null and b/static/reportCompleted.png differ diff --git a/static/romantic.png b/static/romantic.png new file mode 100644 index 0000000..7c7159a Binary files /dev/null and b/static/romantic.png differ diff --git a/static/teenagerType.png b/static/teenagerType.png new file mode 100644 index 0000000..12b5b5f Binary files /dev/null and b/static/teenagerType.png differ diff --git a/static/wise.png b/static/wise.png new file mode 100644 index 0000000..a0cda7e Binary files /dev/null and b/static/wise.png differ