修改广场页
This commit is contained in:
parent
9488387d4b
commit
4a17cfeeac
@ -2,9 +2,8 @@
|
||||
<view>
|
||||
<!-- navbar -->
|
||||
<u-navbar :is-back="false" :border-bottom="false">
|
||||
<u-icon name="search" :size="40" class="search-wrap" @click="toSearch"></u-icon>
|
||||
<u-icon name="plus-circle" :size="40" class="add-icon" @click="goPostAdd"></u-icon>
|
||||
<u-tabs :list="pageTab" :current="pageCurrent" @change="pageTabChange"></u-tabs>
|
||||
|
||||
</u-navbar>
|
||||
<!-- 创作广场 -->
|
||||
<view v-show="pageCurrent == 0">
|
||||
@ -120,6 +119,11 @@
|
||||
title: '暂无搜索'
|
||||
})
|
||||
},
|
||||
goPostAdd() {
|
||||
uni.navigateTo({
|
||||
url: '/pages/post/add'
|
||||
})
|
||||
}
|
||||
pageTabChange(index) {
|
||||
this.pageCurrent = index
|
||||
},
|
||||
@ -165,7 +169,7 @@
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.search-wrap {
|
||||
.add-icon {
|
||||
margin-left: 20rpx;
|
||||
margin-right: 30%;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user