order-detail.wxml
4.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
<!--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>