team_list.html
7.31 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
<script type="text/javascript" src="__PUBLIC__/js/rem_new.js"></script>
<!DOCTYPE html>
<head>
<meta charset="utf-8">
<title>拼单特区-{$tpshop_config['shop_info_store_title']}</title>
<include file="public/header" />
<link rel="stylesheet" type="text/css" href="__STATIC__/css/public.css?v=__CSSVERSION__"/>
<link rel="stylesheet" type="text/css" href="__STATIC__/css/group_buy.css?v=__CSSVERSION__"/>
<link rel="stylesheet" type="text/css" href="__STATIC__/css/team_list.css?v=__CSSVERSION__"/>
<script src="__PUBLIC__/js/global.js"></script>
<script src="__PUBLIC__/js/mobile_common.js"></script>
<script>
var Tday = new Array();
var daysms = 24 * 60 * 60 * 1000
var hoursms = 60 * 60 * 1000
var Secondms = 60 * 1000
var microsecond = 1000
var DifferHour = -1
var DifferMinute = -1
var DifferSecond = -1
$(function(){
//var h=$(".content").height();
//$(".seckill_list li .imgbox").css("height",h);
});
function clock11(key,ind) {
if(ind==1){
$(".seckill_list li .time span").css("color","#C4182E");
}else{
$(".seckill_list li .time span").css("color","#0199e2");
}
var time = new Date()
var hour = time.getHours()
var minute = time.getMinutes()
var second = time.getSeconds()
var timevalue = "" + ((hour > 12) ? hour - 12 : hour)
timevalue += ((minute < 10) ? ":0" : ":") + minute
timevalue += ((second < 10) ? ":0" : ":") + second
timevalue += ((hour > 12 ) ? " PM" : " AM")
var convertHour = DifferHour
var convertMinute = DifferMinute
var convertSecond = DifferSecond
var Diffms = Tday[key].getTime() - time.getTime()
if(Diffms<=0)
{
$("#jstimerBox" + key).parent().parent().parent().remove();
$(".nogoods").removeClass("dn");
}
else
{
DifferHour = Math.floor(Diffms / daysms)
Diffms -= DifferHour * daysms
DifferMinute = Math.floor(Diffms / hoursms)
Diffms -= DifferMinute * hoursms
DifferSecond = Math.floor(Diffms / Secondms)
Diffms -= DifferSecond * Secondms
var dSecs = Math.floor(Diffms / microsecond)
if (convertHour != DifferHour) e = "<span class=hour>" + DifferHour + "</span><font class=word_color>天</font>";
if (convertMinute != DifferMinute) f = "<span class=min>" + DifferMinute + "</span><font class=word_color>时</font>";
if (convertSecond != DifferSecond) g = "<span class=sec>" + DifferSecond + "</span><font class=word_color>分</font>";
h = "<span class=msec>" + dSecs + "</span><font class=word_color>秒</font>";
if (DifferHour > 0) {
e = e
}
else {
e = ''
}
document.getElementById("jstimerBox" + key).innerHTML = e + f + g + h;
}
if(ind==1){
$(".hour").css("color","#C4182E");
$(".min").css("color","#C4182E");
$(".sec").css("color","#C4182E");
$(".msec").css("color","#C4182E");
$(".word_color").css("color","#C4182E");
}else{
$(".hour").css("color","#0199e2");
$(".min").css("color","#0199e2");
$(".sec").css("color","#0199e2");
$(".msec").css("color","#0199e2");
$(".word_color").css("color","#0199e2");
}
}
</script>
<link rel="stylesheet" href="../static/css/group_buy.css">
<style>
.seckill_list li .imgbox{position: relative;}
.seckill_list li .imgbox .round_show{ width: 0.32rem; height:0.32rem; color: #fff; font-size: 0.14rem; line-height: 0.32rem; background:#E9030D; border-radius: 100%;position: absolute; top: 2px; left:5px;}
.seckill_list li .content .tit{
padding-top: 1px;
}
</style>
</head>
<body style="background: #eee">
<include file="public/menu"/>
<include file="public/navBall"/>
<include file="public/my_msg"/>
<input id="fstoid" type="hidden" value="{:I('stoid')}"/>
<!--<h3 class="sg_box_tit">秒杀特区</h3>-->
<div class="page_div" style="height: auto">
<img class="team_top_img" src="__WEBPUBLIC__/miniapp/images/team.jpg">
<ul class="seckill_off seckill_list" id="good_list"></ul>
<div style="width: 100%;height: 50px"></div>
<div class="seckillTit start-end flex">
<span class=" flex jc_center ai_center <if condition='$type eq 1'>on</if>" onclick="get_event_log('1','火热进行中');goHot(1)">
<img class="is_start_img" src="__STATIC__/images/home_page/<if condition='$type eq 1'>is_select.png<else/>no_select.png</if>">火热进行</span>
<span class="flex jc_center ai_center <if condition='$type eq 2'>on</if>" onclick="get_event_log('1','即将开始');goHot(2)">
<img class="is_start_img" src="__STATIC__/images/home_page/<if condition='$type eq 2'>is_start.png<else/>on_start.png</if>"> 即将开始</span>
</div>
<script>
var page = 0;
var IsLoading = true; //是否加载数据
var type={$type};
var stoid=$("#fstoid").val();
$(function () {
var gotop = $(".gotop");
$(window).scroll(function () {
($(window).scrollTop() > 100) ? gotop.show(500) : gotop.hide(100);
});
ajax_sourch_submit();
});
function goTop() { $('html,body').animate({'scrollTop': 0}, 600);}
/*** ajax 提交表单 查询订单列表结果 不删除*/
var is_no_more=0;
var is_loading=0;
function ajax_sourch_submit() {
if(is_no_more) return false;
if(is_loading) return false;
is_loading=1;
page++;
$("#getmore").hide();
$.ajax({
type: "GET",
url: "/index.php?m=Mobile&c=Nobase&a=ajax_team_list&p=" + page + "&stoid=" + stoid + "&is_ajax=1&type="+type,
beforeSend: function () {
$(".get_more").show();
},
success: function (data) {
console.log( "在这礼5555555",typeof data );
is_loading=0;
if(data!=null&&data!=""&&data.length>12){
$("#good_list").append(data);
$(".get_more").hide();
}else{
$(".get_more").hide();
my_msg("没有更多数据");
is_no_more=1;
}
},
error: function() {
ajax_sourch_submit();
},
});
}
/*--页面跳转--*/
function goHot(ind) {
window.location.href="/index.php/mobile/team/team_list/type/"+ind+"/stoid/"+stoid;
}
/***************滚动到底部加载*****************/
$(document).bind("scroll", function (event) {
if ($(document).scrollTop()+50 >= $(document).height() - window.innerHeight) {
ajax_sourch_submit();
}
});
</script>
<a href="javascript:get_event_log('1','回到顶部');goTop();" class="gotop" style="display: none"><img src="__STATIC__/images/topup.png"></a>
<include file="public/footer"/>
</div>
</body>
</html>