go-appointment.wxml 3.3 KB
<!--pages/index/go-appointment/go-appointment.wxml-->
<view class="content">
    <view class="city_box">
        <picker bindchange="bindPickerChange" value="{{city_index}}" range="{{cityList}}">
            <view class="select">
                <view class="picker" wx:if="{{is_change}}">
                    {{cityList[city_index]}}
                </view>
                <view wx:else>北京市</view>
                <view class="iconfont icon-daosanjiao"></view>
            </view>
        </picker>
    </view>

    <view class="section">
        <scroll-view class="area_box"  scroll-y>
            <block wx:for="{{areaTest}}" wx:key="index">
                <view class="area-test" data-index="{{index}}" wx:for-index="{{idx}}">
                    <view class="area">{{item.name}}</view>
                    <view class="test-list">
                        <view class="list-item-box">
                            <block wx:for="{{item.lab_list}}" wx:key="index">
                                <view class="list-item" bindtap="chooseTest" data-index="{{index}}"
                                      data-id="{{item.id}}">
                                    <image src="../../../images/blue_line.png" wx:if="{{current_test_id === item.id}}"
                                           class="blue-line"></image>
                                    <view class="test {{current_test_id === item.id?'change-color':''}}">{{item.name}}</view>
                                </view>
                            </block>
                        </view>
                    </view>
                </view>
            </block>
        </scroll-view>

        <view class="test_box">
            <scroll-view scroll-y class="test_describe">
                {{description}}
            </scroll-view>
            <scroll-view class="time-list-box" scroll-y>
                <view wx:for="{{session_list}}" wx:key="index" class="time-list" bindtap="chooseTime" data-index="{{index}}" data-id="{{item.id}}">
                    <image src="../../../images/blue_line.png" wx:if="{{current_session_id === item.id}}"
                           class="blue-line"></image>
                    <view class="right-content {{item.rest === 0? 'change-gray':''}}">
                        <view class="{{current_session_id === item.id? 'change-color':''}}">{{item.weekday}}  {{item.date}}</view>
                        <view class="bottom-time-box">
                            <text class="time {{current_session_id === item.id? 'change-color':''}}">{{item.time}}</text>
                            <text class="rest {{item.rest === 0? 'change-gray':''}}">剩余: {{item.surplus_num}}</text>
                        </view>
                    </view>
                </view>
            </scroll-view>
        </view>
    </view>

    <view class="footer">
        <!--<view class="confirm_btn" bindtap="submit" wx:if="{{show_submit_btn}}">-->
        <view class="confirm_btn" bindtap="submit">
            <text>提 交</text>
        </view>
        <!--<view class="appointment-box" wx:else>-->
            <!--<text class="single" bindtap="singleAppointment">单人预约</text>-->
            <!--<text class="double" bindtap="doubleAppointment">双人预约</text>-->
        <!--</view>-->
        <!--<view>提 交</view>-->
    </view>
</view>