Commit 50839087 by 曾经

位置兼容

parent 883e25e5
...@@ -47,7 +47,7 @@ ...@@ -47,7 +47,7 @@
</swiper-slide> </swiper-slide>
</swiper> </swiper>
<div class="box-box"> <div class="box-box" :style="{ height: 525 * screenWidth / 375 + 'px' }">
<img <img
:class="{ :class="{
active: clickIndex == index, active: clickIndex == index,
...@@ -60,7 +60,7 @@ ...@@ -60,7 +60,7 @@
? game.gameExt.prizeStyleList[0].imageNoSelectUrl ? game.gameExt.prizeStyleList[0].imageNoSelectUrl
: game.gameExt.prizeStyleList[index].imageNoSelectUrl : game.gameExt.prizeStyleList[index].imageNoSelectUrl
" "
:style="{ left: item.left, top: item.top }" :style="{ left: item.left, top: item.top * screenWidth / 375 + 'px' }"
@click="clickBox(index)" @click="clickBox(index)"
/> />
</div> </div>
...@@ -202,42 +202,43 @@ export default { ...@@ -202,42 +202,43 @@ export default {
shareConditionObj: {}, shareConditionObj: {},
alertOptions: {}, alertOptions: {},
barrageList: [], barrageList: [],
screenWidth: window.screen.width,
boxList: [ boxList: [
{ {
left: "calc(26.4% - 42.5px)", left: "calc(26.4% - 42.5px)",
top: "199px", top: 199,
}, },
{ {
left: "calc(50.4% - 42.5px)", left: "calc(50.4% - 42.5px)",
top: "199px", top: 199,
}, },
{ {
left: "calc(74.1% - 42.5px)", left: "calc(74.1% - 42.5px)",
top: "199px", top: 199,
}, },
{ {
left: "calc(26.4% - 42.5px)", left: "calc(26.4% - 42.5px)",
top: "299px", top: 299,
}, },
{ {
left: "calc(50.4% - 42.5px)", left: "calc(50.4% - 42.5px)",
top: "299px", top: 299,
}, },
{ {
left: "calc(74.1% - 42.5px)", left: "calc(74.1% - 42.5px)",
top: "299px", top: 299,
}, },
{ {
left: "calc(26.4% - 42.5px)", left: "calc(26.4% - 42.5px)",
top: "404px", top: 404,
}, },
{ {
left: "calc(50.4% - 42.5px)", left: "calc(50.4% - 42.5px)",
top: "404px", top: 404,
}, },
{ {
left: "calc(74.1% - 42.5px)", left: "calc(74.1% - 42.5px)",
top: "404px", top: 404,
}, },
], ],
swiperOptions: { swiperOptions: {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment