用户资料

This commit is contained in:
唐明明
2022-01-20 15:48:57 +08:00
parent 93a20f2d3d
commit e491f798e4
13 changed files with 169 additions and 56 deletions

View File

@@ -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;