|
@@ -71,6 +71,8 @@ const getAllHotspot = () => {
|
|
|
hotspots.value.forEach((item: any, index: number) => {
|
|
hotspots.value.forEach((item: any, index: number) => {
|
|
|
if (item.id == 1) {
|
|
if (item.id == 1) {
|
|
|
hotspots.value.unshift(hotspots.value.splice(index, 1)[0])
|
|
hotspots.value.unshift(hotspots.value.splice(index, 1)[0])
|
|
|
|
|
+ } else if (item.id == 0) {
|
|
|
|
|
+ hotspots.value.unshift(hotspots.value.splice(index, 1)[0])
|
|
|
} else if (item.id == 9) {
|
|
} else if (item.id == 9) {
|
|
|
hotspots.value.push(hotspots.value.splice(index, 1)[0])
|
|
hotspots.value.push(hotspots.value.splice(index, 1)[0])
|
|
|
}
|
|
}
|
|
@@ -121,8 +123,13 @@ const isShowGameList = ref(false)
|
|
|
const isLogin = ref(false)
|
|
const isLogin = ref(false)
|
|
|
|
|
|
|
|
// 内嵌小游戏界面打开
|
|
// 内嵌小游戏界面打开
|
|
|
-const openGame = (game: any) => {
|
|
|
|
|
- console.log(game)
|
|
|
|
|
|
|
+const openGame = (index: number) => {
|
|
|
|
|
+ router.push({
|
|
|
|
|
+ path: '/game',
|
|
|
|
|
+ query: {
|
|
|
|
|
+ code: index
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
// 点击登录
|
|
// 点击登录
|
|
@@ -143,7 +150,6 @@ onMounted(() => {
|
|
|
window.handleRobot = (state: string) => {
|
|
window.handleRobot = (state: string) => {
|
|
|
animalStat.value = state
|
|
animalStat.value = state
|
|
|
animalZhenShuNumber.value = currentUnit.value.xuliezhen[animalStat.value].zhenShu
|
|
animalZhenShuNumber.value = currentUnit.value.xuliezhen[animalStat.value].zhenShu
|
|
|
- alert(currentUnit.value.xuliezhen[animalStat.value].duration)
|
|
|
|
|
duration.value = currentUnit.value.xuliezhen[animalStat.value].duration
|
|
duration.value = currentUnit.value.xuliezhen[animalStat.value].duration
|
|
|
isReady.value = true
|
|
isReady.value = true
|
|
|
}
|
|
}
|
|
@@ -232,9 +238,9 @@ onMounted(() => {
|
|
|
<!-- 游戏列表弹窗 -->
|
|
<!-- 游戏列表弹窗 -->
|
|
|
<div class="game-list-box" v-show="isShowGameList">
|
|
<div class="game-list-box" v-show="isShowGameList">
|
|
|
<div class="game-list">
|
|
<div class="game-list">
|
|
|
- <div class="game-list-item" v-for="(item, index) in store.dataAll.gameList" :key="index" @click="openGame(item)">
|
|
|
|
|
- <img :src="`${baseUrl}/game/${item.id}.png`" alt="">
|
|
|
|
|
- <div>{{ item.name }}</div>
|
|
|
|
|
|
|
+ <div class="game-list-item" v-for="(item, index) in store.dataAll.gameList" :key="index" @click="openGame(index)">
|
|
|
|
|
+ <img :src="`${baseUrl}/game/${browser.mobile ? 'mobile/' : 'pc/'}${item.id}.png`" alt="">
|
|
|
|
|
+ <div v-show="!browser.mobile">{{ item.name }}</div>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
<img src="@/assets/images/close-icon.png" class="close-icon" @click="isShowGameList = false" alt="">
|
|
<img src="@/assets/images/close-icon.png" class="close-icon" @click="isShowGameList = false" alt="">
|
|
@@ -419,7 +425,7 @@ onMounted(() => {
|
|
|
background: url(@/assets/images/scene/userBg.png);
|
|
background: url(@/assets/images/scene/userBg.png);
|
|
|
background-size: 100% 100%;
|
|
background-size: 100% 100%;
|
|
|
position: absolute;
|
|
position: absolute;
|
|
|
- right: 40px;
|
|
|
|
|
|
|
+ right: 60px;
|
|
|
bottom: 30px;
|
|
bottom: 30px;
|
|
|
display: flex;
|
|
display: flex;
|
|
|
flex-direction: column;
|
|
flex-direction: column;
|
|
@@ -505,6 +511,17 @@ onMounted(() => {
|
|
|
font-family: 'AlibabaPuHuiTi2.0-105Heavy';
|
|
font-family: 'AlibabaPuHuiTi2.0-105Heavy';
|
|
|
color: white;
|
|
color: white;
|
|
|
|
|
|
|
|
|
|
+ @media screen and (max-width: 440px) {
|
|
|
|
|
+ display: flex;
|
|
|
|
|
+ flex-direction: column;
|
|
|
|
|
+ overflow: auto;
|
|
|
|
|
+
|
|
|
|
|
+ &::-webkit-scrollbar {
|
|
|
|
|
+ width: 0;
|
|
|
|
|
+ height: 0;
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
.game-list-item {
|
|
.game-list-item {
|
|
|
width: 100%;
|
|
width: 100%;
|
|
|
display: flex;
|
|
display: flex;
|
|
@@ -513,10 +530,17 @@ onMounted(() => {
|
|
|
align-items: center;
|
|
align-items: center;
|
|
|
|
|
|
|
|
img {
|
|
img {
|
|
|
- width: 70%;
|
|
|
|
|
- height: 50%;
|
|
|
|
|
- object-fit: contain;
|
|
|
|
|
|
|
+ width: 90%;
|
|
|
|
|
+ height: 60%;
|
|
|
margin-bottom: 10px;
|
|
margin-bottom: 10px;
|
|
|
|
|
+ border-radius: 15px;
|
|
|
|
|
+
|
|
|
|
|
+ @media screen and (max-width: 440px) {
|
|
|
|
|
+ width: 100%;
|
|
|
|
|
+ height: 100%;
|
|
|
|
|
+ margin-bottom: 0;
|
|
|
|
|
+ object-fit: none;
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|