|
|
@@ -131,6 +131,7 @@ var app = new Vue({
|
|
|
}
|
|
|
weightArr.push((40+i).toString()+'KG');
|
|
|
}
|
|
|
+ $("#weight").val(_this.params.weight? _this.params.weight+'kg' : '')
|
|
|
$("#weight").picker({
|
|
|
title: "请选择体重",
|
|
|
cols: [
|
|
|
@@ -152,8 +153,9 @@ var app = new Vue({
|
|
|
for(var i=20;i>=0;i--){
|
|
|
years.push(year-i);
|
|
|
}
|
|
|
- _this.params.birthday = _this.params.birthday? $.trim(_this.params.birthday)+' ' : (year-10)+'-01-01 ';
|
|
|
- _this.params.birthday_code = _this.params.birthday_code? _this.params.birthday_code+'' : (year-10)+'-01-01 ';
|
|
|
+ var code = $("#birthday").attr('data-code');
|
|
|
+ _this.params.birthday = _this.params.birthday? $.trim(_this.params.birthday)+' ' : (code? code : (year-10)+'-01-01 ');
|
|
|
+ _this.params.birthday_code = _this.params.birthday_code? _this.params.birthday_code+'' : (code? code : (year-10)+'-01-01 ');
|
|
|
$("#birthday").val(_this.params.birthday_code);
|
|
|
$("#birthday").datetimePicker({
|
|
|
title: '请选择出生日期',
|