update community page

master
xhhing 2 weeks ago
parent 71e268b51f
commit ca790b11ab

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

@ -93,7 +93,9 @@
margin-bottom: 5vh;
width: 100%;
// height: 55vh;
height:900rpx;
display: flex;
flex-direction: column;
// height:900rpx;
position: relative;
.post_top_box{
display: flex;

Loading…
Cancel
Save