Commit efb2fadc authored by liwei's avatar liwei

新增了动态里的评论页面

parent bd08fe82
...@@ -84,6 +84,17 @@ ...@@ -84,6 +84,17 @@
} }
] ]
}, },
{
"root": "pagesArticle",
"pages": [
{
"path": "articleDetail",
"style": {
"navigationBarTitleText": "动态详情"
}
}
]
},
{ {
"root": "pagesNotice", "root": "pagesNotice",
"pages": [ "pages": [
......
...@@ -23,9 +23,9 @@ ...@@ -23,9 +23,9 @@
<template v-if="!isState"> <template v-if="!isState">
<view class="name"> <view class="name">
<text @click="gotoUserInfo(info)">{{info.nickName}}</text> <text @click="gotoUserInfo(info)">{{info.nickName}}</text>
<image v-if="info.gender!='MALE'" class="gender" src="../../static/images/like/famale.png" mode=""> <image v-if="info.gender!='MALE'" class="gender" src="../../../static/images/like/famale.png" mode="">
</image> </image>
<image v-else class="gender" src="../../static/images/like/male.png" mode=""></image> <image v-else class="gender" src="../../../static/images/like/male.png" mode=""></image>
</view> </view>
<view class="info"> <view class="info">
<text decode="true" style="color: #434343;">{{info.information}}</text> <text decode="true" style="color: #434343;">{{info.information}}</text>
...@@ -81,12 +81,12 @@ ...@@ -81,12 +81,12 @@
<!-- </u-button>--> <!-- </u-button>-->
</view> </view>
<view class="btn" @click="gotoDetail(info)"> <view class="btn" @click="gotoDetail(info)">
<image src="../../static/images/104.png" mode=""></image> <image src="../../../static/images/104.png" mode=""></image>
<text>{{info.commentCount}}</text> <text>{{info.commentCount}}</text>
</view> </view>
<view class="btn" @click="praise(info)"> <view class="btn" @click="praise(info)">
<image v-if="!info.isLike" src="../../static/images/105.png" mode=""></image> <image v-if="!info.isLike" src="../../../static/images/105.png" mode=""></image>
<image v-else src="../../static/images/105-no.png" mode=""></image> <image v-else src="../../../static/images/105-no.png" mode=""></image>
<text>{{info.likeCount}}</text> <text>{{info.likeCount}}</text>
</view> </view>
</view> </view>
...@@ -187,7 +187,7 @@ ...@@ -187,7 +187,7 @@
//查看动态详情 //查看动态详情
gotoDetail(item) { gotoDetail(item) {
uni.navigateTo({ uni.navigateTo({
url: '/pages3/articleDetail?userId=' + item.userId url: '/pagesArticle/articleDetail?userId=' + item.userId
}) })
}, },
//查看用户详情 //查看用户详情
......
...@@ -212,15 +212,9 @@ ...@@ -212,15 +212,9 @@
//左上角的搜索 //左上角的搜索
async screen() { async screen() {
//判断当前是否已登录 //判断当前是否已登录
// const res = await this.$getId(); uni.navigateTo({
console.log(res); url: '/pagespreference/preference/preference'
if (res == 11003) { });
this.isLoginPop = true;
} else {
uni.navigateTo({
url: '/pagespreference/preference/preference'
});
}
}, },
}, },
confirma() { confirma() {
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment