my.wxml
4.3 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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
<!--pages/my/my.wxml-->
<view class='banner_box'>
<view class='person_box'>
<view class='head_info'>
<view class='head_box'>
<image src='{{listdata.avatar}}'></image>
</view>
<view>
<view class='name'>{{listdata.user_nickname}}</view>
<view class='info' wx:if='{{listdata.is_member}}'>3月大仙会员会员</view>
<view class='info' wx:else>非会员</view>
</view>
</view>
<view class='date_info' wx:if='{{listdata.is_member}}'>
<view>{{listdata.member_time}}</view>
<view>有效期至</view>
</view>
</view>
<view class='laber_box'>
<!-- <view class='laber' bindtap='openVip'>{{listdata.is_member?'续费':'点击开通会员'}}</view> -->
<view class='laber' bindtap='gocontact'>联系我们</view>
</view>
</view>
<view class='content_box2' wx:if='{{listdata.is_addtest}}'>
<view class='content_item2'>
<view class='item_list'>
<view>
<view class='list_info'>{{listdata.test_name}}考试日期:{{listdata.test_data1}}</view>
<view class='list_title'>距离考试还有:</view>
</view>
<view class='laber_img'>
<image src='/images/book.png'></image>
<view class='laber_txtbox'>
<text class='days'>{{listdata.test_days}}</text>
<text class='unit'>天</text>
</view>
</view>
</view>
<view class='list_content'>
<view class='content_list'>
<view>我的考试日期</view>
<view class='list_input'>
<input placeholder-class='input_color' value='{{listdata.test_data2}}' disabled></input>
</view>
</view>
<view class='content_list'>
<view>我的考试地址</view>
<view class='list_input'>
<input placeholder-class='input_color' value='{{listdata.test_address}}' disabled></input>
</view>
</view>
<view class='list_btn' bindtap='editTest'>修改</view>
</view>
</view>
</view>
<view class='content_box' wx:else bindtap='addTest'>
<view class='content_item'>
<view class='content_title'>您还未添加考试</view>
<view class='content_img'>
<image src='/images/car.gif'></image>
</view>
<view class='iconfont icon-jia'></view>
</view>
</view>
<!-- 添加考试弹框 -->
<view class='mask_box' wx:if='{{state==2}}' bindtap='setstate1'>
<view class='popup_box' catchtap='voidfun'>
<view wx:if='{{teststate==1}}'>
<view>
<view class='popup_title'>考试名称/Name</view>
<view class='popup_input'>
<input type='text' bindinput='settestname' value='{{listdata.test_name}}'></input>
</view>
</view>
<view>
<view class='popup_title'>考试时间/time</view>
<picker mode="date" value="{{date}}" bindchange="bindPickerChange" start="{{nowdata}}">
<view class="picker">
<view class='popup_input'>
{{listdata.test_data2}}
</view>
</view>
</picker>
</view>
<view>
<view class='popup_title'>考试地址/address</view>
<view class='popup_input'>
<input type='text' value='{{listdata.test_address}}' bindinput='settestaddress'></input>
</view>
</view>
</view>
<view>
<view class='popup_title2' wx:if='{{addstate==1}}'>添加成功!</view>
<view class='popup_title2' wx:elif='{{addstate==2}}'>修改成功!</view>
<view class='popup_img' wx:if='{{teststate==3}}'>
<image src='/images/popup2.gif'></image>
</view>
</view>
<view class='popup_btn' wx:if='{{testbtn==1}}' bindtap='confirmAdd'>确定添加</view>
<view class='popup_btn' wx:elif='{{testbtn==2}}' bindtap='confirmEdig'>确定修改</view>
<view class='popup_btn' wx:elif='{{testbtn==3}}' bindtap='toView'>查看</view>
</view>
</view>
<!-- 充值会员弹窗 -->
<view class='mask_vip' wx:if='{{state==1}}'>
<view class='popup_vip'>
<view class='vip'>vip套餐</view>
<view>开通 3月 大仙会员</view>
<view class='vip_money'>¥{{price}}</view>
<view class='btn_box'>
<view class='vip_btn' bindtap='confirmOpen'>确认开通</view>
<view class='vip_btn btn2' bindtap='cancelOpen'>考虑一下</view>
</view>
</view>
</view>
<import src="../template/template.wxml" ></import>
<template is="tem" data='{{temshow}}' ></template>