-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.html
412 lines (398 loc) · 18.8 KB
/
test.html
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
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no, viewport-fit=cover" />
<title></title>
<script src="/assets/douyin/js/mui.min.js"></script>
<link href="/assets/douyin/css/mui.min.css" rel="stylesheet" />
<script type="text/javascript" charset="utf-8">
mui.init();
</script>
<!-- 引入样式文件 -->
<link rel="stylesheet" href="/assets/douyin/css/vant-index.css">
<!-- 引入 Vue 和 Vant 的 JS 文件 -->
<script src="/assets/douyin/js/vue-mint.js"></script>
<script src="/assets/douyin/js/vant-min.js"></script>
<script src="/assets/douyin/js/jquery-min.js" type="text/javascript" charset="utf-8"></script>
<script src="/assets/douyin/js/rem.js" type="text/javascript" charset="utf-8"></script>
<link rel="stylesheet" type="text/css" href="/assets/douyin/css/missionHall.css" />
<link rel="stylesheet" type="text/css" href="/assets/douyin/css/footer.css" />
<script src="/assets/douyin/js/footer.js" type="text/javascript" charset="utf-8"></script>
<script src="/assets/douyin/layer/layer.js"></script>
</head>
<body>
<div id="missionHall">
<div class="mui-scroll">
<!-- 头部 -->
<header class="mui-bar mui-bar-nav missionHall-header">
<a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left" href="/index/member/vip.html"></a>
<h1 class="mui-title">任务大厅</h1>
</header>
<!-- 搜索 -->
<div class="missionHall-search">
<input placeholder="输入关键词" type="text" name="search" id="search" value="" />
</div>
<!-- 任务大厅 -->
<div class="index-renw">
<div class="index-renw-tit">
<p>
<img src="/assets/douyin/images/index/tuijian.png" alt="推荐图">
<span>任务大厅</span>
</p>
<a href="#">
<span>more</span>
<span></span>
</a>
</div>
<ul class="index-renw-ul">
<li>
<a href="/index/index/show.html?id=2100">
<img src="/assets/douyin/images/index/tui-bg.png" alt="任务图">
<div>
<p>1【点赞关注】</p>
<p>¥1.30元</p>
<div class="">
<div class="">
<div class="index-renw-ul-dvb">
<p>抖音专区</p>
<p>钻石</p>
</div>
<p class="index-renw-ul-lp">剩余数量:<span>962/5000</span></p>
</div>
<button type="button">接单</button>
</div>
</div>
</a>
</li>
<li>
<a href="/index/index/show.html?id=2101">
<img src="/assets/douyin/images/index/tui-bg.png" alt="任务图">
<div>
<p>2【点赞关注】</p>
<p>¥1.30元</p>
<div class="">
<div class="">
<div class="index-renw-ul-dvb">
<p>抖音专区</p>
<p>钻石</p>
</div>
<p class="index-renw-ul-lp">剩余数量:<span>864/5000</span></p>
</div>
<button type="button">接单</button>
</div>
</div>
</a>
</li>
<li>
<a href="/index/index/show.html?id=2102">
<img src="/assets/douyin/images/index/tui-bg.png" alt="任务图">
<div>
<p>3【点赞关注】</p>
<p>¥1.30元</p>
<div class="">
<div class="">
<div class="index-renw-ul-dvb">
<p>抖音专区</p>
<p>钻石</p>
</div>
<p class="index-renw-ul-lp">剩余数量:<span>784/5009</span></p>
</div>
<button type="button">接单</button>
</div>
</div>
</a>
</li>
<li>
<a href="/index/index/show.html?id=2103">
<img src="/assets/douyin/images/index/tui-bg.png" alt="任务图">
<div>
<p>4【点赞关注】</p>
<p>¥1.30元</p>
<div class="">
<div class="">
<div class="index-renw-ul-dvb">
<p>抖音专区</p>
<p>钻石</p>
</div>
<p class="index-renw-ul-lp">剩余数量:<span>746/5000</span></p>
</div>
<button type="button">接单</button>
</div>
</div>
</a>
</li>
<li>
<a href="/index/index/show.html?id=2104">
<img src="/assets/douyin/images/index/tui-bg.png" alt="任务图">
<div>
<p>5【点赞关注】</p>
<p>¥1.30元</p>
<div class="">
<div class="">
<div class="index-renw-ul-dvb">
<p>抖音专区</p>
<p>钻石</p>
</div>
<p class="index-renw-ul-lp">剩余数量:<span>716/5000</span></p>
</div>
<button type="button">接单</button>
</div>
</div>
</a>
</li>
<li>
<a href="/index/index/show.html?id=2105">
<img src="/assets/douyin/images/index/tui-bg.png" alt="任务图">
<div>
<p>6【点赞关注】</p>
<p>¥1.30元</p>
<div class="">
<div class="">
<div class="index-renw-ul-dvb">
<p>抖音专区</p>
<p>钻石</p>
</div>
<p class="index-renw-ul-lp">剩余数量:<span>675/5000</span></p>
</div>
<button type="button">接单</button>
</div>
</div>
</a>
</li>
<li>
<a href="/index/index/show.html?id=2106">
<img src="/assets/douyin/images/index/tui-bg.png" alt="任务图">
<div>
<p>7【点赞关注】</p>
<p>¥1.30元</p>
<div class="">
<div class="">
<div class="index-renw-ul-dvb">
<p>抖音专区</p>
<p>钻石</p>
</div>
<p class="index-renw-ul-lp">剩余数量:<span>633/5000</span></p>
</div>
<button type="button">接单</button>
</div>
</div>
</a>
</li>
<li>
<a href="/index/index/show.html?id=2107">
<img src="/assets/douyin/images/index/tui-bg.png" alt="任务图">
<div>
<p>8【点赞关注】</p>
<p>¥1.40元</p>
<div class="">
<div class="">
<div class="index-renw-ul-dvb">
<p>抖音专区</p>
<p>钻石</p>
</div>
<p class="index-renw-ul-lp">剩余数量:<span>641/5000</span></p>
</div>
<button type="button">接单</button>
</div>
</div>
</a>
</li>
<li>
<a href="/index/index/show.html?id=2108">
<img src="/assets/douyin/images/index/tui-bg.png" alt="任务图">
<div>
<p>9【点赞关注】</p>
<p>¥1.40元</p>
<div class="">
<div class="">
<div class="index-renw-ul-dvb">
<p>抖音专区</p>
<p>钻石</p>
</div>
<p class="index-renw-ul-lp">剩余数量:<span>612/5000</span></p>
</div>
<button type="button">接单</button>
</div>
</div>
</a>
</li>
<li>
<a href="/index/index/show.html?id=2109">
<img src="/assets/douyin/images/index/tui-bg.png" alt="任务图">
<div>
<p>10【点赞关注】</p>
<p>¥1.30元</p>
<div class="">
<div class="">
<div class="index-renw-ul-dvb">
<p>抖音专区</p>
<p>钻石</p>
</div>
<p class="index-renw-ul-lp">剩余数量:<span>556/5000</span></p>
</div>
<button type="button">接单</button>
</div>
</div>
</a>
</li>
</ul>
</div>
<input type="hidden" id="page" value="1">
<div id="footer">
<nav class="mui-bar mui-bar-tab footer-t">
<a class="mui-tab-item " href="/index/index/index.html">
<img src="/assets/douyin/images/footer-01.png" alt="底部导航图">
<span class="mui-tab-label">首页</span>
</a>
<a class="mui-tab-item mui-active" href="/index/member/vip.html">
<img src="/assets/douyin/images/footer-02-active.png" alt="底部导航图">
<span class="mui-tab-label">VIP</span>
</a>
<!-- <a class="mui-tab-item" href="/index/member/release.html">-->
<a class="mui-tab-item mui-fabu" href="javascript:void(0)">
<img src="/assets/douyin/images/footer-03.png" alt="底部导航图">
<span class="mui-tab-label">发布</span>
</a>
<a class="mui-tab-item" href="/index/member/index.html">
<img src="/assets/douyin/images/footer-04.png" alt="底部导航图">
<span class="mui-tab-label">我的</span>
</a>
</nav>
</div>
<script>
mui('body').on('tap','a.mui-fabu',function(){
alert("暂未开放");
});
mui('body').on('tap','a.mycenter-zv-a1',function(){
alert("正在开发中");
});
mui('body').on('tap','a.mycenter-zv-a2',function(){
alert("正在开发中");
});
</script>
</div>
</div>
</body>
<script type="text/javascript">
mui('body').on('tap', 'a', function() {
document.location.href = this.href;
});
</script>
<script type="text/javascript">
new Vue({
el: "#missionHall",
data: {
},
methods: {}
})
var isbool = true;
var islist = true;
$(window).scroll(function() {
var scrollTop = $(this).scrollTop();
var scrollHeight = $(document).height();
var windowHeight = $(this).height();
if (scrollTop + windowHeight >= scrollHeight-69 && islist == false){
layer.msg('没有更多任务了');
return false;
}
if (scrollTop + windowHeight >= scrollHeight-69 && isbool == true) {
//触发后执行的方法
isbool = false;
console.log('1111');
get_list();
}
});
function get_list(){
var page = $('#page').val();
page = Number(page)+1;
$.post("/index/index/level_list.html",{page:page,level_id:"3"},function(data){
if(data.data.list == '' || data.data.list == undefined || data.data.list == null || data.data.list == []){
layer.msg('没有更多任务了');
islist = false;
return false;
}
layer.load(1);
layer.closeAll('loading');
console.log(data);
$.each(data.data.list, function(i,item){
$('.index-renw-ul').append(
' <li>\n' +
' <a href="/index/index/show.html?id='+item.id+'">\n' +
' <img src="/assets/douyin/images/index/tui-bg.png" alt="任务图">\n' +
' <div>\n' +
' <p>'+item.title+'</p>\n' +
' <p>¥'+item.price+'元</p>\n' +
' <div class="">\n' +
' <div class="">\n' +
' <div class="index-renw-ul-dvb">\n' +
' <p>抖音专区</p>\n' +
' <p>'+item.name+'</p>\n' +
' </div>\n' +
' <p class="index-renw-ul-lp">剩余数量:<span>'+item.apply_num+'/'+item.max_num+'</span></p>\n' +
' </div>\n' +
' <button type="button">接单</button>\n' +
' </div>\n' +
' </div>\n' +
' </a>\n' +
' </li>'
);
})
$('#page').val(data.data.page);
isbool = true;
})
}
var is_search = true;
document.onkeydown = keyDown;//回车
function keyDown(e) {
var e =e||event;
var key=e.keyCode||e.which||e.charCode;
if(key==0xD){
//判断是否按下回车键
var search = $('#search').val();
if(is_search == false){
return false;
}
is_search = false;
$.post("/index/index/search.html",{search:search,level_id:"3"},function (data) {
is_search = true;
if(data.code == 0){
layer.msg(data.msg);
return false;
}
$('.index-renw-ul li').remove();
if(data.data.list == '' || data.data.list == undefined || data.data.list == null || data.data.list == []){
layer.msg('暂无该任务');
return false;
}
layer.load(1);
layer.closeAll('loading');
console.log(data);
$.each(data.data.list, function(i,item){
$('.index-renw-ul').append(
' <li>\n' +
' <a href="/index/index/show.html?id='+item.id+'">\n' +
' <img src="/assets/douyin/images/index/tui-bg.png" alt="任务图">\n' +
' <div>\n' +
' <p>'+item.title+'</p>\n' +
' <p>¥'+item.price+'元</p>\n' +
' <div class="">\n' +
' <div class="">\n' +
' <div class="index-renw-ul-dvb">\n' +
' <p>抖音专区</p>\n' +
' <p>'+item.name+'</p>\n' +
' </div>\n' +
' <p class="index-renw-ul-lp">剩余数量:<span>'+item.apply_num+'/'+item.max_num+'</span></p>\n' +
' </div>\n' +
' <button type="button">接单</button>\n' +
' </div>\n' +
' </div>\n' +
' </a>\n' +
' </li>'
);
})
})
}
}
</script>
</html>