Browse Source

提交

dev_xrcc
chenkainan 4 months ago
parent
commit
864431a741
  1. 142
      App.vue
  2. 2
      components/chapter3/RandomImage.vue
  3. 11
      pages/index/readingBody.vue
  4. BIN
      static/3-1-2.gif
  5. BIN
      static/3-2-2.gif
  6. BIN
      static/3-3-2.gif
  7. BIN
      static/3-4-2.gif
  8. BIN
      static/3-5-2.gif
  9. BIN
      static/3-6-2.gif
  10. BIN
      static/3-7-2.gif
  11. BIN
      static/arrow-icon-black.png
  12. BIN
      static/arrow-icon.png
  13. BIN
      static/back.png
  14. BIN
      static/find-btn.png
  15. BIN
      static/footer.png
  16. BIN
      static/home.png
  17. BIN
      static/images/chapter1/abandon-btn.png
  18. BIN
      static/images/chapter1/bg-txt.png
  19. BIN
      static/images/chapter1/button.png
  20. BIN
      static/images/chapter1/cover.png
  21. BIN
      static/images/chapter1/cover2.png
  22. BIN
      static/images/chapter1/feel.png
  23. BIN
      static/images/chapter1/feel2-img.png
  24. BIN
      static/images/chapter1/feel2.png
  25. BIN
      static/images/chapter1/gustation.png
  26. BIN
      static/images/chapter1/gustation2-img.png
  27. BIN
      static/images/chapter1/gustation2.png
  28. BIN
      static/images/chapter1/hearing.png
  29. BIN
      static/images/chapter1/hearing2-img.png
  30. BIN
      static/images/chapter1/hearing2.png
  31. BIN
      static/images/chapter1/olfactory.png
  32. BIN
      static/images/chapter1/olfactory2-img.png
  33. BIN
      static/images/chapter1/olfactory2.png
  34. BIN
      static/images/chapter1/olfactory3-img.png
  35. BIN
      static/images/chapter1/olfactory3.png
  36. BIN
      static/images/chapter1/olfactory4-img.png
  37. BIN
      static/images/chapter1/olfactory4.png
  38. BIN
      static/images/chapter1/vision.png
  39. BIN
      static/images/chapter1/vision2-img.png
  40. BIN
      static/images/chapter1/vision2.png
  41. BIN
      static/images/chapter2/bg-txt.png
  42. BIN
      static/images/chapter2/button.png
  43. BIN
      static/images/chapter2/cover.png
  44. BIN
      static/images/chapter2/cover2.png
  45. BIN
      static/images/chapter2/cover3.png
  46. BIN
      static/images/chapter2/cover4.png
  47. BIN
      static/images/chapter2/cover5.png
  48. BIN
      static/images/chapter2/cover6.png
  49. BIN
      static/images/chapter2/cover7.png
  50. BIN
      static/images/chapter3/bg-txt.png
  51. BIN
      static/images/chapter3/button.png
  52. BIN
      static/images/chapter3/cover.png
  53. BIN
      static/images/chapter3/cover2-1.png
  54. BIN
      static/images/chapter3/cover2-txt.png
  55. BIN
      static/images/chapter3/cover2.png
  56. BIN
      static/images/chapter3/cover3-1.png
  57. BIN
      static/images/chapter3/cover3-txt.png
  58. BIN
      static/images/chapter3/cover3.png
  59. BIN
      static/images/chapter3/cover4-1.png
  60. BIN
      static/images/chapter3/cover4-txt.png
  61. BIN
      static/images/chapter3/cover4.png
  62. BIN
      static/images/chapter3/cover5-1.png
  63. BIN
      static/images/chapter3/cover5-txt.png
  64. BIN
      static/images/chapter3/cover5.png
  65. BIN
      static/images/chapter3/cover6-1.png
  66. BIN
      static/images/chapter3/cover6-txt.png
  67. BIN
      static/images/chapter3/cover6.png
  68. BIN
      static/images/chapter3/cover7-1.png
  69. BIN
      static/images/chapter3/cover7-txt.png
  70. BIN
      static/images/chapter3/cover7.png
  71. BIN
      static/images/chapter3/cover8-1.png
  72. BIN
      static/images/chapter3/cover8-txt.png
  73. BIN
      static/images/chapter3/cover8.png
  74. BIN
      static/images/chapter3/cover9-txt.png
  75. BIN
      static/images/chapter3/cover9.png
  76. BIN
      static/images/chapter3/random/image1-txt.png
  77. BIN
      static/images/chapter3/random/image1.png
  78. BIN
      static/images/chapter3/random/image2-txt.png
  79. BIN
      static/images/chapter3/random/image2.png
  80. BIN
      static/images/chapter3/random/image3-txt.png
  81. BIN
      static/images/chapter3/random/image3.png
  82. BIN
      static/images/chapter3/random/image4-txt.png
  83. BIN
      static/images/chapter3/random/image4.png
  84. BIN
      static/images/chapter3/random/image5-txt.png
  85. BIN
      static/images/chapter3/random/image5.png
  86. BIN
      static/images/chapter3/random/image6-txt.png
  87. BIN
      static/images/chapter3/random/image6.png
  88. BIN
      static/images/chapter3/random/image7-txt.png
  89. BIN
      static/images/chapter3/random/image7.png
  90. BIN
      static/images/chapter4/bg-txt.png
  91. BIN
      static/images/chapter4/chapter4-btn.png
  92. BIN
      static/images/chapter4/chapter4-btn2.png
  93. BIN
      static/images/chapter4/cover.png
  94. BIN
      static/images/chapter4/detail1/cover-bg.png
  95. BIN
      static/images/chapter4/detail1/cover-txt.png
  96. BIN
      static/images/chapter4/detail1/swiper-img1.png
  97. BIN
      static/images/chapter4/detail1/swiper-img2.png
  98. BIN
      static/images/chapter4/detail1/swiper-img3.png
  99. BIN
      static/images/chapter4/detail1/swiper-img4.png
  100. BIN
      static/images/chapter4/detail1/swiper-img5.png

142
App.vue

@ -1,14 +1,121 @@
<script> <script>
export default { export default {
globalData: {
mainSliderIndex: 0,
randomImages: [],
bgMusic: null,
isMusicPlaying: false
},
onLaunch: function() { onLaunch: function() {
console.warn('当前组件仅支持 uni_modules 目录结构 ,请升级 HBuilderX 到 3.1.0 版本以上!') console.warn('当前组件仅支持 uni_modules 目录结构 ,请升级 HBuilderX 到 3.1.0 版本以上!')
console.log('App Launch') console.log('App Launch')
//
this.initBackgroundMusic();
}, },
onShow: function() { onShow: function() {
console.log('App Show') console.log('App Show')
}, },
onHide: function() { onHide: function() {
console.log('App Hide') console.log('App Hide')
},
methods: {
initBackgroundMusic() {
try {
let bgMusic;
// - 使H5使
// #ifdef MP-WEIXIN
try {
bgMusic = uni.getBackgroundAudioManager();
// title
bgMusic.title = '背景音乐';
} catch (e) {
console.error('获取背景音频管理器失败,改用内部音频上下文', e);
bgMusic = uni.createInnerAudioContext();
}
// #endif
// #ifndef MP-WEIXIN
bgMusic = uni.createInnerAudioContext();
// #endif
//
bgMusic.src = 'https://mp-8aaaff75-9c10-4e68-919c-7f4ee2d555b6.cdn.bspapp.com/xxdf.MP3';
bgMusic.loop = true; //
// 使
if (bgMusic.onPlay) {
// BackgroundAudioManager
bgMusic.onPlay(() => {
this.globalData.isMusicPlaying = true;
});
bgMusic.onPause(() => {
this.globalData.isMusicPlaying = false;
});
bgMusic.onStop(() => {
this.globalData.isMusicPlaying = false;
});
bgMusic.onEnded(() => {
// (BackgroundAudioManagersrc)
bgMusic.src = 'https://static.ticket.sz-trip.com/epicSoul/xxdf.MP3';
bgMusic.play();
});
} else {
// InnerAudioContext
bgMusic.onPlay(() => {
this.globalData.isMusicPlaying = true;
});
bgMusic.onPause(() => {
this.globalData.isMusicPlaying = false;
});
bgMusic.onStop(() => {
this.globalData.isMusicPlaying = false;
});
bgMusic.onEnded(() => {
// InnerAudioContextloop
this.globalData.isMusicPlaying = false;
});
}
//
this.globalData.bgMusic = bgMusic;
//
uni.$bgMusic = {
play: () => {
if (bgMusic && bgMusic.play) {
bgMusic.play();
}
return this.globalData.isMusicPlaying;
},
pause: () => {
if (bgMusic && bgMusic.pause) {
bgMusic.pause();
}
return this.globalData.isMusicPlaying;
},
toggle: () => {
if (!bgMusic) return false;
if (this.globalData.isMusicPlaying) {
if (bgMusic.pause) bgMusic.pause();
} else {
if (bgMusic.play) bgMusic.play();
}
return this.globalData.isMusicPlaying;
},
isPlaying: () => this.globalData.isMusicPlaying
};
} catch (err) {
console.error('初始化背景音乐失败:', err);
}
}
} }
} }
</script> </script>
@ -29,4 +136,39 @@
color: #333; color: #333;
padding: 10px; padding: 10px;
} }
/* 清除按钮默认样式 */
button::after {
border: none;
}
@keyframes bounce {
0%,
20%,
50%,
80%,
100% {
transform: translateY(0);
}
40% {
transform: translateY(-20rpx);
}
60% {
transform: translateY(-10rpx);
}
}
/* 音乐控制按钮动画 */
@keyframes rotate {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}
</style> </style>

2
components/chapter3/RandomImage.vue

@ -12,7 +12,7 @@
</template> </template>
<script> <script>
import MusicControl from './MusicControl.vue' import MusicControl from '@/components/MusicControl.vue'
export default { export default {
components: { components: {

11
pages/index/readingBody.vue

@ -57,7 +57,7 @@
<span :style="{left: readingIndex == 0 ? '32rpx' : (readingIndex == 1 ? '245rpx' : '448rpx')}"></span> --> <span :style="{left: readingIndex == 0 ? '32rpx' : (readingIndex == 1 ? '245rpx' : '448rpx')}"></span> -->
</view> </view>
<view class="reading-box"> <view class="reading-box">
<image v-for="(item,index) in readingList" :key="index" :src="showImg(item.image)" @click="gotoUrlNew(item)"></image> <image v-for="(item,index) in readingList" :key="index" :src="showImg(item.image)" @click="gotoUrlNews(item,index)"></image>
</view> </view>
<CustomTabBar :currentTab="1" /> <CustomTabBar :currentTab="1" />
@ -106,6 +106,15 @@
this.sendRequest() this.sendRequest()
}, },
methods: { methods: {
gotoUrlNews(item,index) {
if(index == 0) {
uni.navigateTo({
url: '/xxdf/home/home'
})
}else {
this.gotoUrlNew(item)
}
},
sendRequest() { sendRequest() {
this.Post({ this.Post({
type_id: 3, type_id: 3,

BIN
static/3-1-2.gif

Binary file not shown.

Before

Width:  |  Height:  |  Size: 27 MiB

BIN
static/3-2-2.gif

Binary file not shown.

Before

Width:  |  Height:  |  Size: 18 MiB

BIN
static/3-3-2.gif

Binary file not shown.

Before

Width:  |  Height:  |  Size: 31 MiB

BIN
static/3-4-2.gif

Binary file not shown.

Before

Width:  |  Height:  |  Size: 35 MiB

BIN
static/3-5-2.gif

Binary file not shown.

Before

Width:  |  Height:  |  Size: 28 MiB

BIN
static/3-6-2.gif

Binary file not shown.

Before

Width:  |  Height:  |  Size: 27 MiB

BIN
static/3-7-2.gif

Binary file not shown.

Before

Width:  |  Height:  |  Size: 19 MiB

BIN
static/arrow-icon-black.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.5 KiB

BIN
static/arrow-icon.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.5 KiB

BIN
static/back.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.7 KiB

BIN
static/find-btn.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 10 KiB

BIN
static/footer.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 MiB

BIN
static/home.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 84 KiB

BIN
static/images/chapter1/abandon-btn.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.2 KiB

BIN
static/images/chapter1/bg-txt.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 226 KiB

BIN
static/images/chapter1/button.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.6 KiB

BIN
static/images/chapter1/cover.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 MiB

BIN
static/images/chapter1/cover2.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 MiB

BIN
static/images/chapter1/feel.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 MiB

BIN
static/images/chapter1/feel2-img.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 264 KiB

BIN
static/images/chapter1/feel2.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 MiB

BIN
static/images/chapter1/gustation.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 MiB

BIN
static/images/chapter1/gustation2-img.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 180 KiB

BIN
static/images/chapter1/gustation2.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 MiB

BIN
static/images/chapter1/hearing.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.0 MiB

BIN
static/images/chapter1/hearing2-img.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 124 KiB

BIN
static/images/chapter1/hearing2.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 MiB

BIN
static/images/chapter1/olfactory.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 MiB

BIN
static/images/chapter1/olfactory2-img.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 183 KiB

BIN
static/images/chapter1/olfactory2.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 MiB

BIN
static/images/chapter1/olfactory3-img.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 743 KiB

BIN
static/images/chapter1/olfactory3.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 MiB

BIN
static/images/chapter1/olfactory4-img.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.0 MiB

BIN
static/images/chapter1/olfactory4.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 243 KiB

BIN
static/images/chapter1/vision.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 MiB

BIN
static/images/chapter1/vision2-img.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 152 KiB

BIN
static/images/chapter1/vision2.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 MiB

BIN
static/images/chapter2/bg-txt.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 128 KiB

BIN
static/images/chapter2/button.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.3 KiB

BIN
static/images/chapter2/cover.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.5 MiB

BIN
static/images/chapter2/cover2.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.5 MiB

BIN
static/images/chapter2/cover3.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.5 MiB

BIN
static/images/chapter2/cover4.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.1 MiB

BIN
static/images/chapter2/cover5.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.5 MiB

BIN
static/images/chapter2/cover6.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.0 MiB

BIN
static/images/chapter2/cover7.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.2 MiB

BIN
static/images/chapter3/bg-txt.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 101 KiB

BIN
static/images/chapter3/button.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.4 KiB

BIN
static/images/chapter3/cover.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 MiB

BIN
static/images/chapter3/cover2-1.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.2 MiB

BIN
static/images/chapter3/cover2-txt.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.3 KiB

BIN
static/images/chapter3/cover2.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.7 MiB

BIN
static/images/chapter3/cover3-1.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 169 KiB

BIN
static/images/chapter3/cover3-txt.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.8 KiB

BIN
static/images/chapter3/cover3.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 MiB

BIN
static/images/chapter3/cover4-1.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 162 KiB

BIN
static/images/chapter3/cover4-txt.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.5 KiB

BIN
static/images/chapter3/cover4.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.7 MiB

BIN
static/images/chapter3/cover5-1.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 182 KiB

BIN
static/images/chapter3/cover5-txt.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.1 KiB

BIN
static/images/chapter3/cover5.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 MiB

BIN
static/images/chapter3/cover6-1.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 162 KiB

BIN
static/images/chapter3/cover6-txt.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.8 KiB

BIN
static/images/chapter3/cover6.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 MiB

BIN
static/images/chapter3/cover7-1.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 170 KiB

BIN
static/images/chapter3/cover7-txt.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.9 KiB

BIN
static/images/chapter3/cover7.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 MiB

BIN
static/images/chapter3/cover8-1.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 163 KiB

BIN
static/images/chapter3/cover8-txt.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.1 KiB

BIN
static/images/chapter3/cover8.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 MiB

BIN
static/images/chapter3/cover9-txt.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

BIN
static/images/chapter3/cover9.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 851 KiB

BIN
static/images/chapter3/random/image1-txt.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 17 KiB

BIN
static/images/chapter3/random/image1.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 MiB

BIN
static/images/chapter3/random/image2-txt.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 19 KiB

BIN
static/images/chapter3/random/image2.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.3 MiB

BIN
static/images/chapter3/random/image3-txt.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 30 KiB

BIN
static/images/chapter3/random/image3.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.4 MiB

BIN
static/images/chapter3/random/image4-txt.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 34 KiB

BIN
static/images/chapter3/random/image4.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 17 MiB

BIN
static/images/chapter3/random/image5-txt.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 17 KiB

BIN
static/images/chapter3/random/image5.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.6 MiB

BIN
static/images/chapter3/random/image6-txt.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 17 KiB

BIN
static/images/chapter3/random/image6.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 MiB

BIN
static/images/chapter3/random/image7-txt.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 17 KiB

BIN
static/images/chapter3/random/image7.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 MiB

BIN
static/images/chapter4/bg-txt.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 79 KiB

BIN
static/images/chapter4/chapter4-btn.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

BIN
static/images/chapter4/chapter4-btn2.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 10 KiB

BIN
static/images/chapter4/cover.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.9 MiB

BIN
static/images/chapter4/detail1/cover-bg.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.5 MiB

BIN
static/images/chapter4/detail1/cover-txt.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 28 KiB

BIN
static/images/chapter4/detail1/swiper-img1.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 211 KiB

BIN
static/images/chapter4/detail1/swiper-img2.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 564 KiB

BIN
static/images/chapter4/detail1/swiper-img3.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 271 KiB

BIN
static/images/chapter4/detail1/swiper-img4.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 355 KiB

BIN
static/images/chapter4/detail1/swiper-img5.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 536 KiB

Some files were not shown because too many files changed in this diff

Loading…
Cancel
Save