|
@@ -63,7 +63,7 @@ pc端视频位置 videoPcLoc
|
|
before:开场图片前
|
|
before:开场图片前
|
|
later:开场图片后
|
|
later:开场图片后
|
|
-->
|
|
-->
|
|
- <div class="coverBase">
|
|
|
|
|
|
+ <div class="coverBase" v-if="info.coverInfo">
|
|
<!-- 顶上标题 -->
|
|
<!-- 顶上标题 -->
|
|
<span class="title">{{ coverBase_button }}</span>
|
|
<span class="title">{{ coverBase_button }}</span>
|
|
<i
|
|
<i
|
|
@@ -75,7 +75,7 @@ pc端视频位置 videoPcLoc
|
|
<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>
|
|
- <Select v-model="coverSelect">
|
|
|
|
|
|
+ <Select v-model="info.coverInfo.coverSelect">
|
|
<Option
|
|
<Option
|
|
v-for="item in selecList"
|
|
v-for="item in selecList"
|
|
:key="item.type"
|
|
:key="item.type"
|
|
@@ -86,7 +86,7 @@ pc端视频位置 videoPcLoc
|
|
</Select>
|
|
</Select>
|
|
|
|
|
|
<!-- 关于图片 -->
|
|
<!-- 关于图片 -->
|
|
- <div class="mainImgBox" v-show="coverSelect !== 'video'">
|
|
|
|
|
|
+ <div class="mainImgBox" v-show="info.coverInfo.coverSelect !== 'video'">
|
|
<div class="coverImgTit">{{ coverImgTit }}</div>
|
|
<div class="coverImgTit">{{ coverImgTit }}</div>
|
|
<div class="coverImgBox">
|
|
<div class="coverImgBox">
|
|
<!-- pc图片 -->
|
|
<!-- pc图片 -->
|
|
@@ -94,7 +94,7 @@ pc端视频位置 videoPcLoc
|
|
<div class="tit">{{ $i18n.t(`edit_settings.pc`) }}</div>
|
|
<div class="tit">{{ $i18n.t(`edit_settings.pc`) }}</div>
|
|
<div class="coverImgMain">
|
|
<div class="coverImgMain">
|
|
<SelectedImage
|
|
<SelectedImage
|
|
- :imgSrc="info.coverPc"
|
|
|
|
|
|
+ :imgSrc="info.coverInfo.coverPc"
|
|
:defaultImgSrc="require('@/assets/img/coverUpTit1.png')"
|
|
:defaultImgSrc="require('@/assets/img/coverUpTit1.png')"
|
|
@cancel="onCancelPcTip"
|
|
@cancel="onCancelPcTip"
|
|
></SelectedImage>
|
|
></SelectedImage>
|
|
@@ -119,15 +119,15 @@ pc端视频位置 videoPcLoc
|
|
<!-- 选择居中和全屏 -->
|
|
<!-- 选择居中和全屏 -->
|
|
<div class="coverImglocBox">
|
|
<div class="coverImglocBox">
|
|
<div
|
|
<div
|
|
- :class="{ active: coverPcLoc === 'centen' }"
|
|
|
|
- @click="coverPcLoc = 'centen'"
|
|
|
|
|
|
+ :class="{ active: info.coverInfo.coverPcLoc === 'centen' }"
|
|
|
|
+ @click="info.coverInfo.coverPcLoc = 'centen'"
|
|
>
|
|
>
|
|
<div class="inco"></div>
|
|
<div class="inco"></div>
|
|
<div class="txt">{{ coverImgLoc1 }}</div>
|
|
<div class="txt">{{ coverImgLoc1 }}</div>
|
|
</div>
|
|
</div>
|
|
<div
|
|
<div
|
|
- :class="{ active: coverPcLoc === 'full' }"
|
|
|
|
- @click="coverPcLoc = 'full'"
|
|
|
|
|
|
+ :class="{ active: info.coverInfo.coverPcLoc === 'full' }"
|
|
|
|
+ @click="info.coverInfo.coverPcLoc = 'full'"
|
|
>
|
|
>
|
|
<div class="inco inco2"></div>
|
|
<div class="inco inco2"></div>
|
|
<div class="txt">{{ coverImgLoc2 }}</div>
|
|
<div class="txt">{{ coverImgLoc2 }}</div>
|
|
@@ -141,7 +141,7 @@ pc端视频位置 videoPcLoc
|
|
<!-- 移动端图片 -->
|
|
<!-- 移动端图片 -->
|
|
<div class="coverImgMain">
|
|
<div class="coverImgMain">
|
|
<SelectedImage
|
|
<SelectedImage
|
|
- :imgSrc="info.coverMo"
|
|
|
|
|
|
+ :imgSrc="info.coverInfo.coverMo"
|
|
:defaultImgSrc="require('@/assets/img/coverUpTit1.png')"
|
|
:defaultImgSrc="require('@/assets/img/coverUpTit1.png')"
|
|
@cancel="onCancelAppTip"
|
|
@cancel="onCancelAppTip"
|
|
></SelectedImage>
|
|
></SelectedImage>
|
|
@@ -166,15 +166,15 @@ pc端视频位置 videoPcLoc
|
|
<!-- 选择居中和全屏 -->
|
|
<!-- 选择居中和全屏 -->
|
|
<div class="coverImglocBox">
|
|
<div class="coverImglocBox">
|
|
<div
|
|
<div
|
|
- :class="{ active: coverMoLoc === 'centen' }"
|
|
|
|
- @click="coverMoLoc = 'centen'"
|
|
|
|
|
|
+ :class="{ active: info.coverInfo.coverMoLoc === 'centen' }"
|
|
|
|
+ @click="info.coverInfo.coverMoLoc = 'centen'"
|
|
>
|
|
>
|
|
<div class="inco"></div>
|
|
<div class="inco"></div>
|
|
<div class="txt">{{ coverImgLoc1 }}</div>
|
|
<div class="txt">{{ coverImgLoc1 }}</div>
|
|
</div>
|
|
</div>
|
|
<div
|
|
<div
|
|
- :class="{ active: coverMoLoc === 'full' }"
|
|
|
|
- @click="coverMoLoc = 'full'"
|
|
|
|
|
|
+ :class="{ active: info.coverInfo.coverMoLoc === 'full' }"
|
|
|
|
+ @click="info.coverInfo.coverMoLoc = 'full'"
|
|
>
|
|
>
|
|
<div class="inco inco2"></div>
|
|
<div class="inco inco2"></div>
|
|
<div class="txt">{{ coverImgLoc2 }}</div>
|
|
<div class="txt">{{ coverImgLoc2 }}</div>
|
|
@@ -188,7 +188,7 @@ pc端视频位置 videoPcLoc
|
|
<!-- 图片背景设置 -->
|
|
<!-- 图片背景设置 -->
|
|
<div class="coverImgBacBox">
|
|
<div class="coverImgBacBox">
|
|
<div class="tit">{{ $i18n.t(`edit_settings.coverImgBacTit`) }}</div>
|
|
<div class="tit">{{ $i18n.t(`edit_settings.coverImgBacTit`) }}</div>
|
|
- <Select v-model="coverImgBac">
|
|
|
|
|
|
+ <Select v-model="info.coverInfo.coverImgBac">
|
|
<Option
|
|
<Option
|
|
v-for="item in coverImgBacList"
|
|
v-for="item in coverImgBacList"
|
|
:key="item.type"
|
|
:key="item.type"
|
|
@@ -198,23 +198,29 @@ pc端视频位置 videoPcLoc
|
|
</Option>
|
|
</Option>
|
|
</Select>
|
|
</Select>
|
|
<!-- 选择颜色 -->
|
|
<!-- 选择颜色 -->
|
|
- <div class="imgColorSelec" v-show="coverImgBac === 'colorFill'">
|
|
|
|
- <div class="ll">{{ imgColorSelec }}</div>
|
|
|
|
|
|
+ <div
|
|
|
|
+ class="imgColorSelec"
|
|
|
|
+ v-show="info.coverInfo.coverImgBac === 'colorFill'"
|
|
|
|
+ >
|
|
|
|
+ <div class="ll">{{ info.coverInfo.imgColorSelec }}</div>
|
|
<div
|
|
<div
|
|
class="rr"
|
|
class="rr"
|
|
- :style="`background-color: ${imgColorSelec};`"
|
|
|
|
|
|
+ :style="`background-color: ${info.coverInfo.imgColorSelec};`"
|
|
></div>
|
|
></div>
|
|
<ColorPicker
|
|
<ColorPicker
|
|
@change="imgColorSelecChange"
|
|
@change="imgColorSelecChange"
|
|
- v-model="imgColorSelec"
|
|
|
|
|
|
+ v-model="info.coverInfo.imgColorSelec"
|
|
:predefine="predefineColors"
|
|
:predefine="predefineColors"
|
|
>
|
|
>
|
|
</ColorPicker>
|
|
</ColorPicker>
|
|
</div>
|
|
</div>
|
|
<!-- 选择背景图片 -->
|
|
<!-- 选择背景图片 -->
|
|
- <div class="imgClolrBacImg" v-show="coverImgBac === 'imgTile'">
|
|
|
|
|
|
+ <div
|
|
|
|
+ class="imgClolrBacImg"
|
|
|
|
+ v-show="info.coverInfo.coverImgBac === 'imgTile'"
|
|
|
|
+ >
|
|
<SelectedImage
|
|
<SelectedImage
|
|
- :imgSrc="info.coverBac"
|
|
|
|
|
|
+ :imgSrc="info.coverInfo.coverBac"
|
|
:defaultImgSrc="require('@/assets/img/coverUpTit1.png')"
|
|
:defaultImgSrc="require('@/assets/img/coverUpTit1.png')"
|
|
@cancel="onCancelBac"
|
|
@cancel="onCancelBac"
|
|
></SelectedImage>
|
|
></SelectedImage>
|
|
@@ -241,7 +247,7 @@ pc端视频位置 videoPcLoc
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<!-- 关于视频 -->
|
|
<!-- 关于视频 -->
|
|
- <div class="mainVideoBox" v-show="coverSelect !== 'img'">
|
|
|
|
|
|
+ <div class="mainVideoBox" v-show="info.coverInfo.coverSelect !== 'img'">
|
|
<div class="coverImgTit">
|
|
<div class="coverImgTit">
|
|
{{ $i18n.t(`edit_settings.coverVideoTit`) }}
|
|
{{ $i18n.t(`edit_settings.coverVideoTit`) }}
|
|
</div>
|
|
</div>
|
|
@@ -251,7 +257,7 @@ pc端视频位置 videoPcLoc
|
|
<div class="tit">{{ $i18n.t(`edit_settings.pc`) }}</div>
|
|
<div class="tit">{{ $i18n.t(`edit_settings.pc`) }}</div>
|
|
<div class="coverImgMain">
|
|
<div class="coverImgMain">
|
|
<SelectedImage
|
|
<SelectedImage
|
|
- :imgSrc="info.videoPc"
|
|
|
|
|
|
+ :imgSrc="info.coverInfo.videoPc"
|
|
:defaultImgSrc="require('@/assets/img/coverUpTit2.png')"
|
|
:defaultImgSrc="require('@/assets/img/coverUpTit2.png')"
|
|
@cancel="clearVideoPc"
|
|
@cancel="clearVideoPc"
|
|
></SelectedImage>
|
|
></SelectedImage>
|
|
@@ -276,15 +282,15 @@ pc端视频位置 videoPcLoc
|
|
<!-- 选择居中和全屏 -->
|
|
<!-- 选择居中和全屏 -->
|
|
<div class="coverImglocBox">
|
|
<div class="coverImglocBox">
|
|
<div
|
|
<div
|
|
- :class="{ active: videoPcLoc === 'centen' }"
|
|
|
|
- @click="videoPcLoc = 'centen'"
|
|
|
|
|
|
+ :class="{ active: info.coverInfo.videoPcLoc === 'centen' }"
|
|
|
|
+ @click="info.coverInfo.videoPcLoc = 'centen'"
|
|
>
|
|
>
|
|
<div class="inco"></div>
|
|
<div class="inco"></div>
|
|
<div class="txt">{{ coverImgLoc1 }}</div>
|
|
<div class="txt">{{ coverImgLoc1 }}</div>
|
|
</div>
|
|
</div>
|
|
<div
|
|
<div
|
|
- :class="{ active: videoPcLoc === 'full' }"
|
|
|
|
- @click="videoPcLoc = 'full'"
|
|
|
|
|
|
+ :class="{ active: info.coverInfo.videoPcLoc === 'full' }"
|
|
|
|
+ @click="info.coverInfo.videoPcLoc = 'full'"
|
|
>
|
|
>
|
|
<div class="inco inco2"></div>
|
|
<div class="inco inco2"></div>
|
|
<div class="txt">{{ coverImgLoc2 }}</div>
|
|
<div class="txt">{{ coverImgLoc2 }}</div>
|
|
@@ -298,7 +304,7 @@ pc端视频位置 videoPcLoc
|
|
<!-- 移动端视频 -->
|
|
<!-- 移动端视频 -->
|
|
<div class="coverImgMain">
|
|
<div class="coverImgMain">
|
|
<SelectedImage
|
|
<SelectedImage
|
|
- :imgSrc="info.videoMo"
|
|
|
|
|
|
+ :imgSrc="info.coverInfo.videoMo"
|
|
:defaultImgSrc="require('@/assets/img/coverUpTit2.png')"
|
|
:defaultImgSrc="require('@/assets/img/coverUpTit2.png')"
|
|
@cancel="claerVideoMo"
|
|
@cancel="claerVideoMo"
|
|
></SelectedImage>
|
|
></SelectedImage>
|
|
@@ -323,15 +329,15 @@ pc端视频位置 videoPcLoc
|
|
<!-- 选择居中和全屏 -->
|
|
<!-- 选择居中和全屏 -->
|
|
<div class="coverImglocBox">
|
|
<div class="coverImglocBox">
|
|
<div
|
|
<div
|
|
- :class="{ active: videoMoLoc === 'centen' }"
|
|
|
|
- @click="videoMoLoc = 'centen'"
|
|
|
|
|
|
+ :class="{ active: info.coverInfo.videoMoLoc === 'centen' }"
|
|
|
|
+ @click="info.coverInfo.videoMoLoc = 'centen'"
|
|
>
|
|
>
|
|
<div class="inco"></div>
|
|
<div class="inco"></div>
|
|
<div class="txt">{{ coverImgLoc1 }}</div>
|
|
<div class="txt">{{ coverImgLoc1 }}</div>
|
|
</div>
|
|
</div>
|
|
<div
|
|
<div
|
|
- :class="{ active: videoMoLoc === 'full' }"
|
|
|
|
- @click="videoMoLoc = 'full'"
|
|
|
|
|
|
+ :class="{ active: info.coverInfo.videoMoLoc === 'full' }"
|
|
|
|
+ @click="info.coverInfo.videoMoLoc = 'full'"
|
|
>
|
|
>
|
|
<div class="inco inco2"></div>
|
|
<div class="inco inco2"></div>
|
|
<div class="txt">{{ coverImgLoc2 }}</div>
|
|
<div class="txt">{{ coverImgLoc2 }}</div>
|
|
@@ -345,7 +351,7 @@ pc端视频位置 videoPcLoc
|
|
<!-- 视频背景设置 -->
|
|
<!-- 视频背景设置 -->
|
|
<div class="coverImgBacBox">
|
|
<div class="coverImgBacBox">
|
|
<div class="tit">{{ $i18n.t(`edit_settings.coverImgBacTit`) }}</div>
|
|
<div class="tit">{{ $i18n.t(`edit_settings.coverImgBacTit`) }}</div>
|
|
- <Select v-model="coverVideoBac">
|
|
|
|
|
|
+ <Select v-model="info.coverInfo.coverVideoBac">
|
|
<Option
|
|
<Option
|
|
v-for="item in coverImgBacList"
|
|
v-for="item in coverImgBacList"
|
|
:key="item.type"
|
|
:key="item.type"
|
|
@@ -355,23 +361,29 @@ pc端视频位置 videoPcLoc
|
|
</Option>
|
|
</Option>
|
|
</Select>
|
|
</Select>
|
|
<!-- 选择颜色 -->
|
|
<!-- 选择颜色 -->
|
|
- <div class="imgColorSelec" v-show="coverVideoBac === 'colorFill'">
|
|
|
|
- <div class="ll">{{ videoColorSelec }}</div>
|
|
|
|
|
|
+ <div
|
|
|
|
+ class="imgColorSelec"
|
|
|
|
+ v-show="info.coverInfo.coverVideoBac === 'colorFill'"
|
|
|
|
+ >
|
|
|
|
+ <div class="ll">{{ info.coverInfo.videoColorSelec }}</div>
|
|
<div
|
|
<div
|
|
class="rr"
|
|
class="rr"
|
|
- :style="`background-color: ${videoColorSelec};`"
|
|
|
|
|
|
+ :style="`background-color: ${info.coverInfo.videoColorSelec};`"
|
|
></div>
|
|
></div>
|
|
<ColorPicker
|
|
<ColorPicker
|
|
@change="videoColorSelecChange"
|
|
@change="videoColorSelecChange"
|
|
- v-model="videoColorSelec"
|
|
|
|
|
|
+ v-model="info.coverInfo.videoColorSelec"
|
|
:predefine="predefineColors"
|
|
:predefine="predefineColors"
|
|
>
|
|
>
|
|
</ColorPicker>
|
|
</ColorPicker>
|
|
</div>
|
|
</div>
|
|
<!-- 选择背景图片 -->
|
|
<!-- 选择背景图片 -->
|
|
- <div class="imgClolrBacImg" v-show="coverVideoBac === 'imgTile'">
|
|
|
|
|
|
+ <div
|
|
|
|
+ class="imgClolrBacImg"
|
|
|
|
+ v-show="info.coverInfo.coverVideoBac === 'imgTile'"
|
|
|
|
+ >
|
|
<SelectedImage
|
|
<SelectedImage
|
|
- :imgSrc="info.videoBacImg"
|
|
|
|
|
|
+ :imgSrc="info.coverInfo.videoBacImg"
|
|
:defaultImgSrc="require('@/assets/img/coverUpTit1.png')"
|
|
:defaultImgSrc="require('@/assets/img/coverUpTit1.png')"
|
|
@cancel="onCancelBac2"
|
|
@cancel="onCancelBac2"
|
|
></SelectedImage>
|
|
></SelectedImage>
|
|
@@ -406,7 +418,7 @@ pc端视频位置 videoPcLoc
|
|
</div>
|
|
</div>
|
|
<div class="VideoTitR">
|
|
<div class="VideoTitR">
|
|
<Switcher
|
|
<Switcher
|
|
- :value="coverVideoInWay"
|
|
|
|
|
|
+ :value="info.coverInfo.coverVideoInWay"
|
|
@change="coverVideoInWayChange"
|
|
@change="coverVideoInWayChange"
|
|
></Switcher>
|
|
></Switcher>
|
|
</div>
|
|
</div>
|
|
@@ -421,7 +433,7 @@ pc端视频位置 videoPcLoc
|
|
</div>
|
|
</div>
|
|
<div class="VideoTitR">
|
|
<div class="VideoTitR">
|
|
<Switcher
|
|
<Switcher
|
|
- :value="coverVideoControl"
|
|
|
|
|
|
+ :value="info.coverInfo.coverVideoControl"
|
|
@change="coverVideoControlChange"
|
|
@change="coverVideoControlChange"
|
|
></Switcher>
|
|
></Switcher>
|
|
</div>
|
|
</div>
|
|
@@ -430,7 +442,7 @@ pc端视频位置 videoPcLoc
|
|
<div class="coverImgTit">
|
|
<div class="coverImgTit">
|
|
{{ $i18n.t(`edit_settings.coverVideoOrder`) }}
|
|
{{ $i18n.t(`edit_settings.coverVideoOrder`) }}
|
|
</div>
|
|
</div>
|
|
- <Select v-model="coverVideoOrder">
|
|
|
|
|
|
+ <Select v-model="info.coverInfo.coverVideoOrder">
|
|
<Option
|
|
<Option
|
|
v-for="item in coverVideoOrderList"
|
|
v-for="item in coverVideoOrderList"
|
|
:key="item.type"
|
|
:key="item.type"
|
|
@@ -493,19 +505,39 @@ export default {
|
|
{ txt: i18n.t("edit_settings.coverSelecImg"), type: "img" },
|
|
{ txt: i18n.t("edit_settings.coverSelecImg"), type: "img" },
|
|
{ txt: i18n.t("edit_settings.coverSelecVideo"), type: "video" },
|
|
{ txt: i18n.t("edit_settings.coverSelecVideo"), type: "video" },
|
|
],
|
|
],
|
|
- // 封面类型下拉框数据
|
|
|
|
- coverSelect: "img",
|
|
|
|
- // 图片pc端位置
|
|
|
|
- coverPcLoc: "centen",
|
|
|
|
- // 图片移动端位置
|
|
|
|
- coverMoLoc: "centen",
|
|
|
|
- // 图片的背景设置
|
|
|
|
- coverImgBac: "colorFill",
|
|
|
|
|
|
+
|
|
|
|
+ coverInfo: {
|
|
|
|
+ // 封面类型下拉框数据
|
|
|
|
+ coverSelect: "img",
|
|
|
|
+ // 图片pc端位置
|
|
|
|
+ coverPcLoc: "centen",
|
|
|
|
+ // 图片移动端位置
|
|
|
|
+ coverMoLoc: "centen",
|
|
|
|
+ // 图片的背景设置
|
|
|
|
+ coverImgBac: "colorFill",
|
|
|
|
+ // 图片的背景颜色
|
|
|
|
+ imgColorSelec: "#000000",
|
|
|
|
+
|
|
|
|
+ // 有关上传视频
|
|
|
|
+ // 视频pc端位置
|
|
|
|
+ videoPcLoc: "centen",
|
|
|
|
+ // 视频移动端位置
|
|
|
|
+ videoMoLoc: "centen",
|
|
|
|
+ // 视频的背景设置
|
|
|
|
+ coverVideoBac: "colorFill",
|
|
|
|
+ videoColorSelec: "#000000",
|
|
|
|
+ // 视频的进入方式
|
|
|
|
+ coverVideoInWay: 0,
|
|
|
|
+ // 视频控件是否显示
|
|
|
|
+ coverVideoControl: 0,
|
|
|
|
+ // 视频的出现顺序
|
|
|
|
+ coverVideoOrder: "before",
|
|
|
|
+ },
|
|
coverImgBacList: [
|
|
coverImgBacList: [
|
|
{ txt: i18n.t("edit_settings.coverImgBacSelec1"), type: "colorFill" },
|
|
{ txt: i18n.t("edit_settings.coverImgBacSelec1"), type: "colorFill" },
|
|
{ txt: i18n.t("edit_settings.coverImgBacSelec2"), type: "imgTile" },
|
|
{ txt: i18n.t("edit_settings.coverImgBacSelec2"), type: "imgTile" },
|
|
],
|
|
],
|
|
- imgColorSelec: "#000000",
|
|
|
|
|
|
+
|
|
predefineColors: [
|
|
predefineColors: [
|
|
"#000000",
|
|
"#000000",
|
|
"#ff4500",
|
|
"#ff4500",
|
|
@@ -520,20 +552,6 @@ export default {
|
|
isShowSelectionWindow: false,
|
|
isShowSelectionWindow: false,
|
|
selectingFor: "", // 'pc', 'mobile'
|
|
selectingFor: "", // 'pc', 'mobile'
|
|
|
|
|
|
- // 有关上传视频
|
|
|
|
- // 视频pc端位置
|
|
|
|
- videoPcLoc: "centen",
|
|
|
|
- // 视频移动端位置
|
|
|
|
- videoMoLoc: "centen",
|
|
|
|
- // 视频的背景设置
|
|
|
|
- coverVideoBac: "colorFill",
|
|
|
|
- videoColorSelec: "#000000",
|
|
|
|
- // 视频的进入方式
|
|
|
|
- coverVideoInWay: 0,
|
|
|
|
- // 视频控件是否显示
|
|
|
|
- coverVideoControl: 0,
|
|
|
|
- // 视频的出现顺序
|
|
|
|
- coverVideoOrder: "before",
|
|
|
|
coverVideoOrderList: [
|
|
coverVideoOrderList: [
|
|
{ txt: i18n.t("edit_settings.coverVideoOrderTit1"), type: "before" },
|
|
{ txt: i18n.t("edit_settings.coverVideoOrderTit1"), type: "before" },
|
|
{ txt: i18n.t("edit_settings.coverVideoOrderTit2"), type: "later" },
|
|
{ txt: i18n.t("edit_settings.coverVideoOrderTit2"), type: "later" },
|
|
@@ -545,108 +563,72 @@ export default {
|
|
info: "info",
|
|
info: "info",
|
|
}),
|
|
}),
|
|
},
|
|
},
|
|
- watch: {
|
|
|
|
- coverVideoOrder(val) {
|
|
|
|
- this.info.coverVideoOrder = val;
|
|
|
|
- },
|
|
|
|
-
|
|
|
|
- coverSelect(val) {
|
|
|
|
- this.info.coverSelect = val;
|
|
|
|
- },
|
|
|
|
- coverPcLoc(val) {
|
|
|
|
- this.info.coverPcLoc = val;
|
|
|
|
- },
|
|
|
|
- coverMoLoc(val) {
|
|
|
|
- this.info.coverMoLoc = val;
|
|
|
|
- },
|
|
|
|
- coverImgBac(val) {
|
|
|
|
- this.info.coverImgBac = val;
|
|
|
|
- },
|
|
|
|
- coverVideoBac(val) {
|
|
|
|
- this.info.coverVideoBac = val;
|
|
|
|
- },
|
|
|
|
- videoPcLoc(val) {
|
|
|
|
- this.info.videoPcLoc = val;
|
|
|
|
- },
|
|
|
|
- videoMoLoc(val) {
|
|
|
|
- this.info.videoMoLoc = val;
|
|
|
|
- },
|
|
|
|
- },
|
|
|
|
|
|
+ watch: {},
|
|
methods: {
|
|
methods: {
|
|
// 视频的进入方式
|
|
// 视频的进入方式
|
|
coverVideoInWayChange(val) {
|
|
coverVideoInWayChange(val) {
|
|
- this.coverVideoInWay = this.info.coverVideoInWay = val;
|
|
|
|
|
|
+ this.info.coverInfo.coverVideoInWay = val;
|
|
},
|
|
},
|
|
coverVideoControlChange(val) {
|
|
coverVideoControlChange(val) {
|
|
- this.coverVideoControl = this.info.coverVideoControl = val;
|
|
|
|
|
|
+ this.info.coverInfo.coverVideoControl = val;
|
|
},
|
|
},
|
|
// 图片的颜色选择器改变事件
|
|
// 图片的颜色选择器改变事件
|
|
imgColorSelecChange(val) {
|
|
imgColorSelecChange(val) {
|
|
- this.imgColorSelec = val;
|
|
|
|
- this.info.imgColorSelec = val;
|
|
|
|
|
|
+ this.info.coverInfo.imgColorSelec = val;
|
|
},
|
|
},
|
|
videoColorSelecChange(val) {
|
|
videoColorSelecChange(val) {
|
|
- this.videoColorSelec = val;
|
|
|
|
- this.info.videoColorSelec = val;
|
|
|
|
|
|
+ this.info.coverInfo.videoColorSelec = val;
|
|
},
|
|
},
|
|
handleSubmitFromMaterialSelector(selected) {
|
|
handleSubmitFromMaterialSelector(selected) {
|
|
// 点击确定的时候是选择的图片上传
|
|
// 点击确定的时候是选择的图片上传
|
|
if (this.upTypeSta === "imgBac") {
|
|
if (this.upTypeSta === "imgBac") {
|
|
- if (this.selectingFor === "pc") this.info.coverPc = selected[0].icon;
|
|
|
|
|
|
+ if (this.selectingFor === "pc")
|
|
|
|
+ this.info.coverInfo.coverPc = selected[0].icon;
|
|
else if (this.selectingFor === "mobile")
|
|
else if (this.selectingFor === "mobile")
|
|
- this.info.coverMo = selected[0].icon;
|
|
|
|
- else this.info.coverBac = selected[0].icon;
|
|
|
|
|
|
+ this.info.coverInfo.coverMo = selected[0].icon;
|
|
|
|
+ else this.info.coverInfo.coverBac = selected[0].icon;
|
|
} else {
|
|
} else {
|
|
// 视频上传
|
|
// 视频上传
|
|
- if (this.selectingFor === "pc") this.info.videoPc = selected[0].icon;
|
|
|
|
|
|
+ if (this.selectingFor === "pc")
|
|
|
|
+ this.info.coverInfo.videoPc = selected[0].icon;
|
|
else if (this.selectingFor === "mobile")
|
|
else if (this.selectingFor === "mobile")
|
|
- this.info.videoMo = selected[0].icon;
|
|
|
|
- else this.info.videoBacImg = selected[0].icon;
|
|
|
|
|
|
+ this.info.coverInfo.videoMo = selected[0].icon;
|
|
|
|
+ else this.info.coverInfo.videoBacImg = selected[0].icon;
|
|
}
|
|
}
|
|
this.isShowSelectionWindow = false;
|
|
this.isShowSelectionWindow = false;
|
|
},
|
|
},
|
|
onCancelPcTip() {
|
|
onCancelPcTip() {
|
|
- this.info.coverPc = "";
|
|
|
|
|
|
+ this.info.coverInfo.coverPc = "";
|
|
},
|
|
},
|
|
onCancelAppTip() {
|
|
onCancelAppTip() {
|
|
- this.info.coverMo = "";
|
|
|
|
|
|
+ this.info.coverInfo.coverMo = "";
|
|
},
|
|
},
|
|
onCancelBac() {
|
|
onCancelBac() {
|
|
- this.info.coverBac = "";
|
|
|
|
|
|
+ this.info.coverInfo.coverBac = "";
|
|
},
|
|
},
|
|
// 关于视频
|
|
// 关于视频
|
|
clearVideoPc() {
|
|
clearVideoPc() {
|
|
- this.info.videoPc = "";
|
|
|
|
|
|
+ this.info.coverInfo.videoPc = "";
|
|
},
|
|
},
|
|
claerVideoMo() {
|
|
claerVideoMo() {
|
|
- this.info.videoMo = "";
|
|
|
|
|
|
+ this.info.coverInfo.videoMo = "";
|
|
},
|
|
},
|
|
onCancelBac2() {
|
|
onCancelBac2() {
|
|
- this.info.videoBacImg = "";
|
|
|
|
|
|
+ this.info.coverInfo.videoBacImg = "";
|
|
},
|
|
},
|
|
},
|
|
},
|
|
- created() {},
|
|
|
|
- mounted() {
|
|
|
|
- const arr = [
|
|
|
|
- "coverSelect",
|
|
|
|
- "coverPcLoc",
|
|
|
|
- "coverMoLoc",
|
|
|
|
- "coverImgBac",
|
|
|
|
- "imgColorSelec",
|
|
|
|
- "videoPcLoc",
|
|
|
|
- "videoMoLoc",
|
|
|
|
- "coverVideoBac",
|
|
|
|
- "coverVideoInWay",
|
|
|
|
- "coverVideoControl",
|
|
|
|
- "videoColorSelec",
|
|
|
|
- "coverVideoOrder",
|
|
|
|
- ];
|
|
|
|
- arr.forEach((v) => {
|
|
|
|
- if (!this.info[v]) {
|
|
|
|
- this.info[v] = this[v];
|
|
|
|
- } else this[v] = this.info[v];
|
|
|
|
- });
|
|
|
|
|
|
+ created() {
|
|
|
|
+ if (!this.info.coverInfo) {
|
|
|
|
+ this.$store.commit("SetInfo", {
|
|
|
|
+ coverInfo: { ...this.coverInfo },
|
|
|
|
+ ...this.info,
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
+ // else{
|
|
|
|
+ // this.coverInfo={...this.info.coverInfo}
|
|
|
|
+ // }
|
|
},
|
|
},
|
|
|
|
+ mounted() {},
|
|
beforeCreate() {}, //生命周期 - 创建之前
|
|
beforeCreate() {}, //生命周期 - 创建之前
|
|
beforeMount() {}, //生命周期 - 挂载之前
|
|
beforeMount() {}, //生命周期 - 挂载之前
|
|
beforeUpdate() {}, //生命周期 - 更新之前
|
|
beforeUpdate() {}, //生命周期 - 更新之前
|