|
|
|
@ -32,6 +32,7 @@ |
|
|
|
|
drop-icon="line" |
|
|
|
|
:options="options" |
|
|
|
|
defaultColor="#0076F6" |
|
|
|
|
@getContent="getContent" |
|
|
|
|
> |
|
|
|
|
<view class="tagList"> |
|
|
|
|
<view :class="active==index?'tagItem active':'tagItem'" |
|
|
|
@ -55,13 +56,19 @@ |
|
|
|
|
</view> |
|
|
|
|
|
|
|
|
|
</view> |
|
|
|
|
<view :class="noSearch?'nosearchListContent marginTop':'nosearchListContent'"> |
|
|
|
|
<view v-if="contentList.length>0" :class="noSearch?'nosearchListContent marginTop':'nosearchListContent'"> |
|
|
|
|
<view class="firstItem" v-for="item in contentList" |
|
|
|
|
:key="item.id" @click="goNextSection(item)"> |
|
|
|
|
<text>{{item.name}}</text> |
|
|
|
|
<text>{{item.subName}}</text> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
<view class="nodata" v-if="contentList.length==0"> |
|
|
|
|
<image src="../../static/nodata.png" mode="widthFix"></image> |
|
|
|
|
<view class="empty"> |
|
|
|
|
暂无数据 |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
|
|
|
|
|
</template> |
|
|
|
@ -94,6 +101,10 @@ export default{ |
|
|
|
|
this.getListData(option.id) |
|
|
|
|
}, |
|
|
|
|
methods:{ |
|
|
|
|
getContent(val){ |
|
|
|
|
this.catagoryName = val; |
|
|
|
|
this.getListData(this.catagoryId) |
|
|
|
|
}, |
|
|
|
|
searchHandle(){ |
|
|
|
|
this.getListData(this.catagoryId) |
|
|
|
|
}, |
|
|
|
@ -160,7 +171,6 @@ export default{ |
|
|
|
|
} |
|
|
|
|
.searchBox{ |
|
|
|
|
position:relative; |
|
|
|
|
border:1px solid red; |
|
|
|
|
} |
|
|
|
|
.withSearch{ |
|
|
|
|
position:absolute; |
|
|
|
@ -223,4 +233,12 @@ export default{ |
|
|
|
|
color: #0076F6 !important; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
.nodata{ |
|
|
|
|
margin-top:200rpx; |
|
|
|
|
text-align: center; |
|
|
|
|
image{ |
|
|
|
|
width:30%; |
|
|
|
|
height:auto; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
</style> |