|
|
<template>
|
|
|
<div class="tabs-wrap">
|
|
|
<ul class="tabs-list">
|
|
|
<li v-for="(item, index) in tabList" :key="index" :class="{'active': active === index}" @click="changeType(index, true)">
|
|
|
<li v-for="(item, index) in tabList" :key="index" @click="changeType(index, true)">
|
|
|
<div class="tabs-item" :class="{'active': active === index}">
|
|
|
{{item.name}}
|
|
|
<span v-if="item.num" class="t-num">({{item.num}})</span>
|
|
|
</div>
|
|
|
</li>
|
|
|
</ul>
|
|
|
</div>
|
...
|
...
|
@@ -68,7 +70,7 @@ export default { |
|
|
|
|
|
<style>
|
|
|
.tabs-wrap {
|
|
|
padding: 20px 30px 30px;
|
|
|
padding: 0 30px;
|
|
|
background-color: #fff;
|
|
|
display: flex;
|
|
|
justify-content: space-between;
|
...
|
...
|
@@ -81,7 +83,7 @@ export default { |
|
|
font-size: 32px;
|
|
|
color: #b0b0b0;
|
|
|
font-weight: 300;
|
|
|
margin-right: 40px;
|
|
|
padding: 20px 40px 30px 0;
|
|
|
}
|
|
|
|
|
|
.active {
|
...
|
...
|
|