Files
aida_front/src/component/Detail/DesignDetailEnd.vue

573 lines
17 KiB
Vue
Raw Normal View History

2023-08-23 17:50:09 +08:00
<template>
<div class="detail_modal_body_result">
<div v-show="type_ == 1 || type_ == 2" class="result_apparel_print">
<div class="upload_title result_apparel" v-show="type_ == 1">
<i class="color_edit fi fi-bs-comments"></i>
2023-10-30 17:26:36 +08:00
<span>{{ $t('DesignDetailEnd.NewApparel') }}</span>
2023-08-23 17:50:09 +08:00
</div>
<div v-show="type_ == 2" class="result_print">
<div>
<div class="upload_title">
<i class="color_edit fi fi-bs-comments"></i>
2023-10-30 17:26:36 +08:00
<span>{{ $t('DesignDetailEnd.NewPrint') }}</span>
2023-08-23 17:50:09 +08:00
</div>
<div class="print_left">
2023-09-12 10:11:27 +08:00
<!-- <img :src="current.path" :title="current.type"> -->
2023-10-11 17:34:14 +08:00
<img :src="current?.printObject?.prints?.[0]?.path" v-if="current?.printObject?.prints?.[0]?.path">
2023-09-12 10:11:27 +08:00
<div src="@/assets/images/homePage/null_img.png" v-else ></div>
<div
2023-10-11 17:34:14 +08:00
v-show="current?.printObject?.prints?.[0]?.path"
2023-09-12 10:11:27 +08:00
class="delete_file_block"
@click="deleteFile"
>
<span class="icon iconfont icon-shanchu"></span>
</div>
2023-08-23 17:50:09 +08:00
</div>
</div>
<div>
<div class="upload_title">
<i class="color_edit fi fi-bs-comments"></i>
2023-10-30 17:26:36 +08:00
<span>{{ $t('DesignDetailEnd.Placement') }}</span>
2023-08-23 17:50:09 +08:00
</div>
<div class="print_right">
<div class="habit_Overal_Single">
<div
class="habit_Overal_Single_text"
2023-09-12 10:11:27 +08:00
:class="{ active: !overallSingle }"
2023-08-23 17:50:09 +08:00
>
2023-10-30 17:26:36 +08:00
{{ $t('DesignDetailEnd.Overall') }}
2023-08-23 17:50:09 +08:00
</div>
2023-09-12 10:11:27 +08:00
<a-switch @click="setOveralSingle" v-model:checked="overallSingle" />
2023-08-23 17:50:09 +08:00
<div
class="habit_Overal_Single_text"
2023-09-12 10:11:27 +08:00
:class="{ active: overallSingle }"
2023-08-23 17:50:09 +08:00
>
2023-10-30 17:26:36 +08:00
{{ $t('DesignDetailEnd.Single') }}
2023-08-23 17:50:09 +08:00
</div>
</div>
2023-10-20 17:21:45 +08:00
<!-- <div v-show="!overallSingle" class="habit_System_Designer">
2023-08-23 17:50:09 +08:00
<a-slider id="system_silder"
v-model:value="systemDesignerPercentage"
@afterChange="systemDesigner"
:tip-formatter="formatter"
>
</a-slider>
2023-10-20 17:21:45 +08:00
</div> -->
2023-08-23 17:50:09 +08:00
</div>
</div>
</div>
<div class="result_apparel_print_img">
2023-12-22 17:33:53 +08:00
<img v-show="type_==1" class="result_appare_img" :src="sketchImg?.path?sketchImg?.path:current?.path" :title="current?.type">
<!-- <img v-show="type_==2" class="result_print_img" :src="current?.path" :title="current?.type" @click="setPrint"> -->
<div v-show="type_==2" class="result_print_img" @click="setPrint" :title="current?.type">
<img v-for="item in current.layersObject" :src="item.imageUrl" alt="">
</div>
2023-09-12 10:11:27 +08:00
2023-08-23 17:50:09 +08:00
</div>
</div>
<div v-show="type_ == 3">
<div class="result_color upload_title">
<i class="color_edit fi fi-bs-comments"></i>
2023-10-30 17:26:36 +08:00
<span>{{ $t('DesignDetailEnd.NewColor') }}</span>
2023-08-23 17:50:09 +08:00
</div>
<div class="modal_img">
<div class="modal_img_item" v-for="color,index in colorList" :key="color" >
2023-09-12 10:11:27 +08:00
<div :title="color?.name?color?.name:''" @click="selectColorItem(index,color)" @dblclick="setSelectColorItem(color)" :class="['upload_color',selectIndex === index ? 'select_upload_color' : '',]" :style="{background:`rgba(${color?.r},${color?.g},${color?.b},${color?.a})`}">
2023-08-23 17:50:09 +08:00
<div class="color_content" :style="{'background-color':`rgba(${color.rgba?.r},${color.rgba?.g},${color.rgba?.b},${color.rgba?.a})`}">
</div>
<div class="color_content_body">
2023-09-12 10:11:27 +08:00
<div class="color_des">{{color.tcx}}</div>
<div class="color_des">{{ color.name }}</div>
2023-08-23 17:50:09 +08:00
</div>
</div>
</div>
</div>
</div>
<div v-show="type_ == 1 || type_ == 3" @click.stop="setPreview" class="subitOkPreviewBtn" :class="[ !sketchImg.id?!current.id?'active':'':'' ]">{{ $t('DesignDetailEnd.preview') }}</div>
2023-11-28 16:21:00 +08:00
<div v-if="type_ == 2 && current?.printObject?.prints?.[0]?.path != null" @click.stop="setPrint" class="subitOkPreviewBtn Guide_1_23">{{ $t('DesignDetailEnd.Layout') }}</div>
2023-12-20 17:03:42 +08:00
<div v-else-if="type_ == 2 && designItemDetail?.clothes?.[currentIndex]?.printObject?.prints?.[0]?.path != null && current?.printObject?.prints?.[0]?.path == null" @click.stop="setPreview" class="subitOkPreviewBtn">{{ $t('DesignDetailEnd.preview') }}</div>
2023-12-01 17:13:22 +08:00
<DesignPrintOperation v-if="!moible" ref="DesignPrintOperation"></DesignPrintOperation>
<DesignPrintOperationMobile v-else ref="DesignPrintOperationMobile"></DesignPrintOperationMobile>
2023-11-02 11:00:38 +08:00
</div>
<div class="mark_loading" v-show="loadingShow">
<a-spin size="large" />
2023-08-23 17:50:09 +08:00
</div>
</template>
<script>
2023-11-28 16:21:00 +08:00
import { defineComponent,computed,ref, nextTick,h ,inject} from 'vue'
2023-08-23 17:50:09 +08:00
import Draggable from 'vuedraggable'
import { Https } from "@/tool/https";
import { useStore } from "vuex";
import { Sketch} from '@ans1998/vue3-color'
2023-09-12 10:11:27 +08:00
import DesignPrintOperation from './DesignPrintOperation.vue';
2023-11-27 16:25:32 +08:00
import DesignPrintOperationMobile from './DesignPrintOperationMobile.vue';
2023-09-12 10:11:27 +08:00
import { message,Upload} from 'ant-design-vue';
2023-11-28 16:21:00 +08:00
import { openGuide,driverObj__ } from "@/tool/guide";
2023-11-27 16:25:32 +08:00
import {isMoible} from '@/tool/util'
2023-10-30 17:26:36 +08:00
import { useI18n } from 'vue-i18n';
2023-08-23 17:50:09 +08:00
export default defineComponent({
props: ["msg"],
components:{
2023-11-27 16:25:32 +08:00
Draggable,Sketch,DesignPrintOperation,DesignPrintOperationMobile
2023-08-23 17:50:09 +08:00
},
setup(prop) {
const store = useStore();
let type_ = ref(0);
2023-09-12 10:11:27 +08:00
let current = inject('current')//父组件传过来的数据
let setRevocation = inject('setRevocation')//父组件传过来的数据
2023-09-25 10:09:00 +08:00
let sketchImg = ref({})
2023-11-28 16:21:00 +08:00
let driver__ = inject('driver__')//父组件传过来的数据
2023-12-01 17:13:22 +08:00
let moible = inject('moible')//父组件传过来的数据
2023-12-20 17:03:42 +08:00
let designItemDetail = inject('designItemDetail')//父组件传过来的数据
let currentIndex = inject('currentIndex')//父组件传过来的数据
let previewShow = ref(false)
2023-08-23 17:50:09 +08:00
//印花
2023-09-12 10:11:27 +08:00
let overallSingle = ref(false)
2023-10-11 17:34:14 +08:00
let systemDesignerPercentage = ref(30)
2023-09-12 10:11:27 +08:00
2023-08-23 17:50:09 +08:00
//颜色
2023-12-20 17:03:42 +08:00
// let colorList = ref([{}])
let colorList = ref([{},{},{},{},{},{},{},{},{}])
2023-09-12 10:11:27 +08:00
//加载中
let loadingShow = ref(false)
2023-10-30 17:26:36 +08:00
let {t} = useI18n()
2023-08-23 17:50:09 +08:00
return{
2023-09-12 10:11:27 +08:00
store,
current,
setRevocation,
2023-09-25 10:09:00 +08:00
sketchImg,
2023-11-28 16:21:00 +08:00
driver__,
2023-12-01 17:13:22 +08:00
moible,
2023-12-20 17:03:42 +08:00
designItemDetail,
currentIndex,
previewShow,
2023-08-23 17:50:09 +08:00
type_,
2023-09-12 10:11:27 +08:00
overallSingle,
systemDesignerPercentage,
2023-08-23 17:50:09 +08:00
colorList,
2023-09-12 10:11:27 +08:00
loadingShow,
2023-10-30 17:26:36 +08:00
t,
2023-08-23 17:50:09 +08:00
}
},
data(){
return{
//颜色
selectIndex:0,//选中的文件索引
getRGBA:{},
selectColor:{},
}
},
methods:{
//点击判断
init(num){
2023-09-25 10:09:00 +08:00
// this.current = JSON.parse(JSON.stringify(this.currentItem))
2023-08-23 17:50:09 +08:00
this.type_ = num
this.colorList[this.selectIndex] = this.$parent.selectColor
2023-10-11 17:34:14 +08:00
this.overallSingle = this.current?.printObject?.ifSingle == null?false:this.current?.printObject?.ifSingle
this.systemDesignerPercentage = this.current?.printObject?.scale?this.current?.printObject?.scale:.3*100
2023-08-23 17:50:09 +08:00
},
2023-09-12 10:11:27 +08:00
//模型
2023-09-25 10:09:00 +08:00
setSketchImg(v){
this.sketchImg.id_ = v.id
2023-12-22 17:33:53 +08:00
this.sketchImg.id = v.id
2023-09-25 10:09:00 +08:00
this.sketchImg.path = v.url
2023-10-11 17:34:14 +08:00
this.sketchImg.minIOPath = v.minIOPath
2023-12-12 11:53:02 +08:00
this.sketchImg.type = v.level2Type
this.sketchImg.designType = v.designType
2023-09-25 10:09:00 +08:00
},
2023-08-23 17:50:09 +08:00
//印花
systemDesigner(num) {
2023-09-12 10:11:27 +08:00
this.current.printObject.scale = num
2023-08-23 17:50:09 +08:00
},
2023-09-12 10:11:27 +08:00
setOveralSingle(){
this.current.printObject.ifSingle = this.overallSingle
},
2023-08-23 17:50:09 +08:00
formatter(value) {
2023-09-25 10:09:00 +08:00
return `${value*3}%`;
2023-08-23 17:50:09 +08:00
},
2023-09-12 10:11:27 +08:00
setPrint(){
2023-10-12 17:09:05 +08:00
if(this.current?.printObject?.prints?.[0]?.path){
2023-11-27 16:25:32 +08:00
let DesignPrintOperation = isMoible() ? this.$refs.DesignPrintOperationMobile : this.$refs.DesignPrintOperation
2023-09-12 10:11:27 +08:00
DesignPrintOperation.init()
2023-11-28 16:21:00 +08:00
if(this.driver__.driver){
nextTick().then(()=>{
driverObj__.moveNext();
})
}
2023-09-12 10:11:27 +08:00
}else{
2023-11-16 17:23:17 +08:00
message.info(this.t('DesignDetailEnd.jsContent1'));
2023-09-12 10:11:27 +08:00
}
},
deleteFile(){
this.current.printObject = {}
},
2023-08-23 17:50:09 +08:00
//颜色
selectColorItem(index,color){
let hex
let parent = this.$parent
2023-09-12 10:11:27 +08:00
this.selectIndex = index
this.$parent.selectIndex = index
2023-08-23 17:50:09 +08:00
if(color.rgba?.r){
2023-12-20 17:03:42 +08:00
hex = parent.rgbaToHex([color.rgba.r,color.rgba.g,color.rgba.b])
2023-08-23 17:50:09 +08:00
}else{
2023-12-20 17:03:42 +08:00
this.$parent.selectColor = {}
return
2023-08-23 17:50:09 +08:00
}
2023-12-20 17:03:42 +08:00
//判断是否对一个颜色重复点击
if(this.$parent.selectColor?.rgba?.r == color?.rgba?.r && this.$parent.selectColor.rgba.g == color?.rgba?.g && this.$parent.selectColor.rgba.b == color?.rgba?.b){
return
}
this.$parent.selectColor = {rgba:{r:color.rgba?.r,g:color.rgba?.g,b:color.rgba?.b,a:color.rgba?.a},hex:hex}
2023-08-23 17:50:09 +08:00
this.$parent.tcxColor = ''
this.$parent.pantongName = ''
},
2023-09-12 10:11:27 +08:00
setSelectColorItem(color){
let designItemDetail = this.store.state.DesignDetailModule.designItemDetail
2023-12-20 17:03:42 +08:00
let string = `${color.rgba.r},${color.rgba.g},${color.rgba.b}`
2023-09-12 10:11:27 +08:00
this.current.color = string
designItemDetail.clothes.forEach((element,index) => {
if(element.id == this.current.id){
designItemDetail.clothes[index] = this.current
}
});
},
2023-12-22 10:57:12 +08:00
hasDuplicateId(arr) {
const set = new Set();
for (let i = 0; i < arr.length; i++) {
const id = arr[i].id;
if (set.has(id)) {
return true;
}
set.add(id);
}
return false;
},
soleId(arr,index){
let randomNum = Math.floor(100 + Math.random() * 900);
2024-03-12 09:42:08 +08:00
// if(this.sketchImg.id_){
if(this.sketchImg.id){
if(this.sketchImg.id == this.sketchImg.id_){
arr[index].id = Number(this.sketchImg.id_+(randomNum+""))
arr[index].changed = true
2024-03-12 09:42:08 +08:00
if(this.hasDuplicateId(arr)){
this.sketchImg.id_ = this.sketchImg.id
this.soleId(arr,index)
}
}else{
arr[index].id = this.sketchImg.id_
}
2023-12-22 10:57:12 +08:00
}else{
2024-03-12 09:42:08 +08:00
arr[index].id = this.current.id
2023-12-22 10:57:12 +08:00
}
2024-03-12 09:42:08 +08:00
// arr[index].id = this.sketchImg.id_? this.sketchImg.id_:this.current.id
return arr
2023-12-22 10:57:12 +08:00
},
2023-09-12 10:11:27 +08:00
//提交
setPreview(){
let designItemDetail = JSON.parse(JSON.stringify(this.store.state.DesignDetailModule.designItemDetail))
let index
2023-10-11 17:34:14 +08:00
let data = JSON.parse(JSON.stringify(this.store.state.DesignDetailModule.designPreviewData))
2023-12-13 16:09:17 +08:00
// let bor = false
let zIndex = 10
2023-09-12 10:11:27 +08:00
designItemDetail.clothes.forEach((v,ind)=>{
if(v.id == this.current.id){
index = ind
2023-12-13 16:09:17 +08:00
// bor = true
}
if(v.priority){
if(zIndex < v.priority){
zIndex = v.priority
}
2023-09-12 10:11:27 +08:00
}
})
2023-12-13 16:09:17 +08:00
if(!this.current.id){
data.designSingleItemDTOList[index].priority = zIndex+=1
}
if(this.type_ == 1){
2023-10-13 17:06:44 +08:00
if(data.designSingleItemDTOList[index].path != this.sketchImg.minIOPath && this.sketchImg.id_){
data.designSingleItemDTOList[index].offset = [0,0]
data.designSingleItemDTOList[index].scale = 1
}
2023-12-22 10:57:12 +08:00
data.designSingleItemDTOList = this.soleId(data.designSingleItemDTOList,index)
this.sketchImg.id_ = data.designSingleItemDTOList[index].id
2023-10-11 17:34:14 +08:00
data.designSingleItemDTOList[index].path =this.sketchImg.minIOPath? this.sketchImg.minIOPath: this.current.minIOPath
2023-12-12 11:53:02 +08:00
data.designSingleItemDTOList[index].type =this.sketchImg.type? this.sketchImg.type: this.current.type
2023-12-13 16:09:17 +08:00
}else if(this.type_ == 2){
2023-10-11 17:34:14 +08:00
data.designSingleItemDTOList[index].printObject.ifSingle = false
data.designSingleItemDTOList[index].printObject.prints = []
2023-12-13 16:09:17 +08:00
}else if(this.type_ == 3){
2023-12-20 17:03:42 +08:00
if(this.$parent.selectColor?.rgba?.r == undefined){
message.info(this.t('DesignDetailEnd.jsContent2'))
return
}
2023-09-12 10:11:27 +08:00
let color = `${this.$parent.selectColor.rgba.r} ${this.$parent.selectColor.rgba.g} ${this.$parent.selectColor.rgba.b}`
2023-10-11 17:34:14 +08:00
data.designSingleItemDTOList[index].color = color
2023-09-12 10:11:27 +08:00
}
data.designSingleItemDTOList[index].designType = this.sketchImg.designType?this.sketchImg.designType:this.current.designType
2023-09-25 10:09:00 +08:00
data.timeZone = Intl.DateTimeFormat().resolvedOptions().timeZone
2023-09-12 10:11:27 +08:00
this.loadingShow = true
Https.axiosPost(Https.httpUrls.designSingle, data).then(
(rv) => {
let bor = false
2023-12-12 11:53:02 +08:00
rv.clothes.forEach((item)=>{
if(item.type != 'body'){
if(item.id == designItemDetail.clothes[index].id || item.id == this.sketchImg.id_){
designItemDetail.clothes[index].color = item.color
designItemDetail.clothes[index].designType = item.designType
designItemDetail.clothes[index].layersObject = item.layersObject
designItemDetail.clothes[index].minIOPath = item.minIOPath
designItemDetail.clothes[index].path = item.path
designItemDetail.clothes[index].id = item.id
designItemDetail.clothes[index].changed = item.changed?item.changed:false
designItemDetail.clothes[index].type = item.type
designItemDetail.clothes[index].printObject = item.printObject
bor = true
}else{
}
2023-12-15 11:10:32 +08:00
if(!this.current.id ){
designItemDetail.clothes[index].priority = zIndex
}
2023-12-12 11:53:02 +08:00
}
})
2023-10-11 17:34:14 +08:00
designItemDetail.currentFullBodyView = rv.currentFullBodyView
2023-10-13 17:06:44 +08:00
designItemDetail.ifSubmit = true
2023-10-11 17:34:14 +08:00
designItemDetail.clothes.forEach((item,index)=>{
let a
if(item.layersObject[0].imageCategory.indexOf("back") == -1){
a = item.layersObject[0]
item.layersObject[0] = item.layersObject[1]
item.layersObject[1] = a
}
2023-12-12 11:53:02 +08:00
item.layersObject[0].id = designItemDetail.clothes[index].layersObject[0].id
item.layersObject[1].id = designItemDetail.clothes[index].layersObject[1].id
2023-10-11 17:34:14 +08:00
})
2023-09-12 10:11:27 +08:00
this.loadingShow = false
2023-09-25 10:09:00 +08:00
this.store.commit("setDesignItemDetail", designItemDetail);
2023-10-11 17:34:14 +08:00
this.store.commit("setDesignPreviewData", data);
this.setRevocation(designItemDetail,data)
2023-09-12 10:11:27 +08:00
}
).catch(res=>{
this.loadingShow = false
});
}
2023-08-23 17:50:09 +08:00
}
})
</script>
<style lang="less" scoped>
.detail_modal_body_result{
width: 26%;
2023-09-12 10:11:27 +08:00
position: relative;
2023-08-23 17:50:09 +08:00
i{
2023-11-27 16:25:32 +08:00
font-size: var(--aida-fsize1-8);
display: flex;
align-items: center;
2023-08-23 17:50:09 +08:00
}
2023-09-12 10:11:27 +08:00
2023-08-23 17:50:09 +08:00
.upload_title{
display: flex;
margin-bottom: calc(1rem*1.2);
margin-top: calc(1rem*1.2);
2023-08-23 17:50:09 +08:00
&.upload_title:nth-child(1){
margin-top: 0;
}
span{
margin-left: calc(1rem*1.2);
2023-11-27 16:25:32 +08:00
font-size: var(--aida-fsize1-8);
2023-08-23 17:50:09 +08:00
color: #000000;
}
}
//模型和印花
.result_apparel_print{
height: 100%;
display: flex;
flex-direction: column;
.result_apparel_print_img{
2023-09-12 10:11:27 +08:00
position: relative;
2023-08-23 17:50:09 +08:00
flex: 1;
2023-09-25 10:09:00 +08:00
text-align: center;
2023-08-23 17:50:09 +08:00
img{
2023-09-25 10:09:00 +08:00
max-width: 100%;
max-height: 100%;
2023-09-12 10:11:27 +08:00
width: auto;
2023-09-25 10:09:00 +08:00
height: auto;
max-height: calc(35rem*1.2);
margin-top: calc(2rem*1.2);
2023-10-11 17:34:14 +08:00
width: 100%;
object-fit: contain;
2023-08-23 17:50:09 +08:00
}
.result_print_img{
2023-09-12 10:11:27 +08:00
transform: scale(.85);
2023-09-25 10:09:00 +08:00
transform-origin: center top;
2023-09-12 10:11:27 +08:00
cursor: pointer;
img:nth-child(1){
position: absolute;
}
2023-08-23 17:50:09 +08:00
}
}
}
//印花
.result_print{
display: flex;
justify-content: space-between;
height: calc(14rem*1.2);
2023-10-20 17:21:45 +08:00
>div{
display: flex;
flex-direction: column;
.print_left,.print_right{
display: flex;
flex: 1;
align-items: center;
2023-11-03 11:16:42 +08:00
align-items: flex-start;
2023-10-20 17:21:45 +08:00
}
}
2023-08-23 17:50:09 +08:00
.print_left{
2023-09-12 10:11:27 +08:00
position: relative;
2023-08-23 17:50:09 +08:00
img{
2023-09-12 10:11:27 +08:00
width: auto;
height: calc(8rem*1.2);
2023-08-23 17:50:09 +08:00
margin: auto;
2023-09-12 10:11:27 +08:00
display: block;
2023-08-23 17:50:09 +08:00
}
2023-09-12 10:11:27 +08:00
.delete_file_block{
display: none;
width: calc(3.2rem*1.2);
height: calc(3.2rem*1.2);
2023-09-12 10:11:27 +08:00
background: rgba(0,0,0,0.6);
border-radius: calc(0.4rem*1.2);
2023-09-12 10:11:27 +08:00
position: absolute;
top: calc(0.9rem*1.2);
right: calc(0.9rem*1.2);
2023-09-12 10:11:27 +08:00
text-align: center;
line-height: calc(3.2rem*1.2);
2023-09-12 10:11:27 +08:00
left: auto;
.icon-shanchu{
font-size: calc(1.6rem*1.2);
2023-09-12 10:11:27 +08:00
color: #fff;
}
}
&:hover .delete_file_block{
display: block;
}
2023-08-23 17:50:09 +08:00
}
.print_right{
2023-10-20 17:21:45 +08:00
2023-08-23 17:50:09 +08:00
.habit_Overal_Single {
display: flex;
align-items: center;
justify-content: center;
// margin: 2rem*1.2) 0;
2023-08-23 17:50:09 +08:00
transform: scale(.8);
// margin: 3rem*1.2) 0;
2023-08-23 17:50:09 +08:00
.habit_Overal_Single_text {
font-weight: 600;
color: rgba(0, 0, 0, 0.5);
&.active {
color: rgba(0, 0, 0, 0.7);
// font-weight: 900;
transform: scale(1.2);
}
}
:deep(.ant-switch) {
margin: 0 calc(1rem*1.2);
2023-08-23 17:50:09 +08:00
background-color: #efefef;
}
:deep(.ant-switch-checked) {
background-color: #000;
}
}
.habit_System_Designer {
margin-top: calc(4rem*1.2);
2023-08-23 17:50:09 +08:00
transform: scale(.8);
:deep(.ant-slider-track),
:deep(.ant-slider-rail) {
height: calc(.6rem*1.2);
2023-08-23 17:50:09 +08:00
background-color: #e1e1e1;
border-radius: calc(0.5rem*1.2);
2023-08-23 17:50:09 +08:00
}
:deep(.ant-slider .ant-slider-handle:not(.ant-tooltip-open)),
:deep(.ant-slider-handle) {
background-color: #2d2e76 !important;
border: none !important;
}
:deep(.ant-slider-handle:hover) {
box-shadow: 0 0 0 5px rgba(45, 46, 118, 0.2);
}
}
}
}
//颜色
.modal_img{
width: 100%;
overflow-x: hidden;
display: flex;
flex-wrap: wrap;
padding-left: calc(2rem*1.2);
2023-08-23 17:50:09 +08:00
&.modal_img::-webkit-scrollbar {
display: none;
}
.modal_img_item{
margin: 0 calc(1rem*1.2) calc(1rem*1.2) 0;
2023-08-23 17:50:09 +08:00
position: relative;
2023-12-20 17:03:42 +08:00
// cursor: pointer;
border: calc(0.1rem*1.2) solid #DCDCEC;
2023-12-20 17:03:42 +08:00
//放8个
height: calc(8.5rem*1.2);
width: calc(7rem*1.2);
// height: 32rem*1.2);
// width: 25rem*1.2);
2023-10-20 17:21:45 +08:00
overflow: hidden;
@media screen and (max-width: 1440px) {
&.modal_img_item {
line-height: 1.2;
}
}
2023-09-12 10:11:27 +08:00
box-sizing: border-box;
2023-08-23 17:50:09 +08:00
.color_content{
2023-09-12 10:11:27 +08:00
width: 100%;
2023-12-20 17:03:42 +08:00
//放8个
height: calc(4rem*1.2);
// height: 25rem*1.2);
2023-08-23 17:50:09 +08:00
}
.color_content_body{
.color_des{
// font-size: 1.8rem*1.2);
2023-08-23 17:50:09 +08:00
font-weight: 600;
2023-09-12 10:11:27 +08:00
white-space: nowrap;
width: 100%;
overflow: hidden;
text-overflow:ellipsis;
2023-08-23 17:50:09 +08:00
}
}
.select_upload_color{
border: calc(0.1rem*1.2) solid #343579;
2023-08-23 17:50:09 +08:00
}
.upload_color{
width: 100%;
height: 100%;
}
}
2023-09-12 10:11:27 +08:00
}
.subitOkPreviewBtn{
bottom: calc(4rem*1.2);
2023-09-12 10:11:27 +08:00
position: absolute;
&.active{
opacity: .5;
pointer-events:none;
}
2023-08-23 17:50:09 +08:00
}
}
</style>