|
@@ -2,6 +2,10 @@
|
|
|
<div class="opening-animation-settings">
|
|
|
<span class="title">{{$i18n.t(`edit_settings.opening_setting`)}}</span>
|
|
|
<br>
|
|
|
+ <div class="switch-wrapper">
|
|
|
+ <span class="label">{{$i18n.t('edit_settings.opening_animation_show')}}</span>
|
|
|
+ <Switcher :value="info.isShowOpeningAnimation" @change="onSwitcherChange"></Switcher>
|
|
|
+ </div>
|
|
|
<div class="btns-and-video">
|
|
|
<div class="btn-wrapper">
|
|
|
<button v-for="item of openingTypeList" :key="item" class="opening-selection-btn"
|
|
@@ -21,9 +25,11 @@
|
|
|
|
|
|
<script>
|
|
|
import { mapGetters } from "vuex";
|
|
|
+import Switcher from "@/components/shared/Switcher";
|
|
|
|
|
|
export default {
|
|
|
components: {
|
|
|
+ Switcher,
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
@@ -45,9 +51,15 @@ export default {
|
|
|
methods: {
|
|
|
bofang(){
|
|
|
this.$refs.opvideo.play()
|
|
|
+ },
|
|
|
+ onSwitcherChange(data) {
|
|
|
+ this.info.isShowOpeningAnimation = data
|
|
|
}
|
|
|
},
|
|
|
mounted() {
|
|
|
+ if (this.info.isShowOpeningAnimation === undefined) {
|
|
|
+ this.$set(this.info, 'isShowOpeningAnimation', true)
|
|
|
+ }
|
|
|
if (!this.info.openingAnimationType) {
|
|
|
this.$set(this.info, 'openingAnimationType', this.openingTypeList[0])
|
|
|
}
|
|
@@ -78,6 +90,17 @@ export default {
|
|
|
color: #FFFFFF;
|
|
|
}
|
|
|
|
|
|
+ .switch-wrapper {
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ justify-content: space-between;
|
|
|
+ margin-top: 18px;
|
|
|
+ .label {
|
|
|
+ color: rgba(255, 255, 255, 0.6);
|
|
|
+ font-size: 14px;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
.btns-and-video {
|
|
|
margin-top: 16px;
|
|
|
display: flex;
|