Commit 28e0aeb9 by yanju

添加用户生日

parent c08cb82a
......@@ -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"
......
......@@ -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 = {};
......
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