Browse Source

合并代码

dev_des
1054425342@qq.com 1 month ago
parent
commit
5706972ee0
  1. 67
      bmzm/home/home.vue
  2. 1520
      pig/home/home.vue
  3. 40
      xrcc/home/home.vue
  4. 77
      xxdf/home/home.vue

67
bmzm/home/home.vue

@ -36,51 +36,38 @@
</template> </template>
<script> <script>
import AudioControl from '@/components/AudioControl.vue'; import AudioControl from "@/components/AudioControl.vue";
import MusicControl from '@/components/MusicControl.vue'; import MusicControl from "@/components/MusicControl.vue";
import NavMenu from '../components/NavMenu.vue'; import NavMenu from "../components/NavMenu.vue";
export default { export default {
components: { components: {
MusicControl, MusicControl,
NavMenu, NavMenu,
AudioControl AudioControl,
}, },
data() { data() {
return { return {
currentIndex: 0, currentIndex: 0,
swiperImages: [ swiperImages: [
'https://static.ticket.sz-trip.com/epicSoul/bmzm/home/home1s.gif', "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/home2.png",
'https://static.ticket.sz-trip.com/epicSoul/bmzm/home/home3.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/home4.png",
], ],
animationConfig: { animationConfig: {
delay: 0.5, delay: 0.5,
duration: 3, duration: 3,
keyframes: { keyframes: {
start: 1, start: 1,
first: 0.8, first: 0.8,
second: 1.2, second: 1.2,
third: 0.9, third: 0.9,
end: 1.1 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;
}, },
}, },
}; };
}, },
onShow() { onShow() {
uni.removeStorageSync("answerObj"); uni.removeStorageSync("answerObj");
const app = getApp(); const app = getApp();

1520
pig/home/home.vue

File diff suppressed because it is too large

40
xrcc/home/home.vue

@ -152,7 +152,6 @@ export default {
background-repeat: no-repeat; background-repeat: no-repeat;
position: relative; position: relative;
<<<<<<< HEAD
.img1-text { .img1-text {
position: absolute; position: absolute;
width: 632.16rpx; width: 632.16rpx;
@ -161,31 +160,6 @@ export default {
right: 0; right: 0;
margin: 0 auto; margin: 0 auto;
} }
=======
.img1-text {
position: absolute;
width: 632.16rpx;
top: 170rpx;
left: 0;
right: 0;
margin: 0 auto;
}
.img4-text {
position: absolute;
width: 476.36rpx;
top: 170rpx;
left: 84rpx;
}
.btn-img {
position: absolute;
width: 149.8rpx;
bottom: 290rpx;
left: 84rpx;
}
}
>>>>>>> master
.img4-text { .img4-text {
position: absolute; position: absolute;
@ -202,6 +176,20 @@ export default {
} }
} }
.img4-text {
position: absolute;
width: 476.36rpx;
top: 170rpx;
left: 84rpx;
}
.btn-img {
position: absolute;
width: 149.8rpx;
bottom: 290rpx;
left: 84rpx;
}
.swiper-img { .swiper-img {
width: 100vw; width: 100vw;
height: 100vh; height: 100vh;

77
xxdf/home/home.vue

@ -234,46 +234,45 @@
</template> </template>
<script> <script>
import AudioControl from '@/components/AudioControl.vue'; import AudioControl from "@/components/AudioControl.vue";
import ShareGuide from '@/components/ShareGuide.vue'; import ShareGuide from "@/components/ShareGuide.vue";
import MusicControl from '@/components/MusicControl.vue'; import MusicControl from "@/components/MusicControl.vue";
import NavMenu from '../components/NavMenu.vue'; import NavMenu from "../components/NavMenu.vue";
export default { export default {
components: { components: {
ShareGuide, ShareGuide,
MusicControl, MusicControl,
NavMenu, NavMenu,
AudioControl AudioControl,
}, },
onShareGuideClose() { onShareGuideClose() {
console.log("分享引导已关闭"); console.log("分享引导已关闭");
}, },
shouldShowContent(index) { shouldShowContent(index) {
return Math.abs(index - this.currentIndex) <= this.preloadBuffer; return Math.abs(index - this.currentIndex) <= this.preloadBuffer;
}, },
handleSwiperChange(e) { handleSwiperChange(e) {
this.currentIndex = e.detail.current; this.currentIndex = e.detail.current;
}, },
navigateToChapter1() { navigateToChapter1() {
uni.navigateTo({ uni.navigateTo({
url: "/xxdf/chapter1/cover1", url: "/xxdf/chapter1/cover1",
}); });
}, },
navigateToChapter2() { navigateToChapter2() {
uni.navigateTo({ uni.navigateTo({
url: "/xxdf/chapter2/cover", url: "/xxdf/chapter2/cover",
}); });
}, },
navigateToChapter3() { navigateToChapter3() {
uni.navigateTo({ uni.navigateTo({
url: "/xxdf/chapter3/cover", url: "/xxdf/chapter3/cover",
}); });
}, },
navigateToChapter4() { navigateToChapter4() {
uni.navigateTo({ uni.navigateTo({
url: "/xxdf/chapter4/cover", url: "/xxdf/chapter4/cover",
}); });
},
}, },
watch: { watch: {
currentIndex(newIndex) { currentIndex(newIndex) {

Loading…
Cancel
Save