提交 ae9a1296 编写于 作者: !阳仔's avatar !阳仔

no message

上级 b247b9a2
<template> <template>
<div class="rank-list-box"> <div class="rank-list-box">
<div class="force-slide" v-if="userItem || ( title !== '铁粉榜' && city !=='全国')" @click="clear"> <div class="force-slide" :style="!slideopen?'right:-10px':''" >
<img src="" alt=""> <!-- <div class="force-slide" v-if="userItem || ( title !== '铁粉榜' && city !=='全国')" @click="clear"> -->
<div class="force-slide-open"> <img src="@/assets/img/go-back.png" style="margin-bottom:16px;" v-if="userItem || ( title !== '铁粉榜' && city !=='全国')" @click="clear" alt="">
<img src="" alt=""> <div class="force-slide-open" @click="slideopen = !slideopen">
<span></span> <img src="@/assets/img/rank-open.png" alt="">
<span>{{slideopen?'折叠榜单':'展开榜单'}}</span>
</div> </div>
</div> </div>
<div class="rank-list" :style="`height:${listHeight}px;`" ref="rank-list"> <div class="rank-list" v-if="slideopen" :style="`height:${listHeight}px;`" ref="rank-list">
<div class="title"> <div class="title">
<span>{{ title }}</span> <span>{{ title }}</span>
...@@ -52,12 +53,12 @@ export default { ...@@ -52,12 +53,12 @@ export default {
return { return {
userItem:'', userItem:'',
listHeight:'', listHeight:'',
cityFlag:false cityFlag:false,
slideopen:true
} }
}, },
methods: { methods: {
dropdownFn(val) { dropdownFn(val) {
// console.log(val)
this.$emit('dropdownFn',val) this.$emit('dropdownFn',val)
}, },
clear () { clear () {
...@@ -133,23 +134,28 @@ export default { ...@@ -133,23 +134,28 @@ export default {
position: relative; position: relative;
.force-slide{ .force-slide{
// padding: 10px; // padding: 10px;
width: 64px;
height: 40px;
background: #364366;
color:#78C1FF;
display: flex;
align-items: center;
justify-content: center;
position: absolute; position: absolute;
top: 10px; top: 10px;
right: 410px; right: 410px;
// left: 20px; // left: 20px;
font-size: 14px; font-size: 14px;
border: 2px solid #5f97d5;
cursor: pointer;
img{ img{
width: 12px; width: 28px;
height: 16px; height: 28px;
cursor: pointer;
}
.force-slide-open{
cursor: pointer;
font-size: 14px;
font-weight: 500;
color: #97ADC6;
display: flex;
flex-direction: column;
span{
margin-top: 8px;
}
} }
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册