|
@@ -12,13 +12,13 @@
|
|
pc端图片地址 coverPc
|
|
pc端图片地址 coverPc
|
|
|
|
|
|
pc端图片位置 coverPcLoc
|
|
pc端图片位置 coverPcLoc
|
|
- centen:居中
|
|
|
|
|
|
+ center:居中
|
|
full:全屏
|
|
full:全屏
|
|
|
|
|
|
移动端图片地址 coverMo
|
|
移动端图片地址 coverMo
|
|
|
|
|
|
移动端图片位置 coverMoLoc
|
|
移动端图片位置 coverMoLoc
|
|
- centen:居中
|
|
|
|
|
|
+ center:居中
|
|
full:全屏
|
|
full:全屏
|
|
|
|
|
|
图片的背景设置下拉框 coverImgBac
|
|
图片的背景设置下拉框 coverImgBac
|
|
@@ -34,13 +34,13 @@ pc端图片位置 coverPcLoc
|
|
pc端视频地址 videoPc
|
|
pc端视频地址 videoPc
|
|
|
|
|
|
pc端视频位置 videoPcLoc
|
|
pc端视频位置 videoPcLoc
|
|
- centen:居中
|
|
|
|
|
|
+ center:居中
|
|
full:全屏
|
|
full:全屏
|
|
|
|
|
|
移动端视频地址 videoMo
|
|
移动端视频地址 videoMo
|
|
|
|
|
|
移动端视频位置 videoMoLoc
|
|
移动端视频位置 videoMoLoc
|
|
- centen:居中
|
|
|
|
|
|
+ center:居中
|
|
full:全屏
|
|
full:全屏
|
|
|
|
|
|
视频的背景设置下拉框 coverVideoBac
|
|
视频的背景设置下拉框 coverVideoBac
|
|
@@ -72,6 +72,10 @@ pc端视频位置 videoPcLoc
|
|
>
|
|
>
|
|
</i>
|
|
</i>
|
|
<br />
|
|
<br />
|
|
|
|
+ <div class="switch-wrapper">
|
|
|
|
+ <span class="label">{{$i18n.t('edit_settings.cover_show')}}</span>
|
|
|
|
+ <Switcher :value="info.coverInfo.isShowCover" @change="onSwitcherChange"></Switcher>
|
|
|
|
+ </div>
|
|
<div class="cover_pull">
|
|
<div class="cover_pull">
|
|
<!-- 封面类型选择下拉框 -->
|
|
<!-- 封面类型选择下拉框 -->
|
|
<div class="cover_pull_tit">{{ cover_pull_tit }}</div>
|
|
<div class="cover_pull_tit">{{ cover_pull_tit }}</div>
|
|
@@ -119,8 +123,8 @@ pc端视频位置 videoPcLoc
|
|
<!-- 选择居中和全屏 -->
|
|
<!-- 选择居中和全屏 -->
|
|
<div class="coverImglocBox">
|
|
<div class="coverImglocBox">
|
|
<div
|
|
<div
|
|
- :class="{ active: info.coverInfo.coverPcLoc === 'centen' }"
|
|
|
|
- @click="info.coverInfo.coverPcLoc = 'centen'"
|
|
|
|
|
|
+ :class="{ active: info.coverInfo.coverPcLoc === 'center' }"
|
|
|
|
+ @click="info.coverInfo.coverPcLoc = 'center'"
|
|
>
|
|
>
|
|
<div class="inco"></div>
|
|
<div class="inco"></div>
|
|
<div class="txt">{{ coverImgLoc1 }}</div>
|
|
<div class="txt">{{ coverImgLoc1 }}</div>
|
|
@@ -166,8 +170,8 @@ pc端视频位置 videoPcLoc
|
|
<!-- 选择居中和全屏 -->
|
|
<!-- 选择居中和全屏 -->
|
|
<div class="coverImglocBox">
|
|
<div class="coverImglocBox">
|
|
<div
|
|
<div
|
|
- :class="{ active: info.coverInfo.coverMoLoc === 'centen' }"
|
|
|
|
- @click="info.coverInfo.coverMoLoc = 'centen'"
|
|
|
|
|
|
+ :class="{ active: info.coverInfo.coverMoLoc === 'center' }"
|
|
|
|
+ @click="info.coverInfo.coverMoLoc = 'center'"
|
|
>
|
|
>
|
|
<div class="inco"></div>
|
|
<div class="inco"></div>
|
|
<div class="txt">{{ coverImgLoc1 }}</div>
|
|
<div class="txt">{{ coverImgLoc1 }}</div>
|
|
@@ -282,8 +286,8 @@ pc端视频位置 videoPcLoc
|
|
<!-- 选择居中和全屏 -->
|
|
<!-- 选择居中和全屏 -->
|
|
<div class="coverImglocBox">
|
|
<div class="coverImglocBox">
|
|
<div
|
|
<div
|
|
- :class="{ active: info.coverInfo.videoPcLoc === 'centen' }"
|
|
|
|
- @click="info.coverInfo.videoPcLoc = 'centen'"
|
|
|
|
|
|
+ :class="{ active: info.coverInfo.videoPcLoc === 'center' }"
|
|
|
|
+ @click="info.coverInfo.videoPcLoc = 'center'"
|
|
>
|
|
>
|
|
<div class="inco"></div>
|
|
<div class="inco"></div>
|
|
<div class="txt">{{ coverImgLoc1 }}</div>
|
|
<div class="txt">{{ coverImgLoc1 }}</div>
|
|
@@ -329,8 +333,8 @@ pc端视频位置 videoPcLoc
|
|
<!-- 选择居中和全屏 -->
|
|
<!-- 选择居中和全屏 -->
|
|
<div class="coverImglocBox">
|
|
<div class="coverImglocBox">
|
|
<div
|
|
<div
|
|
- :class="{ active: info.coverInfo.videoMoLoc === 'centen' }"
|
|
|
|
- @click="info.coverInfo.videoMoLoc = 'centen'"
|
|
|
|
|
|
+ :class="{ active: info.coverInfo.videoMoLoc === 'center' }"
|
|
|
|
+ @click="info.coverInfo.videoMoLoc = 'center'"
|
|
>
|
|
>
|
|
<div class="inco"></div>
|
|
<div class="inco"></div>
|
|
<div class="txt">{{ coverImgLoc1 }}</div>
|
|
<div class="txt">{{ coverImgLoc1 }}</div>
|
|
@@ -510,9 +514,9 @@ export default {
|
|
// 封面类型下拉框数据
|
|
// 封面类型下拉框数据
|
|
coverSelect: "img",
|
|
coverSelect: "img",
|
|
// 图片pc端位置
|
|
// 图片pc端位置
|
|
- coverPcLoc: "centen",
|
|
|
|
|
|
+ coverPcLoc: "center",
|
|
// 图片移动端位置
|
|
// 图片移动端位置
|
|
- coverMoLoc: "centen",
|
|
|
|
|
|
+ coverMoLoc: "center",
|
|
// 图片的背景设置
|
|
// 图片的背景设置
|
|
coverImgBac: "colorFill",
|
|
coverImgBac: "colorFill",
|
|
// 图片的背景颜色
|
|
// 图片的背景颜色
|
|
@@ -520,9 +524,9 @@ export default {
|
|
|
|
|
|
// 有关上传视频
|
|
// 有关上传视频
|
|
// 视频pc端位置
|
|
// 视频pc端位置
|
|
- videoPcLoc: "centen",
|
|
|
|
|
|
+ videoPcLoc: "center",
|
|
// 视频移动端位置
|
|
// 视频移动端位置
|
|
- videoMoLoc: "centen",
|
|
|
|
|
|
+ videoMoLoc: "center",
|
|
// 视频的背景设置
|
|
// 视频的背景设置
|
|
coverVideoBac: "colorFill",
|
|
coverVideoBac: "colorFill",
|
|
videoColorSelec: "#000000",
|
|
videoColorSelec: "#000000",
|
|
@@ -532,6 +536,7 @@ export default {
|
|
coverVideoControl: 0,
|
|
coverVideoControl: 0,
|
|
// 视频的出现顺序
|
|
// 视频的出现顺序
|
|
coverVideoOrder: "before",
|
|
coverVideoOrder: "before",
|
|
|
|
+ isShowCover: 0
|
|
},
|
|
},
|
|
coverImgBacList: [
|
|
coverImgBacList: [
|
|
{ txt: i18n.t("edit_settings.coverImgBacSelec1"), type: "colorFill" },
|
|
{ txt: i18n.t("edit_settings.coverImgBacSelec1"), type: "colorFill" },
|
|
@@ -565,6 +570,11 @@ export default {
|
|
},
|
|
},
|
|
watch: {},
|
|
watch: {},
|
|
methods: {
|
|
methods: {
|
|
|
|
+ //是否显示
|
|
|
|
+ onSwitcherChange(data) {
|
|
|
|
+ console.log(data,'dadad');
|
|
|
|
+ this.info.coverInfo.isShowCover = data
|
|
|
|
+ },
|
|
// 视频的进入方式
|
|
// 视频的进入方式
|
|
coverVideoInWayChange(val) {
|
|
coverVideoInWayChange(val) {
|
|
this.info.coverInfo.coverVideoInWay = val;
|
|
this.info.coverInfo.coverVideoInWay = val;
|
|
@@ -648,6 +658,16 @@ export default {
|
|
font-size: 18px;
|
|
font-size: 18px;
|
|
color: #ffffff;
|
|
color: #ffffff;
|
|
}
|
|
}
|
|
|
|
+ .switch-wrapper {
|
|
|
|
+ display: flex;
|
|
|
|
+ align-items: center;
|
|
|
|
+ justify-content: space-between;
|
|
|
|
+ margin: 18px 0;
|
|
|
|
+ .label {
|
|
|
|
+ color: rgba(255, 255, 255, 0.6);
|
|
|
|
+ font-size: 14px;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
.tool-tip-for-editor {
|
|
.tool-tip-for-editor {
|
|
margin-left: 4px;
|
|
margin-left: 4px;
|
|
font-size: 12px;
|
|
font-size: 12px;
|