order_detail.html
19.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
<!DOCTYPE html >
<html>
<head>
<meta charset="UTF-8">
<title>订单详情</title>
<include file="public/header"/>
<style>
.order_list .pic{ text-align: left; margin:0 10px}
.jiage div{ text-align: left;margin:0 10px;}
.jiage div .price{float: right; font-size: 16px;}
.jiage div .price.p1{color:#A7A39E;font-size: 13px;}
</style>
<body>
<!--<header>
<div class="tab_nav">
<div class="header">
<div class="h-left"><a class="sb-back" href="javascript:history.back()" title="返回"></a></div>
<div class="h-mid">订单详情</div>
<div class="h-right">
<aside class="top_bar">
<div onClick="show_menu();$('#close_btn').addClass('hid');" id="show_more"><a href="javascript:;"></a> </div>
</aside>
</div>
</div>
</div>
</header>-->
<include file="public/menu"/>
<include file="public/navBall"/>
<div id="tbh5v0">
<div class="order">
<div class="detail_top">
<div class="lan">
<dl>
<dt class="dingdan_1"></dt>
<dd>
<neq name=":getOrdState($order_info)" value="退款中">
<!--<span>订单状态:{:getOrdState($order_info)}</span><br>-->
<span>订单状态:{$order_info['order_status_desc']}</span><br>
</neq>
<span class="dingdanhao">订单号 : {$order_info.order_sn}</span><br>
<span>配送费用 :¥{$order_info.shipping_price}</span>
</dd>
</dl>
</div>
<dl style="border-bottom:1px solid #eeeeee">
<!--<dt style=" position:absolute;" class="dingdan_2"></dt>-->
<dd style="">
<!--<span class="zhif">支付方式 : {$order_info.pay_name}</span>-->
<span class="zhif">应付金额 : ¥{$order_info.order_amount}</span>
<!--支付按钮 删除 20170317 -->
<!--<if condition="$order_info.pay_btn eq 1">
<a href="{:U('Mobile/Cart/cart4',array('order_id'=>$order_info['order_id']))}" class="zhifu" style=" color:#fff; font-size:16px;">去支付</a>
</if> -->
<!--支付按钮 删除 end -->
</dd>
</dl>
<dl>
<eq name="$order_info.exp_type" value="0">
<dd>
<dt class="dingdan_3"></dt>
<span>收货人 : {$order_info.consignee}<em> 手机:{$order_info.mobile}</em></span>
<div class="adss">收货地址 : {$region_list[$order_info['province']]['name']},{$region_list[$order_info['city']]['name']},{$region_list[$order_info['district']]['name']},{$order_info.address}</div>
</dd>
<else/>
<dd><span>收货人:{$order_info.consignee} 手机:<em>{$order_info.mobile}</em></span>
<ul class="shop">
<li>
<img src="__STATIC__/images/dianpu.png" style="width: 30px;height: 30px;" />门店信息
</li>
<li>
<span>门店名称</span><div class="shopTxt">{$pname}</div>
</li>
<li>
<span>门店地址</span><div class="shopTxt">{$paddr}</div>
</li>
</ul>
</dd>
</eq>
</dl>
<if condition="$order_info[shipping_time] gt 0">
<dl style="border-top:1px solid #eeeeee; margin-top:10px; padding-bottom:0px;"><!--height:70px;-->
<!--快递信息 删除 20170318-->
<!--<dt class="dingdan_4"><img src="__STATIC__/images/wuliuimg.png" width="30" height="70"></dt>
<dd><h3>快递单号:{$order_info.invoice_no}</h3>
<p><a href="{:U('User/express',array('order_id'=>$order_info['order_id']))}" target="_blank">查看物流</a></p>
</dd>-->
<!--快递信息 end-->
</dl>
</if>
</div>
<div class="ord_list1">
<h2><img src="__STATIC__/images/dianpu.png">{$pname}</h2>
<!--商品列表-->
<volist name="order_info.goods_list" id="good">
<div class="order_list">
<a href="{:U('/Mobile/Goods/goodsInfo',array('id'=>$good['goods_id'],'stoid'=>$Think.request.stoid))}">
<dl>
<!--<dt><img src="{$good.goods_id|goods_thum_images=100,100}"></dt>-->
<dt><img src="{:getimg($good['original_img'],NOIMG,0,1)}"></dt>
<dd class="name" class="pice" style=" width:55%;">
<strong>{$good.goods_name}</strong><span>{$good.guige}</span>
</dd>
<!--价格颜色更改 20170317-->
<dd class="pice" style=" font-size:13px; color: #C4182E; width:25%;">
¥{$good['member_goods_price']}<em>x{$good['goods_num']}</em></dd>
<dd class="pice" style=" font-size:13px; color: #C4182E; width:25%;">
<if condition="$order_info.pt_status eq 1">
<em style="color: red">组团中</em>
<else/>
<if condition="($order_info.pt_status eq 2 and $order_info.is_zsorder eq 4 and $order_info.pay_status eq 0) and $order_info.order_status neq 3">
<em style="color: red">待支付尾款</em>
<else/>
<!--价格颜色更改end-->
<if condition="empty($order_info.coupon_no) && empty($order_info.order_prom_id) && $order_info.order_status neq 2 && empty($order_info.is_prom) && ($tpshop_config['refund_type'] eq 0 || ($tpshop_config['refund_type'] eq 1 && ($order_info.order_amount eq 0 || $order_info.user_money eq 0)))
">
<em>
<eq name=":isReturn($order_info.order_id,$good.goods_id)" value="0">
<if condition="$order_info.is_bedistri eq 0">
<if condition="($order_info[return_btn] eq 1) and ($good[is_send] lt 4) and $order_info['order_status'] lt 2">
<a href="{:U('Mobile/User/return_goods',array('order_id'=>$order_info[order_id],'order_sn'=>$order_info[order_sn],'goods_id'=>$good[goods_id],'spec_key'=>$good['spec_key'],'stoid'=>$Think.request.stoid))}"
style="color:#999;">申请退款</a>
</if>
</if>
<else/>
<a href="{:U('Mobile/User/return_goods_info',array('id'=>return_id($order_info[order_id],$good.goods_id),'stoid'=>$Think.request.stoid))}"
style="color:#999;">{:ReturnType($order_info.order_id,$good.goods_id)}</a>
</eq>
</em>
</if>
</if>
</if>
</dd>
</dl>
</a>
<div class="order_list">
<div class="pic" style=" border:0;"><strong style="float: right; margin-right: 14px">¥{:number_format($good['member_goods_price'] *
$good['goods_num'],2)}</strong><span style="line-height: 50px">小计:</span></div>
</div>
<if condition="$order_info.user_note">
<div class="order_list">
<div class="pic" style=" border:0;"><strong style="float: right; margin-right: 14px">{$order_info.user_note}</strong><span style="line-height: 50px">商家留言:</span></div>
</div>
</if>
</div>
</volist>
<!-- end 商品列表-->
<div class="jiage" style="color:#A7A39E; font-size: 12px">
<if condition="$bylist">
<div>优惠券:<span class="price p1">包邮券【满{$bylist.condition}元使用】</span></div>
</if>
<div>商品总价:<span class="price p1">¥{$order_info.goods_price}</span></div>
<if condition="$order_info.shipping_price gt 0">
<div>配送费用:<span class="price p1">¥{$order_info.shipping_price}</span></div>
</if>
<if condition="$order_info.coupon_price gt 0">
<div>优惠券:<span class="price p1">¥{$order_info.coupon_price}</span></div>
</if>
<if condition="$order_info.order_prom_amount gt 0">
<div>订单优惠:<span class="price p1">¥{$order_info.order_prom_amount}</span></div>
</if>
<if condition="$order_info.discount_amount gt 0">
<div>优惠活动:<span class="price p1">¥{$order_info.discount_amount}</span></div>
</if>
<if condition="($order_info.order_amount+$order_info.user_money) gt 0 and $order_info.is_zsorder eq 4">
<div>定金金额:<span class="price p1">¥{$order_info.order_amount+$order_info.user_money}</span></div>
</if>
<if condition="$order_info.pt_tail_money gt 0">
<div>尾款金额:<span class="price p1">¥{$order_info.pt_tail_money}</span></div>
</if>
<div style="color: black; font-size: 14px; margin-top: 3px">订单总价:
<span style="float: right;font-size: 16px">¥{:number_format($order_info.order_amount+$order_info.user_money+$order_info.pt_tail_money,2)}</span></div>
<p style="height: 10px"></p>
</div>
<div class="jiage" style="border-top: solid 1px #EEEEEE;">
<div style="height: 10px"></div>
<if condition="$order_info.integral gt 0">
<div><span class="price" style="float: right;">{$order_info.integral}积分</span>
使用积分:
</div>
</if>
<if condition="$order_info.user_money0 gt 0">
<div><span class="price" style="float: right;">¥{$order_info.user_money0}</span>
使用余额:
</div>
</if>
<if condition="$order_info.order_amount0 gt 0">
<div><span class="price" style="float: right;">¥{$order_info.order_amount0}</span>
微支付:
</div>
</if>
<p style="height: 10px"></p>
</div>
</div>
<!--配送方式 删除 20170318-->
<!--<section class="qita">
<div class="navContent">
<ul>
<li class="first">配送方式 : {$order_info.shipping_name}</li>
<li>支付方式 : {$order_info.pay_name}</li>
</ul>
</div>
</section>-->
<!--配送方式 end-->
<div id="pdline" style=" height:55px;"></div>
<eq name=":isallreturn($order_info.order_id)" value="0">
<div class="detail_dowm">
<div class="anniu1">
<if condition="$order_info.cancel_btn eq 1">
<a onClick="cancel_order({$order_info.order_id})" class="on_comment">取消订单</a></if>
<if condition="$order_info.pay_btn eq 1">
<a is_del_gift="{$order_info['is_del_gift']}" alt="{$order_info['order_sn']}" onclick="gobuy(this)" class="on_comment">立即付款</a>
</if>
<if condition="$order_info.is_zsorder eq 4 and $order_info.pay_status eq 0 and $order_info.pt_status eq 2 and $order_info.order_status neq 3">
<a onClick="paytail('{$order_info.order_sn}')" class="on_comment">支付尾款</a>
</if>
<if condition="$order_info.receive_btn eq 1">
<if condition="is_ok_sh($order_info.order_id)">
<a href="{:U('Mobile/User/order_confirm',array('id'=>$order_info['order_id'],'stoid'=>$Think.request.stoid))}"
class="on_comment">确认收货</a>
</if>
</if>
<if condition="$order_info.shipping_btn eq 1 && $order_info.exp_type eq 0">
<a href="{:U('User/express',array('order_id'=>$order_info['order_id'],'stoid'=>$Think.request.stoid))}"
class="on_comment">查看物流</a>
</if>
<if condition="$order_info.order_status eq 3"><span onClick="del_order({$order_info.order_id})">删除订单</span></if>
<if condition="$order_info.order_status eq 4"><span onClick="del_order({$order_info.order_id})">删除订单</span></if>
<if condition="$order_info.order_status eq 5"><span onClick="del_order({$order_info.order_id})">删除订单</span></if>
<if condition="!empty($order_info.coupon_no) || $order_info.order_prom_amount gt 0 || $order_info.is_prom eq 1 || ($tpshop_config['refund_type'] eq 1 && $order_info.order_amount gt 0)">
<if condition="$order_info.is_bedistri eq 0 && $order_info.pay_status eq 1 && $order_info.rf_num elt 0">
<if condition="$order_info.order_status eq 1"><span onClick="sqshouhou({$order_info.order_id})">申请售后</span></if>
</if>
</if>
</div>
</div>
<else/>
<if condition="!empty($order_info.coupon_no) || $order_info.order_prom_amount gt 0 || $order_info.is_prom eq 1 || ($tpshop_config['refund_type'] eq 1 && $order_info.order_amount gt 0)">
<if condition="$order_info.order_status neq 6">
<div class="anniu">
<if condition="$order_info.receive_btn eq 1">
<if condition="is_ok_sh($order_info.order_id)">
<span onClick="confirm({$order_info.order_id})">确认收货</span>
</if>
</if>
<if condition="isallrf($order_info.order_id)">
<span onClick="shouhoudetails({$order_info.order_id})">售后详情</span>
</if>
</div>
</if>
</if>
<if condition="$order_info.order_status eq 3">
<div class="anniu1">
<span onClick="del_order({$order_info.order_id})">删除订单</span>
</div>
</if>
<if condition="$order_info.order_status eq 6">
<div class="anniu">
<span onClick="del_order({$order_info.order_id})">删除订单</span>
</div>
</if>
</eq>
</div>
</div>
<script>
var stoid = "<?php echo I('stoid')?>";
//取消订单
function cancel_order(id) {
layer.open({
content: '确定取消订单?'
,btn: ['确认', '取消']
,yes: function(){
layer.closeAll();
location.href = "/index.php?m=Mobile&c=User&a=cancel_order&id=" + id + "&stoid=" + stoid;
}
});
}
//删除订单
function del_order(oid) {
layer.open({
content: '确定删除订单?'
,btn: ['确认', '取消']
,yes: function(){
layer.closeAll();
layer.open({type:2});
$.ajax({
type: "GET",
dataType: "json",
url: "/index.php?m=Mobile&c=User&a=order_del&ordid=" + oid+"&stoid=" + stoid,//+tab,
success: function (data) {
layer.closeAll();
if (data.code ==1) {
layer.open({content: '删除成功', time: 2});
setTimeout(function () {
window.location.href="/index.php?m=Mobile&c=User&a=order_list&stoid=" + stoid;
},1000);
}
else {
layer.open({content:'删除失败',time:2});
}
}
});
}
});
}
$(function () {
var htm=$('.anniu1').html();
if($.trim(htm)==""){
$('.detail_dowm').hide();
$("#pdline").height(15);
}
});
function gobuy(ob) {
var sn=$(ob).attr('alt');
var is_del_gift=$(ob).attr('is_del_gift');
if(is_del_gift=="1"){
//询问框
layer.open({
content: '您长时间未支付,赠品已经取消,是否要继续支付?'
,btn: ['支付', '不要']
,yes: function(index){
the_pay(sn);
}
});
}else{
the_pay(sn);
}
}
function the_pay(sn) {
var ii = layer.open({
type: 2,shadeClose: false
});
$.ajax({
type: "GET",
dataType: "json",
url: "/index.php?m=Mobile&c=User&a=ordercheck&ordsn=" + sn+"&stoid=" + stoid,//+tab,
success: function (data) {
layer.closeAll(ii);
if (data.code ==1) {
window.location.href="/Mobile/Payment/getCode.html?orderno=" + sn+ '&stoid=' + stoid;
}
else {
layer.open({content:'付款失败',time:2});
}
},
error:function () {
layer.closeAll(ii);
layer.open({content:'网络繁忙',time:2});
}
});
}
/*--申请售后--*/
function sqshouhou(oid) {
var url="/index.php/Mobile/User/return_goods/isall/1/order_id/"+oid+"/stoid/"+stoid;
window.location.href=url;
}
/*--退款退货详情--*/
function shouhoudetails(oid) {
var url="/index.php/Mobile/User/return_goods_info/isall/1/order_id/"+oid+"/stoid/"+stoid;
window.location.href=url;
}
function confirm(oid){
var url="/index.php/Mobile/User/order_confirm/id/"+oid+"/stoid/"+stoid;
window.location.href=url;
}
//支付尾款
function paytail(oid) {
var url="/index.php?m=Mobile&c=cart&a=cart2_wk&ordsn=" +oid+"&stoid="+stoid;
window.location.href=url;
}
</script>
</body>
</html>