|
@@ -10,10 +10,10 @@
|
|
class="scene"
|
|
class="scene"
|
|
:class="isJigsawUnlock(item) ? 'unlock' : 'lock'"
|
|
:class="isJigsawUnlock(item) ? 'unlock' : 'lock'"
|
|
:style="{
|
|
:style="{
|
|
- width: `calc(${item.width} / 1080 * 100vh)`,
|
|
|
|
- height: `calc(${item.height} / 1080 * 100vh)`,
|
|
|
|
- top: `calc(${item.top} / 1080 * 100vh)`,
|
|
|
|
- left: `calc(${item.left} / 1080 * 100vh)`,
|
|
|
|
|
|
+ width: `calc(${item.width} / ${windowSizeWhenDesign} * ${unit})`,
|
|
|
|
+ height: `calc(${item.height} / ${windowSizeWhenDesign} * ${unit})`,
|
|
|
|
+ top: `calc(${item.top} / ${windowSizeWhenDesign} * ${unit})`,
|
|
|
|
+ left: `calc(${item.left} / ${windowSizeWhenDesign} * ${unit})`,
|
|
}"
|
|
}"
|
|
@click="onClickSceneEntry(item)"
|
|
@click="onClickSceneEntry(item)"
|
|
>
|
|
>
|
|
@@ -69,9 +69,18 @@
|
|
|
|
|
|
<script>
|
|
<script>
|
|
import { ElMessage, ElMessageBox } from 'element-plus'
|
|
import { ElMessage, ElMessageBox } from 'element-plus'
|
|
|
|
+import useWindowSizeAdaptor from '@/useFunctions/useWindowSizeAdaptor.js'
|
|
|
|
|
|
export default {
|
|
export default {
|
|
name: 'BagView',
|
|
name: 'BagView',
|
|
|
|
+ setup () {
|
|
|
|
+ const { windowSizeWhenDesign, unit } = useWindowSizeAdaptor()
|
|
|
|
+
|
|
|
|
+ return {
|
|
|
|
+ windowSizeWhenDesign,
|
|
|
|
+ unit
|
|
|
|
+ }
|
|
|
|
+ },
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
sceneList: [
|
|
sceneList: [
|
|
@@ -208,9 +217,9 @@ export default {
|
|
background-size: contain;
|
|
background-size: contain;
|
|
background-repeat: no-repeat;
|
|
background-repeat: no-repeat;
|
|
background-position: center center;
|
|
background-position: center center;
|
|
- width: 92.59vh;
|
|
|
|
- height: 80.56vh;
|
|
|
|
- padding: calc(50 / 1080 * 100vh) calc(40 / 1080 * 100vh);
|
|
|
|
|
|
+ width: calc(1000 / v-bind('windowSizeWhenDesign') * v-bind('unit'));
|
|
|
|
+ height: calc(870 / v-bind('windowSizeWhenDesign') * v-bind('unit'));
|
|
|
|
+ padding: calc(50 / v-bind('windowSizeWhenDesign') * v-bind('unit')) calc(40 / v-bind('windowSizeWhenDesign') * v-bind('unit'));
|
|
flex: 0 0 auto;
|
|
flex: 0 0 auto;
|
|
>.scene {
|
|
>.scene {
|
|
position: absolute;
|
|
position: absolute;
|
|
@@ -229,13 +238,13 @@ export default {
|
|
background: rgba(255,255,255,0.7);
|
|
background: rgba(255,255,255,0.7);
|
|
bottom: 0;
|
|
bottom: 0;
|
|
width: 100%;
|
|
width: 100%;
|
|
- height: calc(40 / 1080 * 100vh);
|
|
|
|
- padding-left: calc(9 / 1080 * 100vh);
|
|
|
|
- padding-right: calc(9 / 1080 * 100vh);
|
|
|
|
|
|
+ height: calc(40 / v-bind('windowSizeWhenDesign') * v-bind('unit'));
|
|
|
|
+ padding-left: calc(9 / v-bind('windowSizeWhenDesign') * v-bind('unit'));
|
|
|
|
+ padding-right: calc(9 / v-bind('windowSizeWhenDesign') * v-bind('unit'));
|
|
display: flex;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
align-items: center;
|
|
- font-size: calc(16 / 1080 * 100vh);
|
|
|
|
|
|
+ font-size: calc(16 / v-bind('windowSizeWhenDesign') * v-bind('unit'));
|
|
font-family: Source Han Sans CN-Bold, Source Han Sans CN;
|
|
font-family: Source Han Sans CN-Bold, Source Han Sans CN;
|
|
font-weight: bold;
|
|
font-weight: bold;
|
|
>span {
|
|
>span {
|
|
@@ -245,6 +254,8 @@ export default {
|
|
justify-content: center;
|
|
justify-content: center;
|
|
align-items: center;
|
|
align-items: center;
|
|
>img.fraction {
|
|
>img.fraction {
|
|
|
|
+ width: calc(20 / v-bind('windowSizeWhenDesign') * v-bind('unit'));
|
|
|
|
+ height: calc(18 / v-bind('windowSizeWhenDesign') * v-bind('unit'));
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -261,20 +272,20 @@ export default {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
>.right-wrap {
|
|
>.right-wrap {
|
|
- width: 53vh;
|
|
|
|
|
|
+ width: calc(700 / v-bind('windowSizeWhenDesign') * v-bind('unit'));
|
|
height: 100vh;
|
|
height: 100vh;
|
|
counter-reset: game-rule;
|
|
counter-reset: game-rule;
|
|
display: flex;
|
|
display: flex;
|
|
flex-direction: column;
|
|
flex-direction: column;
|
|
justify-content: center;
|
|
justify-content: center;
|
|
>img.title {
|
|
>img.title {
|
|
- width: calc(311 / 1080 * 100vh);
|
|
|
|
- height: calc(74 / 1080 * 100vh);
|
|
|
|
- margin-bottom: calc(60 / 1080 * 100vh);
|
|
|
|
|
|
+ width: calc(311 / v-bind('windowSizeWhenDesign') * v-bind('unit'));
|
|
|
|
+ height: calc(74 / v-bind('windowSizeWhenDesign') * v-bind('unit'));
|
|
|
|
+ margin-bottom: calc(60 / v-bind('windowSizeWhenDesign') * v-bind('unit'));
|
|
}
|
|
}
|
|
>p {
|
|
>p {
|
|
margin-bottom: 1em;
|
|
margin-bottom: 1em;
|
|
- font-size: calc(30 / 1080 * 100vh);
|
|
|
|
|
|
+ font-size: calc(30 / v-bind('windowSizeWhenDesign') * v-bind('unit'));
|
|
line-height: 1.5;
|
|
line-height: 1.5;
|
|
font-family: Source Han Sans CN-Bold, Source Han Sans CN;
|
|
font-family: Source Han Sans CN-Bold, Source Han Sans CN;
|
|
font-weight: bold;
|
|
font-weight: bold;
|
|
@@ -287,13 +298,13 @@ export default {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
>button.build {
|
|
>button.build {
|
|
- margin-top: calc(60 / 1080 * 100vh);
|
|
|
|
|
|
+ margin-top: calc(60 / v-bind('windowSizeWhenDesign') * v-bind('unit'));
|
|
background-image: url(@/assets/images/btn-build-town-lock.png);
|
|
background-image: url(@/assets/images/btn-build-town-lock.png);
|
|
background-size: cover;
|
|
background-size: cover;
|
|
background-repeat: no-repeat;
|
|
background-repeat: no-repeat;
|
|
background-position: center center;
|
|
background-position: center center;
|
|
- width: calc(323 / 1080 * 100vh);
|
|
|
|
- height: calc(120 / 1080 * 100vh);
|
|
|
|
|
|
+ width: calc(323 / v-bind('windowSizeWhenDesign') * v-bind('unit'));
|
|
|
|
+ height: calc(120 / v-bind('windowSizeWhenDesign') * v-bind('unit'));
|
|
margin-left: auto;
|
|
margin-left: auto;
|
|
margin-right: auto;
|
|
margin-right: auto;
|
|
&.functional {
|
|
&.functional {
|