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
aaa85d89
Commit
aaa85d89
authored
Mar 02, 2025
by
罗林杰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改个人资料
parent
20feb27d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
updateBasicInformation.vue
pagesme/me/updateBasicInformation.vue
+2
-2
updateInformation.vue
pagesme/me/updateInformation.vue
+2
-2
No files found.
pagesme/me/updateBasicInformation.vue
View file @
aaa85d89
...
@@ -354,7 +354,7 @@
...
@@ -354,7 +354,7 @@
<
script
>
<
script
>
import
UFormItem
from
"../../uni_modules/uview-ui/components/u-form-item/u-form-item"
;
import
UFormItem
from
"../../uni_modules/uview-ui/components/u-form-item/u-form-item"
;
import
{
getCity
,
getOptions
,
getResidence
,
getValue
}
from
"../../common/options"
;
import
{
getCity
,
getOptions
,
getResidence
,
getValue
}
from
"../../common/options"
;
import
{
updateUser
,
userDetail
}
from
"../../api/user"
;
import
{
getUserInfo
,
updateUser
,
userDetail
}
from
"../../api/user"
;
import
{
calculateAge
,
parseDate
}
from
"../../common"
;
import
{
calculateAge
,
parseDate
}
from
"../../common"
;
import
ELM
from
'@/components/elm-toast/index.vue'
;
import
ELM
from
'@/components/elm-toast/index.vue'
;
...
@@ -577,7 +577,7 @@ export default {
...
@@ -577,7 +577,7 @@ export default {
},
},
methods
:
{
methods
:
{
getUserInfo
()
{
getUserInfo
()
{
userDetail
(
uni
.
getStorageSync
(
'userInfo'
).
memberId
).
then
(
res
=>
{
getUserInfo
(
uni
.
getStorageSync
(
'userInfo'
).
memberId
).
then
(
res
=>
{
this
.
userInfo
=
res
.
data
.
data
this
.
userInfo
=
res
.
data
.
data
//处理性别
//处理性别
if
(
this
.
judgment
(
res
.
data
.
data
.
memSex
)){
if
(
this
.
judgment
(
res
.
data
.
data
.
memSex
)){
...
...
pagesme/me/updateInformation.vue
View file @
aaa85d89
...
@@ -230,7 +230,7 @@
...
@@ -230,7 +230,7 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
{
updateUser
,
userDetail
}
from
"../../api/user"
;
import
{
getUserInfo
,
updateUser
,
userDetail
}
from
"../../api/user"
;
import
{
calculateAge
,
parseDate
}
from
"../../common"
;
import
{
calculateAge
,
parseDate
}
from
"../../common"
;
import
{
getCity
,
getValue
}
from
"../../common/options"
;
import
{
getCity
,
getValue
}
from
"../../common/options"
;
import
{
getOssUrl
}
from
"../../api/article"
;
import
{
getOssUrl
}
from
"../../api/article"
;
...
@@ -413,7 +413,7 @@ import {getOssUrl} from "../../api/article";
...
@@ -413,7 +413,7 @@ import {getOssUrl} from "../../api/article";
})
})
},
},
getUserInfo
()
{
getUserInfo
()
{
userDetail
(
uni
.
getStorageSync
(
'userInfo'
).
memberId
).
then
(
res
=>
{
getUserInfo
(
uni
.
getStorageSync
(
'userInfo'
).
memberId
).
then
(
res
=>
{
this
.
userInfo
=
res
.
data
.
data
this
.
userInfo
=
res
.
data
.
data
//处理头像
//处理头像
if
(
this
.
judgment
(
res
.
data
.
data
.
avatar
)){
if
(
this
.
judgment
(
res
.
data
.
data
.
avatar
)){
...
...
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