index.html
46.5 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
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
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
<!DOCTYPE html >
<script type="text/javascript" src="__PUBLIC__/js/rem_new.js"></script>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width">
<title>{$tpshop_config['shop_info_store_title']}</title>
<meta http-equiv="keywords" content="{$tpshop_config['shop_info_store_keyword']}"/>
<meta name="description" content="{$tpshop_config['shop_info_store_desc']}"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0" />
<meta name="format-detection" content="telephone=no"/>
<meta name="format-detection" content="email=no"/>
<meta name="format-detection" content="address=no;">
<meta name="apple-mobile-web-app-capable" content="yes"/>
<meta name="apple-mobile-web-app-status-bar-style" content="default"/>
<link rel="stylesheet" type="text/css" href="__STATIC__/css/public.css?v=__CSSVERSION__"/>
<link rel="stylesheet" type="text/css" href="__STATIC__/css/layer.css?v=__CSSVERSION__" />
<link rel="stylesheet" type="text/css" href="__STATIC__/css/index.css?v=__CSSVERSION__"/>
<link rel="stylesheet" type="text/css" href="__STATIC__/css/index_new.css?v=__CSSVERSION__"/>
<script type="text/javascript" src="__STATIC__/js/jquery.min.js"></script>
<script type="text/javascript" src="__STATIC__/js/TouchSlide.1.1.js"></script>
<script type="text/javascript" src="__STATIC__/js/jquery.json.js"></script>
<script type="text/javascript" src="__STATIC__/js/touchslider.dev.js"></script>
<script src="__PUBLIC__/js/global.js?v=__CSSVERSION__"></script>
<script src="__PUBLIC__/js/mobile_common.js?v=__CSSVERSION__"></script>
<script type="text/javascript" src="__STATIC__/js/layer.js"></script>
<style type="text/css">
.scroll_hot .hd li { font-size: 0;}
.floor_body ul li .products_kuang img.flashimg{position: absolute; top: 0; left:0; width:40%;!important; height: auto;}
.scroll_hot ul li .products_kuang img.flashimg{position: absolute; top: 0; left:0; width:40%;!important; height: auto;}
.scroll_hot ul li .products_kuang .round_show{ width: 0.5rem; height:0.5rem; color: #fff; font-size: 0.18rem; line-height: 0.48rem; background:#E9030D; border-radius: 100%;position: absolute; top: 2px; right:3px;}
/****** 抢红包 *********/
#cover
{
z-index: 101;
}
.bgtrans1
{
position: fixed;
left: 0;
top: 0;
width: 100%;
height: 100%;
background-color: rgba(98, 98, 98, 0.8);
z-index: 900;
}
.bgcover
{
background-position: center center;
background-repeat: no-repeat;
background-size: cover;
}
.de-hbimg
{
background-image: url("__STATIC__/images/redbag/de-hbimg.png");
background-position: center 20%;
background-size: 100% auto;
height: 100%;
margin-left: 15%;
position: relative;
width: 70%;
}
.dsdas
{
width: 138px;
height: 189px;
background-image: url(__STATIC__/images/redbag/BHdt.gif);
}
.closered
{
background-image: url("__STATIC__/images/redbag/xlose.png");
position: absolute;
z-index: 901;
top: 5%;
left: 90%;
width: 40px;
height: 40px;
}
.ahref
{
display: inline-block;
margin: 417px 0 0 89px;
width: 296px;
height: 82px;
}
.top-search{
width: 100%;
height: auto;
background: #ff7295;
position: fixed;
top: 0px;
left: 0px;
padding-top: 6px;
padding-bottom: 5px;
z-index: 100;
}
.price .pd_price{text-align: left; margin-top: 5px; color: #C4182E}
.price .pd_price2{text-align: left; font-size:12px; top: -3px; position: relative;color: #C4182E}
.price .pd_gobtn{float: right; display: inline-block; font-size:14px; text-align: center; border-radius: 5px;
width: 56px; height: 24px; line-height: 24px; background:#E9030D;color: #fff}
.erpapp{width:100%; height:.8rem; background-color:#ca3043;}
.erpapp img{height:.5rem; width:.5rem;border-radius: .5rem;margin: .15rem;display: inline-block;vertical-align: top;}
.apptext{color: #fff;line-height: .8rem;width: 3.4rem;display: inline-block;height: .8rem;}
.openapp{background-color: #fff;color: #c93145;border-radius: .05rem;display: inline-block;margin: .15rem .3rem;vertical-align: top;height: .5rem;width: 1.4rem;text-align: center;line-height: .5rem;margin-right: 0;}
.scrollimg.rel{position: relative}
.close_layui{
margin-top: 10px;
}
.advert-frame{
border-bottom:none;
}
.scroll-frame{
width: 100%;
background: #fff;
}
</style>
</head>
<body>
<input value="1" type="hidden">
<if condition="$ylpres">
<div class="erpapp">
<img style=" " src="{$ylpres.appIcon}">
<span class="cut apptext" style="">{$ylpres.appName}欢迎你</span>
<span class="openapp" onclick="javascript:window.location.href='{$ylpres.downLoadUrl}'">打开APP</span>
</div>
</if>
<Input type="hidden" id="hidstoid" value="{$Think.request.stoid}">
<div id="page" class="showpage">
<div>
<header id="header">
<a href="{:U('Goods/categoryList',array('stoid'=>$Think.request.stoid))}" class="top_bt"></a>
<a href="{:U('Cart/cart',array('stoid'=>$Think.request.stoid))}" class='user_btn'></a>
<div class="top-search">
<a href="{:U('Goods/categoryList',array('stoid'=>$Think.request.stoid))}">
<div class="top_bt bt-top">
<img src="__WEBPUBLIC__/miniapp/images/classify.png">
<div class="fs12 fc top_bt_word">分类</div>
</div>
</a>
<div id="btnqrcode" class="user_btn btnscan btn-top">
<img src="__WEBPUBLIC__/miniapp/images/scanning.png">
<div class="fs12 fc user_btn_word">扫一扫</div>
</div>
<div class="index_search_mid">
<span><img src="__STATIC__/images/home_page/search.png"></span>
<input type="text" id="search_text" class="search_text" value="请输入您所搜索的商品"/>
</div>
</div>
<div class="home_page_img" style="background-image:url('__STATIC__/images/home_page/home_page_top.png') ">
<if condition="empty($adimg)">
<div id="scrollimg" class="scrollimg">
<div class="bd">
<ul>
<adv pid="2" limit="6" item="v" cache="top_ad_5">
<li>
<a href="{$v.ad_link}"
<if condition="$v['target'] eq 1">target="_blank"</if>
><img src="{:getimg($v[ad_code],NOIMG)}" title="{$v[title]}" width="100%" style="border-radius: 10px; {$v[style]}"/></a>
</li>
</adv>
</ul>
</div>
<div class="hd" id="slide-strip">
<div class="slide_block">
<ul style="height: 11px;"></ul>
</div>
</div>
</div>
<else/>
<div id="iframe_u" style="position: relative">
<img id="iframe_u_img" src='__STATIC__/images/category/loader.gif'
width="20" height="20"
style="position: absolute; left:50%; margin-left:-10px; top:50%; margin-top: -10px "> </a>
<iframe id="ifbox" style="border: none;width: 100%"></iframe>
</div>
<script>
var wid="{$adimg_width}";
var hei="{$adimg_height}";
var url1="{$adimg}";
$(function () {
var width1 = $(window).width();
if (width1 > 720) width1 = 720;
var height1 = width1 * parseFloat(hei) / parseFloat(wid)
$("#ifbox").css("height", height1 + "px");
$("#iframe_u").css("height", height1 + "px");
$("#ifbox").attr('src', url1);
$("#ifbox").load(function() {
$("#iframe_u_img").hide();
});
})
</script>
</if>
</div>
</header>
<script type="text/javascript">
$(function () {
//判断有没有广告,没有用就隐藏滑动块
var numbers=$(".slide_block ul").children().length;
if(numbers<1){
$("#slide-strip").hide();
$("#header").css("height","60");
$(".home_page_img").hide();
}
})
var is_close_yh="{$is_closecoupon}";
TouchSlide({
slideCell: "#scrollimg",
titCell: ".hd ul", //开启自动分页 autoPage:true ,此时设置 titCell 为导航元素包裹层
mainCell: ".bd ul",
effect: "leftLoop",
autoPage: true, //自动分页
autoPlay: true //自动播放
});
</script>
<div style="width: 100%;background: #fff">
<div class="entry-lists flex ai_center jc_sb">
<div class="img-frames flex ai_center">
<img src="__WEBPUBLIC__/miniapp/images/index/youxuan.png">
<div class="fs13 yellow-c"> 人工优选</div>
</div>
<div class="img-frames flex ai_center">
<img src="__WEBPUBLIC__/miniapp/images/index/zhengpin.png">
<div class="fs13 yellow-c">正品保证</div>
</div>
<div class="img-frames flex ai_center">
<img src="__WEBPUBLIC__/miniapp/images/index/shouhou.png">
<div class="fs13 yellow-c"> 售后无忧</div>
</div>
</div>
</div>
<!--
许程2019/11/27
团购 积分购 签到 订单的导航栏-->
<div class="entry-list clearfix">
<nav>
<ul>
<li>
<a href="{:U('Activity/group_list',array('stoid'=>$Think.request.stoid))}">
<img alt="团购" src="__STATIC__/images/index/tuangou.png"/>
<span>团购</span>
</a>
</li>
<li>
<a href="{:U('integral/buy_points',array('stoid'=>$Think.request.stoid))}">
<img alt="积分购" src="__STATIC__/images/index/jifen.png"/>
<span>积分购</span>
</a>
</li>
<if condition="empty($is_closecoupon)">
<li>
<a href="{:U('integral/coupon',array('stoid'=>$Think.request.stoid))}">
<img alt="优惠券" src="__STATIC__/images/index/youhui.png"/>
<span>优惠券</span>
</a>
</li>
</if>
<li>
<a href="{:U('integral/index',array('stoid'=>$Think.request.stoid))}">
<img alt="签到" src="__STATIC__/images/index/qiandao.png"/>
<span>签到</span>
</a>
</li>
<li>
<a href="{:U('Goods/categoryList',array('stoid'=>$Think.request.stoid))}">
<img alt="全部分类" src="__STATIC__/images/index/fenlei.png"/>
<span>全部分类</span>
</a>
</li>
</ul>
</nav>
</div>
<!-- 分类的选择-->
<div class="flex jc_sa ai_center background service-class-frame" style="padding-bottom: 15px" >
<foreach name="service_class" key="key" item='val'>
<div>
<a href="{:U('Mobile/Goods/goodsList',array('stoid'=>$Think.request.stoid,'id'=>$val[id]))}" >
<div class="t_c" style="line-height: 48px;">
<img class="xc-class-img" src="{$val.icoimg}" onerror="this.src='__WEBPUBLIC__/miniapp/images/no_cate_def.png'">
</div>
<div class="ellipsis-1 fs12 t_c" style="width: 60px;">
{$val.name}
</div>
</a>
</div>
</foreach>
</div>
<!--新的广告栏-->
<div class="scroll-frame">
<div id="scroll" class="scrollimg rel">
<div class="bd">
<ul style="margin-bottom: 10px">
<!-- 新人礼-->
<li class="is_new_perple_gg" style="display: none"></li>
<!-- 节日-->
<li class="festival_activity" style="display: none"></li>
<!-- 会员权益-->
<if condition="$isBool">
<li>
<div class="advert-frame"style="margin-bottom: 20px">
<a href="{:U('Mobile/User/gorw_up',array('stoid'=>$Think.request.stoid))}">
<img src="__WEBPUBLIC__/miniapp/images/title.png">
</a>
</div>
</li>
</if>
</ul>
</div>
<div class="hd" >
<div class="slide_block">
<ul style="height: 11px;"></ul>
</div>
</div>
</div>
</div>
<!--旧的广告-->
<div class="floor_images floor_images_par">
<dl id="floor_images1">
<dt>
<adv limit="1" item="v" pid="300" cache="ad_300">
<if condition="$v['ad_link'] neq '' "><a href='{$v.ad_link}'></if>
<img src="{:getimg($v[ad_code],NOIMG)}" title="{$v[title]}" style="{$v[style]}" border="0">
<p style="height: 2px"></p>
<if condition="$v['ad_link'] neq ''"></a></if>
</adv>
</dt>
<dd>
<span class="Edge">
<adv limit="1" item="v" pid="301" cache="ad_301">
<if condition="$v['ad_link'] neq '' "><a href='{$v.ad_link}'></if>
<img src="{:getimg($v[ad_code],NOIMG)}" title="{$v[title]}" style="{$v[style]}" border="0">
<if condition="$v['ad_link'] neq ''"></a></if>
</adv>
</span>
<span class="Edge">
<adv limit="1" item="v" pid="302" cache="ad_302">
<if condition="$v['ad_link'] neq '' "><a href='{$v.ad_link}'></if>
<img src="{:getimg($v[ad_code],NOIMG)}" title="{$v[title]}" style="{$v[style]}" border="0">
<p style="height: 2px"></p>
<if condition="$v['ad_link'] neq ''"></a></if>
</adv>
</span>
</dd>
</dl>
<ul id="floor_images3">
<li class="brom">
<adv limit="1" item="v" pid="303" cache="ad_303">
<if condition="$v['ad_link'] neq '' "><a href='{$v.ad_link}'></if>
<img src="{:getimg($v[ad_code],NOIMG)}" title="{$v[title]}" style="{$v[style]}" border="0">
<p class="dis_vm"></p>
<if condition="$v['ad_link'] neq ''"></a></if>
</adv>
</li>
<li>
<adv limit="1" item="v" pid="304" cache="ad_304">
<if condition="$v['ad_link'] neq '' "><a href='{$v.ad_link}'></if>
<img src="{:getimg($v[ad_code],NOIMG)}" title="{$v[title]}" style="{$v[style]}" border="0">
<p class="dis_vm"></p>
<if condition="$v['ad_link'] neq ''"></a></if>
</adv>
</li>
</ul>
</div>
<if condition="$act_goods">
<section class="index_floor_lou">
<div class="floor_body" >
<h2 class="flex jc_sb" style="margin-bottom: 0.2rem">
<!-- <em></em>秒杀特区-->
<div class="flex ai_center">
<a href="{:U('Activity/seckill_list',array('stoid'=>$Think.request.stoid))}">
<img class="clock-img" src="__WEBPUBLIC__/miniapp/images/clock.png">
<img class="seckill-img" src="__WEBPUBLIC__/miniapp/images/seckill-ttitle.png">
</a>
</div>
<div class="geng"><a href="{:U('Activity/seckill_list',array('stoid'=>$Think.request.stoid))}">查看全部</a><span></span></div>
</h2>
<div id="scroll_promotion" class="scroll_hot">
<div class="bd">
<ul>
<assign name="fl" value="1"/>
<foreach name="act_goods" key="key" item='val'>
<li>
<a href="{:U('Mobile/Goods/goodsInfo',array('stoid'=>$Think.request.stoid,'id'=>$v[goods_id]))}"
title="{$val.goods_name}">
<div class="index_pro">
<a href="{:U('Mobile/Goods/goodsInfo',array('stoid'=>$Think.request.stoid,'id'=>$val[goods_id]))}"
title="{$val.goods_name}">
<div class="products_kuang">
<!-- <div class="timerBox surplus_text{$val[goods_id]}"></div>-->
<img src="{:getimg($val['original_img'],NOIMG,0,1)}">
<span class="dis_vm"></span>
<if condition = '$val.goods_num gt $val.buy_num'>
<if condition = '$val.isyure eq 1' >
<img class="flashimg" src="__STATIC__/images/yure.png">
<else/>
<img class="flashimg" src="__STATIC__/images/going.png">
</if>
<else/>
<img class="flashimg" src="__STATIC__/images/mend.png">
</if>
</div>
<div class="goods_name ellipsis-2" style="height: 21px">{$val.title}</div>
</a>
<div class="price">
<!--<a href="javascript:AjaxAddCart({$val[goods_id]},1,0);" class="btns">-->
<!--<img src="__STATIC__/images/index_flow.png">-->
<!--</a>-->
<span class="price_pro">{:getActualPrice2($val)}<del>¥{:getUnderlinePrice($val)}</del></span>
</div>
</div>
</a>
</li>
<if condition="($fl++%3 eq 0 && $fl-1 lt count($act_goods))"></ul><ul></if>
</foreach>
</ul>
</div>
<div class="hd" style="display:inline-block;">
<div class="lide_block flex ai_center">
<ul style="width: auto;"></ul>
</div>
</div>
</div>
</div>
</section>
<script type="text/javascript">
TouchSlide({
slideCell: "#scroll_promotion",
titCell: ".hd ul", //开启自动分页 autoPage:true ,此时设置 titCell 为导航元素包裹层
effect: "leftLoop",
autoPage: true, //自动分页
//switchLoad:"_src" //切换加载,真实图片路径为"_src"
});
</script>
<!--秒杀控制的js-->
<script>
// 倒计时
function GetRTime2() {
<foreach name = "act_goods" key = "k" item = 'v'>
<if condition ='$v.isyure eq 1' >
var text="";
text=GetRTime('{$v.start_time|date="Y/m/d H:i:s",###}');
if (typeof(text)==undefined)
{
$(".surplus_text{$v[goods_id]}").text('活动已结束');
}else {
$(".surplus_text{$v[goods_id]}").text(text);
}
<else/>
var text="";
text=GetRTime('{$v.end_time|date="Y/m/d H:i:s",###}');
if (typeof(text)==undefined) {
$(".surplus_text{$v[goods_id]}").text('活动已结束');
}
else {
$(".surplus_text{$v[goods_id]}").text(text);
}
</if>
</foreach>
}
setInterval(GetRTime2, 1000);
</script>
</if>
<!--天天拼单-->
<if condition="$team_goods">
<section class="index_floor">
<div class="floor_body1">
<h2 class="flex jc_sb">
<ul class="flex ai_center">
<img class="clock-img" src="__WEBPUBLIC__/miniapp/images/clock.png">
<img class="seckill-img" src="__WEBPUBLIC__/miniapp/images/team.png">
<ul class="slide-list js-slide-list" style="height: 33px;overflow: hidden;">
<foreach name="team_user" key="key" item='dvd'>
<li class="even">
<span>
<div class="flex ai_center ">
<div class="user-img-frame">
<img class=""src="{$dvd.head_pic}"onerror="this.src='__WEBPUBLIC__/miniapp/images/no-head.jpg'">
</div>
<div class=" flex user-name-frame fs12 ">
<div class="ellipsis-1 user-name">
<if condition="$dvd.nickname">
{$dvd.nickname}
<else/>
会员{$key}
</if>
</div>
<div>刚拼团成功</div>
</div>
</div>
</span>
</li>
</foreach>
</ul>
</ul>
<!-- <em></em>天天拼单-->
<div class="geng">
<a href="{:U('team/team_list',array('stoid'=>$Think.request.stoid))}">查看全部</a>
<span></span>
</div>
</h2>
<div id="scroll_hot0" class="scroll_hot rel" style="height:auto;">
<div class="bd" >
<ul class="tset" style="width:100% !important;">
<assign name="fl" value="1"/>
<foreach name="team_goods" item="v" key="k">
<li class="group_big_frame">
<a href="{:U('Mobile/Goods/goodsInfo',array('stoid'=>$Think.request.stoid,'id'=>$v[goods_id]))}"
title="{$v.goods_name}">
<div class="index_pro flex"style="width: 100%" >
<div class=""style="width: 30%;" >
<img style="width: 100%;height: 119px;" src="{:getimg($v.original_img,NOIMG,0,1)}">
<!-- <switch name="v.kttype" >
<case value="1"><em class="round_show">商家</em></case>
<case value="2"><em class="round_show">会员</em></case>
<case value="3"><em class="round_show">阶梯</em></case>
</switch>-->
<!-- <if condition = '$v.isyure eq 1' >
<img class="flashimg" src="__STATIC__/images/yure.png">
<else/>
<img class="flashimg" src="__STATIC__/images/going.png">
</if>-->
</div>
<div class="rel" style="margin-left: 5px;width: 70%;">
<div style="height:36%">
<div class="goods_name ellipsis-2">{$v.title}</div>
</div>
<div class="price " style="bottom: 0px;height: 66%;">
<p class="pd_price2 ">
<div class="flex">
<div class="flex fc fs020 obtain rel">
<img class="huoli abs" src="__WEBPUBLIC__/miniapp/images/fril.png">
<div class="fs10 val">已拼{$v.ct_num}份</div>
</div>
<div class="group-frame flex"style="margin-left: 5px">
<div class="people-val-img"><img src="__WEBPUBLIC__/miniapp/images/bai-ren.png"></div>
<span class="number" >{$v.ct_num}人团</span>
</div>
</div>
<!-- <if condition="$v.goods_num gt $v.buy_num">
<if condition="$v.kttype eq 1">
<span class="pd_gobtn">去参团</span>
<else/>
<span class="pd_gobtn">去开团</span>
</if>
<else/>
<span class="pd_gobtn" style="background: grey">已拼完</span>
</if>-->
</p>
<p class="pd_price abs" style="bottom: 0px">
<span class="fs18 flex ai_fe"> <text class="fs14" >¥</text>{$v.tuanprice}</span></p>
</div>
</div>
</div>
</a>
</li>
<!-- 这里控制个数的显示-->
<if condition="($fl++%2 eq 0) && ($fl-1 lt count($team_goods))">
</ul>
<ul>
</if>
</foreach>
</ul>
</div>
<div class="hd abs positions" style="height: auto">
<div class="lide_block flex ai_center">
<ul style="width: auto"></ul>
</div>
</div>
</div>
</div>
<div style="clear:both"></div>
</section>
<script type="text/javascript">
var doscroll = function(){
var $parent = $('.js-slide-list');
var $first = $parent.find('li:first');
var height = $first.height();
$first.animate({
height: 0 //或者改成: marginTop: -height + 'px'
}, 500, function() {
/* // 动画结束后,把它插到最后,形成无缝
// $first.css('marginTop', 0).appendTo($parent);*/
$first.css('height', height).appendTo($parent);});
};
setInterval(function(){doscroll()}, 2000);
</script>
<script type="text/javascript">
TouchSlide({
slideCell: "#scroll_hot0",
titCell: ".hd ul", //开启自动分页 autoPage:true ,此时设置 titCell 为导航元素包裹层
effect: "leftLoop",
autoPage: true, //自动分页
//switchLoad:"_src" //切换加载,真实图片路径为"_src"
});
</script>
</if>
<!--新品上市热销商品-->
<div class="floor_body2">
<div class="flex jc_center ai_center good-thing-frame">
<img class="good-thing-img"src="__STATIC__/images/home_page/hw_right.png">
<div class="fs16 good-thing">好物推荐</div>
<img class="good-thing-img" src="__STATIC__/images/home_page/hw_left.png">
</div>
<h2 class="flex ai_center jc_center"><div class="line"></div><text class="title-name fs12">GOOD HOT THING</text><div class="line"></div></h2>
<div id="J_ItemList">
<ul class="product single_item info">
</ul>
<a href="javascript:;" class="get_more" style="text-align:center; display:block;">
<img src='__STATIC__/images/category/loader.gif' width="12" height="12"> </a>
</div>
<div id="getmore" style="font-size:.24rem;text-align: center;color:#888;padding:.25rem .24rem .4rem;">
<a href="javascript:void(0)" onClick="getGoodsList()">点击加载更多</a>
</div>
</div>
<include file="public/footer"/>
<a href="javascript:goTop();" class="gotop" style="display: none"><img src="__STATIC__/images/topup.png"></a>
</div>
<div id="J_demo" style="display:none"></div>
<div id="search_hide" class="search_hide">
<h2><span class="close"><img src="__STATIC__/images/close.png"></span>关键搜索</h2>
<div id="mallSearch" class="search_mid">
<div id="search_tips" style="display:none;"></div>
<ul class="search-type">
<!--<li class="cur" num="0">宝贝</li>-->
</ul>
<div class="searchdotm">
<!--<form class="set_ip" name="sourch_form" id="sourch_form" method="get"-->
<div class="mallSearch-input">
<div id="s-combobox-135">
<input class="s-combobox-input" name="q" id="q"
onkeydown="strkeydown(event, this, 'submitbtn')"
placeholder="请输入关键词" type="text" value="<?php echo I('q'); ?>"/>
</div>
<input type="button" sid="<?php echo I('stoid'); ?>"
class="button" id="submitbtn" onClick="gosearch(this)"/>
</div>
<!--</form>-->
</div>
</div>
<section class="mix_recently_search">
<h3>热门搜索</h3>
<ul>
<foreach name="tpshop_config.hot_keywords" item="wd" key="k">
<if condition="$wd">
<li>
<a href="{:U('Goods/search',array('stoid'=>$Think.request.stoid,'q'=>$wd,'time'=>time()))}"
<if condition="$k eq 0">class="ht"</if>
>{$wd}</a>
</li>
</if>
</foreach>
</ul>
</section>
</div>
</div>
<!--新人礼海报的弹窗-->
<div class="new-user-frame" onclick="close_layui()" style="display: none"></div>
<div class="advert_popup t_c" style="display: none" >
<a id="is_new_people">
</a>
<img class="close_layui"src="__STATIC__/images/user_card/close_layui.png" onclick="close_layui()">
</div>
<!--底部导航栏的主键-->
<include file="public/footer_nav"/>
<!--二维码弹窗-->
<div id="ferweimap" class="layermbox dn">
<div class="laymshade"></div>
<div class="layermmain">
<div class="section">
<div class="layermchild" style="width:300px;">
<div class="layermcont">
<div class="code">
<img id="suberwm" src="">
</div>
<p class="codeTxt">长按识别二维码进行关注</p>
</div>
</div>
</div>
</div>
</div>
</body>
<input id="stoid" type="hidden" value="{$Think.request.stoid}">
</html>
<script src="__PUBLIC__/js/jqueryUrlGet.js"></script>
<script type="text/javascript">
var getstoid=$("#stoid").val();
var url = "index.php?m=Mobile&c=Index&a=ajaxGetMore";
var url2= "/index.php?m=Mobile&c=Index&a=issub&stoid="+$("#stoid").val();
var page = 1;
$(function () {
$(".layermbox").hide();
getRedAPP();//红包
// if (!isWeiXin())
// {
// $(".layermbox").hide();
// }else{
// $.ajax({
// type: "post",
// url: url2,
// dataType:'json',
// success: function (data) {
// if(data.code ==1 ){
// if(data.url==''){
// layer.open({content:'未生成关注二维码',time:2});
// }else{
// $('#suberwm').attr('src',data.url);
// $("#ferweimap").fadeIn(2);
// }
// }else{
// $("#ferweimap").fadeOut(2);
// }
// },
// error:function(XMLHttpRequest, textStatus, errorThrown){
// $("#ferweimap").hide();
// }
// });
// }
set_first_leader(); //设置推荐人
$("#getmore").hide();
getGoodsList();
var gotop = $(".gotop");
$(window).scroll(function () {
($(window).scrollTop() > 100) ? gotop.show(500) : gotop.hide(100);
});
$('#search_text').click(function () {
$(".erpapp").hide();
$(".showpage").children('div').hide();
$("#search_hide").css('position', 'fixed').css('top', '0px').css('width', '100%').css('z-index', '999').show();
})
$('#get_search_box').click(function () {
$(".showpage").children('div').hide();
$("#search_hide").css('position', 'fixed').css('top', '0px').css('width', '100%').css('z-index', '999').show();
})
$("#search_hide .close").click(function () {
$(".showpage").children('div').show();
$(".erpapp").show();
$("#search_hide").hide();
})
var gw=$(".products_kuang").width()
$(".products_kuang").css("height",gw+"px");
//广告图片控制
var w=$("body").width();
if($("#floor_images1:has(img)").length==0){
if($("#floor_images3:has(img)").length==0){
$(".floor_images_par").addClass("dn");
}else{
$(".floor_images_par").removeClass("dn");
}
$("#floor_images1").addClass("dn");
$("#floor_images1 dl dt").css("height","auto");
$("#floor_images1 dl dd").css("height","auto");
$("#floor_images1 dl dd span").css("height","auto");
}else{
$("#floor_images1").removeClass("dn");
//("#floor_images1 dl dt").css("height",w/2+"px");
//$("#floor_images1 dl dd").css("height",w/2+"px");
//$("#floor_images1 dl dd span").css("height",w/4+"px");
$("#floor_images1 dl dt").css("height","auto");
$("#floor_images1 dl dd").css("height","auto");
$("#floor_images1 dl dd span").css("height","auto");
}
if($("#floor_images2:has(img)").length==0){
$("#floor_images2").addClass("dn");
$("#floor_images2 dl dt").css("height","auto");
$("#floor_images2 dl dd").css("height","auto");
$("#floor_images2 dl dd span").css("height","auto");
}else{
$("#floor_images2").removeClass("dn");
// $("#floor_images2 dl dt").css("height",w/2+"px");
// $("#floor_images2 dl dd").css("height",w/2+"px");
// $("#floor_images2 dl dd span").css("height",w/4+"px");
$("#floor_images1 dl dt").css("height","auto");
$("#floor_images1 dl dd").css("height","auto");
$("#floor_images1 dl dd span").css("height","auto");
}
if($("#floor_images3:has(img)").length==0){
if($("#floor_images1:has(img)").length==0){
$(".floor_images_par").addClass("dn");
}else{
$(".floor_images_par").removeClass("dn");
}
$("#floor_images3").addClass("dn");
$(".floor_images ul li").css("height","auto");
$(".floor_body2 ul li").css("margin","auto");
}else{
$("#floor_images3").removeClass("dn");
//$(".floor_images ul li").css("height",w/3+"px");
//$(".floor_body2 ul li").css("margin","auto auto "+w*0.2+"px");
}
//新人有礼
getnew_giftbag();
//节日
festival_activity();
});
function getGoodsList() {
$('.get_more').show();
$('#getmore').hide();
$.ajax({
type: "get",
url: "/index.php?m=Mobile&c=Index&a=ajaxGetMore&p=" + page + "&stoid=<?php echo getMobileStoId()?>",
success: function (data) {
$('.get_more').hide();
if (data) {
$("#J_ItemList>ul").append(data);
page++;
} else {
$('#getmore').remove();
}
},
error:function(XMLHttpRequest, textStatus, errorThrown){
$("#ferweimap").hide();
}
});
}
///滑动到底部事件
$(document).unbind("scroll");
$(document).bind("scroll", function (event) {
if ($(document).scrollTop() >= $(document).height() - $(window).height()) {
if($("#getmore:visible").length>0){
getGoodsList();
}
}
});
function goTop() {
$('html,body').animate({'scrollTop': 0}, 600);
}
function isWeiXin(){
var ua = window.navigator.userAgent.toLowerCase();
if(ua.match(/MicroMessenger/i) == 'micromessenger'){
return true;
}else{
return false;
}
}
$('.search-type li').click(function () {
$(this).addClass('cur').siblings().removeClass('cur');
$('#searchtype').val($(this).attr('num'));
});
$('#searchtype').val($(this).attr('0'));
function gosearch(ob) {
var v = $.trim($("#q").val());
if (v == "") {
layer.open({content:"请输入关键字",time:2});
$("#q").focus();
return;
}
var stoid = $(ob).attr("sid");
var ur = "/index.php/mobile/Goods/search/time/{:time();}/stoid/" + stoid + "/q/" + v
window.location.href = ur;
}
//红包
function getRedAPP() {
$.ajax({
type: "post",
url: "/index.php?m=Mobile&c=Redbag&a=getredapp&stoid="+getstoid,
dataType: 'json',
async: false,
beforeSend: function () {
},
success: function (obj) {
if (obj.code == "0") {
if (obj.isshow.toString() == "1") {
$(document.body).append("<div class=\"bgtrans1\"><div class=\"de-hbimg bgcover\" onclick='gored()'><div onclick=\"closered(event);\" class=\"closered bgcover\"></div></div></div><div style=\"top: auto; top: 200px;right:0; position: fixed; width:30px; z-index:2;\"><a style=\" display:none;\" id=\"red\" href=\"/mobile/redbag/index/stoid/"+getstoid+".html\"><div style=\"margin-left:-25px; width: 50px;height: 70px;background-image: url(__STATIC__/images/redbag/BHdt1.gif); background-size:100%;\"></div></a></div>");
}
if (obj.isshow.toString() == "0") {
$(document.body).append("<div style=\"top: auto; top: 200px;right:0; position: fixed; width:30px; z-index:2;\"><a id=\"red\" href=\"/mobile/redbag/index/stoid/"+getstoid+".html\" ><div style=\"margin-left:-25px; width: 50px;height: 70px;background-image: url(__STATIC__/images/redbag/BHdt1.gif); background-size:100%;\"></div></a></div>");
}
}
}
});
}
// 关闭抢红包
function closered(e) {
//$(".bgtrans1").hide();
$(".bgtrans1").fadeToggle(500);
$("#red").show();
//阻止冒泡
if (e && e.stopPropagation)
//因此它支持W3C的stopPropagation()方法
e.stopPropagation();
else
//否则,我们需要使用IE的方式来取消事件冒泡
window.event.cancelBubble = true;
}
//去抢红包
function gored() {
location.href="/mobile/redbag/index/stoid/"+getstoid+".html";
}
//关闭新人礼的广告弹窗的显示
function close_layui(){
giftbagId_poster="";
package_id_poster="";
$(".new-user-frame").hide();
$(".advert_popup").hide();
}
//新人有礼
function getnew_giftbag() {
/*广告栏的*/
var giftBag_Id="";
var package_id="";
/*新人活动弹窗的*/
var giftbagId_poster="";
var package_id_poster="";
var ui= layer.open({type:2,shadeClose: false});
$.ajax({
type: "get",
url:" /index.php?m=Mobile&c=Userapi&a=new_people&user_id=" +user_id + "&stoid="+getstoid,
dataType:'json',
success: function (data) {
layer.close(ui);
if(data.code!=0){
$(".is_new_perple_gg").remove();
}else{
var objdata=data.data;
giftBag_Id=objdata.giftBagId;
package_id=objdata.package_id;
var getimageurl=objdata.imageurl;
var gourl="__WXD_LB_URL__GiftPackage/NewVipGift?actId="+objdata.id+"&actType=1&giftBagId="+objdata.giftBagId+"&storeId="+getstoid+"&userId="+user_id+"";
var newgg="<a href='"+gourl+"'><div class=\"advert-frame\" style=\"margin-bottom: 20px\"><img src=\"__STATIC__/images/new_user/new_user_gg.png\"> </div></a>";
$(".is_new_perple_gg").html(newgg);
//弹窗
$.ajax({
type: "get",
url:" /index.php?m=Mobile&c=Userapi&a=new_peolep_layui&user_id=" +user_id + "&stoid="+getstoid,
dataType:'json',
success: function (data) {
if(data.code==0){
giftbagId_poster=data.giftbagId_poster;
package_id_poster=data.package_id_poster;
$(".new-user-frame").show();
$(".advert_popup").show();
$("#is_new_people").html("<a href='"+gourl+"'><img class=\"new_gift_poster\" onerror=\"this.src='__WEBPUBLIC__/miniapp/images/newpeople/newreceive.png'\" src="+getimageurl+" ></a>");
}
}
})
}
}
})
}
setTimeout(function () {
// --轮播图的js--
TouchSlide({
slideCell: "#scroll",
titCell: ".hd ul", //开启自动分页 autoPage:true ,此时设置 titCell 为导航元素包裹层
mainCell: ".bd ul",
effect: "leftLoop",
autoPage: true, //自动分页
autoPlay: true //自动播放
});
},4000)
// 节日活动
function festival_activity() {
var uis= layer.open({type:2,shadeClose: false});
$.ajax({
type: "get",
url:" /index.php?m=Mobile&c=Userapi&a=festival_activity&user_id=" +user_id + "&stro_id="+getstoid,
dataType:'json',
success: function (data) {
layer.close(uis);
if(data.code!=0){
$(".festival_activity").remove();
}else{
var gourl="__WXD_LB_URL__GiftPackage/HolidayGift?actId="+data.actId+"&actType=3&giftBagId="+data.giftbagid+"&storeId="+getstoid+"&userId="+user_id+"";
var newgg="<a href='"+gourl+"'><div class=\"advert-frame\" style=\"margin-bottom: 20px\"><img src="+data.actBoundImg+"> </div></a>";
$(".festival_activity").html(newgg);
}
}
})
}
</script>
<!-- IE8及以下支持JSON -->
<!--[if lt IE 9]>
<script src="https://g.alicdn.com/aliww/ww/json/json.js" charset="utf-8"></script>
<![endif]-->
<!-- WSDK-->
<script src="https://g.alicdn.com/aliww/h5.openim.sdk/1.0.6/scripts/wsdk.js"></script>
<include file="public/wx_share"/>