Files
aida_front/src/views/HomeView/HomeView.vue

2044 lines
58 KiB
Vue
Raw Normal View History

2023-01-06 16:00:15 +08:00
<template>
2024-03-21 10:49:21 +08:00
<div class="home_page">
<!-- <HeaderComponent></HeaderComponent> -->
<!-- <generalCanvas></generalCanvas> -->
2023-07-26 15:54:34 +08:00
<div class="page_content">
2024-12-31 11:49:14 +08:00
<div class="userSystem" v-if="userDetail.systemList.indexOf(1) == -1">
2024-12-18 17:38:43 +08:00
You can use these features only after becoming a regular user~
</div>
2023-07-26 15:54:34 +08:00
<!-- <img class="page_content_bg" src="@/assets/images/homePage/bg.png" /> -->
<div class="page_content_body">
<div class="home_page_body">
2024-12-11 16:26:36 +08:00
<div class="home_page_left" ref="hidden">
2025-01-07 17:15:28 +08:00
<div class="home_page_left_content" :class="{'active':(domHidden)}">
2023-07-26 15:54:34 +08:00
<!-- 空状态 start-->
<div class="home_left_null" v-show="!isHaveReviewCollection">
<div>
<!-- <img
2023-01-06 16:00:15 +08:00
class="home_null_icon"
src="@/assets/images/homePage/null_img.png"
2023-07-26 15:54:34 +08:00
/> -->
2023-11-28 16:21:00 +08:00
<div id="Guide_1_1" class="new_collection_button Guide_1_1" @click="startNewCollection()">
2023-10-30 17:26:36 +08:00
{{ $t('HomeView.GetStarted') }}
2023-07-26 15:54:34 +08:00
</div>
</div>
<div class="is_finish_loading" v-show="isFinishLoading">
<a-spin size="large"></a-spin>
</div>
</div>
<!-- 空状态 end-->
<!-- 有图状态 start-->
<div class="home_left_info" v-show="isHaveReviewCollection">
2023-01-06 16:00:15 +08:00
<div class="left_info_top">
2024-05-28 11:22:16 +08:00
<!-- <div class="button_second" @click="startNewCollection()">
2023-10-30 17:26:36 +08:00
{{ $t('HomeView.Start') }}
2024-05-28 11:22:16 +08:00
</div> -->
2024-12-11 16:26:36 +08:00
<div class="gallery_btn white button_margin" @click="recollection()">
2023-10-30 17:26:36 +08:00
{{ $t('HomeView.Edit') }}
2023-07-26 15:54:34 +08:00
</div>
2024-12-11 16:26:36 +08:00
<div class="gallery_btn white button_margin" @click="resetCollection()">
2024-05-27 17:57:37 +08:00
{{ $t('HomeView.Reset') }}
</div>
2023-01-06 16:00:15 +08:00
</div>
<div class="left_info_content scroll_style">
<div class="left_info_content_body" ref="collection_canvas">
2023-07-26 15:54:34 +08:00
<NewCollectionReview id="collectionReview"></NewCollectionReview>
2023-11-13 09:52:57 +08:00
<!-- <ExportNewCoolection id="exportNewCoolection"></ExportNewCoolection> -->
2023-07-26 15:54:34 +08:00
</div>
</div>
2023-12-19 16:36:48 +08:00
<div v-show="isMannequinShow" class="left_info_hint">
<span class="icon iconfont icon-zhuyi"></span>
<span>{{ $t('HomeView.masnnequinHint') }}</span>
</div>
2023-07-26 15:54:34 +08:00
</div>
<!-- 有图状态 end-->
2024-12-11 16:26:36 +08:00
</div>
2025-01-07 17:15:28 +08:00
<div class="home_page_left_bottom" @click="setShowHide('domHidden')" >
2024-12-11 16:26:36 +08:00
<span class="icon iconfont icon-xiala" :class="{'active':domHidden}"></span>
2023-07-26 15:54:34 +08:00
</div>
</div>
<div class="home_page_right">
<div class="right_top">
2024-12-11 16:26:36 +08:00
<!-- <div class="right_top" ref="hidden" :class="{'active':domHidden}"> -->
2023-07-26 15:54:34 +08:00
<div class="right_top_left">
2024-12-11 16:26:36 +08:00
<div class="gallery_btn white Guide_1_15" @click="designNewCollection()">
2023-10-30 17:26:36 +08:00
{{ $t('HomeView.Design') }}
2023-07-26 15:54:34 +08:00
</div>
2024-12-11 16:26:36 +08:00
<div class="gallery_btn white button_margin_14 Guide_1_30" v-show="designCollectionId"
2023-07-26 15:54:34 +08:00
@click="resDesignCollection()">
2023-10-30 17:26:36 +08:00
{{ $t('HomeView.Redesign') }}
2023-07-26 15:54:34 +08:00
</div>
2024-12-11 16:26:36 +08:00
<div class="silder button_margin_14" v-show="designCollectionId">
<div class="text">Small</div>
2025-01-10 15:26:10 +08:00
<a-slider
2024-12-11 16:26:36 +08:00
class="system_silder"
v-model:value="collValue"
2025-01-10 15:26:10 +08:00
:min="minCollValue"
:max="maxCollValue-1"
2024-12-19 17:59:00 +08:00
@afterChange="setSystemDesigner(500)"
2024-12-11 16:26:36 +08:00
:tooltipVisible="false"
>
</a-slider>
<div class="text">Big</div>
</div>
2024-12-18 17:38:43 +08:00
<div v-show="designCollectionId" class="gallery_btn Guide_1_31" style="margin-left: auto" @click="exportModel()">
2024-12-11 16:26:36 +08:00
<!-- {{ $t('HomeView.Export') }} -->
{{$t('HomeView.FinalizeCollection')}}
</div>
2023-07-26 15:54:34 +08:00
</div>
</div>
2024-12-31 11:40:40 +08:00
<div class="right_content_block_box">
2025-01-07 17:15:28 +08:00
<div class="right_content_block" @mouseenter="mouseenter($event,'like')">
2025-01-02 11:47:09 +08:00
2023-07-26 15:54:34 +08:00
2024-12-31 11:40:40 +08:00
<div class="right_content_body">
2025-01-02 11:47:09 +08:00
<div class="right_content_header">
<div class="content_header_left">
<i class="fi fi-rs-comments"></i><span class="content_header_des">
2025-01-07 17:15:28 +08:00
{{ $t('HomeView.SelectedDesign') }}
2025-01-02 11:47:09 +08:00
</span>
</div>
</div>
2024-12-31 11:40:40 +08:00
<div class="right_content_img_block scroll_style Guide_1_17 active" :class="[driver__.driver?'showEvents':'']">
2025-01-10 15:26:10 +08:00
<div class="right_content_img_item" ref="likeItemDom" designType="like" :index="0">
2024-12-11 16:26:36 +08:00
2025-01-10 15:26:10 +08:00
<div class="content_img_block content_img_GetWidth active" :style="likeStyle"
2024-12-31 11:40:40 +08:00
v-for="(design, index) in likeDesignCollectionList" :key="design.id"
2025-01-10 15:26:10 +08:00
@mousedown.stop="designMousedown(getMousePosition($event,false),design.userLikeSortId,'like')"
@touchstart.passive="designMousedown(getMousePosition($event,true),design.userLikeSortId,'like')"
2024-12-31 11:40:40 +08:00
@click="designDetail(
2023-12-08 16:27:35 +08:00
design,
index,
2024-12-31 11:40:40 +08:00
likeDesignCollectionList,
'like'
)">
<div class="content_img_flex">
<img class="content_img" :src="design.designOutfitUrl"
:key="design.designOutfitUrl" designType="like" :index="index"/>
</div>
<div class="icon iconfont icon-jushoucanggift icon_like" @click.stop="
dislikeDesignCollection(
2023-11-24 16:18:44 +08:00
design,
index
2024-12-31 11:40:40 +08:00
)">
2023-11-24 16:18:44 +08:00
</div>
2024-12-31 11:40:40 +08:00
</div>
2025-01-07 17:15:28 +08:00
2024-12-31 11:40:40 +08:00
2023-07-26 15:54:34 +08:00
</div>
</div>
</div>
</div>
2025-01-07 17:15:28 +08:00
<div class="right_content_block recycleBin" @mouseenter="mouseenter($event,'recycle')" :class="{recycleBinShow:recycleDomHidden}">
2024-12-31 11:40:40 +08:00
<div class="right_content_body">
2025-01-02 11:47:09 +08:00
<div class="right_content_header">
<div class="content_header_left">
<i class="fi fi-rs-comments"></i><span class="content_header_des">
2025-01-07 17:15:28 +08:00
{{ $t('HomeView.GeneratedDesign') }}
2025-01-02 11:47:09 +08:00
</span>
</div>
</div>
2024-12-31 11:40:40 +08:00
<div class="right_content_img_block scroll_style">
2025-01-10 15:26:10 +08:00
<div class="right_content_img_item" ref="collItemDom" designType="dislike" :index="0">
2025-01-07 17:15:28 +08:00
<!-- <div class="content_img_block" v-for="(
2024-12-31 11:40:40 +08:00
design, index
) in deleteDesignCollectionList" :key="design?.designItemId">
<div class="content_img_flex"
@click="
designDetail(
design,
index,
designCollectionList,
'dislike'
)">
<img class="content_img" :src="design.designOutfitUrl" />
</div>
<div class="Dustbin" @click.stop="
cancelDeleteDesign(index)">
Dustbin
</div>
2025-01-07 17:15:28 +08:00
</div> -->
2025-01-10 15:26:10 +08:00
<div class="content_img_block" v-show="showDesignMark" :style="collStyle">
2025-01-07 17:15:28 +08:00
<a-spin size="large" class="content_img_flex"></a-spin>
2023-10-11 17:34:14 +08:00
</div>
2025-01-07 17:15:28 +08:00
<div class="content_img_block content_img_GetWidth" v-for="(
design, index
2025-01-10 15:26:10 +08:00
) in designCollectionList" :key="design?.designItemId" :style="collStyle">
2025-01-07 17:15:28 +08:00
<div class="content_img_flex"
:class="[(driver__.driver && driver__.index == 32)?'hideEvents':'']"
2025-01-10 15:26:10 +08:00
@mousedown.stop="designMousedown(getMousePosition($event,false),design.designItemId,'disLike')"
@touchstart.passive="designMousedown(getMousePosition($event,true),design.designItemId,'disLike')"
2025-01-07 17:15:28 +08:00
@click="
designDetail(
design,
index,
designCollectionList,
'dislike'
)">
<img class="content_img" :src="design.designOutfitUrl" designType="dislike" :index="index"/>
</div>
<div class="icon iconfont icon-jushoucang icon_like" :class="[driver__.driver?index == 0?driver__.index == 32?'Guide_img showEvents':'':'':'']" @click.stop="
likeDesignCollection(
design,
index
)
">
</div>
2025-01-10 15:26:10 +08:00
<!-- <i class="fi fi-rr-trash icon_delete" @click.stop="
2025-01-07 17:15:28 +08:00
setDeleteDesign(index)">
2025-01-10 15:26:10 +08:00
</i> -->
2025-01-07 17:15:28 +08:00
</div>
2023-07-26 15:54:34 +08:00
</div>
</div>
2023-01-06 16:00:15 +08:00
</div>
2024-12-31 11:40:40 +08:00
</div>
<div class="home_page_left_bottom" :class="{active:recycleDomHidden}" @click="setShowHide('recycleDomHidden')" v-show="designCollectionId">
<span class="icon iconfont icon-xiala" :class="{'active':recycleDomHidden}"></span>
</div>
2023-07-26 15:54:34 +08:00
</div>
2024-12-31 11:40:40 +08:00
2023-07-26 15:54:34 +08:00
</div>
</div>
</div>
</div>
2024-04-15 16:09:33 +08:00
<KeepAlive>
2024-09-27 16:31:33 +08:00
<CollectionModal :getDesignData="getDesignData" ref="collectionModal" @finishCollection="finishCollection()"></CollectionModal>
2024-04-15 16:09:33 +08:00
</KeepAlive>
2024-06-01 10:02:21 +08:00
<productImg ref="productImg" @setTask="setTask"></productImg>
2023-07-26 15:54:34 +08:00
<DesignDetail ref="designDetail" @finishRedesign="finishRedesign"></DesignDetail>
<ExportNewCoolection id="exportNewCoolection"></ExportNewCoolection>
2024-12-11 16:26:36 +08:00
2023-07-26 15:54:34 +08:00
<!-- 导出缩略图的蒙层 start-->
2024-06-17 11:32:31 +08:00
<div class="mark_loading" v-show="isShowMark || getLangIsShowMark">
2023-07-26 15:54:34 +08:00
<a-spin size="large" />
</div>
<!-- 导出缩略图的蒙层 end-->
<!-- design collection的进度蒙层 start-->
2024-12-11 16:26:36 +08:00
<!-- <div class="progress_mark" v-show="showDesignMark">
2023-11-28 17:07:38 +08:00
<div class="mark_content Guide_1_16">
2023-09-25 10:09:00 +08:00
<a-progress type="circle" :percent="designProgress" strokeColor="#341e57" :width="200" />
2023-07-26 15:54:34 +08:00
<div>
<a-spin :indicator="indicator" />
</div>
</div>
2024-12-11 16:26:36 +08:00
</div> -->
2023-07-26 15:54:34 +08:00
<!-- design collection的进度蒙层 end-->
2024-01-05 16:49:49 +08:00
<affiche ref="affiche"></affiche>
2025-01-14 11:02:32 +08:00
<!-- <tesst></tesst> -->
2023-09-25 10:09:00 +08:00
2024-11-22 09:20:25 +08:00
</div>
2023-01-06 16:00:15 +08:00
</template>
<script lang="ts">
2024-12-31 11:40:40 +08:00
import { defineComponent, h, ref, computed, reactive, toRefs, inject,provide,nextTick,createVNode,onBeforeUnmount, toRef} from "vue";
2024-02-23 14:32:33 +08:00
// import { ExclamationCircleOutlined } from '@ant-design/icons-vue';
2024-03-21 10:49:21 +08:00
// import HeaderComponent from "@/component/HomePage/Header.vue";
2023-07-26 15:54:34 +08:00
import CollectionModal from "@/component/HomePage/collectionModal.vue";
2024-11-22 09:20:25 +08:00
import tesst from "@/component/Canvas/test.vue";
2023-07-26 15:54:34 +08:00
import NewCollectionReview from "@/component/HomePage/NewCollectionReview.vue";
import ExportNewCoolection from "@/component/HomePage/ExportNewCoolection.vue";
2024-06-01 10:02:21 +08:00
import productImg from "@/component/HomePage/productImg.vue";
import generalCanvas from "@/component/modules/generalCanvas.vue";
2024-01-05 16:49:49 +08:00
import affiche from "@/component/HomePage/affiche.vue";
2023-07-26 15:54:34 +08:00
import DesignDetail from "@/component/Detail/DesignDetail.vue";
import html2canvas from "html2canvas";
2024-01-05 16:49:49 +08:00
import { message,Modal } from "ant-design-vue";
2023-07-26 15:54:34 +08:00
import { useStore } from "vuex";
2023-01-06 16:00:15 +08:00
import { Https } from "@/tool/https";
2023-11-22 09:37:30 +08:00
import { openGuide,driverObj__ } from "@/tool/guide";
2024-05-28 11:22:16 +08:00
import { LoadingOutlined ,ExclamationCircleOutlined} from "@ant-design/icons-vue";
2024-03-21 10:49:21 +08:00
// import JSZip, { forEach } from "jszip";
2023-10-11 17:34:14 +08:00
import { setCookie, getCookie, WriteCookie } from "@/tool/cookie";
2023-10-30 17:26:36 +08:00
import i18n from "@/lang";
import { useI18n } from "vue-i18n";
2024-12-31 11:40:40 +08:00
import { getMousePosition } from "@/tool/mdEvent";
2025-01-07 17:15:28 +08:00
import { removeClass } from "element-plus/es/utils";
2023-07-26 15:54:34 +08:00
const FileSaver = require("file-saver");
2023-01-06 16:00:15 +08:00
export default defineComponent({
2024-12-19 17:59:00 +08:00
name: "homePage",
2023-07-26 15:54:34 +08:00
components: {
2024-03-21 10:49:21 +08:00
// HeaderComponent,
2024-11-22 09:20:25 +08:00
tesst,
2023-07-26 15:54:34 +08:00
CollectionModal,
NewCollectionReview,
DesignDetail,
ExportNewCoolection,
2024-01-05 16:49:49 +08:00
affiche,
productImg,
generalCanvas
2023-07-26 15:54:34 +08:00
},
2024-06-17 11:32:31 +08:00
props:{
getLangIsShowMark:{
type:Boolean,
}
},
2024-12-19 17:59:00 +08:00
activated() {
},
deactivated() {
},
2024-03-22 12:01:11 +08:00
setup(props,{emit}) {
2023-07-26 15:54:34 +08:00
const store = useStore();
let likeDesignCollectionList: any = computed(() => {
return store.state.HomeStoreModule.likeDesignCollectionList;
});
2024-12-31 11:40:40 +08:00
let deleteDesignCollectionList: any = computed(() => {
return store.state.HomeStoreModule.deleteDesignCollectionList;
});
2023-07-26 15:54:34 +08:00
let designCollectionList: any = computed(() => {
return store.state.HomeStoreModule.designCollectionList;
});
2024-12-18 17:38:43 +08:00
let userDetail= computed(()=>{
return store.state.UserHabit.userDetail
})
2023-07-26 15:54:34 +08:00
let userGroupId: any = computed(() => {
return store.state.HomeStoreModule.userGroupId;
}); //模特id //当likeDesignCollectionList长度为0时清空startdesign时清空
2024-10-09 15:45:17 +08:00
let setPortfolio = (data:any)=>{
portfolio.value = data
2024-07-08 09:42:21 +08:00
}
2024-10-09 15:45:17 +08:00
provide('setPortfolio',setPortfolio)
2023-07-26 15:54:34 +08:00
let designCollectionId: any = computed(() => {
return store.state.HomeStoreModule.designCollectionId;
});
let designId: any = computed(() => {
return store.state.HomeStoreModule.designId;
});
2023-09-25 10:09:00 +08:00
let contentImgMax = {
width:'',
height:'',
}
let contentImg = {
width:'',
height:'',
}
2023-11-13 09:52:57 +08:00
let exportNav = ref([
{
name:useI18n().t('HomeView.moodboard'),
change:true,
noChange:true,
value:'moodboardFiles',
},{
name:useI18n().t('HomeView.printboard'),
change:true,
noChange:false,
value:'printboardFiles',
},{
name:useI18n().t('HomeView.colorboard'),
change:true,
noChange:false,
value:'colorBoards',
},{
name:useI18n().t('HomeView.sketchboard'),
change:true,
noChange:false,
value:'sketchboardFiles',
},{
name:useI18n().t('HomeView.mannequins'),
change:true,
noChange:true,
value:'',
},
])
provide('exportNav',exportNav)
let isShowOperate = ref(false)
2023-10-30 17:26:36 +08:00
let {t} = useI18n()
2023-11-24 16:18:44 +08:00
let driver__:any = computed(()=>{
return store.state.Guide.guide
})
let likeDesignItemIdList = ref([])
2023-12-19 16:36:48 +08:00
let workspacePosition:any = computed(()=>{
return store.state.Workspace.workspacePosition
})
let allBoardData:any = computed(()=>{
return store.state.UploadFilesModule.allBoardData})
let isMannequinShow = ref(false)
2024-09-02 12:26:35 +08:00
let chooseIsDesign:any = computed(()=>{
return store.state.UploadFilesModule.chooseIsDesign})
2024-10-09 15:45:17 +08:00
let portfolio:any = ref({})
provide('portfolio',portfolio)
2025-01-10 15:26:10 +08:00
let showDesignMark = ref(false)
2024-12-11 16:26:36 +08:00
const collItemSize = reactive({
2025-01-10 15:26:10 +08:00
collValue:JSON.parse(sessionStorage.getItem('collValue') as any) || 3,
minCollValue:4,
maxCollValue:20,
likeStyle:{
width:'240px',
height:'370px',
position:'absolute',
},
2024-12-11 16:26:36 +08:00
collStyle:{
2025-01-10 15:26:10 +08:00
width:'0',
height:'0',
position:'absolute',
},
itemStyle:{
width:0,
height:0,
2024-12-11 16:26:36 +08:00
},
2025-01-10 15:26:10 +08:00
scale:[1,1.54],
2024-12-11 16:26:36 +08:00
collTime:null as any,
2025-01-10 15:26:10 +08:00
isMove:false,
2024-12-11 16:26:36 +08:00
})
2025-01-10 15:26:10 +08:00
const posiitonData = ref({
likeElList:[] as any,
likeSelectIndex:0,
generateElList:[] as any,
generateSelectIndex:0,
})
let likeItemDom = ref()
let collItemDom = ref()
2024-12-31 11:40:40 +08:00
let domHidden = ref(JSON.parse(sessionStorage.getItem('domHidden') as any) || false);
2025-01-13 17:10:41 +08:00
let recycleDomHidden = ref(false);
2025-01-15 11:23:23 +08:00
if(designCollectionList.value.length>0){
recycleDomHidden.value = JSON.parse(sessionStorage.getItem('recycleDomHidden') as any) || false
2025-01-13 17:10:41 +08:00
}
2024-12-31 11:40:40 +08:00
let getDesignTime = null as any;
2024-12-19 17:59:00 +08:00
const setSystemDesigner = (time:any)=>{
2024-12-11 16:26:36 +08:00
clearTimeout(collItemSize.collTime)
collItemSize.collTime = setTimeout(()=>{
2025-01-07 17:15:28 +08:00
nextTick(()=>{
2025-01-10 15:26:10 +08:00
let parentWidth = likeItemDom.value.parentElement.offsetWidth
collItemSize.minCollValue = collItemSize.maxCollValue - Math.round(likeItemDom.value.parentElement.offsetWidth/120)
collItemSize.collValue = collItemSize.collValue<collItemSize.minCollValue?collItemSize.minCollValue:collItemSize.collValue
2025-01-07 17:15:28 +08:00
2025-01-10 15:26:10 +08:00
let value = collItemSize.maxCollValue - collItemSize.collValue
collItemSize.itemStyle.width = (parentWidth - (value * 10)) / value
collItemSize.itemStyle.height = collItemSize.itemStyle.width * 1.54
collItemSize.collStyle.width = (collItemDom.value.offsetWidth - 30) / 3 * collItemSize.scale[0] + 'px'
collItemSize.collStyle.height = (collItemDom.value.offsetWidth - 30) / 3 * collItemSize.scale[1] + 'px'
2025-01-07 17:15:28 +08:00
2025-01-10 15:26:10 +08:00
collItemSize.likeStyle.width = collItemSize.itemStyle.width + 'px'
collItemSize.likeStyle.height = collItemSize.itemStyle.height + 'px'
let elArr = likeItemDom.value.children
posiitonData.value.likeElList = []
for(let i = 0;i < elArr.length;i++){
posiitonData.value.likeElList.push({
el: elArr[i],
sort: likeDesignCollectionList.value[i].sort - 1,
index: i,
userLikeSortId:likeDesignCollectionList.value[i].userLikeSortId
});
}
moveItem('like')
2024-12-27 14:38:21 +08:00
})
2025-01-07 17:15:28 +08:00
},time)
2024-12-27 14:38:21 +08:00
}
2025-01-15 11:23:23 +08:00
const setDesignItemStyle = ()=>{
posiitonData.value.generateElList = []
let elArr = collItemDom.value.querySelectorAll('.content_img_GetWidth')
designCollectionList.value.forEach((item:any,index:any)=>{
posiitonData.value.generateElList.push({
el: elArr[index],
sort: designCollectionList.value.length - index - 1,
index: designCollectionList.value.length - index - 1,
userLikeSortId:item.designItemId
});
})
}
2025-01-10 15:26:10 +08:00
2024-12-31 11:40:40 +08:00
const setDeleteDesign = (index:any)=>{
store.commit("setDeleteDesignCollectionList",index);
}
const cancelDeleteDesign = (index:any)=>{
store.commit("cancelDeleteDesignCollectionList",index);
}
2025-01-10 15:26:10 +08:00
const designMousedown = (e:any,Id:number,str:string)=>{
if(str != 'like' && showDesignMark.value) return
let arr = str == 'like'? posiitonData.value.likeElList:posiitonData.value.generateElList
2025-01-13 11:31:19 +08:00
let item:any = arr.filter((item:any)=>item.userLikeSortId == Id)[0]
2025-01-10 15:26:10 +08:00
item.el.style.zIndex = 2;
item.el.style.transition = 'all 0s';
let startX = e.clientX,
startY = e.clientY,
left = item.el.offsetLeft,
top = item.el.offsetTop;
collItemSize.isMove = false
let moveFun = (e:any) => {
collItemSize.isMove = true
let X = e.clientX - startX + left;
let Y = e.clientY - startY + top;
item.el.style.left = `${X}px`;
item.el.style.top = `${Y}px`;
reRange(item, X, Y,str);
};
let mouseUpFun = ()=>{
document.removeEventListener('mousemove',mouseMove)
document.removeEventListener('touchmove',touchmove)
2024-12-31 11:40:40 +08:00
2025-01-10 15:26:10 +08:00
document.removeEventListener('mouseup',mouseUpFun)
document.removeEventListener('touchend',mouseUpFun)
item.el.style.zIndex = 1;
item.el.style.transition = 'top,left .5s';
moveItem(str);
if(str == 'like')sortDesignCollection()
2024-12-31 11:40:40 +08:00
}
2025-01-10 15:26:10 +08:00
let mouseMove = function(event:any){
let e = getMousePosition(event,false)
moveFun(e)
2024-12-31 11:40:40 +08:00
}
2025-01-10 15:26:10 +08:00
let touchmove = function(event:any){
let e = getMousePosition(event,true)
moveFun(e)
}
document.addEventListener('mousemove',mouseMove)
document.addEventListener('touchmove',touchmove)
document.addEventListener('mouseup',mouseUpFun)
document.addEventListener('touchend',mouseUpFun)
2025-01-07 17:15:28 +08:00
}
//排序 从大到小
const sortDesignCollection = ()=> {
let arrData:any = []
2025-01-10 15:26:10 +08:00
likeDesignCollectionList.value.forEach((likeItem:any)=>{
let item = posiitonData.value.likeElList.filter((item:any)=>item.userLikeSortId == likeItem.userLikeSortId)[0]
likeItem.sort = item.sort + 1
2025-01-07 17:15:28 +08:00
let obj = {
2025-01-10 15:26:10 +08:00
id:likeItem.userLikeSortId,
"sort": item.sort + 1,
"userLikeGroupId": likeItem.userLikeGroupId,
"userLikeId": likeItem.id
2025-01-07 17:15:28 +08:00
}
arrData.push(obj)
})
let data = {
"userLikeGroupId": userGroupId.value,
"userLikeSortList": arrData
}
Https.axiosPost(Https.httpUrls.designSort, data).then((rv:any)=>{
})
}
const mouseenter = (e:any,str:string)=>{
2025-01-10 15:26:10 +08:00
}
const reRange = (item:any, x:number, y:number,str:string)=>{
let elList = str == 'like'? posiitonData.value.likeElList:posiitonData.value.generateElList
let index = str == 'like'?posiitonData.value.likeSelectIndex:posiitonData.value.generateSelectIndex
let value = collItemSize.maxCollValue - collItemSize.collValue
let width,height,num
if(str == 'like'){
num = value
width = collItemSize.itemStyle.width
height = collItemSize.itemStyle.height
}else{
num = 3
width = (collItemDom.value.offsetWidth - 30) / 3 * collItemSize.scale[0]
height = (collItemDom.value.offsetWidth - 30) / 3 * collItemSize.scale[1]
}
let moveIndex = Math.round(x / (width + 10)) + Math.round(y / (height + 10)) * num;
moveIndex = elList.length - 1 - moveIndex
moveIndex = moveIndex < 0 ? 0 : moveIndex;
moveIndex = moveIndex > elList.length - 1 ? elList.length - 1 : moveIndex;
if(moveIndex != index){
if(str == 'like'){
posiitonData.value.likeSelectIndex = moveIndex;
}else{
posiitonData.value.generateSelectIndex = moveIndex;
}
let currentSort = item.sort;
for(let i = 0;i < elList.length;i++){
if(currentSort < moveIndex){
if(elList[i].sort > currentSort && elList[i].sort <= moveIndex){
elList[i].sort -= 1;
};
}else if(currentSort > moveIndex){
if(elList[i].sort < currentSort && elList[i].sort >= moveIndex){
elList[i].sort += 1;
};
}
};
elList[item.index].sort = moveIndex;
moveItem(str);
}
}
const setLikeDislLike = (str:string,value:any)=>{
posiitonData.value.likeSelectIndex = 0
nextTick(()=>{
if(str == 'like'){
let elArr = likeItemDom.value.children
posiitonData.value.likeElList.push({
el: elArr[0],
sort: value.sort - 1,
index: value.sort - 1,
userLikeSortId:value.userLikeSortId
});
let collItem = posiitonData.value.generateElList.filter((item:any)=>item.userLikeSortId == value.designItemId)[0]
posiitonData.value.generateElList = posiitonData.value.generateElList.filter((item:any)=>item.userLikeSortId != value.designItemId)
posiitonData.value.generateElList.forEach((item:any)=>{
if(item.sort > collItem.sort){
item.sort-=1
}
})
}else if(str == 'disLike'){
let elArr = collItemDom.value.querySelectorAll('.content_img_GetWidth')
posiitonData.value.likeElList = posiitonData.value.likeElList.filter((item:any)=>(item.sort + 1) != value.sort)
posiitonData.value.likeElList.forEach((item:any)=>{
if(item.sort > value.sort - 1){
item.sort-=1
}
})
posiitonData.value.generateElList.push({
el: elArr[elArr.length-1],
sort: posiitonData.value.generateElList.length,
index: posiitonData.value.generateElList.length,
userLikeSortId:value.designItemId
});
}
moveItem('like');
// moveItem('disLike');
})
}
//排列
const moveItem = (str:any)=>{
let elLikeList = posiitonData.value.likeElList
let generateElList = posiitonData.value.generateElList
let value = collItemSize.maxCollValue - collItemSize.collValue
let width,height
width = (collItemDom.value.offsetWidth - 30) / 3 * collItemSize.scale[0]
height = (collItemDom.value.offsetWidth - 30) / 3 * collItemSize.scale[1]
// let num = str == 'like'?value:3
for(let i = 0;i < elLikeList.length;i++){
elLikeList[i].el.style.left = (elLikeList.length - 1 - elLikeList[i].sort) % value * (collItemSize.itemStyle.width +10) + 'px';
2025-01-13 11:31:19 +08:00
elLikeList[i].el.style.top = parseInt(String((elLikeList.length - 1 - elLikeList[i].sort) / value)) * (collItemSize.itemStyle.height +10) + 'px';
2025-01-10 15:26:10 +08:00
}
for(let i = 0;i < generateElList.length;i++){
generateElList[i].el.style.left = (generateElList.length - 1 - generateElList[i].sort) % 3 * (width +10) + 'px';
2025-01-13 11:31:19 +08:00
generateElList[i].el.style.top = parseInt(String((generateElList.length - 1 - generateElList[i].sort) / 3)) * (height +10) + 'px';
2025-01-10 15:26:10 +08:00
}
2025-01-07 17:15:28 +08:00
}
2023-07-26 15:54:34 +08:00
return {
store,
likeDesignCollectionList,
2024-12-31 11:40:40 +08:00
deleteDesignCollectionList,
2023-07-26 15:54:34 +08:00
designCollectionList,
userGroupId,
2024-12-18 17:38:43 +08:00
userDetail,
2024-10-09 15:45:17 +08:00
setPortfolio,
2023-07-26 15:54:34 +08:00
designCollectionId,
designId,
2023-09-25 10:09:00 +08:00
contentImgMax,
contentImg,
2023-11-13 09:52:57 +08:00
exportNav,
isShowOperate,
2023-10-30 17:26:36 +08:00
t,
driver__,
2023-12-19 16:36:48 +08:00
likeDesignItemIdList,
workspacePosition,
allBoardData,
isMannequinShow,
2024-07-14 12:06:54 +08:00
chooseIsDesign,
2024-10-09 15:45:17 +08:00
portfolio,
2024-12-11 16:26:36 +08:00
setSystemDesigner,
2025-01-15 11:23:23 +08:00
setDesignItemStyle,
2025-01-10 15:26:10 +08:00
showDesignMark,
2024-12-11 16:26:36 +08:00
...toRefs(collItemSize),
2025-01-10 15:26:10 +08:00
likeItemDom,
collItemDom,
2024-12-31 11:40:40 +08:00
domHidden,
recycleDomHidden,
getDesignTime,
setDeleteDesign,
cancelDeleteDesign,
designMousedown,
2025-01-07 17:15:28 +08:00
sortDesignCollection,
2024-12-31 11:40:40 +08:00
getMousePosition,
2025-01-07 17:15:28 +08:00
mouseenter,
2025-01-10 15:26:10 +08:00
setLikeDislLike,
posiitonData,
moveItem
2023-07-26 15:54:34 +08:00
};
},
data() {
return {
isHaveReviewCollection: false,
isFinishLoading: false,
isShowMark: false, //导出的loading蒙层
indicator: h(LoadingOutlined, {
style: {
fontSize: "4.8rem",
marginTop: "3rem",
2023-09-25 10:09:00 +08:00
color:"#341e57",
2023-07-26 15:54:34 +08:00
},
spin: true,
}),
designProgress: 0,
startDesignType: "design", //设计类型 design 和 resdesign
disLikeLoading: false, //不喜欢防抖
likeLoading: false, //喜欢防抖
2023-10-11 17:34:14 +08:00
dragIdx:0,
designRandom:'',
2024-12-31 11:40:40 +08:00
2023-07-26 15:54:34 +08:00
};
},
2023-12-19 16:36:48 +08:00
watch: {
workspacePosition:{
handler(newVal:any,oldVal:any){
this.isMannequin()
},
},
allBoardData:{
handler(newVal:any,oldVal:any){
this.isMannequin()
},
},
},
2024-12-19 17:59:00 +08:00
2024-12-11 16:26:36 +08:00
beforeUnmount(){
clearTimeout(this.getDesignTime);
2025-01-07 17:15:28 +08:00
// alert(1)
2024-12-19 17:59:00 +08:00
sessionStorage.setItem('domHidden',JSON.stringify(this.domHidden))
2024-12-31 11:40:40 +08:00
sessionStorage.setItem('recycleDomHidden',JSON.stringify(this.recycleDomHidden))
2024-12-19 17:59:00 +08:00
sessionStorage.setItem('collValue',JSON.stringify(this.collValue))
2024-12-11 16:26:36 +08:00
},
2024-01-05 14:12:03 +08:00
async mounted() {
2023-11-22 09:37:30 +08:00
// if(JSON.parse( getCookie('isFirst') as any)){
// }
2024-01-05 16:49:49 +08:00
let test:any = getCookie('isTest')
let isTest =JSON.parse(test)
2023-07-26 15:54:34 +08:00
this.store.dispatch('get_clothingType')
2024-01-05 14:12:03 +08:00
//判断账号剩余时间是否太短
let isModalOne = JSON.parse(sessionStorage.getItem("isTimeOne") as any)
2024-05-09 13:34:15 +08:00
let text = {
}
2024-12-19 13:47:55 +08:00
if(this.userDetail.email == '-------------')return
if(!isModalOne){//判断是否是试用用户
// if(!isTest && !isModalOne){//判断是否是试用用户
await new Promise(async (resolve) => {
2024-01-30 14:23:28 +08:00
if(isTest){
openGuide()
2024-03-15 10:16:45 +08:00
resolve('')
2024-01-30 14:23:28 +08:00
}else{
await Https.axiosPost(Https.httpUrls.getExpiredTime,{}).then((rv: any) => {
if (rv) {
let dateNow = Date.now()
let date:any = new Date(dateNow)
let rvDate:any = new Date(rv);
let diffInMilliseconds = Math.abs(date - rvDate); // 获取时间差的毫秒数
let days = Math.floor(diffInMilliseconds / (24 * 60 * 60 * 1000)); // 计算天数
let hours = Math.floor((diffInMilliseconds % (24 * 60 * 60 * 1000)) / (60 * 60 * 1000)); // 计算小时数
let minutes = Math.floor((diffInMilliseconds % (60 * 60 * 1000)) / (60 * 1000)); // 计算分钟数
if(days < 30){
setTimeout(() => {
let text = {
2024-03-22 12:01:11 +08:00
str:`${this.t('HomeView.jsContent4',{days:days,hours:hours})}<a href="https://code-create.com.hk/aida" target="_blank">${this.t('HomeView.jsContent8')}</a>`,
2024-01-30 14:23:28 +08:00
title:`${this.t('HomeView.jsContent7')}`,
}
this.affiche(text)
}, 500);
}else{
openGuide()
}
resolve('')
2024-01-15 17:06:01 +08:00
}else{
openGuide()
2024-01-30 14:23:28 +08:00
resolve('')
}
2024-01-30 14:23:28 +08:00
})
}
})
}else if(!isModalOne && isTest){
2024-10-12 00:33:04 +08:00
// setTimeout(() => {
// text = {
// str:`${this.t('HomeView.jsContent7')}<br>${this.t('HomeView.jsContent5')}<a href="https://code-create.com.hk/aida/" target="_blank">https://code-create.com.hk/aida/</a>${this.t('HomeView.jsContent6')}`,
// }
// this.affiche(text)
// }, 500);
}else{
2024-10-12 00:33:04 +08:00
openGuide()
2024-01-28 23:36:26 +08:00
}
2023-07-26 15:54:34 +08:00
let noRefresh = this.$route.params.noRefresh; //判断是否主动刷新还是路由跳转过来的 true 路由跳转过来的
2024-03-27 16:42:52 +08:00
window.addEventListener('beforeunload', (event)=>{
this.store.commit("clearAllCollection");
});
if (this.$route.name == "homePage") {
2023-07-26 15:54:34 +08:00
let colorBoards =
this.store.state.UploadFilesModule.allBoardData.colorBoards ||
[];
if (colorBoards.length) {
this.isHaveReviewCollection = true;
}
} else {
2024-03-27 16:42:52 +08:00
// this.store.commit("setUserGroupId", this.$route.params.id);
// this.store.commit("clearAllCollection");
2023-07-26 15:54:34 +08:00
}
if (this.$route.params.id) {
2024-05-16 17:14:22 +08:00
if(this.$route.params.type == 'History'){
this.getHistoryChoose(this.$route.params.id, "normal");
}else if(this.$route.params.type == 'Works'){
this.getWorks(this.$route.params.id, "normal");
}
2024-03-27 16:42:52 +08:00
this.store.commit("setDesignCollectionList",[]);
2023-07-26 15:54:34 +08:00
} else {
2024-04-15 16:09:33 +08:00
// this.store.commit("clearAllData");
2023-07-26 15:54:34 +08:00
}
2024-07-08 09:42:21 +08:00
// let dataa:any = {
// designItemId: 63094,
// designItemUrl: null,
// designOutfitId: 62798,
// designOutfitUrl:''
// }
// let designDetail: any = this.$refs.designDetail;
// let data = {
// design: dataa,
// index: 0,
// collectionList: [],
// type: 'dislike',
// };
// designDetail.showDesignDetailModal(data);
2025-01-16 09:47:28 +08:00
window.addEventListener('resize', ()=> {
this.setSystemDesigner(0)
this.setDesignItemStyle()
})
2025-01-14 10:21:17 +08:00
this.setSystemDesigner(0)
2025-01-15 11:23:23 +08:00
this.setDesignItemStyle()
2023-07-26 15:54:34 +08:00
},
2023-09-25 10:09:00 +08:00
directives:{
mousewheel:{
mounted (el) {
2023-10-30 10:03:49 +08:00
let bodyDom:any = document.getElementsByClassName('right_content_block')[0]
let dom:any = document.getElementsByClassName('right_content_body')
let mouseover = ()=>{
bodyDom.classList.add('active')
}
let mouseleave = ()=>{
bodyDom.classList.remove('active')
}
dom.forEach((item:any) => {
item.addEventListener('mouseover',mouseover)
item.addEventListener('mouseleave',mouseleave)
});
2023-10-13 17:06:44 +08:00
el.addEventListener('wheel',(e:WheelEvent)=>{
let num = 0
if(e.deltaY > 0){
num = 25
}else{
num = -25
}
el.scrollBy(num, 0);
2024-02-22 10:03:51 +08:00
},{ passive: true })
2023-09-25 10:09:00 +08:00
}
}
},
2023-07-26 15:54:34 +08:00
methods: {
2024-01-05 16:49:49 +08:00
// addTeam (team:any) {
// this.likeDesignCollectionList.push(team)
// },
affiche(text:any){
nextTick(()=>{
2024-10-09 15:45:17 +08:00
let affiche:any = this.$refs.affiche
affiche.init(text)
})
2024-10-09 15:45:17 +08:00
2024-01-05 16:49:49 +08:00
// affiche.afficheMask = true
2023-10-11 17:34:14 +08:00
},
2023-12-19 16:36:48 +08:00
//判断模特和当前start的sketch是否匹配
isMannequin(){
this.isMannequinShow = false
2023-12-28 10:36:48 +08:00
let num = 0
2023-12-19 16:36:48 +08:00
this.allBoardData?.sketchboardFiles?.forEach((sketchItem:any) => {
2024-05-17 18:20:37 +08:00
2023-12-19 16:36:48 +08:00
this.workspacePosition.forEach((positionItem:any) => {
2024-05-17 18:20:37 +08:00
2024-06-27 17:37:49 +08:00
if(positionItem.value == sketchItem.categoryValue){
2023-12-28 10:36:48 +08:00
num ++
2023-12-19 16:36:48 +08:00
}
});
2024-01-02 16:22:33 +08:00
2023-12-19 16:36:48 +08:00
});
2024-01-02 14:42:23 +08:00
if(this.allBoardData?.sketchboardFiles?.length && this.allBoardData?.sketchboardFiles?.length>0){
2024-01-02 14:02:43 +08:00
if(num != this.allBoardData?.sketchboardFiles?.length){
this.isMannequinShow = true
}
}else{
this.isMannequinShow = false
2023-12-28 10:36:48 +08:00
}
2023-12-19 16:36:48 +08:00
},
2023-07-26 15:54:34 +08:00
formatter(value: number) {
return `${value}%`;
},
//开始设计collection
startNewCollection() {
let collectionModal: any = this.$refs.collectionModal;
this.store.commit("clearAllData");
collectionModal.changeCollectionModal(true);
2023-11-24 16:18:44 +08:00
if(this.driver__.driver){
nextTick().then(()=>{
driverObj__.moveNext();
})
}
2023-07-26 15:54:34 +08:00
},
//recollection
recollection() {
let collectionModal: any = this.$refs.collectionModal;
this.store.commit("clearAllData");
collectionModal.changeCollectionModal(true);
collectionModal.recollection();
},
2024-05-27 17:57:37 +08:00
resetCollection(){
2024-05-28 11:22:16 +08:00
let _this = this
Modal.confirm({
title: this.t('HomeView.jsContent9'),
icon: createVNode(ExclamationCircleOutlined),
okText: 'Yes',
cancelText: 'No',
mask:false,
centered:true,
onOk() {
_this.store.commit("clearAllData");
_this.store.commit("clearAllCollection");
_this.store.commit("setAllBoardDataChoose",{});
_this.store.commit("clearShowSketchboard",{});
_this.isHaveReviewCollection = false
}
});
2024-05-27 17:57:37 +08:00
},
2023-07-26 15:54:34 +08:00
//完成设计
finishCollection() {
2024-09-27 16:31:33 +08:00
this.isHaveReviewCollection = true;
this.isFinishLoading = false;
2023-07-26 15:54:34 +08:00
},
getContainer() {
return document.querySelector("#system_silder");
},
//设计新的collection
designNewCollection() {
2024-09-02 12:26:35 +08:00
if(!this.chooseIsDesign.value){
2024-07-16 11:46:07 +08:00
message.info(this.t('HomeView.jsContent10'));
2024-07-14 12:06:54 +08:00
return
}
2023-07-26 15:54:34 +08:00
let { colorBoards } =
this.store.state.UploadFilesModule.allBoardData;
if (!colorBoards || colorBoards?.length < 1) {
2023-11-16 17:23:17 +08:00
message.info(
2023-10-30 17:26:36 +08:00
this.t('HomeView.jsContent1')
2023-07-26 15:54:34 +08:00
);
return;
}
2024-12-11 16:26:36 +08:00
clearTimeout(this.getDesignTime);
2023-07-26 15:54:34 +08:00
let data = this.getDesignData("");
2023-11-24 16:18:44 +08:00
if(this.driver__.driver){
nextTick().then(()=>{
driverObj__.moveNext();
})
}
2024-12-11 16:26:36 +08:00
this.isShowMark = true
2024-12-19 17:59:00 +08:00
this.store.commit("setLikeDesignCollectionList", []);
2023-07-26 15:54:34 +08:00
Https.axiosPost(Https.httpUrls.designCollection, data)
2023-09-12 10:11:27 +08:00
2023-07-26 15:54:34 +08:00
.then((rv: any) => {
if (rv) {
2024-12-11 16:26:36 +08:00
let value = {
objectSignList:data.requestIdList.join(),
requestId:rv
}
2025-01-10 15:26:10 +08:00
this.posiitonData.generateElList.forEach((item:any) => {
item.sort -= 1
})
this.moveItem('disLike')
2024-12-11 16:26:36 +08:00
this.getDesignResult(value,'newDesign')
2023-07-26 15:54:34 +08:00
this.startDesignType = "design";
2025-01-10 15:26:10 +08:00
this.posiitonData.likeSelectIndex = 0
this.posiitonData.likeElList = []
2023-07-26 15:54:34 +08:00
}
2024-12-11 16:26:36 +08:00
this.isShowMark = false;
2023-07-26 15:54:34 +08:00
})
.catch((res) => {
2024-12-11 16:26:36 +08:00
this.isShowMark = false;
2023-10-11 17:34:14 +08:00
})
2024-12-11 16:26:36 +08:00
// this.getDesignProcess(this.designRandom);
},
getDesignResult(data:any,str:any){
this.showDesignMark = true
2025-01-10 15:26:10 +08:00
this.recycleDomHidden = true
2025-01-13 17:10:41 +08:00
this.setSystemDesigner(0)
2024-12-11 16:26:36 +08:00
Https.axiosGet(Https.httpUrls.getDesignResult,{params:data})
2024-12-19 17:59:00 +08:00
.then(async (rv)=>{
2024-12-11 16:26:36 +08:00
if(rv.designCollectionItems){
2024-12-19 17:59:00 +08:00
let arr:any = []
if(this.designCollectionList.length == 0){
arr.push(...rv.designCollectionItems)
}else{
arr = rv.designCollectionItems.filter((itemA:any) =>
!this.designCollectionList.some((itemB:any) => itemA.objectSign === itemB.objectSign)
);
}
for (let index = 0; index < arr.length; index++) {
const item = arr[index];
await new Promise((resolve, reject) => {
setTimeout(() => {
2024-12-20 16:28:18 +08:00
this.designCollectionList.unshift(item)
2025-01-10 15:26:10 +08:00
nextTick().then(()=>{
2025-01-13 11:31:19 +08:00
let dom:any = this.$refs.collItemDom
let elArr:any = dom.querySelectorAll(".content_img_GetWidth");
2025-01-10 15:26:10 +08:00
this.posiitonData.generateElList.push({
el: elArr[0],
sort: elArr.length - 2,
index: elArr.length - 1,
userLikeSortId:item.designItemId
});
this.moveItem('disLike')
})
2024-12-19 17:59:00 +08:00
resolve('')
}, 200);
})
}
2024-12-11 16:26:36 +08:00
}
if(rv.unfinishedList.length == 0){
this.showDesignMark = false
if(str == 'newDesign'){
if(rv.designCollectionItems){
this.store.commit("deleteUserGroupId");
this.store.commit(
"setDesignCollectionId",
rv.collectionId
);
this.store.commit("setDesignId", rv.designId);
}
}else{
// this.designProgress = 0,
this.store.commit("setDesignId", rv.designId);
}
2024-12-19 17:59:00 +08:00
nextTick().then(()=>{
driverObj__.moveNext();
2025-01-10 15:26:10 +08:00
this.posiitonData.generateElList.forEach((item:any) => {
item.sort += 1
});
this.moveItem('disLike')
2024-12-19 17:59:00 +08:00
})
2024-12-11 16:26:36 +08:00
}else{
this.getDesignTime = setTimeout(()=>{
data.objectSignList = rv.unfinishedList.join()
this.getDesignResult(data,str)
},1000)
}
}).catch(()=>this.showDesignMark = false)
2023-07-26 15:54:34 +08:00
},
//重新设计collection
resDesignCollection() {
let { colorBoards } =
this.store.state.UploadFilesModule.allBoardData;
if (!colorBoards || colorBoards?.length < 1) {
2023-11-16 17:23:17 +08:00
message.info(
2023-10-30 17:26:36 +08:00
this.t('HomeView.jsContent2')
2023-07-26 15:54:34 +08:00
);
return;
}
2023-11-28 17:07:38 +08:00
if(this.driver__.driver){
nextTick().then(()=>{
driverObj__.moveNext();
})
}
2024-12-11 16:26:36 +08:00
clearTimeout(this.getDesignTime);
this.isShowMark = true
2023-07-26 15:54:34 +08:00
let data = this.getDesignData(this.designCollectionId);
Https.axiosPost(Https.httpUrls.reDesignCollection, data)
.then((rv: any) => {
if (rv) {
2024-12-11 16:26:36 +08:00
let value = {
objectSignList:data.requestIdList.join(),
requestId:rv
}
2025-01-10 15:26:10 +08:00
this.posiitonData.generateElList.forEach((item:any) => {
item.sort -= 1
})
this.moveItem('disLike')
2024-12-11 16:26:36 +08:00
this.getDesignResult(value,'resDesign')
2023-10-12 17:09:05 +08:00
this.startDesignType = "resDesign";
2024-12-11 16:26:36 +08:00
this.isShowMark = false
2023-07-26 15:54:34 +08:00
}
})
.catch((res) => {
2024-12-11 16:26:36 +08:00
this.isShowMark = false;
2023-07-26 15:54:34 +08:00
});
2024-12-11 16:26:36 +08:00
// this.getDesignProcess(this.designRandom);
2023-10-11 17:34:14 +08:00
2023-07-26 15:54:34 +08:00
},
2023-09-12 10:11:27 +08:00
2023-07-26 15:54:34 +08:00
getDesignData(designCollectionId: any) {
let {
moodboardFiles,
printboardFiles,
2023-09-12 10:11:27 +08:00
disposeMoodboard,
2023-08-23 17:50:09 +08:00
// generatePrintFiles,
2023-07-26 15:54:34 +08:00
colorBoards,
2023-08-23 17:50:09 +08:00
sketchboardFiles,
2023-07-26 15:54:34 +08:00
marketingSketchFiles,
moodboardPosition,
2023-07-26 15:54:34 +08:00
} = this.store.state.UploadFilesModule.allBoardData;
2023-10-11 17:34:14 +08:00
this.randomNum()
2023-09-12 10:11:27 +08:00
let workspace = this.store.state.Workspace.workspace
2023-07-26 15:54:34 +08:00
let data: any = {
colorBoards: this.getColorBoard(colorBoards),
2023-09-12 10:11:27 +08:00
// marketingSketchs: this.getBoardId(marketingSketchFiles),
2023-07-26 15:54:34 +08:00
moodBoards: this.getBoardId(moodboardFiles),
2023-08-23 17:50:09 +08:00
printBoards: this.getPrintId(printboardFiles),
sketchBoards: this.getSkecthBoard(sketchboardFiles),
2024-10-06 14:15:10 +08:00
moodboardPosition: JSON.stringify(moodboardPosition),
2023-09-25 10:09:00 +08:00
switchCategory: !workspace.overallSingle ?"": workspace.position,
singleOverall: !workspace.overallSingle ? "overall" : "single",
systemScale: workspace.systemDesignerPercentage?workspace.systemDesignerPercentage*.01:.3,
2023-10-11 17:34:14 +08:00
// templateId: 3377,
templateId: workspace.mannequinId?workspace.mannequinId:'',
modelType:workspace.mannequinType,
modelSex:workspace.sex,
2023-09-12 10:11:27 +08:00
moodTemplateId: disposeMoodboard[0] ? String(disposeMoodboard[0].id) : null,
2023-07-26 15:54:34 +08:00
timeZone: Intl.DateTimeFormat().resolvedOptions().timeZone,
2023-10-11 17:34:14 +08:00
processId:this.designRandom
2023-07-26 15:54:34 +08:00
};
// data.moodboardPosition = JSON.stringify(this.store.state.UploadFilesModule.moodboardPosition)
2025-01-07 17:15:28 +08:00
this.setSystemDesigner(0)
2024-09-27 16:31:33 +08:00
let isLoad = false
if(designCollectionId == -1){
isLoad = true
} else if (designCollectionId) {
2023-07-26 15:54:34 +08:00
data.collectionId = designCollectionId;
}
2024-09-27 16:31:33 +08:00
if(!isLoad){
2024-12-11 16:26:36 +08:00
// this.designProgress = 0;
// this.isShowMark = true;
}
let arr = []
for (let index = 0; index < 8; index++) {
let floor = Math.floor(Math.random() * 90000000) + 10000000
arr.push(floor)
2024-09-27 16:31:33 +08:00
}
2024-12-11 16:26:36 +08:00
data.requestIdList = arr
2023-07-26 15:54:34 +08:00
return data;
},
//deisgn的进度
2023-10-11 17:34:14 +08:00
getDesignProcess(num:any) {
Https.axiosGet(Https.httpUrls.designProcess,{params:{processId:num}}).then((rv: any) => {
if (rv) {
}
if (this.showDesignMark) {
2023-11-08 13:01:45 +08:00
this.designProgress = rv;
2023-10-11 17:34:14 +08:00
if(rv == 100){
2023-07-26 15:54:34 +08:00
setTimeout(() => {
2023-10-11 17:34:14 +08:00
this.showDesignMark = false
this.designProgress = 0
2023-11-24 17:32:57 +08:00
if(this.driver__.driver){
nextTick().then(()=>{
driverObj__.moveNext();
})
}
2023-10-11 17:34:14 +08:00
}, 500);
2023-07-26 15:54:34 +08:00
}
2023-10-11 17:34:14 +08:00
setTimeout(() => {
this.getDesignProcess(num);
}, 500);
2023-07-26 15:54:34 +08:00
}
2023-10-11 17:34:14 +08:00
})
// Https.axiosPost(Https.httpUrls.designProcess, {}).then(
// (rv: any) => {
// if (rv < 1 && this.showDesignMark) {
// this.designProgress = rv * 100;
// setTimeout(() => {
// this.getDesignProcess();
// }, 1000);
// }
// }
// );
},
randomNum(){
this.designRandom = String(Math.floor(Math.random() * 9000000000000000) + 1000000000000000)
2023-07-26 15:54:34 +08:00
},
getBoardId(boardData: any) {
let dataList = boardData.map((v: any) => {
let data: any = {
id: v.resData.id,
designType: v.resData.designType,
};
return data;
});
return dataList;
},
getPrintId(boardData: any) {
let dataList = boardData.map((v: any) => {
let data: any = {
id: v.resData.id,
designType: v.resData.designType,
2024-06-27 17:37:49 +08:00
level2Type: v.categoryValue,
2023-07-26 15:54:34 +08:00
isPin: v.pin ? 1 : 0,
};
return data;
});
return dataList;
},
getSkecthBoard(boardData: any) {
let sketchBoards = boardData.map((v: any) => {
let data = {
designType: v.resData.designType,
isPin: v.pin ? 1 : 0,
2024-06-27 17:37:49 +08:00
level2Type: v.categoryValue,
2023-07-26 15:54:34 +08:00
sketchBoardId: v.resData.id,
};
return data;
});
return sketchBoards;
},
getColorBoard(boardData: any) {
let colorBoards = boardData.map((v: any) => {
let data = {
id: v.id,
name: v.name,
tcx: v.tcx,
2024-05-16 09:41:16 +08:00
gradient:v.gradient,
2023-07-26 15:54:34 +08:00
rgbValue: "",
};
data.rgbValue = `${v.rgbValue.r} ${v.rgbValue.g} ${v.rgbValue.b}`;
return data;
});
return colorBoards;
},
2024-12-23 16:23:18 +08:00
deleteDesignCollection(list:any,index:any){
list.splice(index,1)
},
2023-07-26 15:54:34 +08:00
likeDesignCollection(design: any, index: any) {
let data = {
designItemId: design.designItemId,
userGroupId: this.userGroupId,
timeZone: Intl.DateTimeFormat().resolvedOptions().timeZone,
2023-10-11 17:34:14 +08:00
designPythonOutfitId:design.designOutfitId?design.designOutfitId:design.designPythonOutfitId
2023-07-26 15:54:34 +08:00
};
if (this.likeLoading) {
return;
}
2024-05-17 19:41:19 +08:00
2023-07-26 15:54:34 +08:00
this.likeLoading = true;
Https.axiosPost(Https.httpUrls.designLike, data)
.then((rv: any) => {
if (rv) {
2025-01-10 15:26:10 +08:00
let value:any = {
...design,
id:rv.userLikeId,
groupDetailId:rv.userLikeId,
userLikeSortId:rv.userLikeSortId,
userLikeGroupId:rv.userGroupId,
sort:rv.sort,
}
2023-07-26 15:54:34 +08:00
this.store.commit("setUserGroupId", rv.userGroupId);
design.groupDetailId = rv.groupDetailId;
this.store.commit(
"addLikeDesignCollectionList",
2025-01-10 15:26:10 +08:00
value
2023-07-26 15:54:34 +08:00
);
2025-01-10 15:26:10 +08:00
this.setLikeDislLike('like',value)
2023-07-26 15:54:34 +08:00
this.store.commit("deleteDesignCollectionList", index);
if (this.startDesignType === "resDesign") {
this.getHistoryChoose(this.userGroupId, "like");
}
}
this.likeLoading = false;
2023-12-08 16:27:35 +08:00
if(this.driver__.driver){
driverObj__.moveNext();
}
2023-07-26 15:54:34 +08:00
})
.catch((rv) => {
this.likeLoading = false;
});
},
//不喜欢设计
dislikeDesignCollection(design: any, index: any) {
let data = {
designId: design.designId || this.designId,
2023-10-11 17:34:14 +08:00
designPythonOutfitId:design.designOutfitId,
2023-07-26 15:54:34 +08:00
groupDetailId: design.groupDetailId,
timeZone: Intl.DateTimeFormat().resolvedOptions().timeZone,
};
if (this.disLikeLoading) {
return;
}
this.disLikeLoading = true;
Https.axiosPost(Https.httpUrls.designDislike, data)
.then((rv: any) => {
if (rv) {
this.store.commit("addDesignCollectionList", design);
this.store.commit(
"deleteLikeDesignCollectionList",
index
);
2025-01-10 15:26:10 +08:00
this.likeDesignCollectionList.forEach((item:any)=>{
if(item.sort > design.sort){
item.sort-=1
}
})
this.setLikeDislLike('disLike',design)
2024-08-18 21:45:39 +08:00
// if (!this.likeDesignCollectionList.length) {
// this.store.commit("deleteUserGroupId");
// }
2023-07-26 15:54:34 +08:00
}
this.disLikeLoading = false;
})
.catch((rv) => {
this.disLikeLoading = false;
});
},
2025-01-07 17:15:28 +08:00
2023-07-26 15:54:34 +08:00
//获取选择的组
getHistoryChoose(userGroupId: any, type: any) {
2024-06-17 09:39:01 +08:00
2023-07-26 15:54:34 +08:00
this.isShowMark = true;
let url =
Https.httpUrls.historyChoose + `?userGroupId=${userGroupId}`;
Https.axiosGet(url)
.then((rv: any) => {
2024-10-09 15:45:17 +08:00
this.setPortfolio(rv.portfolioDTO)
2024-05-17 20:02:32 +08:00
this.store.commit("setUserGroupId", rv.userGroupId);
2023-07-26 15:54:34 +08:00
this.dealHistoryChooseData(rv, type);
this.isShowMark = false;
})
.catch((rv) => {
this.isShowMark = false;
});
},
2024-05-16 17:14:22 +08:00
getWorks(userGroupId: any, type: any) {
let data:any = {
"accountId": 0,
"collectionId": 0,
"coverId": 0,
"createDate": "",
2024-06-18 10:45:15 +08:00
"id": userGroupId,
2024-05-16 17:14:22 +08:00
"isDeleted": 0,
"portfolioDes": "",
"portfolioName": "",
"portfolioType": "",
"status": 0,
"updateDate": "",
2024-06-18 10:45:15 +08:00
"userLikeGroupId":''
2024-05-16 17:14:22 +08:00
}
2024-05-17 09:27:08 +08:00
this.isShowMark = true;
2024-05-16 17:14:22 +08:00
Https.axiosPost(Https.httpUrls.setPorfolioChoose, data).then(
(rv: any) => {
2024-10-09 15:45:17 +08:00
this.setPortfolio(rv.portfolioDTO)
2024-07-08 09:42:21 +08:00
this.store.commit("setUserGroupId", rv.userGroupId);
2024-05-16 17:14:22 +08:00
this.dealHistoryChooseData(rv, type);
this.isShowMark = false;
}
).catch((res)=>{
this.isShowMark = false;
});
},
2023-07-26 15:54:34 +08:00
//处理选择组的数据
dealHistoryChooseData(data: any, type: any) {
let collectionData = {
2024-02-29 17:16:51 +08:00
disposeMoodboard: data.collection.moodTemplateId?[{
id:data.collection.moodTemplateId,
imgUrl:data.collection.moodTemplateUrl,
resData:{
name:data.collection.moodTemplateName,
}
}]:[],
2024-10-06 14:15:10 +08:00
moodboardPosition:data.collection.moodboardPosition?JSON.parse(data.collection.moodboardPosition):{},
2023-07-26 15:54:34 +08:00
moodboardFiles: this.dealViewChooseData(
2023-10-11 17:34:14 +08:00
data.collection.moodBoards,"Moodboard"
2023-07-26 15:54:34 +08:00
),
printboardFiles: this.dealViewChooseData(
2023-10-11 17:34:14 +08:00
data.collection.printBoards,"Printboard"
2023-07-26 15:54:34 +08:00
),
generatePrintFiles: [],
colorBoards: this.dealViewChooseColor(
data.collection.colorBoards
),
2023-10-11 17:34:14 +08:00
sketchboardFiles: this.dealViewChooseData(
data.collection.sketchBoards,"Sketchboard"
2023-07-26 15:54:34 +08:00
),
marketingSketchFiles: this.dealViewChooseData(
2023-10-11 17:34:14 +08:00
data.collection.marketingSketchs,""
2023-07-26 15:54:34 +08:00
),
2024-02-29 17:16:51 +08:00
2023-07-26 15:54:34 +08:00
};
this.store.commit("setAllBoardDataChoose", collectionData);
2023-12-04 13:14:29 +08:00
// this.store.commit('clearShowSketchboard')
2023-11-29 16:30:17 +08:00
this.store.commit("setShowSketchboard", data.collection.sketchBoards);
2023-10-11 17:34:14 +08:00
this.store.commit(
2023-07-26 15:54:34 +08:00
"setDesignCollectionId",
data.collection.collectionId
);
this.isHaveReviewCollection = true;
if (type === "normal") {
2025-01-07 17:15:28 +08:00
2025-01-10 15:26:10 +08:00
let likeDesignCollectionList = data.userLikeDetails.map(
2023-07-26 15:54:34 +08:00
(v: any) => {
let data = {
...v,
groupDetailId: v.id,
2023-10-11 17:34:14 +08:00
designItemUrl: v.designOutfitUrl,
designItemId: v.designItemId,
2023-07-26 15:54:34 +08:00
};
return data;
}
);
this.store.commit(
"setLikeDesignCollectionList",
likeDesignCollectionList
);
}
2025-01-07 17:15:28 +08:00
this.setSystemDesigner(100)
2023-07-26 15:54:34 +08:00
},
//统一处理选择组的渲染数据
2023-10-11 17:34:14 +08:00
dealViewChooseData(data: any,str:string) {
2023-07-26 15:54:34 +08:00
if (!data) {
return [];
}
let filesList = data.map((v: any) => {
let newData: any = {
2023-10-11 17:34:14 +08:00
imgUrl: v.url?v.url:v.designOutfitUrl,
2023-07-26 15:54:34 +08:00
id: v.id,
status: "done",
resData: v,
2023-10-11 17:34:14 +08:00
type_:{
type1:'material',
type2:v.level1Type
}
2023-07-26 15:54:34 +08:00
};
if (v.level1Type === "Sketchboard") {
newData.pin = v.isPin;
2024-06-27 17:37:49 +08:00
newData.categoryValue = v.level2Type;
2024-06-17 09:39:01 +08:00
newData.level2Type = v.level2Type;
2023-07-26 15:54:34 +08:00
}
if (v.level1Type === "Printboard") {
newData.pin = v.isPin;
2024-06-17 09:39:01 +08:00
newData.level2Type = v.level2Type;
2024-06-27 17:37:49 +08:00
newData.categoryValue = v.level2Type;
2023-07-26 15:54:34 +08:00
}
return newData;
});
return filesList;
},
//统一处理选择组的渲染数据
dealViewChooseColor(data: any) {
let colorList = data.map((v: any) => {
let rgbValue = v.rgbValue.split(" ");
let newData: any = {
id: v.id,
name: v.name,
tcx: v.tcx || "",
rgbValue: {
r: rgbValue[0],
g: rgbValue[1],
b: rgbValue[2],
a: 1,
},
};
2024-05-16 09:41:16 +08:00
if(v.gradient){
newData.gradient = v.gradient;
}else{
delete newData.gradient;
}
2023-07-26 15:54:34 +08:00
return newData;
});
return colorList;
},
2023-11-13 09:52:57 +08:00
//点击下拉图标出现操作
changeShowOperateContent() {
this.isShowOperate = !this.isShowOperate;
document.addEventListener(
"click",
this.closeShowOperateContent,
false
);
},
//关闭下拉图标
closeShowOperateContent() {
this.isShowOperate = false;
document.removeEventListener("click", this.closeShowOperateContent);
},
2024-02-23 14:32:33 +08:00
exportModel(){
2024-06-01 10:02:21 +08:00
let productImg:any = this.$refs.productImg
productImg.productImgMask = true
2024-07-08 09:42:21 +08:00
productImg.init(this.userGroupId)
2024-08-16 15:40:25 +08:00
2024-02-23 14:32:33 +08:00
},
2023-07-26 15:54:34 +08:00
//打开图片详情
designDetail(
design: any,
index: number,
collectionList: any,
type: string
) {
2025-01-10 15:26:10 +08:00
if(this.isMove)return
2023-07-26 15:54:34 +08:00
let designDetail: any = this.$refs.designDetail;
2023-10-11 17:34:14 +08:00
design.designOutfitId = design.designPythonOutfitId?design.designPythonOutfitId:design.designOutfitId
2023-07-26 15:54:34 +08:00
let data = {
design: design,
index: index,
collectionList: collectionList,
type: type,
};
designDetail.showDesignDetailModal(data);
2023-11-24 16:18:44 +08:00
2023-07-26 15:54:34 +08:00
},
//完成单个图片设计
finishRedesign(event: any) {
let { design, index, type } = event;
if (type === "dislike") {
this.store.commit("setSingleDesignCollectionList", {
index: index,
design: design,
});
} else {
this.store.commit("setSingleLikeDesignCollectionList", {
index: index,
design: design,
});
}
},
2024-03-27 09:48:01 +08:00
setTask(data:any){
this.$emit('setTask',data)
2024-03-22 12:01:11 +08:00
// this.exportModel()
},
2024-12-31 11:40:40 +08:00
setShowHide(str:string){
if(str == 'recycleDomHidden')this.recycleDomHidden = !this.recycleDomHidden
if(str == 'domHidden')this.domHidden = !this.domHidden
2025-01-07 17:15:28 +08:00
this.setSystemDesigner(0)
2024-12-31 11:40:40 +08:00
}
2023-07-26 15:54:34 +08:00
},
2023-01-06 16:00:15 +08:00
});
</script>
<style lang="less" scoped>
.home_page {
2023-07-26 15:54:34 +08:00
width: 100%;
height: 100%;
2024-12-11 16:26:36 +08:00
padding: 0 6rem;
// overflow: hidden;
2023-11-13 09:52:57 +08:00
// min-width: 1440px;
2023-10-20 17:21:45 +08:00
position: relative;
// left: 50%;
// margin-left: -50%;
// transform: translateX(-50%);
2024-12-31 11:40:40 +08:00
2023-07-26 15:54:34 +08:00
.page_content {
position: relative;
2024-12-31 11:40:40 +08:00
2024-12-18 17:38:43 +08:00
.userSystem{
position: absolute;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.4);
z-index:2;
display: flex;
justify-content: center;
align-items: center;
color: #fff;
font-weight: 600;
font-size: 4rem;
}
2024-12-31 11:40:40 +08:00
.home_page_left_bottom{
position: absolute;
width: 4rem;
height: 7rem;
background: #fff;
border: 2px solid;
border-right: none;
border-radius: 2rem 0 0 2rem;
top: 50%;
transform: translate(-100%,-50%);
left: 100%;
display: flex;
align-items: center;
justify-content: center;
z-index: 2;
cursor: pointer;
>span{
transition: all .3s;
transform: rotate(90deg);
&.active{
transform: rotate(270deg);
}
}
}
2023-07-26 15:54:34 +08:00
.page_content_body {
position: absolute;
width: 100%;
height: 100%;
2025-01-02 11:47:09 +08:00
padding-bottom: 4rem;
2023-07-26 15:54:34 +08:00
box-sizing: border-box;
2024-12-18 17:38:43 +08:00
z-index:1;
2023-07-26 15:54:34 +08:00
.home_page_body {
width: 100%;
2024-03-21 10:49:21 +08:00
height: 100%;
2023-07-26 15:54:34 +08:00
display: flex;
2023-09-25 10:09:00 +08:00
// padding-left: 0.7rem;
2023-07-26 15:54:34 +08:00
box-sizing: border-box;
2024-12-11 16:26:36 +08:00
// overflow: hidden;
2023-07-26 15:54:34 +08:00
.home_page_left {
2023-09-25 10:09:00 +08:00
// width: 44.4rem;
2023-07-26 15:54:34 +08:00
height: 100%;
2023-09-25 10:09:00 +08:00
padding: 2rem 0 0 0;
2023-07-26 15:54:34 +08:00
background: rgba(255, 255, 255, 0.2);
2024-12-11 16:26:36 +08:00
position: relative;
// overflow: hidden;
2024-12-31 11:40:40 +08:00
2023-07-26 15:54:34 +08:00
.home_page_left_content {
height: 100%;
2024-12-11 16:26:36 +08:00
width: 55rem;
overflow: hidden;
2024-12-19 17:59:00 +08:00
// transition: all .3s;
2024-12-11 16:26:36 +08:00
padding-right: 1.2rem;
&.active{
padding-right: 0;
width: 0;
}
2023-07-26 15:54:34 +08:00
.home_left_null {
display: flex;
align-items: center;
justify-content: center;
text-align: center;
width: 100%;
height: 100%;
position: relative;
2025-01-07 17:15:28 +08:00
background: #f6f6fa;
2023-10-20 17:21:45 +08:00
border-radius: 2rem;
2023-07-26 15:54:34 +08:00
overflow: hidden;
.home_null_icon {
display: block;
width: 32.3rem;
}
.new_collection_button {
padding: .5rem 5rem;
height: 4rem;
line-height: 4rem;
background: #fff;
font-size: 1.3rem;
color: #000000;
margin: 1.2rem auto 0;
text-align: center;
cursor: pointer;
display: inline-block;
box-sizing: initial;
border: 2px solid #000;
font-weight: 600;
border-radius: 15px;
}
.is_finish_loading {
width: 100%;
height: 100%;
position: absolute;
left: 0;
top: 0;
background: #ffffff;
display: flex;
align-items: center;
justify-content: center;
}
}
.home_left_info {
height: 100%;
2023-12-19 16:36:48 +08:00
display: flex;
flex-direction: column;
2023-07-26 15:54:34 +08:00
.left_info_top {
2023-09-25 10:09:00 +08:00
padding: 0 0 1.3rem 0;
2023-07-26 15:54:34 +08:00
display: flex;
.button_margin {
margin-left: 2rem;
}
}
.left_info_content {
width: 100%;
height: calc(100% - 6.9rem);
overflow-y: auto;
background: #ffffff;
2023-09-25 10:09:00 +08:00
&.left_info_content::-webkit-scrollbar {
display: none;
}
2023-07-26 15:54:34 +08:00
.left_info_content_body {
width: 100%;
}
}
2023-12-19 16:36:48 +08:00
.left_info_hint{
display: flex;
span{
font-size: 1.3rem;
display: inline-block;
}
}
2023-07-26 15:54:34 +08:00
}
}
}
.home_page_right {
2023-09-25 10:09:00 +08:00
// width: calc(100% - 44.4rem);
flex: 1;
2023-07-26 15:54:34 +08:00
height: 100%;
2024-12-31 11:40:40 +08:00
width: 100%;
// overflow: hidden;
2023-10-11 17:34:14 +08:00
display: flex;
flex-direction: column;
justify-content: space-between;
2024-12-31 11:40:40 +08:00
position: relative;
.home_page_left_bottom{
border-radius: 0 2rem 2rem 0rem;
left: 2rem;
top: 50%;
left: auto;
right: 0;
transform: translate(100%, -50%);
// top: calc(50% - 10.4rem / 2);
border: 2px solid;
border-left: none;
2025-01-07 17:15:28 +08:00
background: #000;
color: #fff;
flex-direction: column;
2024-12-31 11:40:40 +08:00
&.active{
right: 53rem;
transform: translate(0, -50%);
}
}
2023-07-26 15:54:34 +08:00
.right_top {
padding: 2rem 3.2rem 2rem 1.2rem;
display: flex;
justify-content: space-between;
box-shadow: 0rem 0.2rem 8rem 0rem rgba(238, 238, 244, 0.25);
background: rgba(255, 255, 255, 0.4);
2024-12-11 16:26:36 +08:00
transition: all .3s;
&.active{
overflow: hidden;
padding-top: 0;
padding-bottom: 0;
height: 0;
}
2023-07-26 15:54:34 +08:00
.right_top_left {
display: flex;
align-items: center;
2024-12-11 16:26:36 +08:00
width: 100%;
2023-07-26 15:54:34 +08:00
.button_margin_14 {
margin-left: 1.4rem;
}
2024-12-11 16:26:36 +08:00
.silder{
display: flex;
align-items: center;
.text{
font-weight: 600;
font-size: 1.8rem;
}
.system_silder{
margin: 0 3rem;
width: 12rem;
}
}
2023-07-26 15:54:34 +08:00
}
}
2024-12-31 11:40:40 +08:00
.right_content_block_box{
flex: 1;
display: flex;
overflow: hidden;
}
2023-07-26 15:54:34 +08:00
.right_content_block {
2024-12-11 16:26:36 +08:00
flex: 1;
display: flex;
2024-12-31 11:40:40 +08:00
width: 0;
2024-12-11 16:26:36 +08:00
flex-direction: column;
2024-12-31 11:40:40 +08:00
&.recycleBin{
flex: none;
margin-left: 0;
width: 0;
overflow: hidden;
&.recycleBinShow{
width: auto;
margin-left: 2rem;
}
.right_content_body {
width: 55rem;
.right_content_img_block{
2025-01-07 17:15:28 +08:00
2024-12-31 11:40:40 +08:00
.content_img_block{
width: 16rem;
height: 23rem;
}
}
}
}
2023-10-30 10:03:49 +08:00
&.right_content_block::-webkit-scrollbar{display: none;}
&.active{
overflow: hidden;
}
2023-07-26 15:54:34 +08:00
.right_content_header {
display: flex;
justify-content: space-between;
2024-01-09 17:55:29 +08:00
height: 4.5rem;
2023-07-26 15:54:34 +08:00
align-items: center;
padding: 0 3.2rem 0 1.9rem;
background: rgba(255, 255, 255, 0.2);
2023-11-13 09:52:57 +08:00
position: relative;
.right_content_export{
display: flex;
align-items: center;
position: relative;
.icon-xiala{
cursor: pointer;
transition: .3s all;
margin-left: 1rem;
}
.icon_rotate{
-moz-transform: rotate(180deg);
-webkit-transform: rotate(180deg);
transform: rotate(180deg);
animation-direction: 0.5s;
}
.export_nav{
display: flex;
flex-direction: column;
position: absolute;
2024-01-09 17:55:29 +08:00
top: 5.5rem;
2023-11-13 09:52:57 +08:00
width: 100%;
background: #fff;
padding: 1rem;
border: 2px solid;
z-index: 2;
label{
margin: 0;
}
}
}
2023-07-26 15:54:34 +08:00
.content_header_left {
display: flex;
justify-content: space-between;
align-items: center;
.icon-dangqianweizhi {
font-size: 1.6rem;
color: #000;
}
.content_header_des {
font-size: 1.6rem;
color: #000000;
margin-left: 1rem;
font-weight: 900;
}
}
}
.right_content_body {
2024-12-11 16:26:36 +08:00
// padding: 0 1.8rem 0 1.2rem;
// height: calc(50% - 4.5rem);
flex: 1;
overflow: auto;
2025-01-02 11:47:09 +08:00
background: #f6f6fa;
border-radius: 2rem;
display: flex;
flex-direction: column;
2023-07-26 15:54:34 +08:00
.right_content_img_block {
2023-10-13 17:06:44 +08:00
// overflow-y: auto;
2023-07-26 15:54:34 +08:00
height: 100%;
2025-01-02 11:47:09 +08:00
flex: 1;
2023-09-25 10:09:00 +08:00
display: flex;
width: auto;
2023-10-13 17:06:44 +08:00
// overflow: hidden;
2023-09-25 10:09:00 +08:00
align-items: center;
2023-10-30 10:03:49 +08:00
// padding-bottom: 1rem;
2023-10-13 17:06:44 +08:00
overflow-x: auto;
2024-12-27 14:38:21 +08:00
justify-content: center;
2023-10-13 17:06:44 +08:00
&.active::-webkit-scrollbar {
2025-01-07 17:15:28 +08:00
display: none;
2023-10-13 17:06:44 +08:00
}
2025-01-07 17:15:28 +08:00
// &.active::-webkit-scrollbar-button:single-button{
// display: none;
// }
// &.active::-webkit-scrollbar {
// /* 竖轴的宽度 */
// width: 1rem;
// /* 横轴的高度 */
// height: 1rem;
// transition: all .3s;
// }
// /* 进度 */
// &.active::-webkit-scrollbar-thumb {
// border-radius: 1rem;
// background: rgba(238, 238, 244, 0);
// }
// /* 轨道 */
// &.active::-webkit-scrollbar-track {
// border-radius: 1rem;
// background: rgba(238, 238, 244, 0);
// }
// &.active:hover {
// // overflow-x: scroll;
// &.active::-webkit-scrollbar-thumb {
// background: #543087;
// }
// /* 轨道 */
// &.active::-webkit-scrollbar-track {
// background: rgba(84, 48, 135,.2);
// }
// }
2023-09-25 10:09:00 +08:00
>div{
display: flex;
2024-12-11 16:26:36 +08:00
flex-wrap: wrap;
// padding: 0 2.8rem 0 0.9rem;
2025-01-07 17:15:28 +08:00
width: 100%;
2023-10-11 17:34:14 +08:00
height: 100%;
2025-01-10 15:26:10 +08:00
// align-content: flex-start;
overflow-x: hidden;
position: relative;
&::-webkit-scrollbar {
display: none;
}
2023-09-25 10:09:00 +08:00
}
2023-07-26 15:54:34 +08:00
.content_img_block {
2025-01-10 15:26:10 +08:00
// width: 24rem;
// height: 37rem;
width: calc(33.33% - 30px);
height: calc((33.33% - 30px) * 1.54);
2024-12-27 14:38:21 +08:00
box-sizing: border-box;
margin: 5px;
2024-10-08 17:03:22 +08:00
// min-height: 271px;
2025-01-10 15:26:10 +08:00
// max-height: 80%;
2023-10-30 10:03:49 +08:00
2023-07-26 15:54:34 +08:00
display: inline-block;
position: relative;
vertical-align: top;
2023-09-25 10:09:00 +08:00
flex-shrink: 0;
2024-12-27 14:38:21 +08:00
display: flex;
align-items: center;
justify-content: center;
2025-01-10 15:26:10 +08:00
position: absolute;
transition: top,left .3s;
2024-12-31 11:40:40 +08:00
&:hover .icon_like,&:hover .icon_delete,&:hover .Dustbin {
2023-07-26 15:54:34 +08:00
display: block;
}
2024-12-11 16:26:36 +08:00
// &:nth-child(4n) {
// margin-right: 0;
// }
2023-07-26 15:54:34 +08:00
.content_img_flex {
display: flex;
justify-content: center;
align-items: center;
width: 100%;
height: 100%;
2024-12-11 16:26:36 +08:00
border-radius: 2rem;
2024-12-31 11:40:40 +08:00
border: 2px solid #E0E0E0;
2025-01-07 17:15:28 +08:00
background: #fff;
2024-12-11 16:26:36 +08:00
}
&.active{
2024-12-23 16:23:18 +08:00
.icon_like,.icon_delete{
2024-12-11 16:26:36 +08:00
display: block;
}
.content_img_flex {
border: 2px solid #000;
}
2023-07-26 15:54:34 +08:00
}
.content_img {
2024-12-23 16:23:18 +08:00
// max-width: 100%;
width: 100%;
height: 100%;
// max-height: 100%;
2024-10-08 17:03:22 +08:00
object-fit: contain;
2023-07-26 15:54:34 +08:00
}
2024-12-31 11:40:40 +08:00
.Dustbin{
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%,-50%);
cursor: pointer;
color: #fff;
border-radius: 4rem;
font-size: 1.8rem;
padding: 1rem 1.5rem;
background: rgba(0, 0, 0, 0.7);
display: none;
}
2024-12-23 16:23:18 +08:00
.icon_like,.icon_delete {
2023-07-26 15:54:34 +08:00
font-size: 2.4rem;
top: 1rem;
right: 1rem;
position: absolute;
cursor: pointer;
display: none;
}
2024-12-23 16:23:18 +08:00
.icon_delete{
top: 5rem;
}
2023-07-26 15:54:34 +08:00
.icon-jushoucang {
color: #000;
}
.icon-jushoucanggift {
2024-12-11 16:26:36 +08:00
// color: rgba(52, 53, 121, 1);
color: #000;
2023-07-26 15:54:34 +08:00
}
}
}
}
}
}
}
}
.page_content_bg {
position: absolute;
width: 100%;
height: 100%;
}
}
.progress_mark {
background: #ffffff;
width: 100%;
height: 100%;
position: fixed;
left: 0;
top: 0;
z-index: 9999;
display: flex;
justify-content: center;
align-items: center;
.mark_content {
text-align: center;
}
}
2023-01-06 16:00:15 +08:00
}
2023-08-05 12:52:56 +08:00
</style>