Merge branch 'master' of https://gitee.com/lvYeJu/lane-crawford-3
This commit is contained in:
@@ -16,14 +16,37 @@ export const useGenerateStore = defineStore({
|
||||
isLike: false,//是否喜欢
|
||||
},
|
||||
isGenerate: false,//点击继续按钮后是否需要生成
|
||||
/** 顾客照片信息 */
|
||||
photoInfo: {
|
||||
id: "",
|
||||
url: "",
|
||||
file: null,
|
||||
},
|
||||
/** AI魔改信息 */
|
||||
customizeInfo: {
|
||||
inputText:"",
|
||||
|
||||
tryOnId: "",
|
||||
tryOnUrl: "",
|
||||
styleUrl: "",
|
||||
isRegenerated: "",
|
||||
isFavorite: false,
|
||||
},
|
||||
}
|
||||
},
|
||||
getters: {
|
||||
customerId: (state) => state.style.id,//顾客id
|
||||
visitRecordId: (state) => state.style.id,//进店记录id
|
||||
styleId: (state) => state.style.id,//服装id
|
||||
modelPhotoId: (state) => state.model.id,//模特照片id
|
||||
originalTryOnId: (state) => state.style.id,//原始试穿id
|
||||
/** 顾客id */
|
||||
customerId: (state) => state.style.id,
|
||||
/** 进店记录id */
|
||||
visitRecordId: (state) => state.style.id,
|
||||
/** 服装id */
|
||||
styleId: (state) => state.style.id,
|
||||
/** 模特照片id */
|
||||
modelPhotoId: (state) => state.model.id,
|
||||
/** 原始试穿id */
|
||||
originalTryOnId: (state) => state.style.id,
|
||||
/** 顾客照片id */
|
||||
customerPhotoId: (state) => state.photoInfo.id,
|
||||
},
|
||||
actions: {
|
||||
selectStyle(data: any) {
|
||||
@@ -48,6 +71,21 @@ export const useGenerateStore = defineStore({
|
||||
},
|
||||
setIsGenerate(isGenerate: boolean) {
|
||||
this.isGenerate = isGenerate
|
||||
}
|
||||
},
|
||||
/** 更新顾客照片信息 */
|
||||
updatePhotoInfo(data: any) {
|
||||
this.photoInfo.id = data.visitRecordId || ""
|
||||
this.photoInfo.url = data.defaultImageUrl || ""
|
||||
this.photoInfo.file = null
|
||||
},
|
||||
/** 更新AI魔改信息 */
|
||||
clearCustomizeInfo(data: any) {
|
||||
this.customizeInfo.inputText = data.inputText || ""
|
||||
this.customizeInfo.tryOnId = data.tryOnId || ""
|
||||
this.customizeInfo.tryOnUrl = data.tryOnUrl || ""
|
||||
this.customizeInfo.styleUrl = data.styleUrl || ""
|
||||
this.customizeInfo.isRegenerated = data.isRegenerated || ""
|
||||
this.customizeInfo.isFavorite = data.isFavorite || ""
|
||||
},
|
||||
}
|
||||
})
|
||||
})
|
||||
Reference in New Issue
Block a user