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