|
@@ -1,5 +1,5 @@
|
|
|
<template>
|
|
|
- <div :class="['writeTable', editCardflag ? '' : 'writeTable-preview']" v-if="data">
|
|
|
+ <div :class="['writeTable', editCardflag ? '' : 'writeTable-preview writeTable-preview-' + totalNumber]" v-if="data">
|
|
|
<div class="writeTop" v-bind:class="{ flipped: isFlipped && !editCardflag }">
|
|
|
<template v-if="editCardflag">
|
|
|
<div class="left">
|
|
@@ -91,13 +91,19 @@
|
|
|
<div class="item-image" v-if="data.left.fileList.length > 0">
|
|
|
<el-image
|
|
|
:style="{
|
|
|
- width: '568px',
|
|
|
+ width: totalNumber < 3 ? '468px' : '418px',
|
|
|
height:
|
|
|
- data.left.con && (data.headerCon || data.label)
|
|
|
- ? '370px'
|
|
|
+ totalNumber < 3
|
|
|
+ ? data.left.con && (data.headerCon || data.label)
|
|
|
+ ? '300px'
|
|
|
+ : !data.left.con && (data.headerCon || data.label)
|
|
|
+ ? '330px'
|
|
|
+ : ' 340px'
|
|
|
+ : data.left.con && !data.right.hideHanzi && (data.headerCon || data.label)
|
|
|
+ ? '248px'
|
|
|
: !data.left.con && (data.headerCon || data.label)
|
|
|
- ? '402px'
|
|
|
- : ' 418px',
|
|
|
+ ? '268px'
|
|
|
+ : ' 268px',
|
|
|
}"
|
|
|
:src="data.left.fileList[0].fileUrl"
|
|
|
:preview-src-list="[data.left.fileList[0].fileUrl]"
|
|
@@ -118,7 +124,14 @@
|
|
|
v-if="(isPreview && !showLeft) || !isPreview"
|
|
|
:style="{
|
|
|
borderColor: data.borderColor,
|
|
|
- paddingTop: data.right.collocation || data.right.exampleSent || data.right.definition ? '' : '130px',
|
|
|
+ paddingTop:
|
|
|
+ totalNumber < 3
|
|
|
+ ? data.right.collocation || data.right.exampleSent || data.right.definition
|
|
|
+ ? ''
|
|
|
+ : '90px'
|
|
|
+ : data.right.collocation || data.right.exampleSent || data.right.definition
|
|
|
+ ? ''
|
|
|
+ : '60px',
|
|
|
}"
|
|
|
>
|
|
|
<div class="header-info-preview">
|
|
@@ -435,10 +448,10 @@ export default {
|
|
|
box-sizing: border-box;
|
|
|
perspective: 1000px;
|
|
|
&-preview {
|
|
|
- width: 600px;
|
|
|
+ width: 100%;
|
|
|
}
|
|
|
.writeTop {
|
|
|
- min-height: 530px;
|
|
|
+ min-height: 422px;
|
|
|
display: flex;
|
|
|
column-gap: 8px;
|
|
|
perspective: 1000px;
|
|
@@ -448,8 +461,8 @@ export default {
|
|
|
position: relative;
|
|
|
.left,
|
|
|
.right {
|
|
|
- width: 600px;
|
|
|
- min-height: 450px;
|
|
|
+ width: 100%;
|
|
|
+ min-height: 360px;
|
|
|
padding: 8px 12px 18px 12px;
|
|
|
border-radius: 24px;
|
|
|
background: #fff;
|
|
@@ -480,7 +493,7 @@ export default {
|
|
|
}
|
|
|
.left-preview {
|
|
|
padding-top: 40px;
|
|
|
- padding-bottom: 32px;
|
|
|
+ // padding-bottom: 32px;
|
|
|
// position: absolute;
|
|
|
backface-visibility: hidden;
|
|
|
}
|
|
@@ -492,7 +505,7 @@ export default {
|
|
|
z-index: 1;
|
|
|
h5 {
|
|
|
color: #000;
|
|
|
- font-size: 24px;
|
|
|
+ font-size: 20px;
|
|
|
font-weight: 400;
|
|
|
line-height: 32px;
|
|
|
padding: 0 12px;
|
|
@@ -505,7 +518,7 @@ export default {
|
|
|
background: #fff;
|
|
|
padding: 0px 16px 0px 8px;
|
|
|
color: #fff;
|
|
|
- font-size: 24px;
|
|
|
+ font-size: 20px;
|
|
|
font-weight: 500;
|
|
|
line-height: 150%;
|
|
|
}
|
|
@@ -528,8 +541,8 @@ export default {
|
|
|
}
|
|
|
.overturn-btn {
|
|
|
position: absolute;
|
|
|
- right: 24px;
|
|
|
- bottom: 24px;
|
|
|
+ right: 8px;
|
|
|
+ bottom: 8px;
|
|
|
border-radius: 8px;
|
|
|
background: #e0e0e0;
|
|
|
padding: 8px;
|
|
@@ -590,7 +603,7 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
.right-preview {
|
|
|
- padding: 36px 72px;
|
|
|
+ padding: 36px;
|
|
|
display: block;
|
|
|
.pinyin-box {
|
|
|
color: #de4444;
|
|
@@ -613,7 +626,7 @@ export default {
|
|
|
color: #de4444;
|
|
|
font-feature-settings: 'cv01' on;
|
|
|
font-family: League;
|
|
|
- font-size: 24px;
|
|
|
+ font-size: 18px;
|
|
|
line-height: 120%;
|
|
|
margin-bottom: 8px;
|
|
|
}
|
|
@@ -643,7 +656,7 @@ export default {
|
|
|
p {
|
|
|
width: 40px;
|
|
|
color: #000;
|
|
|
- font-size: 24px;
|
|
|
+ font-size: 18px;
|
|
|
font-weight: 400;
|
|
|
line-height: 150%;
|
|
|
}
|
|
@@ -714,11 +727,11 @@ export default {
|
|
|
}
|
|
|
|
|
|
.con-preview {
|
|
|
- margin-top: 16px;
|
|
|
+ margin-top: 8px;
|
|
|
color: #000;
|
|
|
text-align: center;
|
|
|
font-family: 'FZJCGFKTK';
|
|
|
- font-size: 64px;
|
|
|
+ font-size: 38px;
|
|
|
font-weight: 400;
|
|
|
line-height: 100%;
|
|
|
&-big {
|
|
@@ -731,6 +744,13 @@ export default {
|
|
|
justify-content: center;
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ &-preview-3,
|
|
|
+ &-preview-4 {
|
|
|
+ .writeTop {
|
|
|
+ min-height: 360px;
|
|
|
+ }
|
|
|
+ }
|
|
|
.writeTop-nopadding {
|
|
|
padding-top: 0;
|
|
|
height: 842px;
|