-
Notifications
You must be signed in to change notification settings - Fork 0
/
weekxiangqing.html
472 lines (465 loc) · 20.1 KB
/
weekxiangqing.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
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
<title>每周客片</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="./css/bootstrap.css">
<link rel="stylesheet" href="./css/base.css" />
<link rel="stylesheet" href="./css/weekxiangqing.css" />
<link rel="stylesheet" href="./css/layer.css" />
<link rel="stylesheet" href="./css/imageViewer.css" />
<link rel="stylesheet" href="css/header.css">
<link rel="stylesheet" href="css/footer.css">
</head>
<body>
<!-- 引入页面头部 -->
<div id="header"></div>
<!--头部-->
<div class="banner">
<a>
<img src="img/week.jpg" alt="每周客片" />
</a>
<div class="banner_nav">
<a href="javasrict:;">10大维新美学</a>|
<a href="javasrict:;">专人专车</a>|
<a href="javasrict:;">匠选自由行</a>|
<a href="javasrict:;">质感减龄妆</a>|
<a href="javasrict:;">星范造型</a>|
<a href="javasrict:;">COSMO新娘课堂</a>|
<a href="javasrict:;">FUNS礼服设计师品牌</a>|
<a href="javasrict:;">智能影像设计</a>
</div>
</div>
<!--body-->
<div class="center">
<div class="switch-title">
<img src="img/week_title.jpg" alt="分割图片" />
</div>
<!-- 页面切换 -->
<div class="switch">
<div class="switch-category">
<ul class="switch-category-title d-flex list-unstyled justify-content-center">
<li><a href="#">1</a></li>
<li><a href="#">2</a></li>
<li><a href="#">3</a></li>
<li><a href="#">4</a></li>
<li><a href="#">5</a></li>
<li><a href="#">6</a></li>
<li><a href="#">7</a></li>
<li><a href="#">8</a></li>
<li><a href="#">9</a></li>
<li><a href="#">10</a></li>
<li><a href="#">11</a></li>
<li><a href="#">12</a></li>
</ul>
<div class="switch-nav">
<!-- 1-->
<div class="switch-container">
<ul class="switch-nav-title list-unstyled m-0 pb-5">
<li><a href="javascript:void(0)">第一季</a></li>
<li><a href="javascript:void(0)">第二季</a></li>
<li><a href="javascript:void(0)">第三季</a></li>
<li><a href="javascript:void(0)">第四季</a></li>
</ul>
</div>
<!-- 2-->
<div class="switch-container">
<ul class="switch-nav-title list-unstyled m-0 pb-5">
<li><a href="javascript:void(0)">第一季</a></li>
<li><a href="javascript:void(0)">第二季</a></li>
<li><a href="javascript:void(0)">第三季</a></li>
<li><a href="javascript:void(0)">第四季</a></li>
</ul>
</div>
<!-- 3-->
<div class="switch-container">
<ul class="switch-nav-title list-unstyled m-0 pb-5">
<li><a href="javascript:void(0)">第一季</a></li>
<li><a href="javascript:void(0)">第二季</a></li>
<li><a href="javascript:void(0)">第三季</a></li>
<li><a href="javascript:void(0)">第四季</a></li>
</ul>
</div>
<!-- 4-->
<div class="switch-container">
<ul class="switch-nav-title list-unstyled m-0 pb-5">
<li><a href="javascript:void(0)">第一季</a></li>
<li><a href="javascript:void(0)">第二季</a></li>
<li><a href="javascript:void(0)">第三季</a></li>
<li><a href="javascript:void(0)">第四季</a></li>
</ul>
</div>
<!-- 5-->
<div class="switch-container">
<ul class="switch-nav-title list-unstyled m-0 pb-5">
<li><a href="javascript:void(0)">第一季</a></li>
<li><a href="javascript:void(0)">第二季</a></li>
<li><a href="javascript:void(0)">第三季</a></li>
<li><a href="javascript:void(0)">第四季</a></li>
</ul>
</div>
<!-- 6-->
<div class="switch-container">
<ul class="switch-nav-title list-unstyled m-0 pb-5">
<li><a href="javascript:void(0)">第一季</a></li>
<li><a href="javascript:void(0)">第二季</a></li>
<li><a href="javascript:void(0)">第三季</a></li>
<li><a href="javascript:void(0)">第四季</a></li>
</ul>
</div>
<!-- 7-->
<div class="switch-container">
<ul class="switch-nav-title list-unstyled m-0 pb-5">
<li><a href="javascript:void(0)">第一季</a></li>
<li><a href="javascript:void(0)">第二季</a></li>
<li><a href="javascript:void(0)">第三季</a></li>
<li><a href="javascript:void(0)">第四季</a></li>
</ul>
</div>
<!--8-->
<div class="switch-container">
<ul class="switch-nav-title list-unstyled m-0 pb-5">
<li><a href="javascript:void(0)">第一季</a></li>
<li><a href="javascript:void(0)">第二季</a></li>
<li><a href="javascript:void(0)">第三季</a></li>
<li><a href="javascript:void(0)">第四季</a></li>
</ul>
</div>
<!-- 9-->
<div class="switch-container">
<ul class="switch-nav-title list-unstyled m-0 pb-5">
<li><a href="javascript:void(0)">第一季</a></li>
<li><a href="javascript:void(0)">第二季</a></li>
<li><a href="javascript:void(0)">第三季</a></li>
<li><a href="javascript:void(0)">第四季</a></li>
</ul>
</div>
<!-- 10-->
<div class="switch-container">
<ul class="switch-nav-title list-unstyled m-0 pb-5">
<li><a href="javascript:void(0)">第一季</a></li>
<li><a href="javascript:void(0)">第二季</a></li>
<li><a href="javascript:void(0)">第三季</a></li>
<li><a href="javascript:void(0)">第四季</a></li>
</ul>
</div>
<!-- 11-->
<div class="switch-container">
<ul class="switch-nav-title list-unstyled m-0 pb-5">
<li><a href="javascript:void(0)">第一季</a></li>
<li><a href="javascript:void(0)">第二季</a></li>
<li><a href="javascript:void(0)">第三季</a></li>
<li><a href="javascript:void(0)">第四季</a></li>
</ul>
</div>
<!-- 12-->
<div class="switch-container">
<ul class="switch-nav-title list-unstyled m-0 pb-5">
<li><a href="javascript:void(0)">第一季</a></li>
<li><a href="javascript:void(0)">第二季</a></li>
<li><a href="javascript:void(0)">第三季</a></li>
<li><a href="javascript:void(0)">第四季</a></li>
</ul>
</div>
</div>
</div>
</div>
<!--center列表-->
<div class="container-fluid" id="vm">
<div class="center-title">
<h3>原创每周客片集</h3>
<a href="weekkepian.html">>返回列表</a>
</div>
<div class="center_back">
<h1>2018年度客片鉴赏<壹>·余生是你</h1>
<h2>
<span>Time:2019-02-11</span> HOT:
<span>2638</span>
</h2>
</div>
<div class="row center-list">
<div :key="'waddr-'+index" :class="index%5==0?'col-lg-2 col-md-6 offset-lg-1':'col-lg-2 col-md-6'" v-for="(item,index) in imageObjects" >
<img :src="item.waddr" alt="" data-target="image-groups" class="ad-image-viewer" />
</div>
<!-- <div class="col-lg-2 col-md-6 offset-lg-1">
<img src="" alt="" data-target="image-groups" class="ad-image-viewer"/>
</div>
<div class="col-lg-2 col-md-6 ">
<img src="img/20190525100049334.jpg" alt="" data-target="image-groups" class="ad-image-viewer"/>
</div>
<div class="col-lg-2 col-md-6 ">
<img src="img/20190525100044625.jpg" alt="" data-target="image-groups" class="ad-image-viewer"/>
</div>
<div class="col-lg-2 col-md-6 ">
<img src="img/20190525100044912.jpg" alt="" data-target="image-groups" class="ad-image-viewer"/>
</div>
<div class="col-lg-2 col-md-6 ">
<img src="img/20190525100044955.jpg" alt="" data-target="image-groups" class="ad-image-viewer"/>
</div>
<div class="col-lg-2 col-md-6 offset-lg-1">
<img src="img/20190525100045194.jpg" alt="" data-target="image-groups" class="ad-image-viewer"/>
</div>
<div class="col-lg-2 col-md-6 ">
<img src="img/20190525100045588.jpg" alt="" data-target="image-groups" class="ad-image-viewer"/>
</div>
<div class="col-lg-2 col-md-6 ">
<img src="img/20190525100045598.jpg" alt="" data-target="image-groups" class="ad-image-viewer"/>
</div>
<div class="col-lg-2 col-md-6 ">
<img src="img/20190525100045959.jpg" alt="" data-target="image-groups" class="ad-image-viewer"/>
</div>
<div class="col-lg-2 col-md-6 ">
<img src="img/20190525100046246.jpg" alt="" data-target="image-groups" class="ad-image-viewer"/>
</div>
<div class="col-lg-2 col-md-6 offset-lg-1">
<img src="img/20190525100046352.jpg" alt="" data-target="image-groups" class="ad-image-viewer"/>
</div>
<div class="col-lg-2 col-md-6 ">
<img src="img/20190525100046704.jpg" alt="" data-target="image-groups" class="ad-image-viewer"/>
</div>
<div class="col-lg-2 col-md-6 ">
<img src="img/20190525100047475.jpg" alt="" data-target="image-groups" class="ad-image-viewer"/>
</div>
<div class="col-lg-2 col-md-6 ">
<img src="img/20190525100047671.jpg" alt="" data-target="image-groups" class="ad-image-viewer"/>
</div>
<div class="col-lg-2 col-md-6 ">
<img src="img/20190525100047948.jpg" alt="" data-target="image-groups" class="ad-image-viewer"/>
</div>
<div class="col-lg-2 col-md-6 offset-lg-1">
<img src="img/20190525100048214.jpg" alt="" data-target="image-groups" class="ad-image-viewer"/>
</div>
<div class="col-lg-2 col-md-6 ">
<img src="img/20190525100048516.jpg" alt="" data-target="image-groups" class="ad-image-viewer"/>
</div>
<div class="col-lg-2 col-md-6 ">
<img src="img/20190525100048665.jpg" alt="" data-target="image-groups" class="ad-image-viewer"/>
</div>
<div class="col-lg-2 col-md-6 ">
<img src="img/20190525100049303.jpg" alt="" data-target="image-groups" class="ad-image-viewer"/>
</div>
<div class="col-lg-2 col-md-6 ">
<img src="img/20190525100049334.jpg" alt="" data-target="image-groups" class="ad-image-viewer"/>
</div>
<div class="col-lg-2 col-md-6 offset-lg-1">
<img src="img/20190525100049727.jpg" alt="" data-target="image-groups" class="ad-image-viewer"/>
</div>
<div class="col-lg-2 col-md-6 ">
<img src="img/20190525100049860.jpg" alt="" data-target="image-groups" class="ad-image-viewer"/>
</div>
<div class="col-lg-2 col-md-6 ">
<img src="img/thumb_300_0_20190120015458868.jpg" alt="" data-target="image-groups" class="ad-image-viewer"/>
</div>
<div class="col-lg-2 col-md-6 ">
<img src="img/thumb_300_0_20190120015459838.jpg" alt="" data-target="image-groups" class="ad-image-viewer"/>
</div>
<div class="col-lg-2 col-md-6 ">
<img src="img/thumb_300_0_20190120015459253.jpg" alt="" data-target="image-groups" class="ad-image-viewer"/>
</div>
<div class="col-lg-2 col-md-6 offset-lg-1">
<img src="img/thumb_300_0_20190120015459228.jpg" alt="" data-target="image-groups" class="ad-image-viewer"/>
</div>
<div class="col-lg-2 col-md-6 ">
<img src="img/thumb_300_0_20190120015500318.jpg" alt="" data-target="image-groups" class="ad-image-viewer"/>
</div>
<div class="col-lg-2 col-md-6 ">
<img src="img/thumb_300_0_20190120015500961.jpg" alt="" data-target="image-groups" class="ad-image-viewer"/>
</div>
<div class="col-lg-2 col-md-6 ">
<img src="img/thumb_300_0_20190120015501569.jpg" alt="" data-target="image-groups" class="ad-image-viewer"/>
</div>
<div class="col-lg-2 col-md-6 ">
<img src="img/thumb_300_0_20190120015501716.jpg" alt="" data-target="image-groups" class="ad-image-viewer"/>
</div>
<div class="col-lg-2 col-md-6 offset-lg-1">
<img src="img/thumb_300_0_20190120015502271.jpg" alt="" data-target="image-groups" class="ad-image-viewer"/>
</div>
<div class="col-lg-2 col-md-6 ">
<img src="img/thumb_300_0_20190120015502543.jpg" alt="" data-target="image-groups" class="ad-image-viewer"/>
</div>
<div class="col-lg-2 col-md-6 ">
<img src="img/thumb_300_0_20190120015503600.jpg" alt="" data-target="image-groups" class="ad-image-viewer"/>
</div>
<div class="col-lg-2 col-md-6 ">
<img src="img/thumb_300_0_20190120015503301.jpg" alt="" data-target="image-groups" class="ad-image-viewer"/>
</div>
<div class="col-lg-2 col-md-6 ">
<img src="img/thumb_300_0_20190120015504813.jpg" alt="" data-target="image-groups" class="ad-image-viewer"/>
</div>
<div class="col-lg-2 col-md-6 offset-lg-1">
<img src="img/thumb_300_0_20190120015504405.jpg" alt="" data-target="image-groups" class="ad-image-viewer"/>
</div>
<div class="col-lg-2 col-md-6 ">
<img src="img/thumb_300_0_20190120015504910.jpg" alt="" data-target="image-groups" class="ad-image-viewer"/>
</div>
<div class="col-lg-2 col-md-6 ">
<img src="img/thumb_300_0_20190120015505529.jpg" alt="" data-target="image-groups" class="ad-image-viewer"/>
</div>
<div class="col-lg-2 col-md-6 ">
<img src="img/thumb_300_0_20190120015505568.jpg" alt="" data-target="image-groups" class="ad-image-viewer"/>
</div>
<div class="col-lg-2 col-md-6 ">
<img src="img/thumb_300_0_20190120015505914.jpg" alt="" data-target="image-groups" class="ad-image-viewer"/>
</div>
<div class="col-lg-2 col-md-6 offset-lg-1">
<img src="img/thumb_300_0_20190120015505277.jpg" alt="" data-target="image-groups" class="ad-image-viewer"/>
</div>
<div class="col-lg-2 col-md-6 ">
<img src="img/thumb_300_0_20190120015506567.jpg" alt="" data-target="image-groups" class="ad-image-viewer"/>
</div>
<div class="col-lg-2 col-md-6 ">
<img src="img/thumb_300_0_20190120015506859.jpg" alt="" data-target="image-groups" class="ad-image-viewer"/>
</div>
<div class="col-lg-2 col-md-6 ">
<img src="img/thumb_300_0_20190120015506845.jpg" alt="" data-target="image-groups" class="ad-image-viewer"/>
</div>
<div class="col-lg-2 col-md-6 ">
<img src="img/thumb_300_0_20190120015507113.jpg" alt="" data-target="image-groups" class="ad-image-viewer"/>
</div>
<div class="col-lg-2 col-md-6 offset-lg-1">
<img src="img/thumb_300_0_20190120015507555.jpg" alt="" data-target="image-groups" class="ad-image-viewer"/>
</div>
<div class="col-lg-2 col-md-6 ">
<img src="img/thumb_300_0_20190120015507981.jpg" alt="" data-target="image-groups" class="ad-image-viewer"/>
</div>
<div class="col-lg-2 col-md-6 ">
<img src="img/thumb_300_0_20190120015507920.jpg" alt="" data-target="image-groups" class="ad-image-viewer"/>
</div>
<div class="col-lg-2 col-md-6 ">
<img src="img/thumb_300_0_20190120015508976.jpg" alt="" data-target="image-groups" class="ad-image-viewer"/>
</div>
<div class="col-lg-2 col-md-6 ">
<img src="img/thumb_300_0_20190120015508981.jpg" alt="" data-target="image-groups" class="ad-image-viewer"/>
</div>
<div class="col-lg-2 col-md-6 offset-lg-1">
<img src="img/thumb_300_0_20190120015451975.jpg" alt="" data-target="image-groups" class="ad-image-viewer"/>
</div>
<div class="col-lg-2 col-md-6 ">
<img src="img/thumb_300_0_20190120015451593.jpg" alt="" data-target="image-groups" class="ad-image-viewer"/>
</div>
<div class="col-lg-2 col-md-6 ">
<img src="img/thumb_300_0_20190120015452168.jpg" alt="" data-target="image-groups" class="ad-image-viewer"/>
</div>
<div class="col-lg-2 col-md-6 ">
<img src="img/thumb_300_0_20190120015452375.jpg" alt="" data-target="image-groups" class="ad-image-viewer"/>
</div>
<div class="col-lg-2 col-md-6 ">
<img src="img/thumb_300_0_20190120015453644.jpg" alt="" data-target="image-groups" class="ad-image-viewer"/>
</div>
<div class="col-lg-2 col-md-6 offset-lg-1">
<img src="img/thumb_300_0_20190120015658583.jpg" alt="" data-target="image-groups" class="ad-image-viewer"/>
</div>
<div class="col-lg-2 col-md-6 ">
<img src="img/thumb_300_0_20190120015658924.jpg" alt="" data-target="image-groups" class="ad-image-viewer"/>
</div>
<div class="col-lg-2 col-md-6 ">
<img src="img/thumb_300_0_20190120015659241.jpg" alt="" data-target="image-groups" class="ad-image-viewer"/>
</div>
<div class="col-lg-2 col-md-6 ">
<img src="img/thumb_300_0_20190120015659560.jpg" alt="" data-target="image-groups" class="ad-image-viewer"/>
</div>
<div class="col-lg-2 col-md-6 ">
<img src="img/thumb_300_0_20190120015659620.jpg" alt="" data-target="image-groups" class="ad-image-viewer"/>
</div> -->
</div>
<!-- 分页-->
<div class="prev-next">
<a class="prev" href="javascript:;">
<img src="img/prev-article.png" alt="" />
</a>
<a href="#" class="prev-next-center">
<img src="img/home.png" alt="" /></a>
<a href="javascript:;" class="next">
<img src="img/next-article.png" alt="" />
</a>
</div>
</div>
</div>
<!--引入底部html-->
<div id="footer"></div>
<script src="./js/jquery.min.js"></script>
<script src="./js/popper.min.js"></script>
<script src="./js/bootstrap.min.js"></script>
<script src="js/bootbox.min.js" type="text/javascript" charset="utf-8"></script>
<script src="js/vue.js" type="text/javascript" charset="utf-8"></script>
<script src="./js/layer.js"></script>
<script src="./js/imageViewer.js"></script>
<script>
$(document).ready(function() {
//引入网页头部
$("#header").load("header.html");
$("#footer").load("footer.html");
})
//图片数组
//默认显示"国内"
$(".switch-container").hide();
$(".switch-container").eq(0).show();
//添加"国内"为选中样式
$(".switch-category-title").children("li").eq(0).addClass("active");
//切换的大类别鼠标悬浮
$(".switch-category-title").children("li").hover(function() {
var index = $(this).index(".switch-category-title>li");
$(".switch-container").hide();
$(".switch-container").eq(index).show();
$(".switch-category-title").children("li").removeClass("active");
$(this).addClass("active");
}, function() {});
//切换的小类别鼠标悬浮
$(".switch-nav-title>li").hover(function(e) {
var index = $(this).index(".switch-nav-title>li");
$(".img-response").attr("src", array[index]);
}, function() {});
//post方法
/* $.post("#",{},function(result){
}) */
//get方法
/* $.getJSON("#",{},function(result){
}) */
//创建Vue对象
new Vue({
el: "#vm",
data: {
pageCurrent:1, //分页页码
pageSize:10, //每页显示数据量
imageObjects:[],//存放图片对象数组
},
mounted() {
this.getImages();//调用函数
},
methods: {
//获取图片
getImages: function() {
var _this = this; //保存this对象
$.ajax({
url: "http://127.0.0.1:8080/weekkpxq/kpxqpic",
//type:"get",
//data:{},
dataType: "json",
beforeSend: function() {
},
success: function(result) {
if(result.state == 102){
bootbox.alert({
title:"提示",
message:result.message
})
}else{
_this.imageObjects = result.data; //将接收到的图片对象存入
//图片对象存入后(即图片加载后),调用nextTick方法
_this.$nextTick(function(){
imageViewer();
});
}
},
error: function(er, er1) {
console.log(er);
console.log(er1);
}
})
}
}
})
</script>
</body>
</html>