order_detail.html
20.0 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
<!DOCTYPE html>
<html lang="zh">
<head>
<meta charset="UTF-8">
<title>订单评价</title>
{include file="public/head"}
<!--提示层插件引入-->
<link rel="stylesheet" href="__CDN__/assets/store/css/message.css">
<script type="text/javascript" src="__CDN__/assets/store/js/message.js"></script>
<style>
li {
list-style-type: none;
}
ul {
margin: 0;
}
.clear {
clear: both;
}
/*菜单样式*/
.content {
width: 100%;
font-size: 0;
background: rgba(249, 249, 249, 1);
}
.content .navBarBox {
width: 100%;
height: 50px;
background: rgba(0, 159, 142, 1);
}
.content .navBarBox ul {
width: 1200px;
height: 100%;
margin: 0 auto;
padding: 0;
font-size: 16px;
font-family: PingFangSC-Semibold;
color: rgba(255, 255, 255, 1);
}
.content .navBarBox ul li {
width: 144px;
height: 100%;
line-height: 50px;
list-style-type: none;
float: left;
}
.content .navBarBox ul li a {
color: rgba(255, 255, 255, 1);
}
.content .titleImgContent {
width: 100%;
height: 146px;
}
.content .titleImgContent img {
width: 100%;
height: 100%;
}
/*主要内容*/
.contentBox {
width: 100%;
background-color: #FFFFFF;
margin-top: 12px;
}
.contentMain {
margin: auto;
width: 1200px;
}
.contentTop {
height: 60px;
line-height: 60px;
}
.titleText {
padding-left: 17px;
height: 22px;
line-height: 22px;
font-size: 16px;
font-family: PingFang SC;
font-weight: 800;
color: rgba(0, 159, 142, 1);
vertical-align: middle;
}
.titleLine {
line-height: 20px;
display: inline-block;
width: 6px;
height: 20px;
background: rgba(0, 159, 142, 1);
opacity: 1;
border-radius: 2px;
vertical-align: middle;
}
.contentList {
background: rgba(249, 249, 249, 1);
border-radius: 8px;
/*margin-bottom: 20px;*/
}
/*店铺信息*/
.orderDesc {
padding: 12px 25px;
width: 100%;
/*height: 75px;*/
background: rgba(244, 244, 244, 0.8);
font-size: 14px;
font-family: PingFang SC;
font-weight: 400;
color: rgba(6, 18, 30, 1);
}
.orderDesc span {
display: block;
margin-bottom: 12px;
}
/*商品信息*/
.goodsDescList {
background-color: #FFFFFF;
padding: 30px 25px 20px;
}
.goodsDesc {
border-bottom: 1px solid rgba(238, 238, 238, 1);
}
/*.goodsDescList:last-child .goodsDesc:last-child{*/
/* border: 0;*/
/*}*/
.goodsDesc .storeName {
font-size: 16px;
font-family: PingFang SC;
font-weight: 500;
color: rgba(61, 68, 77, 1);
}
.goodsPicText {
margin-top: 16px;
}
.goodsPicText img {
width: 72px;
height: 72px;
}
.goodsPicText .goodsNameNum {
margin-left: 13px;
display: inline-block;
font-size: 14px;
font-family: PingFang SC;
font-weight: 400;
color: rgba(61, 68, 77, 1);
vertical-align: middle;
}
.goodsPicText .goodsNameNum span {
display: block;
}
.goodsPicText .goodsNameNum span:first-child {
margin-bottom: 15px;
}
/*商品评分*/
.goodsScore {
margin: 10px 0;
}
.goodsScoreLabel {
margin-bottom: 0;
vertical-align: middle;
display: inline-block;
padding: 0 10px 0 5px;
font-size: 14px;
font-family: PingFang SC;
font-weight: 400;
color: rgba(61, 68, 77, 1);
}
.goodsScoreTextarea {
resize: none;
background: rgba(249, 249, 249, 1) !important;
padding: 20px;
border: 0 !important;
box-shadow: none !important;
}
/*输入框中placeholer文字颜色*/
.goodsScoreTextarea::-webkit-input-placeholder { /* WebKit browsers */
font-size: 14px;
font-family: PingFang SC;
font-weight: 500;
color: rgba(140, 145, 152, 1)
}
.goodsScoreTextarea:-moz-placeholder { /* Mozilla Firefox 4 to 18 */
font-size: 14px;
font-family: PingFang SC;
font-weight: 500;
color: rgba(140, 145, 152, 1);
}
.goodsScoreTextarea::-moz-placeholder { /* Mozilla Firefox 19+ */
font-size: 14px;
font-family: PingFang SC;
font-weight: 500;
color: rgba(140, 145, 152, 1)
}
.goodsScoreTextarea:-ms-input-placeholder { /* Internet Explorer 10+ */
font-size: 14px;
font-family: PingFang SC;
font-weight: 500;
color: rgba(140, 145, 152, 1)
}
/*上传图片*/
.uploadPic {
margin-bottom: 50px;
}
.uploadPic label {
display: inline-block;
margin: 20px 0;
font-size: 14px;
font-family: PingFang SC;
font-weight: 400;
color: rgba(61, 68, 77, 1);
}
/*按钮样式*/
.refundBtn {
margin: 30px;
background-color: rgba(0, 159, 142, 1);
color: #fff;
width: 170px;
height: 52px;
font-size: 16px;
font-family: PingFang SC;
font-weight: 500;
color: rgba(255, 255, 255, 1);
border: 0;
}
.refundBtn:hover, .refundBtn:visited, .refundBtn:focus {
color: #fff;
color: rgba(255, 255, 255, 1);
border: 0;
}
/*上传图片*/
.imgFileUploade {
padding: 0;
}
</style>
<style>
.star_level span.star i {
display: inline-block;
background: url(/assets/store/images/no_star.png) no-repeat center center;
background-size: 20px 20px;
width: 30px;
height: 20px;
padding: 0;
margin: 0;
}
.star_level span.star.sel i {
display: inline-block;
background: url(/assets/store/images/star.png) no-repeat center center;
background-size: 20px 20px;
width: 30px;
height: 20px;
padding: 0;
margin: 0;
}
.box {
display: flex;
}
.imgClick {
width: 150px !important;
height: 96px !important;
font-size: 0;
position: relative;
background: url(/assets/store/images/idCardBoxFileupload.png) no-repeat;
}
.imgClick input {
width: 150px;
height: 96px;
opacity: 0;
position: absolute;
top: 0;
left: 0;
}
.images {
display: flex;
align-items: center;
flex-wrap: wrap;
padding-left: 0 !important;
padding-right: 0 !important;
}
.imagesItem {
width: 150px !important;
height: 96px !important;
font-size: 0;
display: flex;
align-items: center;
position: relative;
padding: 0 10px 0 0 !important;
}
.imagesItem img {
width: 100%;
height: 100%;
}
.closeImage {
position: absolute;
top: -5px;
right: 5px;
width: 18px !important;
height: 18px !important;
background: rgba(197, 197, 197, 1);
border-radius: 50%;
padding: 0 !important;
font-size: 16px;
text-align: center;
line-height: 18px;
color: #efefef;
font-style: normal;
cursor: pointer;
z-index: 777;
}
</style>
<style>
#payModal {
display: none;
}
.modal-box {
width: 716px;
height: 438px;
top: 25%;
left: 50%;
transform: translateX(-50%);
z-index: 666;
overflow: hidden;
position: fixed;
border: 6px solid #bbb;
background-color: #fff;
-webkit-animation: scale-in both cubic-bezier(.4, 0, 0, 1.5) .3s;
animation: scale-in both cubic-bezier(.4, 0, 0, 1.5) .3s;
}
.modal-left {
float: left;
width: 333px;
padding: 20px 50px 25px 45px;
}
#payModal .modal-qrcode {
width: 210px;
height: 210px;
display: block;
margin: 0 auto 20px;
}
.icon-qrcode {
width: 16px;
height: 16px;
margin-right: 3px;
position: relative;
display: inline-block;
vertical-align: middle;
background-position: 0 -88px;
}
.modal-left .icon {
font-size: 0;
background-image: url(https://mpay.meituan.com/resource/cashier/img/icon-common@2x.rcJBe.png);
background-size: 168px;
}
#payModal .modal-info {
color: #f80;
font-size: 12px;
padding: 13px 0;
text-align: center;
background-color: #f7f7f7;
}
.modal-right {
float: left;
}
#payModal p {
font-size: 18px;
text-align: center;
line-height: 32px;
margin-bottom: 16px;
}
#payModal .orange {
color: #f80;
}
#payModal .modal-qr {
padding-top: 20px;
border: 1px solid #ddd;
}
.icon-clock {
width: 12px;
height: 12px;
margin-right: 5px;
}
.icon-close {
top: 13px;
right: 13px;
width: 13px;
height: 13px;
z-index: 5;
cursor: pointer;
position: absolute;
background-position: -17px -88px;
}
.modal-right .icon {
font-size: 0;
background-image: url(https://mpay.meituan.com/resource/cashier/img/icon-common@2x.rcJBe.png);
background-size: 168px;
}
#payModal .model-right img {
width: 371px;
height: 438px;
}
</style>
</head>
<body>
{include file="public/header"}
<!--主要内容-->
<div class="content">
{include file="public/nav"}
<!--主要内容-->
<div class="contentBox">
<div class="contentMain">
<div class="contentTop">
<span class="titleLine"></span>
<span class="titleText">
订单详情
</span>
</div>
<div class="contentList">
<!--店铺信息-->
<div class="orderDesc">
<span>
订单号:{$data.num}
</span>
<span>
状态:{$data.status}
</span>
<span>
收货人:{$data.name}
</span>
<span>
收货人联系方式:{$data.mobile}
</span>
<span>
地址:{$data.province_name} {$data.city_name} {$data.county_name} {$data.address}
</span>
<span>
下单时间:{$data.createtime}
</span>
<span>
支付类型:{eq name="$data.pay_type" value='1'}微信支付{/eq}{eq name="$data.pay_type" value='2'}支付宝支付{/eq}
</span>
<span>
支付时间:{notempty name="$data.paytime"}{:date('Y-m-d H:i',$data.paytime)}{else /}尚未支付{/notempty}
</span>
<span>
配送方式:{eq name="$data.express" value='1'}快递运输{/eq}{eq name="$data.express" value='2'}达达下单{/eq}{eq name="$data.express" value='3'}美团跑腿{/eq}
</span>
<span>
配送费:¥{$data.postage_total}
</span>
<span>
物流公司:{$data.shipper_code}
</span>
<span>
物流单号:{$data.logistic_code}
</span>
<span>
商品金额:¥{$data.goods_total}
</span>
<span>
总计:¥{$data.total}
</span>
</div>
<!--商品信息-->
{volist name="$data.goods" id="vo"}
<div class="goodsDescList" data-goods_id="{$vo.goods_id}" data-order_info_id="{$vo.id}">
<div class="goodsDesc">
<span class="storeName">{$data.store_name}</span>
<div class="goodsPicText">
<img src="{$vo.goods_image}" alt="">
<div class="goodsNameNum">
<span>{$vo.goodsname}</span>
<span>数量×{$vo.number}</span>
</div>
</div>
</div>
</div>
{/volist}
</div>
{$data.operate}
</div>
</div>
</div>
{include file="public/footer"}
<!--begin:提示弹层-->
<div class="toast">提示框</div>
<div class="bg"></div>
<!--支付窗口-->
<div id="payModal">
<div class="modal-box">
<div class="modal-left">
<p>
<span>请使用 </span>
<span class="orange">微信 </span>
<i class="icon icon-qrcode"></i>
<span class="orange"> 扫一扫</span><br>扫描二维码支付
</p>
<div class="modal-qr">
<img class="modal-qrcode"
src=""
alt="您的浏览器版本太低, 请升级您的浏览器">
<div class="modal-info">
<img class="icon-clock" src="__CDN__/assets/store/images/clock.png">
<span>二维码有效时长为2小时, 请尽快支付</span>
</div>
</div>
</div>
<div class="modal-right"><i class="icon icon-close"></i><img
src="https://mpay.meituan.com/resource/cashier/img/weixin-qrcode.1xf1oN.jpg" alt="微信扫码">
</div>
</div>
</div>
<script>
var order_id = "{$data.id}";
$(function () {
});
// 付款
$('.contentMain').on('click', '.topay', function () {
var data = {
order_id: order_id
};
$.ajax({
type: "post",
url: "{:url('topay')}",
data: data,
dataType: "json",
success: function (e) {
if (e.code == 1) {
if (e.data.pay_type == 1) {
//微信支付
order_id = e.data.order_id;
$('#payModal').show();
$('.modal-left .modal-qrcode').attr('src', e.data.url);
} else if (e.data.pay_type == 2) {
//支付宝支付
order_id = e.data.order_id;
window.open(e.data.url);
}
} else {
toast(e.msg);
}
},
error: function (e) {
console.log(e);
toast('网络错误,请重试');
}
});
});
//取消订单
$('.contentMain').on('click', '.cancel', function () {
if (confirm('是否确认取消订单?')) {
var data = {
order_id: order_id
};
$.ajax({
type: "post",
url: "{:url('cancel_submit')}",
data: data,
dataType: "json",
success: function (e) {
if (e.code == 1) {
toast(e.msg, 1000, 1);
} else {
toast(e.msg);
}
},
error: function (e) {
console.log(e);
toast('网络错误,请重试');
}
});
}
});
// 去评价
$('.contentMain').on('click', '.comment', function () {
var base_url = "{:url('comment')}";
var base_arr = base_url.split('.');
var url = base_arr[0] + '/order_id/' + order_id + '.' + base_arr[1];
window.location.href = url;
});
// 退款
$('.contentMain').on('click', '.refund', function () {
var base_url = "{:url('refund')}";
var base_arr = base_url.split('.');
var url = base_arr[0] + '/order_id/' + order_id + '.' + base_arr[1];
window.location.href = url;
});
//确认收货
$('.contentMain').on('click', '.confirm', function () {
if (confirm('是否确认收货?')) {
var data = {
order_id: order_id
};
$.ajax({
type: "post",
url: "{:url('confirm')}",
data: data,
dataType: "json",
success: function (e) {
if (e.code == 1) {
toast(e.msg, 1500, 1);
} else {
toast(e.msg);
}
},
error: function (e) {
console.log(e);
toast('网络错误,请重试');
}
});
}
});
// 删除
$('.contentMain').on('click', '.delete', function () {
if (confirm('删除后无法恢复,是否确认?')) {
var data = {
order_id: order_id
};
$.ajax({
type: "post",
url: "{:url('delete')}",
data: data,
dataType: "json",
success: function (e) {
if (e.code == 1) {
toast(e.msg, 1500, 1);
} else {
toast(e.msg);
}
},
error: function (e) {
console.log(e);
toast('网络错误,请重试');
}
});
}
});
// 取消支付
$('.icon-close').click(function () {
$('#payModal').hide();
});
//提示弹层
function toast(msg = '玩命加载中~', time = 2000, reload = 0) {
$('.toast').text(msg);
$('.toast').fadeToggle();
// $('.bg').show();
setTimeout(function () {
$('.toast').fadeToggle();
// $('.bg').hide();
if (reload == 1) {
location.reload();
}
}, time);
}
</script>
</body>
</html>