|
@@ -4,17 +4,14 @@
|
|
|
<!-- <hot/> -->
|
|
|
<!-- 热点弹出框 -->
|
|
|
|
|
|
-
|
|
|
<!-- 顶部固定栏目 -->
|
|
|
-
|
|
|
-
|
|
|
|
|
|
<popup />
|
|
|
<!-- 加载初始页面 -->
|
|
|
<div id="gui-thumb"></div>
|
|
|
|
|
|
<!-- 主容器 -->
|
|
|
- <!-- @touchstart="musicPlay" -->
|
|
|
+ <!-- @touchstart="musicPlay" -->
|
|
|
<div id="player"></div>
|
|
|
<div id="gui-parent">
|
|
|
<!-- 进度条加载 -->
|
|
@@ -33,7 +30,7 @@
|
|
|
<v-title />
|
|
|
|
|
|
<!-- 底部菜单 -->
|
|
|
- <v-menu @musicOne='musicOne'/>
|
|
|
+ <v-menu @musicOne="musicOne" />
|
|
|
|
|
|
<!-- 导览 -->
|
|
|
<v-guide />
|
|
@@ -125,14 +122,14 @@ export default {
|
|
|
},
|
|
|
|
|
|
methods: {
|
|
|
- musicOne(){
|
|
|
+ musicOne() {
|
|
|
// this.musicFlag ++;
|
|
|
// this.musicPlay()
|
|
|
},
|
|
|
musicPlay() {
|
|
|
- if(this.musicFlag>5) return
|
|
|
- if (this.musicFlag<=2) window.manage.switchBgmState(true);
|
|
|
- this.musicFlag ++;
|
|
|
+ if (this.musicFlag > 5) return;
|
|
|
+ if (this.musicFlag <= 2) window.manage.switchBgmState(true);
|
|
|
+ this.musicFlag++;
|
|
|
},
|
|
|
// 控制背景音乐播放👆
|
|
|
hideWelcome() {
|
|
@@ -178,6 +175,29 @@ export default {
|
|
|
});
|
|
|
});
|
|
|
},
|
|
|
+ created() {
|
|
|
+ // 移动端和pc端的切换
|
|
|
+ if (
|
|
|
+ window.navigator.userAgent.match(
|
|
|
+ /(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i
|
|
|
+ )
|
|
|
+ ) {
|
|
|
+ // 移动端
|
|
|
+ if (
|
|
|
+ window.location.href.includes("web") &&
|
|
|
+ !window.location.href.includes("webM")
|
|
|
+ ) {
|
|
|
+ window.location.href = window.location.href.replace("web", "webM");
|
|
|
+ location.reload(true);
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ // PC端
|
|
|
+ if (window.location.href.includes("webM")) {
|
|
|
+ window.location.href = window.location.href.replace("webM", "web");
|
|
|
+ location.reload(true);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
};
|
|
|
</script>
|
|
|
|