-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
991 lines (912 loc) · 41.7 KB
/
index.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
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv = "X-UA-Compatible" content = "IE=10" >
<title>Title</title>
<link rel="stylesheet" href="CSS/common.css">
<link rel="stylesheet" href="CSS/style.css">
<link rel="stylesheet" href="CSS/reset.css">
<script src="js/jquery-3.2.1.js"></script>
<script src="node_modules/jquery-color/jquery.color.js"></script>
<script src="js/common.js"></script>
<script src="js/style.js"></script>
<script src="js/Troke.MyCookie.js"></script>
</head>
<body>
<!--首页-->
<div class="header-wrp">
<div class="header">
<div class="address">
<div class="top"> 送至:北京<span><i class="iconfont"></i></span></div>
<div class="bottom">
<ul></ul>
</div>
</div>
<div class="menu">
<span class="welcome">您好,欢迎来到 为为商城</span><a href="loading.html" title="点击登录或者切换用户" class="loading">请登录</a>
<a href="register.html" class="register" title="点击注册用户">免费注册</a>
<ul>
<li class="myorder sele animate">
<a href="#">我的订单<span><i class="iconfont"></i></span></a>
<ul>
<li><a href="">待付款订单</a></li>
<li><a href="">待确认收货</a></li>
<li><a href="">待平价交易</a></li>
</ul>
</li>
<li class="businesscenter sele animate">
<a href="#">商家中心<span><i class="iconfont"></i></span></a>
<ul>
<li><a href="#">申请入驻</a></li>
<li><a href="#">我的店铺</a></li>
</ul>
</li>
<li>
<a href="#"><i class="iconfont"></i>手机为为</a>
</li>
<li class="service sele animate">
<a href="#">客户服务<span><i class="iconfont"></i></span></a>
<ul>
<li><a href="#">帮助中心</a></li>
<li><a href="#">售后服务</a></li>
<li><a href="#">客服中心</a></li>
</ul>
</li>
<li class="attention animate">
<a href="#"><i class="iconfont"></i>关注我们<span><i class="iconfont"></i></span></a>
<ul>
<li>扫描二维码<br>关注商城微信号</li>
<li><img src="images/weixin.gif" alt=""></li>
</ul>
</li>
</ul>
</div>
</div>
</div>
<!--搜索-->
<div class="searchwrp">
<div class="search-wrp">
<div class="searchtop">
<div class="logo">
<a href="#"><img src="images/logo.png" alt=""></a>
</div>
<div class="search">
<div class="top">
<div class="formtable">
<form id="myform">
<input type="text" placeholder="请输入你需要搜索的商品关键字">
<input type="submit" value="搜索" class="sub">
</form>
</div>
<div href="#" class="sect">
<a href="#">商品<i class="iconfont"></i></a>
<ul>
<li><a href="">商品</a></li>
<li><a href="">店铺</a></li>
</ul>
</div>
</div>
<a href="#" style="color: orange">沙发 </a>
<a href="#">床 </a>
<a href="#">瓷砖 </a>
<a href="#" style="color: orange">地板 </a>
<a href="#">餐桌</a>
</div>
<div class="shopping">
<div class="bar">
<a href="#"><i class="iconfont"></i>我的购物车<span><i class="iconfont"></i></span></a>
<span class="number status_number">1</span>
</div>
<div class="spbox">
<h5>最近加入的商品</h5>
<div class="empty">您的购物车空空如也!</div>
<div class="center">
<ul class="gouwuche_box">
<!--<li>-->
<!--<a href="javasacript:;"><img src="images/brand01.jpg" alt=""></a>-->
<!--<a href="javasacript:;">致尚名门 镶嵌工艺玻璃-风景香槟砂金单边套推拉中空铝门 Z-1366 平方米</a>-->
<!--<span>¥2080.00</span>-->
<!--<a href="javasacript:;" onclick='del(this)'>删除</a>-->
<!--</li>-->
</ul>
</div>
<div class="bottom">
<span>共<span class="gouwukinds">1</span>种商品 总计金额:<span class="countmoney">¥2080.00</span></span><br>
<a href="javascript:;" class="go-to-carhtml">结算购物车中的产品</a>
</div>
</div>
</div>
</div>
<div class="searchbottom">
<div class="band">
<i class="iconfont" style="color:white"></i><a href="#">精选商品分类</a>
<div class="menu band_menu_list">
<dl>
<dt><a href="#">建材</a></dt>
<dd>
</dd>
</dl>
<dl>
<dt><a href="#">家居家纺</a></dt>
<dd>
</dd>
</dl>
<dl>
<dt><a href="#">装修服务</a></dt>
<dd>
</dd>
</dl>
</div>
</div>
<ul>
<li><a href="">首页</a></li>
<li class="menulist">
<a href="">建材</a>
<div class="list">
<div class="listleft">
<dl>
<dt>基础建材</dt>
<dd>
<a href="">其它辅料</a>
<a href="">开关插件</a>
<a href="">油漆涂料</a>
<a href="">电线</a>
</dd>
</dl>
<dl>
<dt>橱柜</dt>
<dd>
<a href="">整体橱柜</a>
<a href="">柜体</a>
<a href="">门板</a>
<a href="">台面</a>
<a href="">橱柜配件</a>
</dd>
</dl>
<dl>
<dt>移门衣柜</dt>
<dd>
<a href="">衣柜移门</a>
<a href="">整体衣柜</a>
<a href="">折叠门</a>
<a href="">隔断衣柜</a>
<a href="">定制柜类</a>
</dd>
</dl>
<dl>
<dt>净水器/水处理</dt>
<dd>
<a href="">净水器/水处理</a>
</dd>
</dl>
</div>
<div class="listcenter">
<dl>
<dt>基础建材</dt>
<dd>
<a href="">其它辅料</a>
<a href="">其它辅料</a>
<a href="">其它辅料</a>
<a href="">其它辅料</a>
<a href="">其它辅料</a>
<a href="">其它</a>
<a href="">其它辅料</a>
<a href="">其它辅料</a>
<a href="">其它辅料</a>
<a href="">其它辅料</a>
<a href="">其它</a>
</dd>
</dl>
<dl>
<dt>橱柜</dt>
<dd>
<a href="">其它辅料</a>
</dd>
</dl>
<dl>
<dt>移门衣柜</dt>
<dd>
<a href="">其它辅料</a>
<a href="">其它辅料</a>
</dd>
</dl>
<dl>
<dt>净水器/水处理</dt>
<dd>
<a href="">净水器</a>
<a href="">净水器/水处理</a>
</dd>
</dl>
</div>
<div class="listright">
<dl>
<dt>基础建材</dt>
<dd>
<a href="">其它辅料</a>
<a href="">其它辅料</a>
<a href="">其它辅料</a>
<a href="">其它辅料</a>
</dd>
</dl>
<dl>
<dt>橱柜</dt>
<dd>
<a href="">其它辅料</a>
<a href="">辅料</a>
<a href="">辅料</a>
<a href="">辅料</a>
<a href="">其它辅料</a>
<a href="">辅料</a>
<a href="">辅料</a>
<a href="">其它辅料</a>
</dd>
</dl>
<dl>
<dt>移门衣柜</dt>
<dd>
<a href="">其它辅料</a>
<a href="">其它辅料</a>
<a href="">其它辅料</a>
<a href="">其它辅</a>
<a href="">其它辅料</a>
</dd>
</dl>
<dl>
<dt>净水器/水处理</dt>
<dd>
<a href="">其它辅料</a>
<a href="">其它辅料</a>
<a href="">其它辅料</a>
<a href="">其它辅</a>
<a href="">其它辅料</a>
</dd>
</dl>
<dl>
<dt>净水器/水处理</dt>
<dd>
<a href="">净水器/水处理</a>
</dd>
</dl>
</div>
</div>
</li>
<li class="menulist">
<a href="">家居私房</a>
<div class="list">
<div class="listleft bdnone">
<dl>
<dt>基础建材</dt>
<dd>
<a href="">其</a>
<a href="">其它</a>
<a href="">其它辅</a>
<a href="">其它</a>
<a href="">其它</a>
<a href="">其它辅/辅料</a>
<a href="">其它辅/它辅料</a>
<a href="">其它辅</a>
<a href="">其它辅料</a>
</dd>
</dl>
<dl>
<dt>橱柜</dt>
<dd>
<a href="">其它辅料</a>
<a href="">辅料</a>
<a href="">辅料</a>
<a href="">辅料</a>
<a href="">其它辅料</a>
<a href="">辅料</a>
<a href="">辅料</a>
<a href="">其它辅料</a>
</dd>
</dl>
<dl>
<dt>移门衣柜</dt>
<dd>
<a href="">其它辅料</a>
<a href="">其它辅</a>
<a href="">其它辅料</a>
</dd>
</dl>
</div>
<div class="listcenter bdnone">
<dl>
<dt>基础建材</dt>
<dd>
<a href="">其它辅料</a>
<a href="">其它辅料</a>
<a href="">其它辅料</a>
<a href="">其它辅料</a>
<a href="">其它辅料</a>
<a href="">其它</a>
<a href="">其它辅料</a>
<a href="">其它辅料</a>
<a href="">其它辅料</a>
<a href="">其它辅料</a>
<a href="">其它</a>
</dd>
</dl>
<dl>
<dt>橱柜</dt>
<dd>
<a href="">其它辅料</a>
<a href="">辅料</a>
<a href="">辅料</a>
<a href="">辅料</a>
<a href="">其它辅料</a>
<a href="">辅料</a>
<a href="">辅料</a>
<a href="">其它辅料</a>
</dd>
</dl>
<dl>
<dt>移门衣柜</dt>
<dd>
<a href="">其它辅料</a>
<a href="">其它辅料</a>
<a href="">其它辅料</a>
<a href="">净水器</a>
<a href="">净水器/水处理</a>
</dd>
</dl>
</div>
<div class="listright bdadd">
<dl>
<dt>基础建材</dt>
<dd>
<a href="">其它辅料</a>
<a href="">其它辅料</a>
<a href="">其它辅料</a>
<a href="">其它辅料</a>
</dd>
</dl>
<dl>
<dt>橱柜</dt>
<dd>
<a href="">其它辅料</a>
<a href="">辅料</a>
<a href="">辅料</a>
<a href="">辅料</a>
</dd>
</dl>
<dl>
<dt>移门衣柜</dt>
<dd>
<a href="">其它辅料</a>
<a href="">其它辅料</a>
<a href="">其它辅</a>
</dd>
</dl>
</div>
</div>
</li>
<li><a href="">品牌</a></li>
<li><a href="">店铺</a></li>
<li><a href="">装修攻略</a></li>
<li><a href="">装修图库</a></li>
</ul>
</div>
</div>
</div>
<!--轮播图-->
<div class="banner-wrp">
<div class="banner" id="banner">
<ul id="lunbo">
<li style="z-index: 1"><a href="#"><img src="images/web-101-101-1.jpg" alt=""></a></li>
<li><a href="#"><img src="images/web-101-101-2.jpg" alt=""></a></li>
<li><a href="#"><img src="images/web-101-101-3.jpg" alt=""></a></li>
<li><a href="#"><img src="images/web-101-101-4.jpg" alt=""></a></li>
</ul>
<div id="link">
<span class="orange-color"></span>
<span class="origin-color"></span>
<span class="origin-color"></span>
<span class="origin-color"></span>
</div>
</div>
</div>
<!--商品展示-->
<div id="bandwrp">
<div class="bandshow">
<div class="bd-left">
<div class="title">
<a href="javascript:;">热卖商品<i class="iconfont"></i></a>
<a href="javascript:;">热评商品<i class="iconfont"></i></a>
<a href="javascript:;">商品上架<i class="iconfont"></i></a>
</div>
<div class="bandlist">
<!--<ul>-->
<!--<li>-->
<!--<a href="shoppingcar.html" target="_blank"><img src="images/band01.jpg" alt=""></a>-->
<!--<a href="shoppingcar.html" target="_blank">瑞肯橱柜 榻榻米 白色 平方</a>-->
<!--<p>商城价:<span>¥198.00</span></p>-->
<!--</li>-->
<!--<li>-->
<!--<a href="shoppingcar.html" target="_blank"><img src="images/band02.png" alt=""></a>-->
<!--<a href="shoppingcar.html" target="_blank">瑞肯橱柜 榻榻米 白色 平方</a>-->
<!--<p>商城价:<span>¥198.00</span></p>-->
<!--</li>-->
<!--<li>-->
<!--<a href="shoppingcar.html" target="_blank"><img src="images/band03.jpg" alt=""></a>-->
<!--<a href="shoppingcar.html" target="_blank">瑞肯橱柜 榻榻米 白色 平方</a>-->
<!--<p>商城价:<span>¥198.00</span></p>-->
<!--</li>-->
<!--<li>-->
<!--<a href="shoppingcar.html" target="_blank"><img src="images/band04.jpg" alt=""></a>-->
<!--<a href="shoppingcar.html" target="_blank">瑞肯橱柜 榻榻米 白色 平方</a>-->
<!--<p>商城价:<span>¥198.00</span></p>-->
<!--</li>-->
<!--<li>-->
<!--<a href="shoppingcar.html" target="_blank"><img src="images/band05.jpg" alt=""></a>-->
<!--<a href="shoppingcar.html" target="_blank">瑞肯橱柜 榻榻米 白色 平方</a>-->
<!--<p>商城价:<span>¥198.00</span></p>-->
<!--</li>-->
<!--</ul>-->
</div>
</div>
<div class="bd-right">
<div class="bd-r-top">
<span>商城快报</span>|
<span>装修咨询</span>
</div>
<div class="bd-r-center">
<ul>
<li><a href="#">400客服电话调整公告(2016-06-21</a></li>
<li><a href="#">400客服电话调整公告(2016-06-21</a></li>
<li><a href="#">400客服电话调整公告(2016-06-21</a></li>
<li><a href="#">400客服电话调整公告(2016-06-21</a></li>
<li><a href="#">400客服电话调整公告(2016-06-21</a></li>
</ul>
<ul>
<li><a href="#">2016年建配龙最新商场导购地</a></li>
<li><a href="#">建配龙国庆家装狂欢节</a></li>
<li><a href="#">【网安互动】你知道公安部门</a></li>
<li><a href="#">网络安全宣传手册</a></li>
<li><a href="#">为为商城祝网友中秋节快乐!</a></li>
</ul>
</div>
<a href="#" class="bd-bg"><img src="images/bandbg.jpg" alt=""></a>
</div>
</div>
</div>
<!--品牌推荐-->
<div id="brand-wrp">
<div class="brand">
<h1>品牌推荐</h1>
<ul>
<li><a href="#"><img src="images/brand01.jpg" alt=""></a></li>
<li><a href="#"><img src="images/brand02.jpg" alt=""></a></li>
<li><a href="#"><img src="images/brand03.jpg" alt=""></a></li>
<li><a href="#"><img src="images/brand04.jpg" alt=""></a></li>
<li><a href="#"><img src="images/brand05.jpg" alt=""></a></li>
<li><a href="#"><img src="images/brand06.jpg" alt=""></a></li>
<li><a href="#"><img src="images/brand07.jpg" alt=""></a></li>
<li><a href="#"><img src="images/brand08.jpg" alt=""></a></li>
<li><a href="#"><img src="images/brand09.png" alt=""></a></li>
<li><a href="#"><img src="images/brand10.jpg" alt=""></a></li>
<li><a href="#"><img src="images/brand11.jpg" alt=""></a></li>
<li><a href="#"><img src="images/brand12.jpg" alt=""></a></li>
<li><a href="#"><img src="images/brand13.png" alt=""></a></li>
<li><a href="#"><img src="images/brand14.jpg" alt=""></a></li>
</ul>
</div>
</div>
<!--楼层信息-->
<div id="floor-wrp">
<div class="floormsg">
<span>楼层直达:</span>
<a href="javascript:;" class="or_color">1F家装主材</a>
<a href="javascript:;" class="bk_color">2F软装家具</a>
<a href="javascript:;" class="bk_color">3F家纺家饰</a>
</div>
</div>
<!--1楼-->
<div id="first_floor_wrp">
<div class="first_floor">
<div class="msg">
<span>1F家装主材</span>
<span>
<a href="#">马桶/坐便器</a>
<a href="#">瓷砖</a>
<a href="#">地板</a>
<a href="#">移门衣柜</a>
</span>
</div>
<ul>
<li><a href="#"><img src="images/first01.jpg" alt=""></a></li>
<li>
<div>
<ul class="animate_brand">
<li><a href="#"><img src="images/first02.jpg" alt=""></a></li>
<li><a href="#"><img src="images/first03.jpg" alt=""></a></li>
</ul>
</div>
<div>
<a href="#"><img src="images/first06.jpg" alt=""></a>
<a href="#"><img src="images/first07.jpg" alt=""></a>
</div>
</li>
<li><a href="#"><img src="images/first04.jpg" alt=""></a></li>
<li><a href="#"><img src="images/first05.jpg" alt=""></a></li>
<li><a href="#"><img src="images/first08.jpg" alt=""></a></li>
<li><a href="#"><img src="images/first09.jpg" alt=""></a></li>
</ul>
</div>
</div>
<!--二楼-->
<div id="second_floor_wrp">
<div class="second_floor">
<div class="msg">
<span>2F软装家具</span>
<span>
<a href="#">沙发</a>
<a href="#">电视柜</a>
<a href="#">茶几</a>
<a href="#">床</a>
<a href="#">床垫</a>
</span>
</div>
<ul>
<li><a href="#"><img src="images/second01.jpg" alt=""></a></li>
<li>
<div>
<ul class="animate_brand_2">
<li><a href="#"><img src="images/second02.jpg" alt=""></a></li>
<li><a href="#"><img src="images/second03.jpg" alt=""></a></li>
</ul>
</div>
<div>
<a href="#"><img src="images/second06.jpg" alt=""></a>
<a href="#"><img src="images/second07.jpg" alt=""></a>
</div>
</li>
<li><a href="#"><img src="images/second04.jpg" alt=""></a></li>
<li><a href="#"><img src="images/second05.jpg" alt=""></a></li>
<li><a href="#"><img src="images/second08.jpg" alt=""></a></li>
<li><a href="#"><img src="images/second09.jpg" alt=""></a></li>
</ul>
</div>
</div>
<!--三楼-->
<div id="third_floor_wrp">
<div class="third_floor">
<div class="msg">
<span>3F家纺家饰</span>
<span>
<a href="#">四件套</a>
<a href="#">被子</a>
<a href="#">凉席</a>
<a href="#">毛毯</a>
</span>
</div>
<ul>
<li><a href="#"><img src="images/third01.jpg" alt=""></a></li>
<li>
<div>
<ul class="animate_brand_3">
<li><a href="#"><img src="images/third02.jpg" alt=""></a></li>
<li><a href="#"><img src="images/third03.jpg" alt=""></a></li>
</ul>
</div>
<div>
<a href="#"><img src="images/third06.jpg" alt=""></a>
<a href="#"><img src="images/third07.jpg" alt=""></a>
</div>
</li>
<li><a href="#"><img src="images/third04.jpg" alt=""></a></li>
<li><a href="#"><img src="images/third05.jpg" alt=""></a></li>
<li><a href="#"><img src="images/third08.jpg" alt=""></a></li>
<li><a href="#"><img src="images/third09.jpg" alt=""></a></li>
</ul>
</div>
</div>
<!--底部-->
<div id="footer-wrp">
<div class="footer">
<div class="footer-top">
<ul>
<li>
<a href="#"><img src="images/footer01.png" alt=""></a>
<p>正品保证</p>
</li>
<li>
<a href="#"><img src="images/footer02.png" alt=""></a>
<p>假一赔五</p>
</li>
<li>
<a href="#"><img src="images/footer03.png" alt=""></a>
<p>十四天无理由退货</p>
</li>
<li>
<a href="#"><img src="images/footer04.png" alt=""></a>
<p>先行赔付</p>
</li>
<li>
<a href="#"><img src="images/footer05.png" alt=""></a>
<p>三年质保</p>
</li>
<li>
<a href="#"><img src="images/footer06.png" alt=""></a>
<p>线下看样</p>
</li>
</ul>
</div>
<div class="footer-center">
<div class="footer-c-left">
<h3>客服在线</h3>
<img src="images/tel.png" alt="">
<span>021-56457299</span>
<span>周一到周五9:00-17:30</span>
</div>
<div class="footer-c-center">
<ul>
<li>
<h3>帮助中心</h3>
<p><a href="#">忘记密码</a></p>
<p><a href="#">积分兑换说明</a></p>
<p><a href="#">积分细则</a></p>
</li>
<li>
<h3>店长之家</h3>
<p><a href="#">如何申请开店</a></p>
</li>
<li>
<h3>支付方式</h3>
<p><a href="#">在线支付</a></p>
</li>
<li>
<h3>售后服务</h3>
<p><a href="#">退换货政策</a></p>
<p><a href="#">退款申请</a></p>
<p><a href="#">退换货流程</a></p>
</li>
<li>
<h3>客服中心</h3>
<p><a href="#">会员修改密码</a></p>
<p><a href="#">会员修改个人资料</a></p>
</li>
</ul>
</div>
<div class="footer-c-right">
<span>为为网APP</span>
<span>为为网微信</span>
<img src="images/v.png" alt="">
<img src="images/weiwei.png" alt="">
<span>下载移动客户端</span>
<span>为为网官方微信</span>
</div>
</div>
<div class="footer-bottom">
<p>
<a href="#">首页 </a>|
<a href="#">招聘英才 </a>|
<a href="#">合作及洽谈 </a>|
<a href="#">联系我们 </a>|
<a href="#">关于我们 </a>|
<a href="#">友情链接 </a>
</p>
<p>Copyright 2015 沪ICP备08001311号 | 营业执照</p>
</div>
</div>
</div>
<div id="sidebar">
<div class="side-top">
<div class="side-login-box">
<img src="images/login.gif" width="30" height="30" style="border-radius: 50%" alt="">
<a href="javascript:;" class="login-tip">会员登录</a>
</div>
</div>
<div class="side-center">
<span class="side-car-number">1</span>
<div class="sp_car"></div>
<p>购物车</p>
</div>
<div class="side-bottom">
<div class="qq">
<img src="images/qq.jpg" width="30" height="30" style="border-radius: 50%" alt="">
</div>
<div class="sc-return-top">
<div class="sc-to-top"></div>
<a href="javascript:;" class="sc-top-tip">返回顶部</a>
</div>
</div>
<!--侧边栏登陆-->
<div class="side-login">
<a href="javascript:;" class="close_btn">X</a>
<span></span>
<form id="my_form">
<div>
<span>没有账号?</span>
<a href="register.html" target="_blank">免费注册</a>
</div>
<div>
<div class="usbg">
</div>
<input type="text" placeholder="用户名/手机/邮箱" name="loadingname" class="login">
</div>
<div>
<div class="pwbg">
</div>
<input type="text" placeholder="密码" name="pwd">
</div>
<div>
<div class="yzmbg">
</div>
<input type="text" placeholder="请输入验证码" class="yzmbox">
<span class="yzm"></span>
</div>
<a href="#">忘记密码?</a><br>
<input type="button" value="登 陆" class="btn">
</form>
</div>
<!--侧边栏购物车-->
<div class="side-shoppingcar-wrp">
<div class="side-shoppingcar">
<div class="sc-top">
我的购物车
<span class="hide-sc"></span>
</div>
<div class="sc-center">
<div class="sc-empty">购物车空空如也!</div>
<ul class="side-car-box">
<!--<li>-->
<!--<a href="javascript:;">-->
<!--<img class="sc-img" src="image_shopping/img2/listhot01.png" alt="">-->
<!--</a>-->
<!--<div>-->
<!--<a href="javascript:;" class="sc-name">瑞肯橱柜 榻榻米 白色 平方</a>-->
<!--<p><span class="sc-money">¥198.00</span>x<span class="sc-count">1</span></p>-->
<!--</div>-->
<!--<a class="sc-remove" href="javascript:;">X</a>-->
<!--</li>-->
</ul>
</div>
<div class="sc-bottom">
<p>共计金额:<span class="sc-count-all">¥399.00</span></p>
<a href="car.html">结算购物车中的商品</a>
</div>
</div>
</div>
</div>
</body>
</html>
<script>
$(function () {
//页面加载就要看到数据,所以在页面加载事件里面。去请求服务器里数据
// ajax动态添加商品列表
$.ajax({
"url": "./servers/weiwei/list.php",
type: 'get',
dataType: "json",
"success": function (res) {
// console.log($data[0]["money"]);
// console.log(temp);
for (var j = 0; j < 3; j++) {
$list = $("<ul></ul>");
$list.appendTo($(".bandlist"));
for (var i = j * 5; i < j * 5 + 5; i++) {
$list1 = $("<li></li>")
$list1_1 = $("<a href='javascript:;' " +
"data-proimg='" + res[i].proimgbig + "' " +
"data-proname='" + res[i].proname + "' " +
"data-proprice='" + res[i].proprice + "' " +
"data-oldproprice='" + res[i].oldproprice + "' " +
"data-store='" + res[i].prostore + "' " +
"data-proid='" + res[i].proid + "' " +
"data-prolazy='" + res[i].prolazy + "' " +
"data-prohot='" + res[i].prohot + "' " +
"data-prosave='" + res[i].prosave + "' " +
"onclick='addCart(this)'></a>").html("<img src=" + res[i].proimg + " alt=''>")
$list1_2 = $("<a href='javascript:;' " +
"data-proimg='" + res[i].proimgbig + "' " +
"data-proname='" + res[i].proname + "' " +
"data-proprice='" + res[i].proprice + "' " +
"data-oldproprice='" + res[i].oldproprice + "' " +
"data-store='" + res[i].prostore + "' " +
"data-proid='" + res[i].proid + "' " +
"data-prolazy='" + res[i].prolazy + "' " +
"data-prohot='" + res[i].prohot + "' " +
"data-prosave='" + res[i].prosave + "' " +
"onclick='addCart(this)'></a>").html(res[i].proname)
$list1_3 = $("<p></p>").html("商城价:" + "<span>" + res[i].proprice + "</span>")
$list1_1.appendTo($list1)
$list1_2.appendTo($list1)
$list1_3.appendTo($list1)
$list.append($list1)
}
}
}
}
)
$(".bd-left .title").children("a").mouseenter(function () {
//console.log($(this).index());
var temp=$(this).index();
$(this).addClass("ahover").find(".iconfont").show();
$(this).siblings("a").removeClass("ahover").find(".iconfont").hide();
$(".bandlist>ul").eq(temp).show().siblings("ul").hide();
})
})
function addCart(obj) {
// window.location.href
window.location.assign("shoppingcar.html?pid="+$(obj).data("proid"));
}
//删除商品
function delet(temp) {
console.log($(temp).data("money"));
$.ajax({
url: "./servers/weiwei/cartDelete.php",
type: "post",
data: {"cartId": $(temp).data("cartid")}, //服务器需要一个di,根据id删除
success: function (res) {
console.log(res);
if (JSON.parse(res).status == 1) {
// alert(JSON.parse(res).msg)
var idx=$(temp).closest("li").index()
$(temp).closest("li").remove();//自生自灭
// console.log($(temp).index());
$(".side-car-box li").eq(idx).remove();
}
if ($(".gouwuche_box li").length > 0) {
$(".status_number").show().html($(".gouwuche_box li").length);
$(".gouwukinds").html($(".gouwuche_box li").length)
$(".countmoney").html("¥" + (parseFloat($(".countmoney").html().split("¥")[1]) - $(temp).data("money")).toFixed(2));
$(".side-car-number").show().html($(".gouwuche_box li").length);
// $(".gouwukinds").html($(".gouwuche_box li").length)
$(".sc-count-all").html("¥"+(parseFloat($(".sc-count-all").html().split("¥")[1])-$(temp).data("money")).toFixed(2));
}
else {
$(".status_number").hide().html("0");
$(".spbox .empty").show();
$(".gouwukinds").html("0");
$(".countmoney").html("¥0");
$(".side-car-number").hide().html("0");
$(".sc-empty").show();
// $(".gouwukinds").html("0");
$(".sc-count-all").html("¥0");
}
}
})
}
//console.log(temp);
// 侧边栏删除商品
//删除商品
function deletside(temp) {
console.log($(temp).data("money"));
$.ajax({
url:"./servers/weiwei/cartDelete.php",
type:"post",
data:{"cartId":$(temp).data("cartid")}, //服务器需要一个di,根据id删除
success:function (res) {
console.log(res);
if(JSON.parse(res).status==1){
var idx=$(temp).closest("li").index()
// alert(JSON.parse(res).msg)
$(temp).closest("li").remove();//自生自灭
$(".spbox li").eq(idx).remove();
}
if($(".side-car-box li").length>0)
{
$(".side-car-number").show().html($(".side-car-box li").length);
// $(".gouwukinds").html($(".gouwuche_box li").length)
$(".sc-count-all").html("¥"+(parseFloat($(".sc-count-all").html().split("¥")[1])-$(temp).data("money")).toFixed(2));
$(".status_number").show().html($(".side-car-box li").length);
$(".gouwukinds").html($(".side-car-box li").length)
$(".countmoney").html("¥" + (parseFloat($(".countmoney").html().split("¥")[1]) - $(temp).data("money")).toFixed(2));
}
else
{
$(".side-car-number").hide().html("0");
$(".sc-empty").show();
// $(".gouwukinds").html("0");
$(".sc-count-all").html("¥0");
$(".status_number").hide().html("0");
$(".spbox .empty").show();
$(".gouwukinds").html("0");
$(".countmoney").html("¥0");
}
}
})
}
</script>