vipcard.html
26.6 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
<script type="text/javascript" src="__PUBLIC__/js/rem_new.js"></script>
<!DOCTYPE html>
<html lang="en">
<head>
</head>
<meta charset="UTF-8">
<title>购买会员卡</title>
<include file="public/header"/>
<link rel="stylesheet" type="text/css" href="__STATIC__/css/user_new_vipcard.css"/>
<link rel="stylesheet" href="__STATIC__/css/public.css?v=__CSSVERSION__">
<link rel="stylesheet" type="text/css" href="__STATIC__/swiper/css/swiper.min.css"/>
<script type="text/javascript" src="__STATIC__/js/jquery.js"></script>
<script type="text/javascript" src="__STATIC__/js/jquery.min.js"></script>
<script type="text/javascript" src="__STATIC__/swiper/js/swiper.min.js"></script>
<link rel="stylesheet" type="text/css" href="__STATIC__/swiper/css/swiper.min.css"/>
<script src="__STATIC__/teamstyle/js/html2canvas.min.js" type="text/javascript"></script>
<script type="text/javascript" src="__PUBLIC__/js/global.js?v=__CSSVERSION__"></script>
<style>
.li1,.li2,.li3{ background: no-repeat;background-size:100% ;height: 100%;width: 100%; padding: 0.1rem 0.1rem; }
.vipcard { margin: 0 15px; }
.vipcard ul li { padding: 0 10px; border-radius: 4px;margin: 15px 0 0;}
.vipcard ul li .top {
position: relative; border-bottom-style: dashed; border-bottom-width: 2px;
}
.li1 .top { border-color: #4f85df; }
.li2 .top { border-color: #ae1da0; }
.li3 .top {border-color: #ec7b51; }
.vipcard ul li .ly, .vipcard ul li .ry {
position: absolute;
bottom: -12.5px;
margin-top: -12.5px;
width: 25px;
height: 25px;
border-radius: 50%;
background-color: #fff
}
.vipcard ul li .ly { left: -22.5px; }
.vipcard ul li .ry {right: -22.5px; }
.vipcard ul li .bottom { text-align: center; padding: 10px 0; }
/*flix等分*/
.disfx {
display: -webkit-box; /* OLD - iOS 6-, Safari 3.1-6 */
display: -moz-box; /* OLD - Firefox 19- (buggy but mostly works) */
display: -ms-flexbox; /* TWEENER - IE 10 */
display: -webkit-flex; /* NEW - Chrome */
display: flex;
font-size: 0;
}
.fx1 {
-webkit-flex: 1;
flex: 1; /* for uc */
-webkit-box-flex: 1;
-moz-box-flex: 1;
-ms-flex: 1;
}
.vipcard ul li .top { padding: 15px 0; }
/*.top .disfx .fx1:first-child {*/
/* font-size: 14px;*/
/* color: #fff*/
/*}*/
.top .disfx .fx1:first-child img {
width: 25px;
}
.top .disfx .fx1:last-child {
font-size: 12px;
color: #fff;
text-align: right
}
.top .num {
font-size: 0.24rem;
/*color: #fff;*/
text-align: center;
/*padding: 8px 0 0;*/
}
.top .num em {
font-size: 16px;
}
.bottom .buynew {
display: inline-block;
/*padding: 3px 10px;*/
border-radius: 24px;
color: #333;
font-size: 0.25rem;
padding: 0.03rem 0.18rem;
/*background-color: rgba(255, 255, 255, 0.5)*/
}
.layermbtn {
border-top: 1px #ddd solid;
background-color: #fff;
}
.layermbtn > span, .layermbtn span:first-child {
background-color: #fff;
color: #666;
}
.layermbtn span:first-child {
border-right: 1px #ddd solid;
width: calc(50% - 1px);
}
/*弹窗*/
.yqmbox {
position: relative;
padding: 18px 20px 0;
text-align: center;
}
.titimg {
width: 51%;
height: 124%;
position: absolute;
left: 30%;
top: -28%;
}
/*.yqmbox p {*/
/*font-size: 18px;*/
/*margin-bottom: 15px;*/
/*}*/
.yqmbox .yzmyz {
display: inline-block;
border-radius: 0.24rem;
color: #fff;
padding: 0.07rem 0.1rem;
width: 1.6rem;
margin-top: 0.15rem;
font-size: 0.25rem;
}
.yqmbox .yzmyz1 {
/*margin-right: 40px;*/
}
.yqmbox dl {
}
.yqmbox dl dt {
font-size: 16px;
margin-bottom: 15px;
}
.yqmbox dl dd {
color: #999;
text-align: left;
font-size: 12px;
}
.yqmbox dl dd em {
color: #c3172d;
}
.show_buy_div{
position:absolute;top: 30%; left:50%; margin:0 0 -1rem -2.2rem; display: none;
width: 4.5rem; height: 5rem; border:none; border-radius: 0.14rem; background: #fff;
z-index: 1200;
}
.back_div{ position:fixed; width: 100%; height: 100%; background: rgba(0,0,0,0.7);top: 0; left: 0;display: none; z-index: 1180}
.swiper-wrapper{ align-items: center }
.swiper-slide {
text-align: center;
font-size: 18px;
background: #fff;
width: 90%;
/* Center slide text vertically */
display: -webkit-box;
display: -ms-flexbox;
display: -webkit-flex;
display: flex;
-webkit-box-pack: center;
-ms-flex-pack: center;
-webkit-justify-content: center;
justify-content: center;
-webkit-box-align: center;
-ms-flex-align: center;
-webkit-align-items: center;
align-items: center;
height: 2rem;
}
.swiper-slide-active,.swiper-slide-duplicate-active{
height: 2.35rem;
}
.swiper-slide .codes.n_is_hy{ background: rgba(255,255,254,0.3);
padding: 0.12rem 0.22rem; left: 0; border-radius: 0 0.25rem 0.25rem 0 }
.sw_tb_img_box{display: inline-block; width: 0.2rem; height: 0.2rem; overflow: hidden; position: relative; top: -0.05rem; margin-right: 0.02rem}
.sw_tb_img_box .img{
width: 0.2rem; height: 0.2rem; position: relative;
background: url("__STATIC__/images/weixin/dj_icon.png") no-repeat center ;
background-size:100% 100%; border-right:0.2rem solid transparent; left:-0.2rem;
}
input::-webkit-input-placeholder {
/* placeholder颜色 */
color: #d4d4d4;
/* placeholder字体大小 */
font-size: 12px;
}
.yqmbox input, .yqmbox input:hover {
border: 0;
width: 2rem;
font-size: 0.30rem;
margin-bottom: 0.03rem;
color: #444;
height: 0.25rem;
}
.word_name{
margin-bottom: 0.06rem !important;
height: 0.27rem !important;
}
.floor_body2 ul li { width: 47.2%;}
</style>
<body>
<include file="public/navBall" />
<div style=" background: url('__STATIC__/images/user_card/page-background.png') no-repeat;background-size:100% 100%;">
<!--头部背景图 与卡 ----------------------------------------------------------判断是否已经开卡如果开开就padding-top:0.3rem-->
<div class="top_img" style="background: url('__STATIC__/images/user_card/top_background.png') no-repeat;background-size:100% 100%;">
<!-- 判断有没有购买等级卡 有购买等级卡进来-->
<!-- 没有购买等级卡 的头部显示-->
<div class="xc-swiper-frame">
<div class="swiper-container ">
<div class="swiper-wrapper" id="card_swiper" >
<volist name="list" id="vo" key="k">
<div class="swiper-slide rel fc xc-imgs-frames" style="border-radius: 0.2rem;width: 278.333px;margin-right: 13px;">
<li class="li{$k} xc-grade-crad xc-crad-name-color " style="background-image:url({$vo.CardImg});color: {$vo.CardColor} " >
<div class="top rel" style="height: 100%" >
<div class="disfx">
<span class="fx1 fs050 " style="text-align: left">{:cut_word($vo.CardName,5)}</span>
<div class="bottom flex ai_center">
<a href="javascript:void(0);" onclick="buycard(this);" class="buynew" style="background-color: {$vo.CardColor}"
data-keys="{$vo.keys}"
data-newcorrprice="{$vo.Newcorrprice}" data-id="{$vo.CardId}"
data-name="{$vo.CardName}" data-days="{$vo.ExpiryDate}"
data-fee="{$vo.CardFee|number_format=###, 2, '.', ''}">立即购买</a>
</div>
<span class="ly"></span>
<span class="ry"></span>
</div>
<div class="flex fs020 ai_center" >开通仅需 <div class="num"><em>¥</em>{$vo.CardFee|number_format=###, 2, '.', ''}元</div></div>
<div class="fs020 flex swipe-black" style="position: absolute;bottom: 0.1rem">
<div class="sw_tb_img_box">
<!--<img class="user-vip " src="__STATIC__/images/user_card/user_vip.png">-->
<div class="img" style="filter:drop-shadow( 0.2rem 0 0px {$vo.CardColor});"></div>
</div>
按去年用户消费计算,开卡后一年预计省¥{$vo.free}
</div>
</div>
</li>
</div>
</volist>
</div>
</div>
</div>
</div>
<if condition="$cardrules">
<!--会员卡说明的标题 vip卡的的说明 判断是不是等级卡,如果是等级卡那么修改margin-top为1.5rem,反之0.5rem-->
<div class="fs035 xc-crad-name-color title-vip t_c" style="margin-top:0.5rem">开通PLUS会员尊享礼遇</div>
<div class="xc-subtitle flex ai_center jc_center">
<img class="subtitle-img" src="__STATIC__/images/user_card/title.png">
<div class="fs024">
PLUS会员可享以下特权
</div>
<img class="subtitle-img" src="__STATIC__/images/user_card/title.png">
</div>
<!----- 会员卡的广告说明 ----->
<div class="fs018 ma-top middle">{$cardrules}</div>
<else/>
<div style="height: 1.5rem"></div>
</if>
<!-- 邀请好友的分享图片的html-->
<div class="invitation-img-div"></div>
<!-- 推荐商品的主标题-->
<div class="flex jc_center ai_center">
<img class="grid-left" src="__STATIC__/images/user_card/grid.png">
<div class="fs024">热门好物</div>
<img class="grid-right" src="__STATIC__/images/user_card/grid.png">
</div>
<!-- 推荐商品的副标题-->
<div class="flex ai_center jc_center goods-subtitle">
<div class="line"></div>
<div class="fs024 goods-subtitle-words t_c">GOOD HOT THING</div>
<div class="line"></div>
</div>
<div class="xc-goods-frame4">
<div class="floor_body2">
<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 class="xc-goods-frame4" 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>
</div>
<!---展示购买购买卡--->
<div class="back_div"></div>
<div class="show_buy_div"></div>
<form action="/Mobile/Payment/getPay" method="post" name="points" id="points" style="display: none;">
<input name="stoid" id="stoid" value="{$Think.request.stoid}" type="hidden">
<input id="recharge_type" name="recharge_type" value="3" type="hidden">
<input type="hidden" value="{$def_code}" id="code1" name="code" />
<input type="hidden" value="{$def_staff1}" id="staff1" name="staff" />
<input type="hidden" value="" id="cardid" name="cardid" />
<input type="hidden" value="" id="fee" name="fee" />
<input type="hidden" value="" id="Newcorrprice" name="newcorrprice" />
<input type="hidden" value="" id="ex_days" name="ex_days" />
<input type="hidden" value="" id="keys" name="keys" />
</form>
<input type="hidden" value="{$iscard}" id="iscard" />
<input type="hidden" value="{$isyaoqingma}" id="isyaoqingma" />
<input type="hidden" value="{$is_salesman}" id="is_salesman" />
<input type="hidden" value="{$is_daogou}" id="is_daogou" />
<input type="hidden" value="{$is_fengxiang}" id="is_fengxiang" />
<script type="text/javascript">
var paymoney=0;
var cardid='';
var page=1;
var click_gradeId=0;
var backClass=null;
$(function (){
// 划动组件
var swiper = new Swiper('.swiper-container', {
slidesPerView: 1.2, /*//容器中显示的数量*/
spaceBetween: 13, /*//容器的间距*/
centeredSlides: true, /*//设定为true时,active slide会居中,而不是默认状态下的居左*/
pagination: {
el: '.swiper-pagination',
},
//当滑动结束
on: {},
});
//---判断会员有没有注册---
var uid=getCookie("user_mobile");
if($.trim(uid)=="" || uid==undefined){
layer.open({
content:"您还不是会员,请先绑定", time: 1
});
setTimeout(function () {
window.location.href='/index.php/Mobile/User/login/stoid/{$Think.request.stoid}?oldurl='+ encodeURI( window.location.href);
},1000);
return false;
}else {
var time = Math.random() * 100;
$.ajax({
url: "/index.php?m=Mobile&c=User&a=check_is_card&stoid=" + $("#stoid").val() + "&t=" + time,
success: function (data) {
if (data.code == 0) {
$("#recharge_type").val(3);
} else {
layer.open({
content: "您已经购买了等级卡",
time: 1
//btn:"确定"
});
setTimeout(function () {
window.location.href = "/index.php/mobile/user/cardinfo/stoid/" + $("#stoid").val();
}, 1000);
}
}
});
getGoodsList();
}
});
//推荐商品列表
function getGoodsList(){
$.ajax({
type: "get",
url: "/index.php?m=Mobile&c=Index&a=ajaxGetMore&p=" + page + "&stoid=<?php echo getMobileStoId()?>",
success: function (data) {
/*console.log("y有什么鬼",data);*/
$('.get_more').hide();
if (data) {
$("#J_ItemList>ul").append(data);
page++;
} else {
$('#getmore').remove();
}
},
error:function(XMLHttpRequest, textStatus, errorThrown){
$("#ferweimap").hide();
}
});
}
//关闭弹窗
function closelayer() {
layer.closeAll();
}
//验证邀请码
function validcode() {
var code=$("#code").val();
var msg="";
if(code=="")
{
layer.open({
content:"邀请码不能为空",
time: 2
//btn:"确定"
})
return false;
}
$.ajax({
type: 'post',
url: "/index.php?m=Mobile&c=User&a=vipcard&getval=1&stoid="+{$Request.param.stoid}+"&code=" + code,
data: {},
dataType: 'json',
success: function(data) {
//data.msg.toString() == "2" && data.MobileTel!=''
if(data.msg==null) data.msg='';
if(data.msg.toString() == "") {
msg="通过验证";
$("#code").attr('readonly','readonly');
$("#okpay").attr('onclick','okpay();');
}
else
{
$("#code").val("");
switch (data.msg.toString()) {
case "1":
msg="邀请码不能为空";
break;
case "2":
case "3":
msg="邀请人不是等级会员";
break;
case "4":
msg="该邀请码推荐人数已达限制";
break;
case "-8":
msg="邀请人不能填自已";
break;
default:
msg=data.msg.toString();
if(msg.indexOf('营业')!=-1){ $("#staff").val(""); }
else{
$("#code").val("");
}
break;
}
}
layer.open({
content:msg,
time: 2
//btn:"确定"
})
}
})
}
//点击购买
function buycard(obj) {
var iscard=$("#iscard").val();
if(iscard==1) {
//如果是导购和分享进来的,不能清理相应的数据
var is_daogou=$("#is_daogou").val();
var is_fengxiang=$("#is_fengxiang").val();
if(is_daogou!="1" && is_fengxiang!="1") {
$("#code1").val('');
$("#staff1").val('');
}
$("#Newcorrprice").val('');
$("#ex_days").val('');
$("#keys").val('');
paymoney = $(obj).attr('data-fee');
cardid = $(obj).attr('data-id');
$("#Newcorrprice").val($(obj).attr('data-newcorrprice'));
$("#ex_days").val($(obj).attr('data-days'));
$("#keys").val($(obj).attr('data-keys'));
var t = layer.open({shadeClose: false, type: 2, content: '提交中'});
//先判断等级卡数量
$.ajax({
type: 'post',
url: "/index.php?m=Mobile&c=User&a=is_djk&stoid={$Think.request.stoid}" ,
dataType: 'json',
success: function (data) {
// layer.close(index);
layer.close(t);
if (data.code == 1) {
var is_daogou=$("#is_daogou").val();
var is_fengxiang=$("#is_fengxiang").val();
//是导购进来买 或者 分享进来购买
if(is_daogou || is_fengxiang){
$("#cardid").val(cardid);
$("#fee").val(paymoney);
buy_now();
}else{
var str="";
var isyaoqingma=$("#isyaoqingma").val();
var is_salesman=$("#is_salesman").val();
// <a class="yzmyz" href="javascript:void(0);" onclick="validcode();">验证邀请码</a>
//邀请码或者营业员有勾的情况下
if(isyaoqingma=="1" || is_salesman=="1"){
str= ' <div class="rel ba-imgs" style="background: url(\'__STATIC__/images/user_card/show_buy_div_img.png\') no-repeat;background-size:100% 100%;"> ' +
' <img class="titimg" src="__STATIC__/images/user_card/title-images.png" alt=""> </div> ' +
' <div class="yqmbox"> <p class="fs028" style="color: #444;">请完善下面信息</p> ';
//要求要有邀请码
if(isyaoqingma=="1" ) {
str+= '<div class="flex invitation_card_frame gliding_line"><img class="invitation_card" src="__STATIC__/images/user_card/invitation_card.png"> ' +
' <input class="maleft" id="code" type="tel" placeholder="输入邀请码(推荐人手机号码)" maxlength="12"style="height: 0.3rem; width: 88%"></div> ';
}
if(is_salesman=="1" ) {
str+= '<div class="flex invitation_card_frame gliding_line fs018"><img class="invitation_card" src="__STATIC__/images/user_card/sales_clerk.png" style="margin-bottom: 0.02rem">' +
'<input class="maleft word_name" id="staff"placeholder="输入营业员"> </div>';
}
str+= '<br><div class="flex jc_center" style="width: 100%"> ' +
'<a class="yzmyz yzmyz1 sales_clerk_img " style="background: url(\'__STATIC__/images/user_card/queinding.png\') no-repeat;background-size:100% 100%;" href="javascript:void(0);" id="okpay" onclick="okpay()">确认购买</a> ' +
'</div></div><div class="close_layui-frame flex jc_center">\n' +
'<img class="close_layui"src="__STATIC__/images/user_card/close_layui.png" onclick="close_layui()">\n' +
'</div></div>';
}
if(str!="") {
$(".back_div").show();
$(".show_buy_div").show();
$(".show_buy_div").html(str);
}else{
$("#cardid").val(cardid);
$("#fee").val(paymoney);
//什么都没勾的情况下
buy_now();
}
}
} else {
layer.open({
content:data.msg,
time: 1
//btn:"确定"
})
return false;
}
}
});
}else{
layer.open({
content:'请联系商家升级等级卡功能',
time: 1
//btn:"确定"
})
return false;
}
}
//确认购买
function okpay() {
var code=$("#code").val();
var staff=$("#staff").val();
var getmobile="{$userinfo['mobile']}";
var isyaoqingma=$("#isyaoqingma").val();
var is_salesman=$("#is_salesman").val();
var regMobile=/^1[34578]\d{9}$/;
if(code=="" && isyaoqingma=="1")
{
if (!regMobile.test(code)){
layer.open({ content:'请输入有效手机号码', time: 2 });
return false;
}
layer.open({ content:'请输入有效邀请码', time: 2 })
return false;
}
if(code!="" && isyaoqingma=="0" && code==getmobile) {
layer.open({ content:'邀请人不能自己!', time: 2 })
$("#code").val("");
return false;
}
if(staff=="" && is_salesman=="1")
{
layer.open({ content:'请输入营业员', time: 2 })
return false;
}
if(cardid=="")
{
layer.open({ content:'请先选择要购买等级卡', time: 2 })
return false;
}
//--校验邀请码和营业员--
var url="/index.php?m=Mobile&c=User&a=checkvipcard&stoid={$Think.request.stoid}";
if(code!="" && code!=undefined){ url+="&mobile=" + code; }
if(staff!="" && staff!=undefined){ url+="&staffno=" + staff; }
var gosumbit=0;
if(is_salesman=="1" || isyaoqingma== "1") {
$.ajax({
type: 'post',
url: url,
dataType: 'json',
success: function (data) {
if(data.msg==null) data.msg='';
if(data.msg.toString() == "") {
gosumbit=1;
msg="通过验证";
$("#code").attr('readonly','readonly');
$("#okpay").attr('onclick','okpay();');
$("#code1").val(code);
$("#staff1").val(staff);
$("#cardid").val(cardid);
$("#fee").val(paymoney);
$("#points").submit();
}
else
{
switch (data.msg.toString()) {
case "1":
msg="邀请码不能为空";$("#code").val("");
break;
case "2":
msg="邀请人不是等级会员";$("#code").val("");
break;
case "4":
msg="该邀请码推荐人数已达限制";$("#code").val("");
break;
case "-8":
msg="邀请人不能填自已";$("#code").val("");
break;
default:
msg=data.msg.toString();
if(msg.indexOf('营业')!=-1){ $("#staff").val(""); }
else{
$("#code").val("");
}
break;
}
layer.open({
content:msg,
time: 2
})
return false;
}
}
});
}
else {
$("#code1").val(code);
$("#staff1").val(staff);
$("#cardid").val(cardid);
$("#fee").val(paymoney);
$("#points").submit();
}
}
//关闭填写信息的弹窗
function close_layui() {
$(".show_buy_div").hide();
$(".back_div").hide();
}
//---滑动到底部事件---
$(document).unbind("scroll");
$(document).bind("scroll", function (event) {
if ($(document).scrollTop() >= $(document).height() - $(window).height()) {
if($("#getmore:visible").length>0){
getGoodsList();
}
}
});
function buy_now() {
$("#points").submit();
}
</script>
</div>
</body>
</html>