|
|
@@ -13,33 +13,19 @@
|
|
|
</div>
|
|
|
<button class="bz-btn">搜索</button>
|
|
|
</div>
|
|
|
- <div class="bz-content">
|
|
|
- <div class="bz-right">
|
|
|
- <div class="bz-right-conent">
|
|
|
- <div class= "shows">
|
|
|
- <ul>
|
|
|
- <li>
|
|
|
- <span class="left bz-yuandian"></span>
|
|
|
- <span class="left">方式不同吧好像是差不多 </span>
|
|
|
- <img @click="shows" class="right bz-copy" :class="isrotate ? 'rotates' : 'norotate'" src="/static/img/Triangle Copy 4.png" alt="">
|
|
|
- <div class="Text-content" :class="isshow ? 'dispays' : 'hides'">
|
|
|
- <p>警方圣诞快乐JFK的实力积分积分累积角度考虑实际疯狂的世界佛教埃及空军看见反抗类毒素解放就</p>
|
|
|
- </div>
|
|
|
- </li>
|
|
|
- <li>
|
|
|
- <span class="left bz-yuandian"></span>
|
|
|
- <span class="left">XXXXXXXXXXXXXXX操作文档</span>
|
|
|
- <img class="right bz-copy" src="/static/img/Triangle Copy 4.png" alt="">
|
|
|
- </li>
|
|
|
- <li>
|
|
|
- <span class="left bz-yuandian"></span>
|
|
|
- <span class="left">XXXXXXXXXXXXXXX操作文档</span>
|
|
|
- <img class="right bz-copy" src="/static/img/Triangle Copy 4.png" alt="">
|
|
|
- </li>
|
|
|
- </ul>
|
|
|
+ <div class="bz-right-conent">
|
|
|
+ <ul>
|
|
|
+ <li v-for="(d , i) in arr" :key="i">
|
|
|
+ <div class="over" @click="shows(d,i)" style="cursor: pointer">
|
|
|
+ <span class="left bz-yuandian"></span>
|
|
|
+ <span class="left">{{d.title}}</span>
|
|
|
+ <img class="right bz-copy" :class="d.isshow ? 'rotates' : 'norotate'" src="/static/img/Triangle Copy 4.png" alt="">
|
|
|
</div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
+ <div ref="title" class="Text-content" :class="d.isshow ? 'dispays' : 'hides'">
|
|
|
+ <p ref="text">{{d.centent}}</p>
|
|
|
+ </div>
|
|
|
+ </li>
|
|
|
+ </ul>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
@@ -51,14 +37,18 @@
|
|
|
export default {
|
|
|
data(){
|
|
|
return {
|
|
|
- isshow: false,
|
|
|
- isrotate: false
|
|
|
+ arr:[
|
|
|
+ {isshow: true, title:'方式不同吧好像是差不多',centent:'警方圣诞快乐JFK的实力积分积分累积角度考虑实际疯狂的世界佛教埃及空军看见反抗类毒素解放就'},
|
|
|
+ {isshow: false, title:'XXXXXXXXXXXXXXX操作文档',centent:'警方圣诞快发顺丰到付乐JFK的实力积分积分累积角度狂的世界佛教埃及空军看见反抗类毒素解放就'},
|
|
|
+ {isshow: false, title:'XXXXXXXXXXXXX操作文档',centent:'警方圣诞快分积分累积角度考虑实际疯狂的世界佛教埃及空军看见反抗类毒素解放就'},
|
|
|
+ ]
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
- shows(){
|
|
|
- this.isshow = !this.isshow
|
|
|
- this.isrotate = !this.isrotate
|
|
|
+ shows(d,i){
|
|
|
+ d.isshow = !d.isshow
|
|
|
+ let textH = this.$refs.text[i].offsetHeight;
|
|
|
+ this.$refs.title[i].style.height = textH + 'px'
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
@@ -66,16 +56,13 @@
|
|
|
|
|
|
<style scoped>
|
|
|
.dispays {
|
|
|
- /* display: block; */
|
|
|
- height: 60px;
|
|
|
transition: All 0.4s ease-in-out;
|
|
|
-webkit-transition: All 0.4s ease-in-out;
|
|
|
-moz-transition: All 0.4s ease-in-out;
|
|
|
-o-transition: All 0.4s ease-in-out;
|
|
|
}
|
|
|
.hides {
|
|
|
- /* display: none; */
|
|
|
- height: 0;
|
|
|
+ height: 0 !important;
|
|
|
margin-bottom: -13px;
|
|
|
transition: All 0.4s ease-in-out;
|
|
|
-webkit-transition: All 0.4s ease-in-out;
|
|
|
@@ -128,7 +115,7 @@
|
|
|
}
|
|
|
.bz-copy {
|
|
|
margin-right: 7px;
|
|
|
- cursor: pointer;
|
|
|
+ margin-top: 5px;
|
|
|
transition: All 0.4s ease-in-out;
|
|
|
-webkit-transition: All 0.4s ease-in-out;
|
|
|
-moz-transition: All 0.4s ease-in-out;
|