...
|
...
|
@@ -28,10 +28,11 @@ |
|
|
id="age" value="" bindinput="inputName"/>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="age-box">
|
|
|
<div class="age-box" id='showDatePicker'>
|
|
|
<div class="input-box">
|
|
|
<text>生日</text>
|
|
|
<input type="text" id='showDatePicker'/>
|
|
|
<text id="date"></text>
|
|
|
<!--<input type="text" id='showDatePicker' bindblur="birthBlur"/>-->
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="sex-box">
|
...
|
...
|
@@ -57,7 +58,8 @@ |
|
|
</div>
|
|
|
</body>
|
|
|
<script>
|
|
|
$('#showDatePicker').on('click', function () {
|
|
|
// $("#showDatePicker").blur(function(){$("keyboard").hide();});
|
|
|
$('#showDatePicker').on('click', function () {
|
|
|
weui.datePicker({
|
|
|
start: 1990,
|
|
|
end: new Date().getFullYear(),
|
...
|
...
|
@@ -65,7 +67,7 @@ |
|
|
// console.log(result);
|
|
|
},
|
|
|
onConfirm: function (result) {
|
|
|
$('#showDatePicker').val(result[0].label + result[1].label + result[2].label)
|
|
|
$('#date').text(result[0].label + result[1].label + result[2].label)
|
|
|
}
|
|
|
});
|
|
|
});
|
...
|
...
|
|