collect.html
6.4 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
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
<!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_tu2va42yqo.css" />
<script type="text/javascript" src="__TMPL__/static/assets/font/iconfont.js">
</script>
<link rel="stylesheet" href="__TMPL__/static/css/Peripheral-short-term.css" />
<link rel="stylesheet" href="__TMPL__/static/css/myselect.css" />
<style type="text/css">
.swiper-container {
height: 3.6rem;
}
.swiper-container-horizontal>.swiper-pagination-bullets,
.swiper-pagination-custom,
.swiper-pagination-fraction {
left: 44%;
}
.year {
padding-left: 0.3rem;
margin-top: 0.12rem;
}
.qing {
margin-top: 0.2rem;
padding: 0 0 0 0;
display: flex;
justify-content: space-between;
}
</style>
</head>
<body id="body">
<div class="con" style="margin-bottom: 30px">
<div class="collect">
<span class="coll">套餐收藏</span>
<a href="{:url('collect/Collect/index',['is_news'=>1])}">
<span>资讯收藏</span>
</a>
</div>
</div>
<div style="margin-top: 1.02rem">
<!--图片-->
<volist name="data.activity" id="vo">
<div class="center_mian" style="margin-bottom: 10px" data-target="{:url('activity/Activity/detail',['id'=>$vo['id']])}">
<div class="picture" id="picture">
<img src="{$vo.thumb}" alt="" />
</div>
<div class="qing">
<span class="qing_out qing_out_box">
<span class="run">
{$vo.name}
</span>
<div class="year">
<div class="act acts">
<!--<i class="iconfont icon-calendar"></i>-->
<!--<span class="txt">-->
<!--2018.08.13-->
<!--</span>-->
</div>
<div class="act actlist">
<i class="iconfont icon-wuxing"></i>
<span class="txt">
取消收藏
</span>
</div>
</div>
</span>
</div>
</div>
</volist>
</div>
<!---->
<div class="confirm_cancel" >
<div class="confirm_main">
<div class="hint">
确认取消?
</div>
<div class="true">确定取消订单吗?</div>
<div class="choose">
<span class="confirm_yes">取消</span>
<span class="confirm_no">确定</span>
</div>
</div>
</div>
<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="../index.js"></script>-->
<script>
//确认取消弹出框
$('.confirm_main').click(function(event) {
event.stopPropagation();
});
$('.confirm_main').click(function(event) {
event.stopPropagation();
});
$('.confirm_no').click(function(event) {
$('.confirm_cancel').css('display','none');
});
$('.confirm_yes').click(function(event) {
$('.confirm_cancel').css('display','none');
});
$('.confirm_cancel').click(function(event) {
$('.confirm_cancel').css('display','none');
});
$('.can').click(function() {
var id = $(this).parents('.good_out').data("id");
console.log(id);
$('.confirm_cancel').css('display', 'block');
$('.confirm_yes').click(function() {
console.log("点击确定按钮获取整个li的id为:" + id);
$('.confirm_cancel').css('display', 'none');
})
$('.confirm_no').click(function() {
$('.confirm_cancel').css('display', 'none');
})
$('.confirm_main').click(function() {
event.stopPropagation();
// $(this).css('display','none');
})
})
$('.actlist').click(function(){
$('.confirm_cancel').css('display','block');
})
//确认取消弹出框
$('.btnright').click(function() {
var id = $(this).parents('.good_out').data("id");
console.log(id);
$('.confirm_cancel').css('display', 'block');
$('.confirm_yes').click(function() {
console.log("点击确定按钮获取整个li的id为:" + id);
$('.confirm_cancel').css('display', 'none');
})
$('.confirm_no').click(function() {
$('.confirm_cancel').css('display', 'none');
})
$('.confirm_main').click(function() {
event.stopPropagation();
// $(this).css('display','none');
})
})
//阻止按钮的点击冒泡
$('.btnlist').click(function(event) {
event.stopPropagation();
});
$('.choice .swiper-slide').click(function() {
$(this).addClass("active_top").siblings().removeClass("active_top");;
})
//点击跳转到已退款页面
$('.good_out_refundmoney').click(function() {
window.location.href = 'refundmoney.html';
})
var mySwiper = new Swiper('.swiper-container', {
pagination: '.swiper-pagination',
autoplay: 1500, //可选选项,自动滑动
loop: true
})
$('.actlist').click(function(event) {
event.stopPropagation();
if($(this).find('.iconfont').attr('class') == 'iconfont icon-wuxing') {
$(this).find('.iconfont').attr("class", "iconfont icon-shoucang");
} else {
$(this).find('.iconfont').attr("class", "iconfont icon-wuxing");
}
});
$('.center_mian').click(function() {
window.location.href = $(this).attr('data-target');
})
$('.act_show').click(function(event) {
event.stopPropagation();
});
$('.acts').click(function(event) {
event.stopPropagation();
})
</script>
</body>
</html>