提交 6477768e 编写于 作者: 赵十四's avatar 赵十四

帖子消息模块完成

上级 c70a898c
......@@ -9,7 +9,7 @@
</view>
<view v-for="(item,index) in messages" :key="index">
<view class="one-post">
<view class="one-post" @click="toDetial(item.post_id)">
<view class="icon-with-name">
<image
:src="item.user_icon"
......@@ -43,6 +43,12 @@
},
methods: {
//转到帖子的详情页面
toDetial(postId) {
uni.navigateTo({
url: '/pages/post/post-detail?postId=' + postId
})
},
back(){
uni.navigateBack({
delta: 1, //返回层数,2则上上页
......
......@@ -61,7 +61,7 @@
<!-- 我的帖子 -->
<view v-if="current == 0">
<!-- 消息按钮 -->
<image :src="'/static/post/message.png'" style="float: right;width: 30px;height:30px; margin-right: 10%; "></image>
<image :src="'/static/post/message2.png'" style="float: right;width: 30px;height:30px; margin-right: 10%;margin-bottom: 5px; " @click="toMessage()"></image>
<!-- 单个帖子 -->
<view v-for="(item,index) in myPost" :key="index">
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册