Commit b4fd6526 by zhangxw

输入手机号 数字键盘

1 parent f82b5e89
...@@ -30,6 +30,7 @@ const formItems = [{ ...@@ -30,6 +30,7 @@ const formItems = [{
tips: '(登录凭证)', tips: '(登录凭证)',
props: 'staffPhone', props: 'staffPhone',
type: 'input', type: 'input',
inputType: 'number',
placeholder: '请输入手机号码', placeholder: '请输入手机号码',
maxLength: 11 maxLength: 11
}, { }, {
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
<view class="label">{{item.label}}<text class="tips">{{item.tips}}</text></view> <view class="label">{{item.label}}<text class="tips">{{item.tips}}</text></view>
<view class="input-box" wx:if="{{item.type == 'input'}}"> <view class="input-box" wx:if="{{item.type == 'input'}}">
<input <input
type="text" type="{{item.inputType || 'text'}}"
placeholder="{{item.placeholder}}" placeholder="{{item.placeholder}}"
class="input" class="input"
bindinput="input" bindinput="input"
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!