This commit is contained in:
李志鹏
2025-10-23 17:01:13 +08:00
parent 86091b8e40
commit c1d57f2347
4 changed files with 43 additions and 25 deletions

View File

@@ -17,7 +17,13 @@ export const useGenerateStore = defineStore({
id: -1,
}
},
queryList: []
queryList: [],
/** 顾客照片信息 */
photoInfo: {
id: "",
url: "",
}
}
},
getters: {
@@ -32,7 +38,7 @@ export const useGenerateStore = defineStore({
/** 原始试穿id */
originalTryOnId: (state) => state.userData.style.id,
/** 顾客照片id */
customerPhotoId: (state) => state.userData.id,
customerPhotoId: (state) => state.photoInfo.id,
},
actions: {
selectStyle(data: any) {
@@ -54,6 +60,11 @@ export const useGenerateStore = defineStore({
selectModel(data: any) {
this.userData.model.id = data.id
console.log(this.userData)
}
},
/** 更新顾客照片信息 */
updatePhotoInfo(data: any) {
this.photoInfo.id = data.visitRecordId || ""
this.photoInfo.url = data.defaultImageUrl || ""
},
}
})