Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cust-app
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
李伟
cust-app
Commits
606e9857
Commit
606e9857
authored
Feb 28, 2025
by
罗林杰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改个人资料
parent
a90d9950
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
39 additions
and
17 deletions
+39
-17
index.js
api/user/index.js
+10
-0
my.vue
pages/tab/my.vue
+2
-8
rank.vue
pages/tab/rank.vue
+10
-4
activityDetail.vue
pagesActivity/activityDetail.vue
+16
-4
publishArticle.vue
pagesArticle/publishArticle.vue
+1
-1
No files found.
api/user/index.js
View file @
606e9857
...
@@ -33,6 +33,16 @@ export function userDetail(data){
...
@@ -33,6 +33,16 @@ export function userDetail(data){
});
});
}
}
/**
* 获取我的用户详情
*/
export
function
userMyDetail
(
data
){
return
request
({
method
:
"get"
,
url
:
'/app/memInfo/myDetail/'
+
data
,
});
}
/**
/**
* 根据token获取用户详情
* 根据token获取用户详情
*/
*/
...
...
pages/tab/my.vue
View file @
606e9857
...
@@ -260,14 +260,6 @@ import {articleList, getOssUrl, userArticleList} from "../../api/article";
...
@@ -260,14 +260,6 @@ import {articleList, getOssUrl, userArticleList} from "../../api/article";
getUserInfo
().
then
(
res
=>
{
getUserInfo
().
then
(
res
=>
{
uni
.
setStorageSync
(
'userInfo'
,
res
.
data
.
data
)
uni
.
setStorageSync
(
'userInfo'
,
res
.
data
.
data
)
this
.
userInfo
=
res
.
data
.
data
this
.
userInfo
=
res
.
data
.
data
this
.
getUserDetail
()
this
.
getArticleList
()
this
.
getnoReadMessageAllCount
()
})
},
//获取用户详情信息
getUserDetail
(){
userDetail
(
this
.
userInfo
.
memberId
).
then
(
res
=>
{
//如果flag=0 被禁用了 踢出该用户
//如果flag=0 被禁用了 踢出该用户
if
(
res
.
data
.
data
.
flag
==
'0'
){
if
(
res
.
data
.
data
.
flag
==
'0'
){
uni
.
removeStorageSync
(
'userInfo'
)
uni
.
removeStorageSync
(
'userInfo'
)
...
@@ -299,6 +291,8 @@ import {articleList, getOssUrl, userArticleList} from "../../api/article";
...
@@ -299,6 +291,8 @@ import {articleList, getOssUrl, userArticleList} from "../../api/article";
this
.
authShow
=
false
this
.
authShow
=
false
}
}
this
.
button
[
0
].
num
=
this
.
info
.
goldCoinsCount
this
.
button
[
0
].
num
=
this
.
info
.
goldCoinsCount
this
.
getArticleList
()
this
.
getnoReadMessageAllCount
()
})
})
},
},
//获取动态列表,只获取最新的一条
//获取动态列表,只获取最新的一条
...
...
pages/tab/rank.vue
View file @
606e9857
...
@@ -26,7 +26,7 @@
...
@@ -26,7 +26,7 @@
<view
class=
"two-rank"
>
<view
class=
"two-rank"
>
<text
class=
"two-text1"
>
TOP 2
</text>
<text
class=
"two-text1"
>
TOP 2
</text>
</view>
</view>
<view
class=
"two-avatar"
>
<view
class=
"two-avatar"
@
click=
"gotoDetail(rankList[1])"
>
<u-avatar
:src=
"rankList[1].avatarUrl"
size=
"100rpx"
/>
<u-avatar
:src=
"rankList[1].avatarUrl"
size=
"100rpx"
/>
</view>
</view>
<view
class=
"two-name"
>
<view
class=
"two-name"
>
...
@@ -44,7 +44,7 @@
...
@@ -44,7 +44,7 @@
<view
class=
"one-rank"
>
<view
class=
"one-rank"
>
<text
class=
"one-text"
>
TOP 1
</text>
<text
class=
"one-text"
>
TOP 1
</text>
</view>
</view>
<view
class=
"one-avatar"
>
<view
class=
"one-avatar"
@
click=
"gotoDetail(rankList[0])"
>
<u-avatar
:src=
"rankList[0].avatarUrl"
size=
"100rpx"
/>
<u-avatar
:src=
"rankList[0].avatarUrl"
size=
"100rpx"
/>
</view>
</view>
<view
class=
"one-name"
>
<view
class=
"one-name"
>
...
@@ -62,7 +62,7 @@
...
@@ -62,7 +62,7 @@
<view
class=
"three-rank"
>
<view
class=
"three-rank"
>
<text
class=
"three-text"
>
TOP 3
</text>
<text
class=
"three-text"
>
TOP 3
</text>
</view>
</view>
<view
class=
"three-avatar"
>
<view
class=
"three-avatar"
@
click=
"gotoDetail(rankList[2])"
>
<u-avatar
:src=
"rankList[2].avatarUrl"
size=
"100rpx"
/>
<u-avatar
:src=
"rankList[2].avatarUrl"
size=
"100rpx"
/>
</view>
</view>
<view
class=
"three-name"
>
<view
class=
"three-name"
>
...
@@ -87,7 +87,7 @@
...
@@ -87,7 +87,7 @@
</view>
</view>
</u-col>
</u-col>
<u-col
span=
"2"
>
<u-col
span=
"2"
>
<view>
<view
@
click=
"gotoDetail(item)"
>
<u-avatar
:src=
"item.avatarUrl"
size=
"80rpx"
/>
<u-avatar
:src=
"item.avatarUrl"
size=
"80rpx"
/>
</view>
</view>
</u-col>
</u-col>
...
@@ -204,6 +204,12 @@ export default {
...
@@ -204,6 +204,12 @@ export default {
}
}
this
.
beginTime
=
formatDate
(
beginTime
);
this
.
beginTime
=
formatDate
(
beginTime
);
this
.
endTime
=
formatDate
(
endTime
);
this
.
endTime
=
formatDate
(
endTime
);
},
//跳转用户详情
gotoDetail
(
item
){
uni
.
navigateTo
({
url
:
'/pagesUser/userInfo?memberId='
+
item
.
businessId
})
}
}
}
}
}
}
...
...
pagesActivity/activityDetail.vue
View file @
606e9857
...
@@ -40,8 +40,13 @@
...
@@ -40,8 +40,13 @@
<!--
<view
class=
"buynum-math"
>
-->
<!--
<view
class=
"buynum-math"
>
-->
<!--
<view
class=
"num"
>
{{
buynum
}}
</view>
-->
<!--
<view
class=
"num"
>
{{
buynum
}}
</view>
-->
<!--
</view>
-->
<!--
</view>
-->
<view
class=
"buy-num-math"
>
<view>
<view>
已报名人数:
{{
activityDetail
.
applicationCount
}}
/
{{
activityDetail
.
maxApplicationCount
}}
</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>
</view>
<view
class=
"all-price"
>
<view
class=
"all-price"
>
...
@@ -365,10 +370,10 @@ import {activityDetail, addApplication, isApplication, pay} from "../api/activit
...
@@ -365,10 +370,10 @@ import {activityDetail, addApplication, isApplication, pay} from "../api/activit
}
}
.buy-num
{
.buy-num
{
display
:
flex
;
display
:
flex
;
justify-content
:
space-between
;
justify-content
:
left
;
align-items
:
center
;
align-items
:
center
;
margin-top
:
44rpx
;
margin-top
:
44rpx
;
padding-bottom
:
108
rpx
;
padding-bottom
:
44
rpx
;
border-bottom
:
1px
solid
#EEEEEE
;
border-bottom
:
1px
solid
#EEEEEE
;
.buynum-title
{
.buynum-title
{
...
@@ -379,6 +384,13 @@ import {activityDetail, addApplication, isApplication, pay} from "../api/activit
...
@@ -379,6 +384,13 @@ import {activityDetail, addApplication, isApplication, pay} from "../api/activit
line-height
:
32rpx
;
line-height
:
32rpx
;
}
}
.popbody-image
{
width
:
208rpx
;
height
:
208rpx
;
border-radius
:
12px
12px
12px
12px
;
margin-right
:
26rpx
;
}
.buynum-math
{
.buynum-math
{
display
:
flex
;
display
:
flex
;
align-items
:
center
;
align-items
:
center
;
...
...
pagesArticle/publishArticle.vue
View file @
606e9857
...
@@ -129,7 +129,7 @@
...
@@ -129,7 +129,7 @@
}
}
}
}
});
});
}
else
if
(
res
.
data
.
code
===
1001
)
{
}
else
{
uni
.
showToast
({
uni
.
showToast
({
title
:
res
.
data
.
message
,
title
:
res
.
data
.
message
,
icon
:
'none'
icon
:
'none'
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment