Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
beyond-clouds-front
Overview
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
beyond-clouds-front
Commits
28e0aeb9
Commit
28e0aeb9
authored
Feb 17, 2020
by
yanju
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加用户生日
parent
c08cb82a
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
4 deletions
+7
-4
components/pc/datePicker/datePicker.vue
+1
-1
pages/personal-center/account/info.vue
+6
-3
No files found.
components/pc/datePicker/datePicker.vue
View file @
28e0aeb9
...
...
@@ -5,7 +5,7 @@
<span
class=
"iconfont icon-el-icon-date"
></span>
<input
class=
"date-input"
type=
"text"
placeholder=
"请
选择你的生日
"
placeholder=
"请
填写你的生日(格式: yyyy-MM-dd)
"
v-model=
"selectedDate"
autocomplete=
"false"
ref=
"input"
...
...
pages/personal-center/account/info.vue
View file @
28e0aeb9
...
...
@@ -33,7 +33,7 @@
</div>
<div
class=
"select-box__wrap"
>
<p
class=
"input1"
v-if=
"!isEdit"
>
{{
'2000-01-01'
}}
</p>
<p
class=
"input1"
v-if=
"!isEdit"
>
{{
birthday
}}
</p>
<date-picker
v-if=
"isEdit"
v-on:listenDateChange=
"getData2Date"
></date-picker>
</div>
...
...
@@ -93,7 +93,7 @@
qqNumber
:
null
,
signature
:
null
,
wxNumber
:
null
,
birthday
:
null
,
birthday
:
''
,
addFile
:
null
,
isEdit
:
false
,
isEdit2
:
false
,
...
...
@@ -131,7 +131,8 @@
},
getData2Date
(
data
){
this
.
birthday
=
data
.
date
;
//this.birthday = data.date;
this
.
birthday
=
data
.
value
;
},
getCroppedPic
(
pic
){
if
(
pic
){
...
...
@@ -149,6 +150,7 @@
let
data
=
response
.
data
;
this
.
nickName
=
data
.
nickName
;
this
.
gender
=
data
.
gender
;
this
.
birthday
=
data
.
birthday
;
this
.
signature
=
data
.
signature
;
this
.
userAvatar
=
data
.
userAvatar
;
this
.
mobile
=
data
.
mobile
;
...
...
@@ -163,6 +165,7 @@
gender
:
this
.
gender
,
nickName
:
this
.
nickName
,
signature
:
this
.
signature
,
birthday
:
this
.
birthday
,
userAvatar
:
this
.
userAvatar
};
let
userInfo2
=
{};
...
...
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