@ -36,23 +36,23 @@
</template>
<script>
import AudioControl from '@/components/AudioControl.vue';
import MusicControl from '@/components/MusicControl.vue';
import NavMenu from '../components/NavMenu.vue';
import AudioControl from "@/components/AudioControl.vue";
import MusicControl from "@/components/MusicControl.vue";
import NavMenu from "../components/NavMenu.vue";
export default {
components: {
MusicControl,
NavMenu,
AudioControl
AudioControl,
},
data() {
return {
currentIndex: 0,
swiperImages: [
'https://static.ticket.sz-trip.com/epicSoul/bmzm/home/home1s.gif',
'https://static.ticket.sz-trip.com/epicSoul/bmzm/home/home2.png',
'https://static.ticket.sz-trip.com/epicSoul/bmzm/home/home3.png',
'https://static.ticket.sz-trip.com/epicSoul/bmzm/home/home4.png'
"https://static.ticket.sz-trip.com/epicSoul/bmzm/home/home1s.gif",
"https://static.ticket.sz-trip.com/epicSoul/bmzm/home/home2.png",
"https://static.ticket.sz-trip.com/epicSoul/bmzm/home/home3.png",
"https://static.ticket.sz-trip.com/epicSoul/bmzm/home/home4.png",
],
animationConfig: {
delay: 0.5,
@ -62,25 +62,12 @@ export default {
first: 0.8,
second: 1.2,
third: 0.9,
end: 1.1
}
};
onShow() {
uni.removeStorageSync('answerObj');
const app = getApp();
app.updateMusicSrc('https://static.ticket.sz-trip.com/epicSoul/bmzm.mp3');
app.initBackgroundMusic(); // 初始化背景音乐
uni.$bgMusic.play(); // 播放音乐
methods: {
handleSwiperChange(e) {
this.currentIndex = e.detail.current;
end: 1.1,
uni.removeStorageSync("answerObj");
@ -152,16 +152,6 @@ export default {
background-repeat: no-repeat;
position: relative;
<<<<<<< HEAD
.img1-text {
position: absolute;
width: 632.16rpx;
top: 170rpx;
left: 0;
right: 0;
margin: 0 auto;
=======
@ -184,22 +174,20 @@ export default {
bottom: 290rpx;
left: 84rpx;
>>>>>>> master
.img4-text {
width: 476.36rpx;
.btn-img {
width: 149.8rpx;
.swiper-img {
@ -234,16 +234,16 @@
import ShareGuide from '@/components/ShareGuide.vue';
import ShareGuide from "@/components/ShareGuide.vue";
ShareGuide,
onShareGuideClose() {
console.log("分享引导已关闭");
@ -274,7 +274,6 @@ export default {
url: "/xxdf/chapter4/cover",
});
watch: {
currentIndex(newIndex) {
for (