payment_success.html
10 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
<script type="text/javascript" src="__PUBLIC__/js/rem_new.js"></script>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
<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="initial-scale=1.0, maximum-scale=1.0, user-scalable=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"/>
<meta name="description" content="{$tpshop_config['shop_info_store_desc']}" />
<link rel="stylesheet" type="text/css" href="__STATIC__/css/public.css" />
<link rel="stylesheet" type="text/css" href="__STATIC__/css/index.css" />
<link rel="stylesheet" type="text/css" href="__STATIC__/css/payment_success.css" />
<script type="text/javascript" src="__STATIC__/js/jquery.js"></script>
<script type="text/javascript" src="__PUBLIC__/js/global.js"></script>
<style>
.add-class{
margin-top: 0.3rem;
}
.tsetd{
margin-left: 0.15rem;
width: 70%;
height: 0.6rem;
line-height: 0.31rem;
}
</style>
</head>
<body>
<include file="public/navBall" />
<div class="pay_success">
<img src="__STATIC__/images/home_page/paysuccess.png" style="width: 75px;height: 75px;" />
<p class="txt">订单支付成功!</p>
<!--<p>关注公众号:有礼派</p>-->
<!--<p>及时跟进订单信息哟!</p>-->
<div class="order-frame">
<div class="details">
<div class="fs026 fc5 ma-ba">
<div class="flex"><text class="on-hh">订单编号:</text><div class="order-val" >
<if condition="$order['order_sn']">
{$order['order_sn']}
<else/>
{$order_parent[0]['parent_sn']}
</if>
</div></div>
</div>
<div class="fs026 fc5 ma-ba">
<div class="flex"><text class="on-hh">实付金额:</text><div class="order-val fr" >{$total_price}
<if condition="$order['integral'] gt 0">
+{$order['integral']}积分
</if>
</div></div>
</div>
<div class="fs026 fc5 ma-ba">
<div class="flex"><text class="on-hh">支付方式:</text><div class="order-val" >
<!--判断是不是单个商品-->
<if condition="$order">
<if condition="$order['order_amount'] gt 0 AND $order['user_money'] gt 0 AND $order['integral'] heq 0">
微信支付,余额支付
<elseif condition="$order['order_amount'] gt 0 AND $order['user_money'] gt 0 AND $order['integral'] gt 0"/>
微信支付,余额支付,积分购
<elseif condition="$order['order_amount'] gt 0 AND $order['integral'] heq 0" />
微信支付
<elseif condition="$order['order_amount'] gt 0 AND $order['integral'] gt 0" />
微信支付,积分换购
<elseif condition="$order['user_money'] gt 0 AND $order['integral'] gt 0" />
余额支付,积分换购
<elseif condition="$order['user_money'] gt 0 AND $order['integral'] heq 0" />
余额支付
<else/>
免单
</if>
<else/>
<!--多个商品的时候-->
<if condition="$order_parent[0]['order_amount'] gt 0 AND $order_parent[0]['user_money'] gt 0 AND $order['integral'] heq 0">
微信支付,余额支付
<elseif condition="$order_parent[0]['order_amount'] gt 0 AND $order_parent[0]['user_money'] gt 0 AND $order['integral'] gt 0"/>
微信支付,,余额支付,积分换购
<elseif condition="$order_parent[0]['order_amount'] gt 0 AND $order['integral'] heq 0" />
微信支付
<elseif condition="$order_parent[0]['order_amount'] gt 0 AND $order['integral'] gt 0" />
微信支付,积分换购
<elseif condition="$order_parent[0]['user_money'] gt 0 AND $order['integral'] gt 0" />
余额支付,积分换购
<elseif condition="$order_parent[0]['user_money'] gt 0" />
余额支付
<else/>
免单
</if>
</if>
</div>
</div>
</div>
</div>
</div>
<if condition="$order">
<!--单个商品的订单-->
<div class="order-information">
<!--单个订单的门店的-->
<div class="single-order-frame">
<div class="fs026 fc5">
<if condition="$order['exp_type'] eq 1">
<div class="fs026 fc5 ma-ba" >
<div class="flex" style="height: 0.5rem">
<div class="on-hh flex jc_sb" style="width: 1.15rem;margin-right: 0.1rem;">
<text>门</text><text>店:</text>
</div>
<div class="order-val" >{$pick_up['pickup_name']}</div>
</div>
</div>
<div class="fs026 fc5 ma-ba add-class" style="width: 100%;margin: auto;">
<div class="flex"><text class="on-hh ">门店地址:</text><div class="tsetd ellipsis-2" >{$pick_up['fulladdress']}</div></div>
</div>
<else/>
<div class="fs026 fc5 ma-ba" >
<div class="flex"><text class="on-hh" style="margin-right: 0.3rem;">收货人:</text><div class="order-val" >{$order['consignee']} {$order['mobile']}</div></div>
</div>
<div class="fs026 fc5 ma-ba add-class" style="width: 100%;margin: auto;">
<div class="flex"><text class="on-hh">收货地址:</text><div class="order-val address ellipsis-2" >{$order['more_address']}{$order['address']}</div></div>
</div>
</if>
</div>
</div>
</div>
<elseif condition="$order_parent"/>
<foreach name="$order_parent" item="list">
<div class="fs026 fc5 ma-ba top-line" >
<div class="flex"><text class="on-hh" style="margin-right: 0.2rem;">订单编号: </text><div class="order-val" >{$list['order_sn']}</div></div>
</div>
<!--<div>订单编号:{$list['order_sn']}</div>-->
<if condition="$list['pick_arr'] && $list['exp_type'] eq 1 ">
<div class="fs026 fc5 ma-ba" >
<div class="flex" style="height: 0.5rem">
<div class="on-hh flex jc_sb" style="width: 1.2rem;margin-right: 0.1rem;">
<text>门</text><text>店:</text>
</div>
<div class="order-val" >{$list['pick_arr']['pickup_name']}</div>
</div>
</div>
<div class="fs026 fc5 ma-ba add-class" style="width: 100%;margin: auto;">
<div class="flex"><text class="on-hh ">门店地址:</text><div class="tsetd ellipsis-2" >{$list['pick_arr']['fulladdress']}</div></div>
</div>
<else/>
<div class="fs026 fc5 ma-ba" >
<div class="flex"><text class="on-hh" style="margin-right: 0.3rem;">收货人:</text><div class="order-val" >{$list['consignee']} {$list['mobile']}</div></div>
</div>
<div class="fs026 fc5 ma-ba add-class" style="width: 100%;margin: auto;">
<div class="flex"><text class="on-hh">收货地址:</text><div class="order-val address ellipsis-2" >{$list['more_address']}{$list['address']}</div></div>
</div>
</if>
</foreach>
<!--多个订单的显示-->
</if>
<div class="btn btnPink" style="margin-top: 0.5rem" onclick="goOrderList()">查看订单</div>
<div class="btn btnRed" onclick="goIndex()">回到首页</div>
</div>
<!--<div class="showpage">
<div class="floor_body2">
<h2>———— 猜你喜欢 ————</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>-->
<script type="text/javascript">
var stoid="<?php echo I('stoid');?>";
$(function() {
//$('#J_ItemList').more({'address': url});
/* 商品列表 getGoodsList();*/
});
/*商品列表 var page = 1;
function getGoodsList() {
$('.get_more').show();
$.ajax({
type: "get",
url: "/index.php?m=Mobile&c=Index&a=ajaxGetMore&p=" + page + "&stoid="+stoid,
success: function(data) {
if(data) {
$("#J_ItemList>ul").append(data);
page++;
$('.get_more').hide();
} else {
$('.get_more').hide();
$('#getmore').remove();
}
}
});
}*/
</script>
</div>
</body>
<script type="text/javascript">
var type='{$type}';
if(type=="1")
{
$(".pay_success").html("<img src='__STATIC__/images/evaluate/evaok.png' style='width: 60px;height: 60px;' /> <p class='txt'></p> <p>积分兑换成功,点击我的礼包查看!</p> <div class='btn btnRed' onclick='gotourl(1)'>返回首页</div> <div class='btn btnPink' onclick='gotourl(2)'>查看礼包</div>");
}
if(type=="2")
{
$(".pay_success").html("<img src='__STATIC__/images/evaluate/evaok.png' style='width: 60px;height: 60px;' /> <p class='txt'></p> <p>支付成功,点击我的礼包查看!</p> <div class='btn btnRed' onclick='gotourl(1)'>返回首页</div> <div class='btn btnPink' onclick='gotourl(2)'>查看礼包</div>");
}
//获取首页
function goIndex() {
window.location.href='/index.php/Mobile/index/index/stoid/'+stoid;
}
//获取订单列表
function goOrderList(){
window.location.href='/index.php/Mobile/User/order_list/stoid/'+stoid;
}
//跳转url
function gotourl(t) {
switch (t)
{
case 1:window.location.href='/index.php/Mobile/index/index/stoid/'+stoid;
break;
case 2:window.location.href='/index.php/Mobile/Libao/mylibao/stoid/'+stoid;
break;
}
}
</script>
</html>