coupon.html
4.7 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
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>我的优惠券</title>
<meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0" />
<script type="text/javascript" src="__TMPL__/static/js/base.js"></script>
<link rel="stylesheet" type="text/css" href="__TMPL__/static/assets/css/weui.min.css" />
<link rel="stylesheet" type="text/css" href="__TMPL__/static/assets/css/swiper-3.4.2.min.css" />
<link rel="stylesheet" type="text/css" href="http://at.alicdn.com/t/font_773803_k1lcewwscuf.css" />
<script type="text/javascript" src="__TMPL__/static/assets/font/iconfont.js">
</script>
<link rel="stylesheet" href="__TMPL__/static/css/outdate.css" />
<style type="text/css">
.swiper-container {
height: 3.6rem;
}
.swiper-container-horizontal>.swiper-pagination-bullets,
.swiper-pagination-custom,
.swiper-pagination-fraction {
left: 44%;
}
#wai2{
display: none;
}
#wai3{
display: none;
}
</style>
</head>
<body>
<div class="out">
<div class="use">
<span id="nouse" class="active">待使用</span>
<span id="outdata">已过期</span>
<span id="used">已使用</span>
</div>
<!--待使用优惠券-->
</div >
<div class="wai1" id="wai1">
<volist name="data.unused" id="vo">
<div class="wai">
<div class="youhui">
<div class="quan">
<img src="__TMPL__/static/images/f2.png" alt="" />
<div class="dai">
<div class="money">¥{$vo.reduce}</div>
<div class="date">
<span >{$vo.discount_coupon_name}</span>
<span class="you">有效期:{$vo.deadline}</span>
</div>
</div>
</div>
</div>
</div>
</volist>
</div>
<!--已过期代金券-->
<div id="wai2">
<volist name="data.expired" id="vo">
<div class="wai" >
<div class="youhui">
<div class="quan">
<img src="__TMPL__/static/images/f2.png" alt="" />
<div class="dai">
<span class="outdate"><img src="__TMPL__/static/images/outdate.png" alt="" /></span>
<div class="money">¥{$vo.reduce}</div>
<div class="date">
<span >{$vo.discount_coupon_name}</span>
<span class="you">有效期:{$vo.deadline}</span>
</div>
</div>
</div>
</div>
</div>
</volist>
</div>
<!--已使用代金券-->
<div id="wai3">
<volist name="data.used" id="vo">
<div class="wai" >
<div class="youhui">
<div class="quan">
<img src="__TMPL__/static/images/f2.png" alt="" />
<div class="dai">
<span class="outdate"><img src="__TMPL__/static/images/use.png" alt="" /></span>
<div class="money">¥{$vo.reduce}</div>
<div class="date">
<span >{$vo.discount_coupon_name}</span>
<span class="you">有效期:{$vo.deadline}</span>
</div>
</div>
</div>
</div>
</div>
</volist>
</div>
</body>
<script type="text/javascript" src="__TMPL__/static/assets/js/jquery-2.1.0.js"></script>
<script type="text/javascript" src="__TMPL__/static/assets/js/swiper-3.4.2.min.js"></script>
<script type="text/javascript" src="__TMPL__/static/assets/js/weui.js"></script>
<script type="text/javascript" src="__TMPL__/static/index.js"></script>
<script>
var wai1 = $('#wai1');
var wai2 = $('#wai2');
var wai3 = $('#wai3');
var nouse = $('#nouse');
var outdata = $('#outdata');
var used = $('#used');
$('#nouse').click(function() {
wai1.css('display', 'block');
wai2.css('display', 'none');
wai3.css('display', 'none');
nouse.css('color', '#FE0A01');
outdata.css('color', '#252729');
used.css('color', '#252729');
})
$('#outdata').click(function() {
wai1.css('display', 'none');
wai2.css('display', 'block');
wai3.css('display', 'none');
nouse.css('color','#252729' );
outdata.css('color', '#FE0A01');
used.css('color', '#252729');
})
$('#used').click(function() {
wai1.css('display', 'none');
wai2.css('display', 'none');
wai3.css('display', 'block');
nouse.css('color', '#252729');
outdata.css('color', '#252729');
used.css('color', '#FE0A01');
})
</script>
</html>