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>{{default_sex.name}}</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>{{default_birth}}</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>{{default_city}}</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>