order-detail.wxml 4.1 KB
<!--pages/index/confirm-appointment-info/confirm-appointment-info.wxml-->
<view class="content">
    <view class="tips {{show?'active':''}}" wx:if="{{detail.status === 1}}">
        <!--<view>-->
        <view class="iconfont icon-jinggao"></view>
        <text>请在15分钟内确认预约,超时系统将自动取消!</text>
        <!--</view>-->
    </view>
    <view class="time">
        <view class="line"></view>
        <text>预约时间 : </text>
        <text class="date-time">{{detail.time}}</text>
    </view>

    <view class="address">
        <view class="time">
            <view class="line"></view>
            <text>预约地址 :</text>
        </view>
        <view class="address-detail">
            <!--<text>-->
            {{detail.address}}
            <!--</text>-->
        </view>
    </view>
    <view class="phone-num">
        <view class="line"></view>
        <text>预约电话 :</text>
        <text class="phone">{{detail.mobile}}</text>
    </view>
    <view class="children-name">
        <view class="left-name">
            <view class="line"></view>
            <text>学员姓名</text>
        </view>
        <image src="../../../images/add_btn.png" bindtap="addStudent"></image>
    </view>
    <!--<form bindsubmit="formSubmit" bindreset="formReset" report-submit="true">-->
        <view class="name-box">
            <!--<view class="check-box" wx:for="{{student_list}}" wx:key="index" bindtap="chooseChildren" data-index="{{index}}">-->
            <!--<view class="name {{item.is_choose?'change-color':''}}">{{item.name}}</view>-->
            <!--<image src="../../../images/choose_icon.png" wx:if="{{item.is_choose}}" class="check-icon"></image>-->
            <!--</view>-->
            <checkbox-group class="check-box" bindchange="{{detail.status === 1?'chooseChildren':''}}">
                <label class="checkbox" wx:for="{{detail.status === 1?student_list:detail.reservation_student}}" wx:for-item="i" wx:key="index">
                    <view class="name {{i.checked?'change-color':''}}">{{i.name}}</view>
                    <checkbox wx:if="{{detail.status === 1}}" value="{{index}}" checked="{{i.checked}}" id="{{i.id}}" name="student_id" class="checkbox"/>
                </label>
            </checkbox-group>
        </view>
    <!--</form>-->

    <!--待确认-->
            <view class="footer-box1" wx:if="{{detail.status === 1}}">
                <view class="one_box">
                    <form bindsubmit="clickCancel" bindreset="formReset" report-submit="true">
                        <button class="cancel" form-type="submit">取消</button>
                    </form>
                    <form bindsubmit="clickConfirm" bindreset="formReset" report-submit="true">
                        <button class="confirm" form-type="submit">
                            <text class="text">确认</text>
                        </button>
                    </form>
                </view>
            </view>
            <!--已预约-->
            <view class="footer-box" wx:if="{{detail.status === 2}}">
                <form bindsubmit="clickCancel" bindreset="formReset" report-submit="true">
                    <view class="cancel_box">
                        <text>注:活动开始前 {{detail.active_time}} 小时可取消预约</text>
                        <button class="cancel_btn" form-type="submit">
                            <text class="text">取消预约</text>
                        </button>
                    </view>
                </form>
            </view>
        <!--已取消-->
        <view class="footer-box2" wx:if="{{detail.status === 3}}">
            <view class="two_box">
                <view>预约已取消</view>
            </view>
        </view>
        <!--已结束-->
        <view class="footer-box2" wx:if="{{detail.status === 4}}">
            <view class="two_box">
                <view>预约已结束</view>
            </view>
        </view>
    <import src="/templates/templates.wxml" />
    <template is="modal" data="{{...modal_data}}"></template>
    <template is="state-modal" data="{{...state_data}}"></template>


</view>