|
|
|
@ -12,7 +12,12 @@
|
|
|
|
|
<view class="tip_word_box">搜索他人的健康秘诀</view>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="add_image_box">
|
|
|
|
|
<image class="add_image" src="../../../../static/homepages/community/community/pictures/add_image.png" mode="widthFix"></image>
|
|
|
|
|
<image
|
|
|
|
|
class="add_image"
|
|
|
|
|
src="../../../../static/homepages/community/community/pictures/add_image.png"
|
|
|
|
|
mode="widthFix"
|
|
|
|
|
@click="toAddPostPage"
|
|
|
|
|
></image>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="line_box"></view>
|
|
|
|
@ -29,7 +34,7 @@
|
|
|
|
|
<view class="post_date">2024年11月13日</view>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="post_word_box">今天去海边锻炼看见的,真是太美了</view>
|
|
|
|
|
<view class="post_word_box">今天去海边锻炼看见的,真是太美了啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊</view>
|
|
|
|
|
<view class="post_images_box">
|
|
|
|
|
<community_image_box class="post_images" :imgList='imgList' :num='imgList.length'></community_image_box>
|
|
|
|
|
</view>
|
|
|
|
@ -39,7 +44,12 @@
|
|
|
|
|
<view class="comments_num">10</view>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="like_box">
|
|
|
|
|
<image class="love_icon" src="../../../../static/homepages/community/community/pictures/love_image.png" mode="widthFix"></image>
|
|
|
|
|
<image
|
|
|
|
|
class="love_icon"
|
|
|
|
|
src="../../../../static/homepages/community/community/pictures/love_image.png"
|
|
|
|
|
mode="widthFix"
|
|
|
|
|
@click="likeClick"
|
|
|
|
|
></image>
|
|
|
|
|
<view class="like_num">122</view>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
@ -80,8 +90,32 @@ export default {
|
|
|
|
|
]
|
|
|
|
|
};
|
|
|
|
|
},
|
|
|
|
|
onLoad() {
|
|
|
|
|
|
|
|
|
|
mounted(){
|
|
|
|
|
this.getAllPost()
|
|
|
|
|
},
|
|
|
|
|
methods:{
|
|
|
|
|
getAllPost(){
|
|
|
|
|
//TODO:获取所有的帖子
|
|
|
|
|
const app = getApp()
|
|
|
|
|
uni.request({
|
|
|
|
|
url:app.globalData.fit_journey_community_address + '/post/getAll',
|
|
|
|
|
method:"GET",
|
|
|
|
|
success:(res) => {
|
|
|
|
|
console.log('getAllPost')
|
|
|
|
|
console.log(res)
|
|
|
|
|
},
|
|
|
|
|
fail: (err) => {
|
|
|
|
|
console.log('getAllPost fail')
|
|
|
|
|
console.log(err.log)
|
|
|
|
|
},
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
likeClick(){
|
|
|
|
|
//TODO:点赞
|
|
|
|
|
},
|
|
|
|
|
toAddPostPage(){
|
|
|
|
|
//TODO:转到发布帖子界面
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|