fix
This commit is contained in:
parent
e02b2cb059
commit
ee4f2b44d0
@ -1 +1 @@
|
|||||||
VITE_API_BASE_URL=http://localhost:5000
|
VUE_APP_BASE_API='https://game2006api-test.kingsome.cn'
|
@ -17,9 +17,9 @@
|
|||||||
/></a>
|
/></a>
|
||||||
</div>
|
</div>
|
||||||
<div class="download-item">
|
<div class="download-item">
|
||||||
<a href="https://www.cebg.games/release/cebg.apk">
|
|
||||||
<img src="@/assets/img/home/apple.png" alt=""
|
<img src="@/assets/img/home/apple.png" alt=""
|
||||||
/></a>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -94,11 +94,7 @@ const imageList = reactive([
|
|||||||
videoSrc: "https://www.youtube.com/watch?v=ru1TNcZoS98",
|
videoSrc: "https://www.youtube.com/watch?v=ru1TNcZoS98",
|
||||||
id:'ru1TNcZoS98'
|
id:'ru1TNcZoS98'
|
||||||
},
|
},
|
||||||
{
|
|
||||||
imgSrc: new URL("@/assets/img/home/game/006.png", import.meta.url).href,
|
|
||||||
videoSrc: "https://www.youtube.com/watch?v=0hSr0KJtgmI",
|
|
||||||
id:'0hSr0KJtgmI'
|
|
||||||
},
|
|
||||||
]);
|
]);
|
||||||
const thumbsSwiper = ref(null);
|
const thumbsSwiper = ref(null);
|
||||||
|
|
||||||
@ -249,7 +245,6 @@ const handSlideNext = () => {
|
|||||||
|
|
||||||
.mySwiper2 {
|
.mySwiper2 {
|
||||||
position: relative;
|
position: relative;
|
||||||
/* float: left; */
|
|
||||||
height: 600px;
|
height: 600px;
|
||||||
width: 1200px;
|
width: 1200px;
|
||||||
|
|
||||||
@ -259,8 +254,6 @@ const handSlideNext = () => {
|
|||||||
.mySwiper {
|
.mySwiper {
|
||||||
position: relative;
|
position: relative;
|
||||||
margin-top: 30px;
|
margin-top: 30px;
|
||||||
/* float: left; */
|
|
||||||
/* margin-left: 3%; */
|
|
||||||
width: 1200px;
|
width: 1200px;
|
||||||
height: 80%;
|
height: 80%;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
@ -304,8 +297,8 @@ const handSlideNext = () => {
|
|||||||
.mySwiper .swiper-slide {
|
.mySwiper .swiper-slide {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 33%;
|
height: 33%;
|
||||||
opacity: 0.4;
|
opacity: 0.3;
|
||||||
border-radius: 4%;
|
border-radius: 12px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.mySwiper .swiper-slide-thumb-active {
|
.mySwiper .swiper-slide-thumb-active {
|
||||||
@ -316,6 +309,7 @@ const handSlideNext = () => {
|
|||||||
display: block;
|
display: block;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
|
border-radius: 12px;
|
||||||
object-fit: cover;
|
object-fit: cover;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
@ -291,6 +291,7 @@ function test(index, sc) {
|
|||||||
.miffy-container-active {
|
.miffy-container-active {
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
top: 408px;
|
top: 408px;
|
||||||
|
margin-left: 10px;
|
||||||
width: 695px;
|
width: 695px;
|
||||||
height: 220px;
|
height: 220px;
|
||||||
display: flex;
|
display: flex;
|
||||||
@ -363,11 +364,11 @@ function test(index, sc) {
|
|||||||
object-fit: cover;
|
object-fit: cover;
|
||||||
}
|
}
|
||||||
|
|
||||||
// .swiper-button-disabled {
|
.swiper-button-disabled {
|
||||||
// opacity: 0.5;
|
opacity: 0.5;
|
||||||
// pointer-events: none;
|
pointer-events: none;
|
||||||
// cursor:not-allowed
|
cursor:not-allowed
|
||||||
// }
|
}
|
||||||
}
|
}
|
||||||
.woman-bg {
|
.woman-bg {
|
||||||
background: url("@/assets/img/home/hero/hero-bg.png") no-repeat;
|
background: url("@/assets/img/home/hero/hero-bg.png") no-repeat;
|
||||||
|
@ -1,37 +1,35 @@
|
|||||||
import { createRouter, createWebHistory } from "vue-router";
|
import { createRouter, createWebHistory } from 'vue-router';
|
||||||
import Home from "../views/HomeView.vue";
|
import Home from '../views/HomeView.vue';
|
||||||
import About from "../views/AboutView.vue";
|
import About from '../views/AboutView.vue';
|
||||||
|
|
||||||
const routes = [
|
const routes = [
|
||||||
{
|
{
|
||||||
path: "/",
|
path: '/',
|
||||||
name: "home",
|
name: 'home',
|
||||||
component: Home,
|
component: Home,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: "/about",
|
path: '/about',
|
||||||
name: "about",
|
name: 'about',
|
||||||
component: About,
|
component: About,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: "/gellery",
|
path: '/gallery',
|
||||||
name: "gellery",
|
name: 'gallery',
|
||||||
component: () =>
|
component: () =>
|
||||||
import(/* webpackChunkName "gellery" */ "@/views/GalleryView.vue"),
|
import(/* webpackChunkName "gallery" */ '@/views/GalleryView.vue'),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: "/marketpalce",
|
path: '/marketplace',
|
||||||
name: "marketpalce",
|
name: 'marketplace',
|
||||||
component: () =>
|
component: () =>
|
||||||
import(
|
import(/* webpackChunkName "marketplace" */ '@/views/MarketplaceView.vue'),
|
||||||
/* webpackChunkName "marketpalce" */ "@/views/MarketplaceView.vue"
|
|
||||||
),
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: "/contact",
|
path: '/contact',
|
||||||
name: "contact",
|
name: 'contact',
|
||||||
component: () =>
|
component: () =>
|
||||||
import(/* webpackChunkName "contact" */ "@/views/ContactUsView.vue"),
|
import(/* webpackChunkName "contact" */ '@/views/ContactUsView.vue'),
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
@ -43,4 +41,19 @@ const router = createRouter({
|
|||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
function isMobileDevice(userAgent) {
|
||||||
|
return /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(userAgent);
|
||||||
|
}
|
||||||
|
|
||||||
|
router.beforeEach((to, from, next) => {
|
||||||
|
const isMobile = isMobileDevice(window.navigator.userAgent);
|
||||||
|
|
||||||
|
// 对于 PC 端官网项目:
|
||||||
|
if (!isMobile) {
|
||||||
|
next(); // 如果是 PC 设备,继续导航
|
||||||
|
} else {
|
||||||
|
window.location.href = 'https://your-mobile-site-url.com'; // 如果是移动设备,跳转到移动端官网
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
export default router;
|
export default router;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user