Commit f24e04f1 authored by liwei's avatar liwei

修改了用户详情页面

parent 4cfd7b8b
......@@ -177,7 +177,7 @@
//查看用户详情
gotoUserInfo(item) {
uni.navigateTo({
url: '/pagesUser/userInfo?id=' + item.userId
url: '/pagesUser/userInfo?memberId=' + item.memberId
})
},
// 点赞
......
......@@ -252,7 +252,7 @@
data: [],
count: 0,
userId: '',
memId:'',
memberId:'',
city: (uni.getStorageSync('itemobj').city != null && uni.getStorageSync('itemobj').city != undefined) ? uni
.getStorageSync('itemobj').city : "中国",
share: false,
......@@ -261,7 +261,7 @@
};
},
onLoad(options) {
this.memId = options.id;
this.memberId = options.memberId;
this.getUserDetail();
if (options.share != null) {
this.share = options.share;
......@@ -341,7 +341,7 @@
},
//获取用户详情
getUserDetail(){
userDetail(this.memId).then(res => {
userDetail(this.memberId).then(res => {
this.userData = res.data.data
this.userId = this.userData.userId
//处理头像
......
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