add-student.wxml 2.1 KB
<!--pages/index/confirm-appointment-info/add-student/add-student.wxml-->
<view class="content">
    <view class="input-box">
        <view class="name-box">
            <text>姓  名:</text>
            <input type="text" placeholder="张三" cursor="100" placeholder-class="placeholder-style"
                   value="{{name}}" bindinput="inputName"/>
        </view>
        <picker bindchange="sexPickerChange" value="{{sex_index}}" range="{{sex}}">
            <view class="select-box">
                <view class="select-picker">
                    <view class="sex">性  别:</view>
                    <view class="picker" wx:if="{{is_sex_change}}">
                        {{sex[sex_index]}}
                    </view>
                    <view wx:else>男</view>
                </view>
                <view class="iconfont icon-daosanjiao"></view>
            </view>
        </picker>
        <picker bindchange="birthPickerChange" value="{{birth_date}}" mode="date">
            <view class="select-box">
                <view class="select-picker">
                    <view class="sex">生 日:</view>
                    <view class="picker" wx:if="{{is_birth_change}}">
                        {{birth_date}}
                    </view>
                    <view wx:else>2008-11-11</view>
                </view>
                <view class="iconfont icon-daosanjiao"></view>
            </view>
        </picker>
        <picker bindchange="cityPickerChange" value="{{city_index}}" range="{{city}}">
            <view class="select-box">
                <view class="select-picker">
                    <view class="sex">城  市:</view>
                    <view class="picker" wx:if="{{is_city_change}}">
                        {{city[city_index]}}
                    </view>
                    <view wx:else>北京市</view>
                </view>
                <view class="iconfont icon-daosanjiao"></view>
            </view>
        </picker>
    </view>
    <view class="save-btn" bindtap="clickSave">
        <view class="save-box">
            <text>保   存</text>
        </view>
    </view>
</view>