update:优化10人乱斗测距页
This commit is contained in:
@@ -113,6 +113,7 @@ const isMember = (player = {}) => player.vip === true || player.sVip === true;
|
|||||||
v-if="players.length"
|
v-if="players.length"
|
||||||
class="players-melee"
|
class="players-melee"
|
||||||
scroll-x
|
scroll-x
|
||||||
|
:show-scrollbar="false"
|
||||||
@touchmove="(e) => players.length > 5 && e.stopPropagation()"
|
@touchmove="(e) => players.length > 5 && e.stopPropagation()"
|
||||||
:style="{ paddingTop: showHeader ? '15px' : '0' }"
|
:style="{ paddingTop: showHeader ? '15px' : '0' }"
|
||||||
>
|
>
|
||||||
@@ -151,6 +152,7 @@ const isMember = (player = {}) => player.vip === true || player.sVip === true;
|
|||||||
.container {
|
.container {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
position: relative;
|
position: relative;
|
||||||
|
z-index: 999;
|
||||||
margin-bottom: 10px;
|
margin-bottom: 10px;
|
||||||
}
|
}
|
||||||
.container > image:first-child {
|
.container > image:first-child {
|
||||||
@@ -158,6 +160,7 @@ const isMember = (player = {}) => player.vip === true || player.sVip === true;
|
|||||||
width: 100%;
|
width: 100%;
|
||||||
top: -5px;
|
top: -5px;
|
||||||
z-index: 1;
|
z-index: 1;
|
||||||
|
pointer-events: none;
|
||||||
}
|
}
|
||||||
.players {
|
.players {
|
||||||
display: flex;
|
display: flex;
|
||||||
@@ -188,15 +191,12 @@ const isMember = (player = {}) => player.vip === true || player.sVip === true;
|
|||||||
.players-melee {
|
.players-melee {
|
||||||
height: 80px;
|
height: 80px;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
white-space: nowrap;
|
||||||
.players-melee::-webkit-scrollbar {
|
|
||||||
width: 0;
|
|
||||||
height: 0;
|
|
||||||
color: transparent;
|
|
||||||
}
|
}
|
||||||
/* 小程序 scroll-view 不支持直接 flex,通过内层 wrapper 承载横向排列 */
|
/* 小程序 scroll-view 不支持直接 flex,通过内层 wrapper 承载横向排列 */
|
||||||
.players-melee-inner {
|
.players-melee-inner {
|
||||||
display: flex;
|
display: inline-flex;
|
||||||
|
min-width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
flex-wrap: nowrap;
|
flex-wrap: nowrap;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -151,6 +151,7 @@ const isMember = (player = {}) => player.vip === true || player.sVip === true;
|
|||||||
.container {
|
.container {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
position: relative;
|
position: relative;
|
||||||
|
z-index: 999;
|
||||||
margin-bottom: 10px;
|
margin-bottom: 10px;
|
||||||
}
|
}
|
||||||
.container > image:first-child {
|
.container > image:first-child {
|
||||||
|
|||||||
Reference in New Issue
Block a user