Commit f24e04f1 authored by liwei's avatar liwei

修改了用户详情页面

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