用户资料
This commit is contained in:
@@ -1,28 +1,30 @@
|
||||
<template>
|
||||
<view class="content">
|
||||
<u-sticky bgColor="#fff" zIndex="99">
|
||||
<view class="tab-sticky">
|
||||
<u-tabs
|
||||
:list="listArr"
|
||||
@click="changeTopic"
|
||||
lineColor="#34CE98"
|
||||
:activeStyle="{fontWeight: 'bold', fontSize: '30rpx'}"
|
||||
/>
|
||||
</u-sticky>
|
||||
<view class="topic" v-if="topicArr.length > 0">
|
||||
<oct-topic
|
||||
:lists="topicArr"
|
||||
@onTopic="$Router.push({ name: 'topicDetails', params: {id: $event.topic_id, title: $event.name }})"
|
||||
/>
|
||||
<block v-if="page.total_page > 1">
|
||||
<u-loadmore :status="status" />
|
||||
</block>
|
||||
</view>
|
||||
<view class="noTopic" v-else>
|
||||
<u-empty
|
||||
mode="list"
|
||||
text="暂无食谱"
|
||||
/>
|
||||
</view>
|
||||
<view class="box">
|
||||
<view class="topic" v-if="topicArr.length > 0">
|
||||
<oct-topic
|
||||
:lists="topicArr"
|
||||
@onTopic="$Router.push({ name: 'topicDetails', params: {id: $event.topic_id, title: $event.name }})"
|
||||
/>
|
||||
<block v-if="page.total_page > 1">
|
||||
<u-loadmore :status="status" />
|
||||
</block>
|
||||
</view>
|
||||
<view class="noTopic" v-else>
|
||||
<u-empty
|
||||
mode="list"
|
||||
text="暂无话题"
|
||||
/>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
@@ -90,6 +92,19 @@
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.tab-sticky{
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
background: white;
|
||||
z-index: 99;
|
||||
}
|
||||
|
||||
.box {
|
||||
padding-top: 40px;
|
||||
}
|
||||
|
||||
.new-item {
|
||||
position: relative;
|
||||
margin-top: $margin - 10;
|
||||
|
||||
Reference in New Issue
Block a user