|
|
@@ -13,6 +13,11 @@ const router = useRouter()
|
|
|
|
|
|
const countDownNumber = ref(5)
|
|
|
|
|
|
+// 判断是否为平板横屏
|
|
|
+const isFlatLandscape = computed(() => {
|
|
|
+ return browser.mobile && window.innerWidth > 1000 && window.innerHeight < window.innerWidth
|
|
|
+})
|
|
|
+
|
|
|
onMounted(() => {
|
|
|
|
|
|
let timer = setInterval(() => {
|
|
|
@@ -30,18 +35,13 @@ onMounted(() => {
|
|
|
|
|
|
<template>
|
|
|
<div class='welcome-page'
|
|
|
- :style="{ background: `url(${browser.mobile ? bgImgMo : bgImg})`, backgroundSize: `${browser.mobile ? 'cover' : '100% 100%'}`, backgroundPosition: browser.mobile ? 'center' : '' }">
|
|
|
+ :style="{ background: `url(${browser.mobile && !isFlatLandscape ? bgImgMo : bgImg})`, backgroundSize: `${browser.mobile && !isFlatLandscape ? 'cover' : '100% 100%'}`, backgroundPosition: browser.mobile && !isFlatLandscape ? 'center' : '' }">
|
|
|
<img class="logo" src="@/assets/images/logo.png" alt="">
|
|
|
<div class="center-box"
|
|
|
- :style="{ background: `url(${browser.mobile ? centerImgMo : centerImg})`, backgroundSize: '100% 100%' }">
|
|
|
+ :style="{ background: `url(${browser.mobile && !isFlatLandscape ? centerImgMo : centerImg})`, backgroundSize: '100% 100%' }">
|
|
|
</div>
|
|
|
<div class="title-box"
|
|
|
- :style="{ background: `url(${browser.mobile ? sponsorImgMo : sponsorImg})`, backgroundSize: '100% 100%' }"></div>
|
|
|
- <!-- <div class="sponsor-box">
|
|
|
- <span style="margin-right: 10px;"><strong>主办单位:</strong>中国证券博物馆</span>|
|
|
|
- <strong style="margin-left: 10px;">支持单位:</strong>上海证券期货文化发展基金会
|
|
|
- </div> -->
|
|
|
-
|
|
|
+ :style="{ background: `url(${browser.mobile && !isFlatLandscape ? sponsorImgMo : sponsorImg})`, backgroundSize: '100% 100%' }"></div>
|
|
|
<!-- 倒数进入主页 -->
|
|
|
<div class="count-down">
|
|
|
{{ countDownNumber }}s
|