diff --git a/src/api/workshop.ts b/src/api/workshop.ts index 291f48c..95216e2 100644 --- a/src/api/workshop.ts +++ b/src/api/workshop.ts @@ -149,4 +149,20 @@ interface AIConversation { sessionId: string | number //用户ID gender: 'male' | 'female' //性别 } -export const streamChatAddress = '/api/llm/streamChat' \ No newline at end of file +export const streamChatAddress = '/api/llm/streamChat' + +/** + * 添加试穿效果意见和建议 + * @param data 添加试穿效果意见和建议数据 + * @param data.tryOnEffectsId 试穿效果id + * @param data.visitRecordId 进店记录id + * @param data.customerId 顾客id + * @param data.suggestion 意见和建议 +*/ +export function addTryOnEffectComment(data: Object) { + return request({ + url: '/api/try-on-effects/add-comment', + method: 'post', + data, + }) +} \ No newline at end of file diff --git a/src/assets/icons/close.svg b/src/assets/icons/close.svg new file mode 100644 index 0000000..2d5c92c --- /dev/null +++ b/src/assets/icons/close.svg @@ -0,0 +1,17 @@ + + + + + + + + diff --git a/src/assets/icons/pen.svg b/src/assets/icons/pen.svg new file mode 100644 index 0000000..388e764 --- /dev/null +++ b/src/assets/icons/pen.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/assets/images/nav1.png b/src/assets/images/nav1.png new file mode 100644 index 0000000..5314681 Binary files /dev/null and b/src/assets/images/nav1.png differ diff --git a/src/assets/images/nav2.png b/src/assets/images/nav2.png new file mode 100644 index 0000000..55fa208 Binary files /dev/null and b/src/assets/images/nav2.png differ diff --git a/src/assets/images/nav3.png b/src/assets/images/nav3.png new file mode 100644 index 0000000..a300396 Binary files /dev/null and b/src/assets/images/nav3.png differ diff --git a/src/assets/images/nav4.png b/src/assets/images/nav4.png new file mode 100644 index 0000000..2c5478b Binary files /dev/null and b/src/assets/images/nav4.png differ diff --git a/src/assets/images/workshop/succeed.png b/src/assets/images/workshop/succeed.png new file mode 100644 index 0000000..2104dd3 Binary files /dev/null and b/src/assets/images/workshop/succeed.png differ diff --git a/src/router/index.ts b/src/router/index.ts index ce5cba2..9138748 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -61,6 +61,11 @@ const router = createRouter({ name: 'WelcomePage', component: () => import('@/views/login/WelcomePage.vue') }, + { + path: '/homeNav', + name: 'HomeNav', + component: () => import('@/views/Workshop/home.vue') + }, { path: '/stylist', name: 'StylistPage', diff --git a/src/stores/modules/generate.ts b/src/stores/modules/generate.ts index 4b89824..db03932 100644 --- a/src/stores/modules/generate.ts +++ b/src/stores/modules/generate.ts @@ -58,6 +58,8 @@ export const useGenerateStore = defineStore({ styleId: (state) => state.style.id || state.style.oldId, /** 模特照片id */ modelPhotoId: (state) => state.model.id, + /** 原始试穿id不包含魔改id */ + originalTryOnIdNoRein: (state) => state.originalTryOn.id, /** 原始试穿id-优先AI魔改 */ originalTryOnId: (state) => state.customizeInfo.tryOnId || state.originalTryOn.id, /** 顾客照片id */ diff --git a/src/views/Workshop/home.vue b/src/views/Workshop/home.vue new file mode 100644 index 0000000..e70121c --- /dev/null +++ b/src/views/Workshop/home.vue @@ -0,0 +1,99 @@ + + + \ No newline at end of file diff --git a/src/views/Workshop/product.vue b/src/views/Workshop/product.vue index d5df3a7..1d07efa 100644 --- a/src/views/Workshop/product.vue +++ b/src/views/Workshop/product.vue @@ -1,11 +1,11 @@