2023-10-30-1
This commit is contained in:
@@ -373,7 +373,9 @@ export default defineComponent({
|
|||||||
body = item
|
body = item
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
let ratio:any = await this.setPostition(body.layersObject[0]?.imageUrl)
|
console.log(body?.layersObject?.[0]?.imageUrl);
|
||||||
|
|
||||||
|
let ratio:any = await this?.setPostition(body?.layersObject?.[0]?.imageUrl)
|
||||||
let frontIndex = 6
|
let frontIndex = 6
|
||||||
let backIndex = 3
|
let backIndex = 3
|
||||||
designItemDetail.clothes.forEach((v:any,index:any)=>{
|
designItemDetail.clothes.forEach((v:any,index:any)=>{
|
||||||
@@ -411,7 +413,6 @@ export default defineComponent({
|
|||||||
back:back,
|
back:back,
|
||||||
body:body,
|
body:body,
|
||||||
}
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
setDesignCoverage(str:string){
|
setDesignCoverage(str:string){
|
||||||
let {design,index,collectionList} = this.parentData
|
let {design,index,collectionList} = this.parentData
|
||||||
|
|||||||
@@ -123,7 +123,7 @@
|
|||||||
>
|
>
|
||||||
System
|
System
|
||||||
</div>
|
</div>
|
||||||
<a-switch v-model:checked="systemSeleves" />
|
<a-switch :disabled="mannequins?.[0]==null?true:false" v-model:checked="systemSeleves" />
|
||||||
<div
|
<div
|
||||||
class="habit_System_Seleves_text"
|
class="habit_System_Seleves_text"
|
||||||
:class="{ active: systemSeleves }"
|
:class="{ active: systemSeleves }"
|
||||||
@@ -390,6 +390,9 @@ export default defineComponent({
|
|||||||
rv[1] = a
|
rv[1] = a
|
||||||
}
|
}
|
||||||
this.mannequins = rv
|
this.mannequins = rv
|
||||||
|
if(this.mannequins?.[0]==null){
|
||||||
|
this.systemSeleves = false
|
||||||
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
@@ -9,6 +9,9 @@
|
|||||||
<div @click="selectColorItem(index,color)" :class="['upload_color',selectIndex === index ? 'select_upload_color' : '',]" :style="{background:`rgba(${color?.r},${color?.g},${color?.b},${color?.a})`}">
|
<div @click="selectColorItem(index,color)" :class="['upload_color',selectIndex === index ? 'select_upload_color' : '',]" :style="{background:`rgba(${color?.r},${color?.g},${color?.b},${color?.a})`}">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div>
|
||||||
|
<span class="started_btn" @click="clearCurrentColor">Clear</span>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="colorboard_upload_right">
|
<div class="colorboard_upload_right">
|
||||||
@@ -45,16 +48,11 @@
|
|||||||
<div class="rgb_item">{{getSelectRGB(selectColor).b}}</div>
|
<div class="rgb_item">{{getSelectRGB(selectColor).b}}</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- <div class="color_review_block">
|
<!-- <div class="color_review_block">
|
||||||
<div class="color_review_content" :style="{background: reviewColor?.r || reviewColor?.r===0 ?`rgb(${reviewColor?.r},${reviewColor?.g},${reviewColor?.b})` : 'none'}"></div>
|
|
||||||
<div class="pantong_name" v-show="pantongName">{{pantongName}}</div>
|
|
||||||
<div class="clear_button" @click="clearCurrentColor()">Clear</div>
|
<div class="clear_button" @click="clearCurrentColor()">Clear</div>
|
||||||
</div> -->
|
</div> -->
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="right_content_line right_content_line_upload">
|
<div class="right_content_line right_content_line_upload">
|
||||||
@@ -235,7 +233,7 @@ export default defineComponent({
|
|||||||
//选择不同的色块
|
//选择不同的色块
|
||||||
selectColorItem(index,color){
|
selectColorItem(index,color){
|
||||||
let hex
|
let hex
|
||||||
if(color.r){
|
if(color?.r){
|
||||||
hex = this.rgbaToHex([color.r,color.g,color.b,color.a?color.a:1])
|
hex = this.rgbaToHex([color.r,color.g,color.b,color.a?color.a:1])
|
||||||
}else{
|
}else{
|
||||||
hex = '#FFFFFF'
|
hex = '#FFFFFF'
|
||||||
@@ -276,10 +274,10 @@ export default defineComponent({
|
|||||||
//清除当前的颜色
|
//清除当前的颜色
|
||||||
clearCurrentColor(){
|
clearCurrentColor(){
|
||||||
this.selectColor = {}
|
this.selectColor = {}
|
||||||
this.fileList = []
|
// this.fileList = []
|
||||||
this.reviewColor={}
|
this.reviewColor={}
|
||||||
this.pantongName = ''
|
this.pantongName = ''
|
||||||
this.pantongNameList = []
|
// this.pantongNameList = []
|
||||||
this.tcxColor = ''
|
this.tcxColor = ''
|
||||||
},
|
},
|
||||||
|
|
||||||
@@ -485,17 +483,19 @@ export default defineComponent({
|
|||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
}
|
}
|
||||||
.modal_img{
|
.modal_img{
|
||||||
width: 40rem;
|
width: 45rem;
|
||||||
|
// width: 40rem;
|
||||||
height: 5rem;
|
height: 5rem;
|
||||||
overflow-x: hidden;
|
overflow-x: hidden;
|
||||||
display: flex;
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
&.modal_img::-webkit-scrollbar {
|
&.modal_img::-webkit-scrollbar {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
.modal_img_item{
|
.modal_img_item{
|
||||||
width: 4rem;
|
width: 4rem;
|
||||||
height: 4rem;
|
height: 4rem;
|
||||||
margin: 0 1rem 1rem 0;
|
margin: 0 1rem 0 0;
|
||||||
position: relative;
|
position: relative;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
border: 0.1rem solid #DCDCEC;
|
border: 0.1rem solid #DCDCEC;
|
||||||
@@ -553,39 +553,6 @@ export default defineComponent({
|
|||||||
.upload_centetn::-webkit-scrollbar {
|
.upload_centetn::-webkit-scrollbar {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
.color_review_block{
|
|
||||||
margin-right: 4rem;
|
|
||||||
|
|
||||||
.color_review_content{
|
|
||||||
width: 16.5rem;
|
|
||||||
height: 16.5rem;
|
|
||||||
background: #FFFFFF;
|
|
||||||
border: 0.1rem solid #DCDCEC;
|
|
||||||
}
|
|
||||||
|
|
||||||
.pantong_name{
|
|
||||||
margin-top: 1rem;
|
|
||||||
font-size: 1.6rem;
|
|
||||||
font-weight: 400;
|
|
||||||
color: #030303;
|
|
||||||
text-align: left;
|
|
||||||
font-weight: bold;
|
|
||||||
}
|
|
||||||
|
|
||||||
.clear_button{
|
|
||||||
padding: 0 2.8rem;
|
|
||||||
height: 3.2rem;
|
|
||||||
line-height: 3.2rem;
|
|
||||||
background: #EFEEFF;
|
|
||||||
font-size: 1.2rem;
|
|
||||||
font-family: Roboto;
|
|
||||||
color: #343579;
|
|
||||||
display: inline-block;
|
|
||||||
margin-top: 1rem;
|
|
||||||
cursor: pointer;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.upload_file_item{
|
.upload_file_item{
|
||||||
// margin: 0 2rem 2rem 0;
|
// margin: 0 2rem 2rem 0;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
|
|||||||
@@ -43,16 +43,6 @@
|
|||||||
Library
|
Library
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div style="display: flex; align-items: center;">
|
|
||||||
<div style="display: flex; align-items: center;">
|
|
||||||
<input type="checkbox" model="false" @click="()=>{sex = 'Female'}">
|
|
||||||
Female
|
|
||||||
</div>
|
|
||||||
<div style="display: flex; align-items: center;">
|
|
||||||
<input type="checkbox" model="false" @click="()=>{sex = 'Male'}">
|
|
||||||
Male
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="models_placement_content">
|
<div class="models_placement_content">
|
||||||
<div class="plcaement_point_content">
|
<div class="plcaement_point_content">
|
||||||
@@ -76,6 +66,9 @@
|
|||||||
<div class="point_item" v-for="item in point.pointList" :key="item.color" :style="{borderColor:item.color,visibility:item.show?'inherit':'hidden'}" @mousedown="AddDian(item)"><div class="point_block" :style="{background:item.color}"></div></div>
|
<div class="point_item" v-for="item in point.pointList" :key="item.color" :style="{borderColor:item.color,visibility:item.show?'inherit':'hidden'}" @mousedown="AddDian(item)"><div class="point_block" :style="{background:item.color}"></div></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="placement_point_item placement_point_item_btn">
|
||||||
|
<span class="started_btn" @click="setPoint">Point</span>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="placement_content_operate_list">
|
<div class="placement_content_operate_list">
|
||||||
@@ -207,11 +200,11 @@ export default defineComponent({
|
|||||||
autoCropWidth: '0', //默认生成截图框宽度
|
autoCropWidth: '0', //默认生成截图框宽度
|
||||||
autoCropHeight: '0', //默认生成截图框高度
|
autoCropHeight: '0', //默认生成截图框高度
|
||||||
fixed: true, //是否开启截图框宽高固定比例
|
fixed: true, //是否开启截图框宽高固定比例
|
||||||
fixedBox: false, //固定截图框大小,不允许改变
|
fixedBox: true, //固定截图框大小,不允许改变
|
||||||
fixedNumber: [1, 2.125], //截图框的宽高比例
|
fixedNumber: [1, 2.125], //截图框的宽高比例
|
||||||
full: false, //false按原比例裁切图片,不失真
|
full: false, //false按原比例裁切图片,不失真
|
||||||
canMove: true, //上传图片是否可以移动
|
canMove: true, //上传图片是否可以移动
|
||||||
canMoveBox: true, //截图框能否拖动
|
canMoveBox: false, //截图框能否拖动
|
||||||
original: false, //上传图片按照原始比例渲染
|
original: false, //上传图片按照原始比例渲染
|
||||||
centerBox: false, //截图框是否被限制在图片里面
|
centerBox: false, //截图框是否被限制在图片里面
|
||||||
height: true, //是否按照设备的dpr 输出等比例图片
|
height: true, //是否按照设备的dpr 输出等比例图片
|
||||||
@@ -231,15 +224,15 @@ export default defineComponent({
|
|||||||
watch: {
|
watch: {
|
||||||
sex:{
|
sex:{
|
||||||
handler(newVal:any,oldVal:any){
|
handler(newVal:any,oldVal:any){
|
||||||
let imgbox:any = this.$refs.imgbox
|
// let imgbox:any = this.$refs.imgbox
|
||||||
let imgBoxSizeBG = imgbox?.getElementsByClassName('cropper-view-box-BG')?.[0]
|
// let imgBoxSizeBG = imgbox?.getElementsByClassName('cropper-view-box-BG')?.[0]
|
||||||
if(imgBoxSizeBG){
|
// if(imgBoxSizeBG){
|
||||||
if(newVal == 'Male'){
|
// if(newVal == 'Male'){
|
||||||
imgBoxSizeBG.style.background = `url(./image/maleBG.png) no-repeat 0 0 / 100% 100%`
|
// imgBoxSizeBG.style.background = `url(./image/maleBG.png) no-repeat 0 0 / 100% 100%`
|
||||||
}else{
|
// }else{
|
||||||
imgBoxSizeBG.style.background = `url(./image/femaleBG.png) no-repeat 0 0 / 100% 100%`
|
// imgBoxSizeBG.style.background = `url(./image/femaleBG.png) no-repeat 0 0 / 100% 100%`
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@@ -261,23 +254,38 @@ export default defineComponent({
|
|||||||
|
|
||||||
let imgBoxSize = imgbox.getElementsByClassName('cropper-crop-box')[0]
|
let imgBoxSize = imgbox.getElementsByClassName('cropper-crop-box')[0]
|
||||||
let imgBoxSizeBG = imgbox.getElementsByClassName('cropper-view-box')[0]
|
let imgBoxSizeBG = imgbox.getElementsByClassName('cropper-view-box')[0]
|
||||||
|
let divTop:any = document.createElement('div');
|
||||||
|
let divBottom:any = document.createElement('div');
|
||||||
|
let divCenter:any = document.createElement('div');
|
||||||
let div:any = document.createElement('div');
|
let div:any = document.createElement('div');
|
||||||
if(imgbox.getElementsByClassName('cropper-view-box-BG').length >= 1){
|
if(imgbox.getElementsByClassName('cropper-view-box-Bg').length >= 1){
|
||||||
}else{
|
}else{
|
||||||
div.classList.add('cropper-view-box-BG')
|
div.classList.add('cropper-view-box-Bg')
|
||||||
|
divTop.classList.add('cropper-view-box-Bg')
|
||||||
|
divBottom.classList.add('cropper-view-box-Bg')
|
||||||
|
divCenter.classList.add('cropper-view-box-Bg')
|
||||||
|
|
||||||
|
div.classList.add('cropper-view-box-Mask')
|
||||||
|
divTop.classList.add('cropper-view-box-Top')
|
||||||
|
divBottom.classList.add('cropper-view-box-Bottom')
|
||||||
|
divCenter.classList.add('cropper-view-box-Center')
|
||||||
|
|
||||||
div.style.background = `url(./image/femaleBG.png) no-repeat 0 0 / 100% 100%`
|
div.style.background = `url(./image/femaleBG.png) no-repeat 0 0 / 100% 100%`
|
||||||
div.style.width = '100%'
|
imgBoxSizeBG.appendChild(divTop)
|
||||||
div.style.height = '100%'
|
// imgBoxSizeBG.appendChild(div)
|
||||||
div.style.position = `absolute`
|
imgBoxSizeBG.appendChild(divBottom)
|
||||||
div.style.top = `0`
|
imgBoxSizeBG.appendChild(divCenter)
|
||||||
imgBoxSizeBG.appendChild(div)
|
|
||||||
}
|
}
|
||||||
// imgBoxSize.style.backgroundImage = 'url('+require('@assets/images/library/lemaleBG.png')')'
|
// imgBoxSize.style.backgroundImage = 'url('+require('@assets/images/library/lemaleBG.png')')'
|
||||||
|
|
||||||
let cropper:any = this.$refs.cropper
|
let cropper:any = this.$refs.cropper
|
||||||
|
console.log(cropper);
|
||||||
|
|
||||||
cropper.cropH = cropper.scale*cropper.trueHeight
|
cropper.cropH = cropper.scale*cropper.trueHeight
|
||||||
cropper.cropW = cropper.cropH/2.125
|
cropper.cropW = cropper.cropH/2.125
|
||||||
cropper.cropOffsertX = cropper.getImgAxis().x1
|
cropper.cropOffsertX = cropper.getImgAxis().x1+(cropper.scale*cropper.trueWidth/2-cropper.cropW/2)
|
||||||
|
console.log(cropper.getImgAxis().x1,cropper.scale*cropper.trueWidth/2,cropper.cropW/2);
|
||||||
|
|
||||||
cropper.cropOffsertY = cropper.getImgAxis().y1
|
cropper.cropOffsertY = cropper.getImgAxis().y1
|
||||||
imgBoxSize.addEventListener('mousemove',this.startMove)
|
imgBoxSize.addEventListener('mousemove',this.startMove)
|
||||||
this.setImageSize()
|
this.setImageSize()
|
||||||
@@ -347,12 +355,12 @@ export default defineComponent({
|
|||||||
pointList:[{type:'handLeft',color:'#d88e8e',show:true,field:'hand'},{type:'handRight',color:'#d88e8e',show:true,field:'hand'}]
|
pointList:[{type:'handLeft',color:'#d88e8e',show:true,field:'hand'},{type:'handRight',color:'#d88e8e',show:true,field:'hand'}]
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
if(this.printObject.templateId){//编辑
|
if(this.printObject.shoulderLeft?.length >1){//编辑
|
||||||
|
console.log(this.printObject);
|
||||||
|
|
||||||
this.isSubmit = true
|
this.isSubmit = true
|
||||||
this.option.canScale = false
|
// this.option.canScale = false
|
||||||
this.option.fixedBox = true
|
// this.option.canMove = false
|
||||||
this.option.canMove = false
|
|
||||||
this.option.canMoveBox = false
|
|
||||||
for(let ponit of this.pointList){
|
for(let ponit of this.pointList){
|
||||||
for(let pointItem of ponit.pointList){
|
for(let pointItem of ponit.pointList){
|
||||||
if(this.printObject[pointItem.type]?.length){
|
if(this.printObject[pointItem.type]?.length){
|
||||||
@@ -371,20 +379,51 @@ export default defineComponent({
|
|||||||
this.oldLocationList = JSON.parse(JSON.stringify(this.locationList))
|
this.oldLocationList = JSON.parse(JSON.stringify(this.locationList))
|
||||||
}else{
|
}else{
|
||||||
this.option.canScale = true
|
this.option.canScale = true
|
||||||
this.option.fixedBox = false
|
// this.option.fixedBox = false
|
||||||
this.option.canMove = true
|
this.option.canMove = true
|
||||||
this.option.canMoveBox = true
|
// this.option.canMoveBox = true
|
||||||
}
|
}
|
||||||
|
|
||||||
this.oldPointList = JSON.parse(JSON.stringify(this.pointList))
|
this.oldPointList = JSON.parse(JSON.stringify(this.pointList))
|
||||||
},
|
},
|
||||||
|
setPoint(){
|
||||||
|
console.log();
|
||||||
|
let printObject = JSON.parse(JSON.stringify(this.printObject))
|
||||||
|
this.printObject = {
|
||||||
|
"shoulderLeft": [
|
||||||
|
0.3338,
|
||||||
|
0.1858
|
||||||
|
],
|
||||||
|
"shoulderRight": [
|
||||||
|
0.6644,
|
||||||
|
0.1858
|
||||||
|
],
|
||||||
|
"waistbandLeft": [
|
||||||
|
0.3758,
|
||||||
|
0.364
|
||||||
|
],
|
||||||
|
"waistbandRight": [
|
||||||
|
0.6103,
|
||||||
|
0.364
|
||||||
|
],
|
||||||
|
"handLeft": [
|
||||||
|
0.3277,
|
||||||
|
0.4687
|
||||||
|
],
|
||||||
|
"handRight": [
|
||||||
|
0.6764,
|
||||||
|
0.4715
|
||||||
|
],
|
||||||
|
file:printObject.file,
|
||||||
|
url:printObject.url
|
||||||
|
}
|
||||||
|
this.getDefaultPointList(this.imgBox)
|
||||||
|
},
|
||||||
AddDian(point:any){
|
AddDian(point:any){
|
||||||
if(!point.show){
|
if(!point.show){
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
this.startDian = true
|
this.startDian = true
|
||||||
this.isRemoveStatus = false
|
this.isRemoveStatus = false
|
||||||
this.intObj = point
|
this.intObj = point
|
||||||
},
|
},
|
||||||
@@ -866,6 +905,13 @@ export default defineComponent({
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
&.placement_point_item_btn{
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
.started_btn{
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -947,6 +993,38 @@ export default defineComponent({
|
|||||||
position: relative;
|
position: relative;
|
||||||
|
|
||||||
&::-webkit-scrollbar { width: 0 !important }
|
&::-webkit-scrollbar { width: 0 !important }
|
||||||
|
.cropper-view-box-Bg{
|
||||||
|
width: 100%;
|
||||||
|
position: absolute;
|
||||||
|
}
|
||||||
|
.cropper-view-box-Mask{
|
||||||
|
top: 0;
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
|
.cropper-view-box-Top{
|
||||||
|
// border-top: 1px dashed;
|
||||||
|
/*虚线2 css*/
|
||||||
|
background: linear-gradient(to left,transparent 0%,transparent 50%,#646464 50%,#646464 100%);background-size: 10px 1px;background-repeat: repeat-x;
|
||||||
|
height: 1rem;
|
||||||
|
opacity: .4;
|
||||||
|
top: 6%;
|
||||||
|
}
|
||||||
|
.cropper-view-box-Bottom{
|
||||||
|
bottom: 6%;
|
||||||
|
// border-top: 1px dashed;
|
||||||
|
height: 1rem;
|
||||||
|
opacity: .4;
|
||||||
|
background: linear-gradient(to left,transparent 0%,transparent 50%,#646464 50%,#646464 100%);background-size: 10px 1px;background-repeat: repeat-x;
|
||||||
|
}
|
||||||
|
.cropper-view-box-Center{
|
||||||
|
// border-left: 1px dashed;
|
||||||
|
left: 50%;
|
||||||
|
opacity: .4;
|
||||||
|
background: linear-gradient(to bottom,transparent 0%,transparent 50%,#646464 50%,#646464 100%);background-size: 1px 10px;background-repeat: repeat-y;
|
||||||
|
top: 0;
|
||||||
|
width: 1rem;
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.perview_mark_loading{
|
.perview_mark_loading{
|
||||||
|
|||||||
@@ -230,8 +230,6 @@ export default defineComponent({
|
|||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
min-width: 1024px;
|
min-width: 1024px;
|
||||||
position: relative;
|
position: relative;
|
||||||
left: 50%;
|
|
||||||
transform: translateX(-50%);
|
|
||||||
.page_content {
|
.page_content {
|
||||||
position: relative;
|
position: relative;
|
||||||
|
|
||||||
|
|||||||
@@ -141,7 +141,7 @@
|
|||||||
@dragover.prevent
|
@dragover.prevent
|
||||||
@drop="dragDrop($event, index)">
|
@drop="dragDrop($event, index)">
|
||||||
<div class="content_img_flex">
|
<div class="content_img_flex">
|
||||||
<img class="content_img" v-lazy="design.designOutfitUrl"
|
<img class="content_img" :src="design.designOutfitUrl"
|
||||||
:key="design.designOutfitUrl" />
|
:key="design.designOutfitUrl" />
|
||||||
</div>
|
</div>
|
||||||
<div class="icon iconfont icon-jushoucanggift icon_like" @click.stop="
|
<div class="icon iconfont icon-jushoucanggift icon_like" @click.stop="
|
||||||
@@ -322,9 +322,21 @@ export default defineComponent({
|
|||||||
// }
|
// }
|
||||||
|
|
||||||
// }
|
// }
|
||||||
|
|
||||||
// el.style.marginLeft = num+'px'
|
// el.style.marginLeft = num+'px'
|
||||||
// })
|
// })
|
||||||
|
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)
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
el.addEventListener('wheel',(e:WheelEvent)=>{
|
el.addEventListener('wheel',(e:WheelEvent)=>{
|
||||||
let num = 0
|
let num = 0
|
||||||
@@ -334,7 +346,7 @@ export default defineComponent({
|
|||||||
num = -25
|
num = -25
|
||||||
}
|
}
|
||||||
el.scrollBy(num, 0);
|
el.scrollBy(num, 0);
|
||||||
})
|
},true)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -1112,7 +1124,12 @@ export default defineComponent({
|
|||||||
|
|
||||||
.right_content_block {
|
.right_content_block {
|
||||||
height: calc(100% - 8.584rem);
|
height: calc(100% - 8.584rem);
|
||||||
|
overflow-y: auto;
|
||||||
|
|
||||||
|
&.right_content_block::-webkit-scrollbar{display: none;}
|
||||||
|
&.active{
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
.right_content_header {
|
.right_content_header {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
@@ -1143,6 +1160,7 @@ export default defineComponent({
|
|||||||
padding: 0 1.8rem 0 1.2rem;
|
padding: 0 1.8rem 0 1.2rem;
|
||||||
background: rgba(255, 255, 255, 0.2);
|
background: rgba(255, 255, 255, 0.2);
|
||||||
height: calc(50% - 5.5rem);
|
height: calc(50% - 5.5rem);
|
||||||
|
min-height: 280px;
|
||||||
|
|
||||||
.right_content_img_block {
|
.right_content_img_block {
|
||||||
// overflow-y: auto;
|
// overflow-y: auto;
|
||||||
@@ -1153,7 +1171,7 @@ export default defineComponent({
|
|||||||
width: auto;
|
width: auto;
|
||||||
// overflow: hidden;
|
// overflow: hidden;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
padding-bottom: 1rem;
|
// padding-bottom: 1rem;
|
||||||
overflow-x: auto;
|
overflow-x: auto;
|
||||||
&.active::-webkit-scrollbar-button:single-button{
|
&.active::-webkit-scrollbar-button:single-button{
|
||||||
display: none;
|
display: none;
|
||||||
@@ -1196,8 +1214,11 @@ export default defineComponent({
|
|||||||
width: auto;
|
width: auto;
|
||||||
height: 37rem;
|
height: 37rem;
|
||||||
// height: 29.5rem;
|
// height: 29.5rem;
|
||||||
margin-right: 2rem;
|
margin-right: 1rem;
|
||||||
// margin-bottom: 1rem;
|
// margin-bottom: 1rem;
|
||||||
|
min-width: 127px;
|
||||||
|
min-height: 271px;
|
||||||
|
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
position: relative;
|
position: relative;
|
||||||
vertical-align: top;
|
vertical-align: top;
|
||||||
|
|||||||
@@ -935,8 +935,6 @@ export default defineComponent({
|
|||||||
padding: 0 9rem;
|
padding: 0 9rem;
|
||||||
min-width: 1024px;
|
min-width: 1024px;
|
||||||
position: relative;
|
position: relative;
|
||||||
left: 50%;
|
|
||||||
transform: translateX(-50%);
|
|
||||||
.page_content {
|
.page_content {
|
||||||
position: relative;
|
position: relative;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user