This commit is contained in:
huangjinming 2023-03-20 15:57:36 +08:00
parent e02b2cb059
commit ee4f2b44d0
5 changed files with 44 additions and 36 deletions

View File

@ -1 +1 @@
VITE_API_BASE_URL=http://localhost:5000
VUE_APP_BASE_API='https://game2006api-test.kingsome.cn'

View File

@ -17,9 +17,9 @@
/></a>
</div>
<div class="download-item">
<a href="https://www.cebg.games/release/cebg.apk">
<img src="@/assets/img/home/apple.png" alt=""
/></a>
/>
</div>
</div>
</div>

View File

@ -94,11 +94,7 @@ const imageList = reactive([
videoSrc: "https://www.youtube.com/watch?v=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);
@ -249,7 +245,6 @@ const handSlideNext = () => {
.mySwiper2 {
position: relative;
/* float: left; */
height: 600px;
width: 1200px;
@ -259,8 +254,6 @@ const handSlideNext = () => {
.mySwiper {
position: relative;
margin-top: 30px;
/* float: left; */
/* margin-left: 3%; */
width: 1200px;
height: 80%;
box-sizing: border-box;
@ -304,8 +297,8 @@ const handSlideNext = () => {
.mySwiper .swiper-slide {
width: 100%;
height: 33%;
opacity: 0.4;
border-radius: 4%;
opacity: 0.3;
border-radius: 12px;
}
.mySwiper .swiper-slide-thumb-active {
@ -316,6 +309,7 @@ const handSlideNext = () => {
display: block;
width: 100%;
height: 100%;
border-radius: 12px;
object-fit: cover;
}
</style>

View File

@ -291,6 +291,7 @@ function test(index, sc) {
.miffy-container-active {
opacity: 1;
top: 408px;
margin-left: 10px;
width: 695px;
height: 220px;
display: flex;
@ -363,11 +364,11 @@ function test(index, sc) {
object-fit: cover;
}
// .swiper-button-disabled {
// opacity: 0.5;
// pointer-events: none;
// cursor:not-allowed
// }
.swiper-button-disabled {
opacity: 0.5;
pointer-events: none;
cursor:not-allowed
}
}
.woman-bg {
background: url("@/assets/img/home/hero/hero-bg.png") no-repeat;

View File

@ -1,37 +1,35 @@
import { createRouter, createWebHistory } from "vue-router";
import Home from "../views/HomeView.vue";
import About from "../views/AboutView.vue";
import { createRouter, createWebHistory } from 'vue-router';
import Home from '../views/HomeView.vue';
import About from '../views/AboutView.vue';
const routes = [
{
path: "/",
name: "home",
path: '/',
name: 'home',
component: Home,
},
{
path: "/about",
name: "about",
path: '/about',
name: 'about',
component: About,
},
{
path: "/gellery",
name: "gellery",
path: '/gallery',
name: 'gallery',
component: () =>
import(/* webpackChunkName "gellery" */ "@/views/GalleryView.vue"),
import(/* webpackChunkName "gallery" */ '@/views/GalleryView.vue'),
},
{
path: "/marketpalce",
name: "marketpalce",
path: '/marketplace',
name: 'marketplace',
component: () =>
import(
/* webpackChunkName "marketpalce" */ "@/views/MarketplaceView.vue"
),
import(/* webpackChunkName "marketplace" */ '@/views/MarketplaceView.vue'),
},
{
path: "/contact",
name: "contact",
path: '/contact',
name: 'contact',
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;