Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
J
jd-vx-app
Project
Project
Details
Activity
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
Administrator
jd-vx-app
Commits
3ab425f8
Commit
3ab425f8
authored
Apr 27, 2022
by
肖健
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
个人中心编辑修复
parent
aefaa669
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
userInfo.vue
pagesD/pages/personal/userInfo.vue
+10
-2
No files found.
pagesD/pages/personal/userInfo.vue
View file @
3ab425f8
...
...
@@ -33,6 +33,8 @@
女
</div>
</u-popup>
<u-datetime-picker
:show=
"show__date"
v-model=
"dateValue"
ref=
'datetimePicker'
:minDate=
"-2209017600000"
mode=
"date"
@
confirm=
'confirm'
@
close=
'close__date'
@
cancel=
'close__date'
:formatter=
"formatter"
closeOnClickOverlay
>
</u-datetime-picker>
...
...
@@ -73,7 +75,7 @@ export default {
id
:
"kjjns"
,
//id必须唯一 可以是数字
placeholder
:
"请填写"
,
label
:
"昵称"
,
// 提示输入名
type
:
"
tex
t"
,
//类型
type
:
"
selec
t"
,
//类型
rules
:
{
name
:
"nickName"
,
//字段名 即提交给后端的字段
value
:
""
,
...
...
@@ -131,6 +133,11 @@ export default {
//console.log(time);
var
y
=
time
.
getFullYear
();
//getFullYear方法以四位数字返回年份
var
M
=
time
.
getMonth
()
+
1
;
// getMonth方法从 Date 对象返回月份 (0 ~ 11),返回结果需要手动加一
if
(
M
<
10
)
{
M
=
'0'
+
M
;
}
var
d
=
time
.
getDate
();
// getDate方法从 Date 对象返回一个月中的某一天 (1 ~ 31)
return
y
+
'-'
+
M
+
'-'
+
d
}
else
{
...
...
@@ -182,6 +189,7 @@ export default {
this
.
show__six
=
false
},
save
()
{
let
that
=
this
this
.
formData
.
forEach
(
element
=>
{
if
(
element
.
label
===
'昵称'
)
{
element
.
rules
.
value
=
this
.
user__nikename
...
...
@@ -321,7 +329,7 @@ export default {
element
.
rules
.
value
=
this
.
userInfo
.
mobile
}
if
(
element
.
label
===
'昵称'
)
{
element
.
rules
.
value
=
this
.
userInfo
.
nickName
element
.
rules
.
label
=
this
.
userInfo
.
nickName
}
if
(
element
.
label
===
'性别'
)
{
element
.
rules
.
label
=
this
.
userInfo
.
sex
==
"0"
?
"男"
:
"女"
...
...
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