页面调整
This commit is contained in:
@@ -52,7 +52,7 @@ const DesignDetailCopy : Module<DesignDetailCopy,RootState> = {
|
||||
v.layersObject[i].designOpenrtionBtn = false
|
||||
if(v.layersObject[i].imageCategory.indexOf("back") == -1){
|
||||
front[index] = v.layersObject[i]
|
||||
front[index].style.zIndex = v.priority
|
||||
// front[index].style.zIndex = v.priority
|
||||
front[index].id = v.id
|
||||
front[index].undividedLayer = v.undividedLayer
|
||||
}else{
|
||||
@@ -206,6 +206,10 @@ const DesignDetailCopy : Module<DesignDetailCopy,RootState> = {
|
||||
}
|
||||
let el:any = document.querySelector('.molepositon .perview_img')
|
||||
await new Promise((resolve, reject) => {
|
||||
if(!state.frontBack?.body?.path){
|
||||
state.frontBack.front[0].undividedLayer = value.rv.clothes[0].undividedLayer
|
||||
resolve('')
|
||||
}
|
||||
const img = new Image();
|
||||
img.src = state.frontBack.body.path;
|
||||
img.onload = () => {
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -3,6 +3,8 @@ import {RootState} from '../index'
|
||||
import { Https } from "@/tool/https";
|
||||
import { setLang } from "@/tool/guide";
|
||||
import { setCookie } from "@/tool/cookie";
|
||||
import { useI18n } from "vue-i18n";
|
||||
|
||||
import store from '../index'
|
||||
interface UserHabit{
|
||||
clothingType:any,
|
||||
@@ -266,7 +268,7 @@ const userHabit : Module<UserHabit,RootState> = {
|
||||
if(data.systemUser != 0)state.userDetail.systemList.push(1)
|
||||
if(data.affiliate)state.userDetail.systemList.push(2)
|
||||
|
||||
let adminIdList = [88,6,46,31,73,83,87,4,11482,11630,12201,12592,23534]
|
||||
let adminIdList = [88,6,46,31,73,83,87,4,11482,11630,12201,12592,23534,23705]
|
||||
// if(data.email == '' || data.email)state.userDetail.systemList.push(3)
|
||||
if(adminIdList.indexOf(data.userId) > -1 || data.systemUser == 6 || data.systemUser == 7){
|
||||
state.userDetail.systemList.push(3)
|
||||
@@ -389,7 +391,8 @@ const userHabit : Module<UserHabit,RootState> = {
|
||||
item.value = item.name
|
||||
item.name = name
|
||||
});
|
||||
rv.unshift({name:'All',value:'',id:''})
|
||||
const {t} = useI18n()
|
||||
rv.unshift({name:t('Model.all'),value:'',id:''})
|
||||
store.commit('setMannequinStyle',rv)
|
||||
resolve('')
|
||||
}
|
||||
|
||||
@@ -16,6 +16,7 @@ const Workspace : Module<DesignDetail,RootState> = {
|
||||
workspaceSex:{},
|
||||
workspacePosition:{},
|
||||
workspaceAllPosition:{},
|
||||
openChat:false,
|
||||
probjects:{
|
||||
name:'',//项目名称
|
||||
id:'',//项目id
|
||||
@@ -53,6 +54,9 @@ const Workspace : Module<DesignDetail,RootState> = {
|
||||
// a.download = 'video.mp4'
|
||||
// a.click()
|
||||
},
|
||||
setOpenChatStatus(state,boolean){
|
||||
state.openChat = boolean
|
||||
},
|
||||
setWorkspaceSex(state,files){
|
||||
state.workspaceSex = files
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user