页面调整
This commit is contained in:
@@ -32,8 +32,14 @@ const HomeStoreModule : Module<DesignDetail,RootState> = {
|
||||
templateImgUrl:'',
|
||||
designId:'',
|
||||
showSketchList:[],
|
||||
toProductImageList:[],
|
||||
relightList:[],
|
||||
toProductImageList:{
|
||||
list:[],
|
||||
likedList:[],
|
||||
},
|
||||
relightList:{
|
||||
list:[],
|
||||
likedList:[],
|
||||
},
|
||||
uploadElement:[],
|
||||
poseTransfer:{
|
||||
list:[],
|
||||
@@ -46,6 +52,7 @@ const HomeStoreModule : Module<DesignDetail,RootState> = {
|
||||
categoryValue:'23',
|
||||
categoryShow:false
|
||||
}],
|
||||
deReconstructionUploadImages:[],
|
||||
patternMaking3D:{
|
||||
collectionElementId:null,
|
||||
threeDSimpleId:null,
|
||||
@@ -73,9 +80,18 @@ const HomeStoreModule : Module<DesignDetail,RootState> = {
|
||||
},
|
||||
setRelightList(state,data){
|
||||
if(data.str == 'add'){
|
||||
state.relightList.unshift(...data.list)
|
||||
if(data.list){
|
||||
state.relightList.list.unshift(...data.list)
|
||||
}
|
||||
if(data.likedList){
|
||||
state.relightList.likedList.unshift(...data.likedList)
|
||||
}
|
||||
}else{
|
||||
state.relightList.splice(data.index,1)
|
||||
if(data.list){
|
||||
state.relightList.list.splice(data.index,1)
|
||||
}else if(data.likedList){
|
||||
state.relightList.likedList.splice(data.index,1)
|
||||
}
|
||||
}
|
||||
},
|
||||
setUploadElement(state,data){
|
||||
@@ -107,6 +123,12 @@ const HomeStoreModule : Module<DesignDetail,RootState> = {
|
||||
}
|
||||
}
|
||||
},
|
||||
toolsClear(state){
|
||||
state.relightList.likedList = []
|
||||
state.uploadElement = []
|
||||
state.toProductImageList.likedList = []
|
||||
state.poseTransfer.likedList = []
|
||||
},
|
||||
setDeReconstruction(state,data){
|
||||
if(data.str == 'add'){
|
||||
state.deReconstruction = []
|
||||
@@ -117,6 +139,13 @@ const HomeStoreModule : Module<DesignDetail,RootState> = {
|
||||
}else{
|
||||
state.deReconstruction.splice(data.index,1)
|
||||
}
|
||||
},
|
||||
setDeReconstructionUploadImages(state,data){
|
||||
if(data.str == 'add'){
|
||||
state.deReconstructionUploadImages.unshift(...data.list)
|
||||
}else{
|
||||
state.deReconstructionUploadImages.splice(data.index,1)
|
||||
}
|
||||
},
|
||||
setPatternMaking3D(state,data){
|
||||
for (const key in data) {
|
||||
@@ -134,9 +163,18 @@ const HomeStoreModule : Module<DesignDetail,RootState> = {
|
||||
},
|
||||
setToProductImage(state,data){
|
||||
if(data.str == 'add'){
|
||||
state.toProductImageList.unshift(...data.list)
|
||||
if(data.list){
|
||||
state.toProductImageList.list.unshift(...data.list)
|
||||
}
|
||||
if(data.likedList){
|
||||
state.toProductImageList.likedList.unshift(...data.likedList)
|
||||
}
|
||||
}else{
|
||||
state.toProductImageList.splice(data.index,1)
|
||||
if(data.list){
|
||||
state.toProductImageList.list.splice(data.index,1)
|
||||
}else if(data.likedList){
|
||||
state.toProductImageList.likedList.splice(data.index,1)
|
||||
}
|
||||
}
|
||||
},
|
||||
setDeleteDesignCollectionList(state,data){
|
||||
@@ -188,14 +226,21 @@ const HomeStoreModule : Module<DesignDetail,RootState> = {
|
||||
state.likeDesignCollectionList = []
|
||||
state.designCollectionId = ''
|
||||
state.deleteDesignCollectionList = []
|
||||
state.relightList = []
|
||||
state.relightList = {
|
||||
list:[],
|
||||
likedList:[],
|
||||
}
|
||||
state.uploadElement = []
|
||||
state.toProductImageList = []
|
||||
state.toProductImageList = {
|
||||
list:[],
|
||||
likedList:[],
|
||||
}
|
||||
state.poseTransfer = {
|
||||
list:[],
|
||||
likedList:[],
|
||||
}
|
||||
state.deReconstruction = null
|
||||
state.deReconstructionUploadImages = []
|
||||
state.patternMaking3D = {
|
||||
collectionElementId:null,
|
||||
threeDSimpleId:null,
|
||||
|
||||
Reference in New Issue
Block a user