vant-weapp/example/form/index.wxml
Yao 9ac8f130f4 [breaking change] Select: move check_label to select (#36)
* move check label to new component

* select 整理

* 整理文档 && 支持 componentId

* delete project config json

* 内部命名修改

* remove form/check_label
2017-10-25 11:51:14 +08:00

55 lines
1.5 KiB
Plaintext

<view class="container">
<view class="doc-title">FORM</view>
<view class="zan-form">
<view class="zan-cell zan-form__item">
<text class="zan-form__title">收货人</text>
<input
class="zan-form__input zan-cell__bd"
placeholder="名字"
/>
</view>
<view class="zan-cell zan-form__item">
<text class="zan-form__title">联系电话</text>
<input
class="zan-form__input zan-cell__bd"
type="number"
maxlength="20"
placeholder="手机或固定电话"
/>
</view>
<view class="zan-cell zan-form__item zan-cell--last-child">
<text class="zan-form__title">选择区域</text>
<view class="zan-form__input zan-cell__bd">
<picker
mode="selector"
range="{{ area }}"
value="{{ areaIndex }}"
bindchange="onAreaChange"
>
{{ area[areaIndex] }}
</picker>
</view>
</view>
</view>
<view class="zan-form" style="margin-top: 20px">
<view class="zan-cell zan-form__item">
<view class="zan-cell__bd">
<text class="zan-form__title">验证码</text>
<input
class="zan-form__input"
type="text"
maxlength="7"
placeholder="请输入短信验证码"
/>
</view>
<view class="zan-cell__ft">
<button class="zan-btn zan-btn--mini zan-btn--primary sms-btn">获取验证码</button>
</view>
</view>
</view>
</view>