收藏
回答

日期组件怎么显示不了日期

<view style='width:100%;height:11%;text-align:center;' class="picture-2">

<image style='width:100%;' class="infoImage"  src="/images/yh.png" mode='widthFix'>

</image></view>    

<form bindsubmit="MyfromSubmit" report-submit="true">

<view class="Myfrom clear">

<view class="form-text">

<label>您的姓名:</label>

<input type="text" placeholder="仅用于预约使用" name="patients" maxlength="32" placeholder-class="input-placeholder" class="from-input" />

</view>

<view class="form-text">

<label>您的电话:</label>

<input type="text" placeholder="仅用于预约使用" name="tel" maxlength="32" placeholder-class="input-placeholder" class="from-input" />

</view>

<view class="form-text">


<picker mode="date" value="{{dateValue}}" start="1999-01-01" end="2999-12-12" bindchange="datePickerBindchange">

<label>预约日期:</label>{{dateValue}}

</picker>


</view>



<view class="form-text">

<label>预约科室:</label>

</view>

<view class="form-textarea">

<textarea maxlength="200" name="content" placeholder-class="input-placeholder" placeholder="(非必填)可简单描述您的症状或者病情" />

</view>

<view class="form-submit">

<button size="default" loading="{{loading}}" class="online-submit" form-type="submit" bindtap="pay">加密提交</button>

</view>

</view>

</form>


JS

Page({

data: {

// text:"这是一个页面"

picker1Value: 0,

dateValue: '2016-10-13'

},

datePickerBindchange: function (e) {

this.setData({

dateValue: e.detail.value

})

}

})




点击了确定日期显示不上去  ,求大神解答!

回答关注问题邀请回答
收藏

2 个回答

登录 后发表内容