lbshow.html
7.86 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
<!DOCTYPE html>
<script type="text/javascript" src="__PUBLIC__/js/rem_new.js"></script>
<html lang="en">
<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"/>
<link rel="stylesheet" type="text/css" href="__STATIC__/css/layer.css" />
<!--<link rel="stylesheet" type="text/css" href="__STATIC__/css/category_list.css"/>-->
<link rel="stylesheet" type="text/css" href="__STATIC__/css/index.css"/>
<link rel="stylesheet" type="text/css" href="__STATIC__/css/libao.css"/>
<link rel="stylesheet" type="text/css" href="__STATIC__/css/appscript.css"/>
<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"></script>
<script src="__PUBLIC__/js/mobile_common.js"></script>
<script type="text/javascript" src="__STATIC__/js/layer.js"></script>
<style type="text/css">
body{background-color: #f1f1f1;}
.headimg img{ width: 100%;}
.lbqone{margin-top: -.7rem;padding: 0 .2rem;}
.lbqtwo{background-color: #fff;width: 100%;margin: 0 auto;height: 1rem;}
.lbqtwo1{min-height: 2.5rem;
background-color: #fff;
width: 100%;
margin: 0 auto;
margin-bottom: 0px;
height: auto;
padding: .3rem;
box-sizing: border-box;
float: left;}
dl{ width: 100%;
box-sizing: border-box;
background-color: #fff;
float: left;}
dl dt,dl dd{
float: left;}
dl dt{border-bottom: 10px solid #f6f5f6;width: 100%;padding: .1rem;box-sizing: border-box;}
dl dt span{ display: inline-block; width: 100%;}
dl dd{width: 2.7rem;height: 1rem;background-size: 100% 100%;margin: 0 .1rem;margin-top: .2rem; color: #fff;font-size: .22rem; text-align: center;}
dl dd.bgimg1{background-image: url(__STATIC__/images/libao/yhq_1.png);}
dl dd.bgimg0{background-image: url(__STATIC__/images/libao/yhq_2.png); }
dl dd .use1{height: .8rem;width: 1.6rem;line-height: .9rem;display: block;float: left;}
dl dd .use2{width: 1.1rem;height: .8rem;display: block;float: right;line-height: .9rem;}
dl dd .use3{float: left;width: 100%;height: .2rem;display: block;font-size: .12rem;line-height: .2rem;}
.ling{display: inline-block;text-align: center;width: 100%;padding: .05rem;background-color: #c0283a;margin: .2rem auto;box-sizing: border-box;border-radius: .1rem;}
</style>
</head>
<body>
<include file="public/navBall" />
<div class="headimg"><img src="__STATIC__/images/libao/yhq_banner.jpg"></div>
<div class="cr tar f24 lbqone dn" style="">兑换结束时间:{$list.endtime|date='Y/m/d H:i:s',###}</div>
<div class="lbqtwo">
<dl>
<dt><span class="f36">{$list.lbtitle}</span><span class="cr"><if condition="$list['lbprice'] neq 0.00">{$list['lbprice']}元<if condition="$list.lbintegral neq 0">/</if></if><if condition="$list.lbintegral neq 0">{$list.lbintegral}积分</if></span></dt>
</dl>
</div>
<div class="lbqtwo1">
<dl>
<volist name="list1" id="vo" key="k">
<for star="1" end="$vo.goods_num" name="i">
<dd class="bgimg{$k%2}">
<div class="use1">满{:number_format($vo.condition,2)}使用</div>
<div class="use2 tal"><if condition="$vo.type eq 6"><span class="f36">包邮</span><else/>¥<span class="f30">{:number_format($vo.money,2)}</span></if></div>
<div style="" class="f18 use3">截至日期:
<if condition="empty($vo.endtype)">
<if condition="$vo[use_end_time] gt 0">
{$vo.use_end_time|date='Y-m-d 00:00:00',###}
<else/>
不限
</if>
<else/>
<if condition="$vo[days] gt 0">
有效期{$vo[days]}天
<else/>
不限
</if>
</if>
</div>
<div class="clear"></div>
</dd>
</for>
</volist>
<div class="clear"></div>
</dl>
<if condition="$isget eq 1">
<div class="cf f24 ling" style="background-color: #999;">已领取</div>
<else/>
<div class="cf f24 ling" onclick="getquan(this);">一键领取优惠券→</div>
</if>
<!--<div class="cf f24 ling" style="background-color: #999;">已领取</div>-->
</div>
<!--<div class="p20 disfx dn" style="position: fixed;bottom: 0;width: 100%;">-->
<!--<!–未购买详情–>-->
<!--<span class="btn_big fxall mr20 moz_b8 moz_t8 bge" onclick="javascript:window.location.href='/Mobile/User/coupon/stoid/{$Think.request.stoid}'"> 查看优惠券</span>-->
<!--</div>-->
</body>
</html>
<script type="text/javascript">
//积分兑换
function getquan(obj) {
var text=$(obj).text();
if(text=="已领取") return false;
var lbid={$mid};
layer.open({
content:'是否确定领取优惠券',
btn:['确定','取消'],
yes:function (index) {
layer.closeAll();
var ii=layer.open({type: 2,shadeClose: false});
$.ajax({
type: "POST",
url: "{:U('Mobile/Libao/getlibaoquan',array('stoid'=>$Think.request.stoid))}", //+tab,
data: "lvd="+lbid, // 你的formid
dataType: "json",
success: function (data) {
layer.close(ii);
console.log(data.code);
if (data.code == 1) {
$(".ling").css('background-color','#999');
$('.ling').html('已领取');
$('.line').attr('onclick','');
layer.open({
content: "领取成功",
time: 2
});
} else {
layer.open({
content: data.msg,
time: 2
});
// setTimeout(function () {
// //location.href = "/Mobile/Cart/cart4/orderno/" + data.result + "/stoid/" + getstoid;
// location.href = '/Mobile/Payment/getCode.html?orderno=' + data.result + '&stoid=' + getstoid;
// }, 1000)
}
},
error:function () {
layer.close(ii);
}
});
},
// no:function (index) {
// console.log('取消');
// }
})
}
</script>
<!-- 微信浏览器 调用微信 分享js-->
<include file="public/wx_share"/>