Commit 606e9857 authored by 罗林杰's avatar 罗林杰

修改个人资料

parent a90d9950
......@@ -33,6 +33,16 @@ export function userDetail(data){
});
}
/**
* 获取我的用户详情
*/
export function userMyDetail(data){
return request({
method: "get",
url: '/app/memInfo/myDetail/'+ data,
});
}
/**
* 根据token获取用户详情
*/
......
......@@ -260,14 +260,6 @@ import {articleList, getOssUrl, userArticleList} from "../../api/article";
getUserInfo().then(res =>{
uni.setStorageSync('userInfo', res.data.data)
this.userInfo = res.data.data
this.getUserDetail()
this.getArticleList()
this.getnoReadMessageAllCount()
})
},
//获取用户详情信息
getUserDetail(){
userDetail(this.userInfo.memberId).then(res => {
//如果flag=0 被禁用了 踢出该用户
if (res.data.data.flag == '0'){
uni.removeStorageSync('userInfo')
......@@ -299,6 +291,8 @@ import {articleList, getOssUrl, userArticleList} from "../../api/article";
this.authShow = false
}
this.button[0].num = this.info.goldCoinsCount
this.getArticleList()
this.getnoReadMessageAllCount()
})
},
//获取动态列表,只获取最新的一条
......
......@@ -26,7 +26,7 @@
<view class="two-rank">
<text class="two-text1">TOP 2</text>
</view>
<view class="two-avatar">
<view class="two-avatar" @click="gotoDetail(rankList[1])">
<u-avatar :src="rankList[1].avatarUrl" size="100rpx"/>
</view>
<view class="two-name">
......@@ -44,7 +44,7 @@
<view class="one-rank">
<text class="one-text">TOP 1</text>
</view>
<view class="one-avatar">
<view class="one-avatar" @click="gotoDetail(rankList[0])">
<u-avatar :src="rankList[0].avatarUrl" size="100rpx"/>
</view>
<view class="one-name">
......@@ -62,7 +62,7 @@
<view class="three-rank">
<text class="three-text">TOP 3</text>
</view>
<view class="three-avatar">
<view class="three-avatar" @click="gotoDetail(rankList[2])">
<u-avatar :src="rankList[2].avatarUrl" size="100rpx"/>
</view>
<view class="three-name">
......@@ -87,7 +87,7 @@
</view>
</u-col>
<u-col span="2">
<view>
<view @click="gotoDetail(item)">
<u-avatar :src="item.avatarUrl" size="80rpx"/>
</view>
</u-col>
......@@ -204,6 +204,12 @@ export default {
}
this.beginTime = formatDate(beginTime);
this.endTime = formatDate(endTime);
},
//跳转用户详情
gotoDetail(item){
uni.navigateTo({
url: '/pagesUser/userInfo?memberId='+item.businessId
})
}
}
}
......
......@@ -40,8 +40,13 @@
<!-- <view class="buynum-math">-->
<!-- <view class="num">{{buynum}}</view>-->
<!-- </view>-->
<view class="buy-num-math">
<view>已报名人数:{{activityDetail.applicationCount}}/{{activityDetail.maxApplicationCount}}</view>
<view>
<image class="popbody-image" :src="baseUrl+'/index/gonggao.png'"/>
</view>
<view>
<view style="font-size: 16px;padding-bottom: 16rpx">已报名人数:{{activityDetail.applicationCount}}/{{activityDetail.maxApplicationCount}}</view>
<view style="font-size: 16px;padding-bottom: 16rpx">男生数量:{{activityDetail.maleCount}}</view>
<view style="font-size: 16px;padding-bottom: 16rpx">女生数量:{{activityDetail.femaleCount}}</view>
</view>
</view>
<view class="all-price">
......@@ -365,10 +370,10 @@ import {activityDetail, addApplication, isApplication, pay} from "../api/activit
}
.buy-num {
display: flex;
justify-content: space-between;
justify-content: left;
align-items: center;
margin-top: 44rpx;
padding-bottom: 108rpx;
padding-bottom: 44rpx;
border-bottom: 1px solid #EEEEEE;
.buynum-title {
......@@ -379,6 +384,13 @@ import {activityDetail, addApplication, isApplication, pay} from "../api/activit
line-height: 32rpx;
}
.popbody-image{
width: 208rpx;
height: 208rpx;
border-radius: 12px 12px 12px 12px;
margin-right: 26rpx;
}
.buynum-math {
display: flex;
align-items: center;
......
......@@ -129,7 +129,7 @@
}
}
});
} else if(res.data.code === 1001){
} else{
uni.showToast({
title: res.data.message,
icon: 'none'
......
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