Commit f3ef34c0 authored by liwei's avatar liwei

修改了bug

parent c3f16e8b
...@@ -12,6 +12,17 @@ export function userList(data){ ...@@ -12,6 +12,17 @@ export function userList(data){
}); });
} }
/**
* 查看我喜欢的 喜欢我的 互相喜欢的列表
*/
export function likeList(data){
return request({
method: "get",
url: '/app/open/memInfo/likeList',
data
});
}
/** /**
* 获取用户详情 * 获取用户详情
*/ */
...@@ -118,4 +129,4 @@ export function telMessage(data){ ...@@ -118,4 +129,4 @@ export function telMessage(data){
url: '/app/memInfo/leaveMessageDetailList', url: '/app/memInfo/leaveMessageDetailList',
data, data,
}); });
} }
\ No newline at end of file
...@@ -110,6 +110,15 @@ ...@@ -110,6 +110,15 @@
"navigationBarBackgroundColor": "#F4F5F9", "navigationBarBackgroundColor": "#F4F5F9",
"navigationStyle": "custom" "navigationStyle": "custom"
} }
},
{
"path": "userFilterPage",
"style": {
"navigationBarTitleText": "筛选设置",
"backgroundColor": "#ffffff",
"backgroundColorTop": "#ffffff",
"navigationBarBackgroundColor": "#ffffff"
}
} }
] ]
}, },
...@@ -323,21 +332,10 @@ ...@@ -323,21 +332,10 @@
} }
] ]
}, },
{
"root": "pagesUser",
"pages": [{
"path": "userFilterPage",
"style": {
"navigationBarTitleText": "筛选设置",
"backgroundColor": "#ffffff",
"backgroundColorTop": "#ffffff",
"navigationBarBackgroundColor": "#ffffff"
}
}]
},
{ {
"root": "pages2", "root": "pages2",
"pages": [{ "pages": [
{
"path": "explain/explain", "path": "explain/explain",
"style": { "style": {
"navigationStyle": "custom", "navigationStyle": "custom",
......
...@@ -93,9 +93,14 @@ ...@@ -93,9 +93,14 @@
if (newVal === 0){ if (newVal === 0){
//关注 //关注
this.articleType = '0' this.articleType = '0'
}
if (newVal === 1){
//最近
this.articleType = '1'
} }
if (newVal === 2){ if (newVal === 2){
//话题 //话题
this.articleType = '2'
this.getTopicList() this.getTopicList()
this.reload() this.reload()
} }
...@@ -290,7 +295,7 @@ ...@@ -290,7 +295,7 @@
} }
</script> </script>
<style scoped> <style lang="scss" scoped>
.content { .content {
height: 100%; height: 100%;
} }
......
...@@ -196,7 +196,8 @@ export default{ ...@@ -196,7 +196,8 @@ export default{
articleId: this.articleInfo.businessId,//动态id articleId: this.articleInfo.businessId,//动态id
commentContent:value,//评论内容 commentContent:value,//评论内容
commentedUserId:this.commentedUserId ,//被评论人ID commentedUserId:this.commentedUserId ,//被评论人ID
parentId:this.parentId//上级评论ID parentId:this.parentId,//上级评论ID
createDate:this.articleInfo.createDate//动态发布时间
} }
comment(params).then(res=>{ comment(params).then(res=>{
if (res.data.code == 200){ if (res.data.code == 200){
......
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
</template> </template>
<script> <script>
import {deleteFollow, userList} from "../../api/user"; import {deleteFollow, likeList} from "../../api/user";
import {getOssUrl} from "../../api/article"; import {getOssUrl} from "../../api/article";
import {getCity, getValue} from "../../common/options"; import {getCity, getValue} from "../../common/options";
import {calculateAge, parseDate} from "../../common"; import {calculateAge, parseDate} from "../../common";
...@@ -69,7 +69,6 @@ export default { ...@@ -69,7 +69,6 @@ export default {
//设置页头 //设置页头
this.type = options.type; this.type = options.type;
this.num = options.num; this.num = options.num;
//获取当前页面的页头高度 //获取当前页面的页头高度
this.menuButtonInfo = uni.getMenuButtonBoundingClientRect() this.menuButtonInfo = uni.getMenuButtonBoundingClientRect()
const { const {
...@@ -92,7 +91,7 @@ export default { ...@@ -92,7 +91,7 @@ export default {
methods: { methods: {
getList(params){ getList(params){
//我喜欢的 //我喜欢的
userList(params).then(res =>{ likeList(params).then(res =>{
this.userList = res.data.data this.userList = res.data.data
this.num = this.userList.length this.num = this.userList.length
this.getTitle() this.getTitle()
......
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