cardinfo.html
25.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
<script type="text/javascript" src="__PUBLIC__/js/rem_new.js"></script>
<!DOCTYPE html>
<html lang="en">
<head>
</head>
<meta charset="UTF-8">
<title>我的plus会员</title>
<include file="public/header"/>
<link rel="stylesheet" type="text/css" href="__STATIC__/css/user_new_vipcard.css?v=__CSSVERSION__"/>
<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>
<style>
.li1 {
background: url('__STATIC__/images/user_card/plusi_green.jpg') no-repeat;background-size:100% ;height: 100%;width: 100%;
padding: 0.1rem 0.1rem;
}
.li2 {
background: url('__STATIC__/images/user_card/plusi_red.jpg') no-repeat;background-size:100%;;height: 100%;width: 100%;
padding: 0.1rem 0.1rem;
}
.li3 {
background: url('__STATIC__/images/user_card/plusi_blacks.jpg') 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;
background-color: #ecba95;
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: 24%;
top: -28%;
}
/*.yqmbox p {*/
/*font-size: 18px;*/
/*margin-bottom: 15px;*/
/*}*/
.yqmbox input, .yqmbox input:hover {
border: 0;
width: 2rem;
font-size: 0.18rem;
margin-bottom: 0.01rem;
color: #d4d4d4;
height: 0.25rem;
}
.yqmbox .yzmyz {
display: inline-block;
border-radius: 0.24rem;
/* background-color: #c3172d;*/
/*-moz-box-shadow: 3px 3px 5px #e7a1aa;*/
/*-webkit-box-shadow: 3px 3px 5px #e7a1aa;*/
/*box-shadow: 3px 3px 5px #e7a1aa;*/
color: #fff;
padding: 0.07rem 0.1rem;
width: 1.6rem;
margin-top: 0.3rem;
font-size: 0.18rem;
}
.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: 444;
}
.back_div{ position:fixed; width: 100%; height: 100%; background: rgba(0,0,0,0.5);top: 0; left: 0;display: none;}
.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({:get_dj_icon()}) no-repeat center ;
background-size:100% 100%; border-right:0.2rem solid transparent; left:-0.2rem;
}
.floor_body2 ul li{
width: 47%;
}
</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%;<if condition='1 gt 0'>padding-top:0.2rem</if>">
<!-- 判断有没有购买等级卡 有购买等级卡进来-->
<div class="confirm_card rel"
style="background: url({$curr_card_img|default= '__STATIC__/images/user_card/plusi_blacks.jpg'}) no-repeat;background-size:100% 100%;
color: {$f_color}">
<div class="flex jc_sb card_name_frame ai_center">
<div class=" fs050">{:cut_word($cardinfo['MemCardName'],5)}</div>
<div class="immediate_renewal flex ai_center"data-expire="{$cardinfo['newexpiredate']}"
data-fee="{$cardinfo['cardfee']|number_format=###, 2, '.', ''}"
style="background-color: {$f_color}"
onclick="xufei(this)">立即续费</div>
</div>
<if condition="!$is_guo_qi">
<div class=" due-time fs020">
会员将在{$cardinfo['ExpiryDate']|substr=0,10}到期
</div>
<div class="flex jc_sb xc-confirm-dibu abs">
<div class="flex fs020 ai_fe ">
<div class="sw_tb_img_box">
<div class="img" style="filter:drop-shadow( 0.2rem 0 0px {$f_color});"></div>
</div>
正在享受{$cardinfo['MemCardName']}特权
</div>
<div class="invitation_friend flex ai_fe fs020"onclick="invite_friends(event)" style="border-bottom: 0.01rem solid {$f_color}">
邀请新朋友
</div>
</div>
<else/>
<div class=" due-time fs020">
会员已在{$cardinfo['ExpiryDate']|substr=0,10}到期
</div>
<div class="flex jc_sb xc-confirm-dibu abs">
<div class="flex fs020 ai_fe ">
<div class="sw_tb_img_box">
<div class="img" style="filter:drop-shadow( 0.2rem 0 0px {$f_color});"></div>
</div>
享受更低价格,请续费哦
</div>
</div>
</if>
</div>
<div class="invitation_detailed_frame flex ai_center">
<div class="frame flex jc_sb ai_center">
<div class="fs024">
已邀请<text class="colcr">{$cardinfo['RefereeNumber']|default="0"}</text>可提现<text class="colcr">{$cardinfo['BlanMoney']|default="0.00"}元</text>
</div>
<div class=" flex ai_center jc_center">
<a href="{:U('User/change_detailed',array('stoid'=>$Think.request.stoid))}">
<div class="fs024 detailed-color" onclick="small_change_detailed()">
明细
</div>
</a>
<div class="extract fs024 jc_center flex ai_center" onclick="showtrans();">
转入余额
</div>
</div>
</div>
</div>
</div>
<!-- PLUS卡标题 -->
<if condition="$cardrules">
<!--会员卡说明的标题 vip卡的的说明 判断是不是等级卡,如果是等级卡那么修改margin-top为1.5rem,反之0.5rem-->
<div class="fs035 xc-crad-name-color title-vip t_c" style="margin-top:1.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="invitation-img-frame">
<div id="invitation" class="invitation_content_img t_c"
style="background:url({:get_bg()}) no-repeat;background-size:100% 100%; margin-top:30px">
<div class="top-user-frame">
<div class="flex ai_center frame">
<img class="b_circle" src="{$share_head_pic}">
<div class="fs020 user-name ellipsis-1 ">{$user.nickname}</div>
<div class="recommend flex ai_center jc_center fs015 fc">强烈推荐</div>
</div>
</div>
<div class="confirm_cards" style="background: url({:mb_img_curl_url($max_card.CardImg,2)['data']}) no-repeat;background-size:100% 100%;
color:{$max_card.CardColor} ">
<div class="flex jc_sb card_name_frame ai_center">
<div class=" fs025 word-letter">{:cut_word($max_card.CardName,5)}</div>
<div class="immediate_renewal_new flex ai_center fs012" style="background-color:{$max_card.CardColor}">立即开通</div>
</div>
<div class="due-time fs012">
开通会员年卡仅{$max_card.CardFee}元
</div>
<div class="flex jc_sb xc-confirm-dibus">
<div class="flex fs012 ai_fe ">
<!--<img class="user-vip-new" src="__STATIC__/images/user_card/privilege_o.png">-->
<!--<div class="sw_tb_img_box">-->
<!--<div class="img" style="filter:drop-shadow( 0.2rem 0 0px {$max_card.CardColor});"></div>-->
<!--</div>-->
按去年用户消费计算,开卡后一年预计省¥3031
</div>
</div>
</div>
<div>
<div class="division_frame rel">
<div class="abs diamond-frame flex ai_center">
<div class="diamond">
</div>
</div>
</div>
<div class="equity-frame flex ai_center jc_sb">
<div class="flex ai_center jc_sb">
<div class="diamond-new"></div>
<div class="li-height">
<div class="fs025 share-img-color">超级VIP权益</div>
<div class="fs018 share-img-color-vice">超级会员专属权益</div>
</div>
</div>
<img class="img-share" src="{:get_dj_hg()}">
</div>
<div class="equity-frame flex ai_center jc_sb">
<div class="flex ai_center jc_sb">
<div class="diamond-new"></div>
<div class="li-height">
<div class="fs025 share-img-color t_l">超级VIP标识</div>
<div class="fs018 share-img-color-vice">彰显尊贵身份的象征</div>
</div>
</div>
<img class="img-shares" src="{:get_dj_dun()}">
</div>
<div class="equity-frame flex ai_center jc_sb">
<div class="flex ai_center jc_sb">
<div class="diamond-new"></div>
<div class="li-height">
<div class="fs025 share-img-color t_l">超级VIP价格</div>
<div class="fs018 share-img-color-vice">享受专属会员低价格</div>
</div>
</div>
<img class="img-shares" src="{:get_dj_yuan()}">
</div>
<div class="qr-code-frame flex ai_center jc_sb">
<img class="code-qr" src="{$shareurlimg}">
<div class="code-qr-etailed fs018">
<div>解锁新权益 精彩享不停</div>
<div> 长按识别二维码,立即开通!</div>
</div>
</div>
</div>
</div>
<div class="invitation-close-frame">
<img class="invitation-close "src="__STATIC__/images/user_card/close_layui.png" onclick="close_invitation()">
</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>
<if condition="$cardinfo">
<form action="/Mobile/Payment/getPay" method="post" name="points" id="points" style="display: none;">
<input name="stoid" value="{$Think.request.stoid}" type="hidden">
<input name="recharge_type" value="4" type="hidden">
<input type="hidden" value="{$cardinfo['CorrPrice']}" name="newcorrprice" />
<input type="hidden" value="{$cardinfo['GradeCardID']}" name="cardid" />
<input type="hidden" value="{$cardinfo['cardfee']|number_format=###, 2, '.', ''}" name="fee" />
<input type="hidden" value="{$cardinfo['keys']}" name="keys" />
</form>
</if>
<!--是否转换余额弹窗-->
<div class="transmoney dn">
<div class="laymshade"></div>
<div class="layermmain">
<div class="section">
<div class="layermchild layermanim " style="width:4.6rem;">
<div class="layermcont" style="padding: 0;">
<div class="rule" style="font-size: 16px;">
<div class="ruleClose" onclick="javascript:$('.transmoney').hide();"></div>
<dl style="/*! height: 10rem; */font-family: 微软雅黑; margin-bottom: 10px"><dt style="padding: 45px 10px;color: #666666;">确定把所有奖励金转入余额</dt>
<dd style="display: flex; justify-content: center">
<span style="padding: 0.02rem 0.1rem;width: 1.8rem;background-color:#f65f73
;margin-right: 0.2rem;color: #fff;border-radius: 5px;display: inline-block;font-size: 14px;" onclick="" id="yes">是的</span>
<span style="padding: 0.02rem 0.1rem;width: 1.8rem;background-color: #eeeeee;border-radius: 5px;display: inline-block;font-size: 14px;color: #aaa;" onclick="javascript:$('.transmoney').hide();">再看看</span></dd>
</dl>
</div>
</div>
</div>
</div>
</div>
</div>
<input type="hidden" value="{$iscard}" id="iscard" />
<input type="hidden" value="{$isyaoqingma}" id="isyaoqingma" />
<script type="text/javascript">
var paymoney=0;
var cardid='';
var page=1;
var click_gradeId=0;
var backClass=null;
$(function () {
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":
msg="邀请人不是等级会员";
break;
case "4":
msg="该邀请码推荐人数已达限制";
break;
case "-8":
msg="邀请人不能填自已";
break;
default:
msg="请输入正确邀请码";
break;
}
}
layer.open({
content:msg,
time: 2
//btn:"确定"
})
}
})
}
//关闭填写信息的弹窗
function close_layui() {
$(".show_buy_div").hide();
$(".back_div").hide();
}
//点击邀请好友的图片
function invite_friends(e){
$(".invitation-img-div").show();
$(".invitation-img-frame").show();
var w2=$(".invitation-img-frame").width();
$(".invitation-img-frame").fadeIn(3);
//return false;
e.stopPropagation();
if (!$("#invitation").hasClass('hasqr')) {
var ui= layer.open({type:2,shadeClose: false});
setTimeout(function () {
//var canvas = document.querySelector("canvas");
html2canvas(document.getElementById("invitation"),{y:30,scrollY:0,backgroundColor: 'transparent'}).then(function (canvas) {
document.getElementById("invitation").appendChild(canvas);
// $("canvas").hide();
$("#invitation").html('').addClass('hasqr');
document.getElementById("invitation").appendChild(convertCanvasToImage(canvas));
$(".invitation-img-frame").find("img").width(w2);
layer.close(ui);
});
},100);
}
}
function convertCanvasToImage(canvas) {
var image = new Image();image.src = canvas.toDataURL("image/png");
$(".invitation_content_img").addClass("imgs");
return image;
}
//关闭邀请好友弹窗
function close_invitation(){
$(".invitation-img-div").hide();
$(".invitation-img-frame").hide();
}
//跳转到提现零钱的列表中
function small_change_detailed() {
}
</script>
<script type="text/javascript">
function showtrans() {
if("{$cardinfo['BlanMoney']|default='0'}"=="0")
{
layer.open({
content: '当前无奖励金'
,time: 2 //2秒后自动关闭
})
}
else{
$("#yes").attr("onclick","transmoney();");
$('.transmoney').show();
}
}
function transmoney() {
$("#yes").attr("onclick","");
$.ajax({
type: 'post',
url: "/index.php?m=Mobile&c=User&a=cardinfo&stoid="+{$Request.param.stoid}+"&ist=1&money={$cardinfo['BlanMoney']|default='0.00'}" ,
data: {},
dataType: 'json',
success: function(data) {
if(data.code == 1) {
$('.transmoney').hide();
layer.open({
content: data.msg
,time: 2 //2秒后自动关闭
});
window.setTimeout(function () {
window.location.href='{:U('Mobile/User/cardinfo',array('stoid'=>$Think.request.stoid))}';
},2000);
}
}
})
}
//立即续费
function xufei(obj) {
var ui= layer.open({type:2,shadeClose: false});
//先判断等级卡数量
$.ajax({
type: 'post',
url: "/index.php?m=Mobile&c=User&a=is_djk&stoid={$Think.request.stoid}&is_xuqi=1" ,
dataType: 'json',
success: function (data) {
// layer.close(index);
layer.close(ui);
if (data.code == 1) {
var nday = $(obj).attr('data-expire');
var tsum = $(obj).attr('data-fee');
layer.open({
content: '<p style="width: 300px; height: 40px">需支付<span style=\"color:red;font-size:18px;\">¥' + tsum + '</span></p><p style="height: 40px">有效期至:' + nday + '</p>',
btn: ['确定支付', '取 消'],
yes: function (index) {
$("#points").submit();
}
});
}else{
layer.open({
content:'请联系商家升级等级卡功能',
time: 1
//btn:"确定"
})
return false;
}
}
});
}
</script>
</div>
</body>
</html>