info.html 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357
  1. <extend name="Public:base" />
  2. <block name="content">
  3. <link rel="stylesheet" href="__PUBLIC__/css/order-detail-1dc4a56c.css" media="all">
  4. <style>
  5. .address-mask{position:fixed;left:0;top:0;width:100%;height:100%;background:rgba(0,0,0,.7)}.address-mask .address-modal{position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.address-mask .address-modal .address-form{width:14.08rem;border-radius:.384rem;background-color:#fff}.address-mask .address-modal .address-form .title{padding:.768rem 1.28rem;overflow:hidden;color:#333;text-align:center;font-size:15px}[data-dpr="2"] .address-mask .address-modal .address-form .title{font-size:30px}[data-dpr="2.5"] .address-mask .address-modal .address-form .title{font-size:37px}[data-dpr="2.75"] .address-mask .address-modal .address-form .title{font-size:41px}[data-dpr="3"] .address-mask .address-modal .address-form .title{font-size:45px}[data-dpr="4"] .address-mask .address-modal .address-form .title{font-size:60px}.address-mask .address-modal .address-form .double-input{box-sizing:border-box;font-size:14px;color:#333}[data-dpr="2"] .address-mask .address-modal .address-form .double-input{font-size:28px}[data-dpr="2.5"] .address-mask .address-modal .address-form .double-input{font-size:35px}[data-dpr="2.75"] .address-mask .address-modal .address-form .double-input{font-size:38px}[data-dpr="3"] .address-mask .address-modal .address-form .double-input{font-size:42px}[data-dpr="4"] .address-mask .address-modal .address-form .double-input{font-size:56px}.address-mask .address-modal .address-form .double-input input{padding-top:12px;padding-bottom:12px;width:48%;text-indent:.768rem}[data-dpr="2"] .address-mask .address-modal .address-form .double-input input{padding-top:24px;padding-bottom:24px}[data-dpr="2.5"] .address-mask .address-modal .address-form .double-input input{padding-top:30px;padding-bottom:30px}[data-dpr="2.75"] .address-mask .address-modal .address-form .double-input input{padding-top:33px;padding-bottom:33px}[data-dpr="3"] .address-mask .address-modal .address-form .double-input input{padding-top:36px;padding-bottom:36px}[data-dpr="4"] .address-mask .address-modal .address-form .double-input input{padding-top:48px;padding-bottom:48px}.address-mask .address-modal .address-form .single-input{position:relative;top:0;left:0;padding:.512rem 0 .512rem .512rem;color:#333;box-sizing:border-box;font-size:14px}[data-dpr="2"] .address-mask .address-modal .address-form .single-input{font-size:28px}[data-dpr="2.5"] .address-mask .address-modal .address-form .single-input{font-size:35px}[data-dpr="2.75"] .address-mask .address-modal .address-form .single-input{font-size:38px}[data-dpr="3"] .address-mask .address-modal .address-form .single-input{font-size:42px}[data-dpr="4"] .address-mask .address-modal .address-form .single-input{font-size:56px}.address-mask .address-modal .address-form .single-input input{width:80%}.address-mask .address-modal .address-form .address-selector{font-size:.55466667rem}.address-mask .address-modal .address-form .address-selector .select-container select{border:none;-moz-appearance:none;-webkit-appearance:none;appearance:none;box-sizing:border-box}.address-mask .address-modal .address-form .address-selector .select-container .province{width:28%;margin-right:4%}.address-mask .address-modal .address-form .address-selector .select-container .city{width:30%;margin-right:4%}.address-mask .address-modal .address-form .address-selector .select-container .country{width:30%}.address-mask .address-modal .address-form .address-selector .select-container option{font-size:.512rem}.address-mask .address-modal .address-form .location-icon{position:absolute;top:50%;right:5%;-webkit-transform:translate(0,-50%);transform:translate(0,-50%);width:.93866667rem;height:.93866667rem;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAsCAMAAAApWqozAAAAe1BMVEUAAABXV1dpaWlwcHBYWFhcXFxgYGBYWFhYWFhYWFhZWVlXV1dZWVlYWFhcXFxYWFhZWVlXV1dYWFhXV1dYWFhZWVlXV1dYWFhYWFhXV1dYWFhYWFhYWFhYWFhcXFxYWFhYWFhaWlpZWVlYWFhXV1dYWFhcXFxZWVlXV1fmSIMzAAAAKHRSTlMA9wgE5BEMvWXLXtIipBbePPLrxIIylEOznE/ZfHUda0cpjteuWC6Evd7ggwAAAe1JREFUOMuNVNkSozAMIyEQSKCUq9DSltJr9f9fuDs7ObmmejIakdiy42COSOR8KMuB5yIK9nHhBAaEX3akxxogfXLMKM2OSU+A+rghDZ8AS2JLxAkDnuGaNuIgN+pz9EbAoxXtC6xd0i3Da6EOOdJDsIJDCj7P5ARmtb6a4TTzAaR1UpqmyMmEwPckxc14cJUAIK/GlxtSV/sBo7otFVBKWQKVbgll+DjiGkJFIyC78F/BnQRGRQrUTg0g6uAH0ITKnwZ4qMwIbPUJeiUocHIdKtSPPRLD5joWKNx2FxD6tNymrL1567+05q2dtUkXyGzgIENhAw0CagMHFMQGGhUiHRy8TqNS2aM0pESrG9m54k637oth6UajqjZ8s3RDaJ8zovqgOkRUvRzC7WBsJvWu2buZzQylY3+vh46mKBN1dYlUefPE2auEheYlQjZCNBLm9cWVP9DSJBWOFf6jGkNF/QH3l4sd6CDsmvO56UKTO9HO2vG4BhvIrW/2EU7r2s4YaHFGurp7YrZyZ6TI3w65gLSr7LR+hqRzLqtUu+aIBzxnFE3Re4S3ej7zy4rN9S9Avu736Jexux4fgFhI/MVrivyWaII9xNK4nTHkwT7up0kFBTgNfsPhhTr+UXsfkG6athyUelO7bOZ7Ld+/GB8qawL4/WcAAAAASUVORK5CYII=);background-repeat:no-repeat;background-size:100% 100%}.address-mask .address-modal .address-form .error-tips{padding:.512rem .768rem;color:#ff4965;overflow:hidden;min-height:14px;font-size:12px}[data-dpr="2"] .address-mask .address-modal .address-form .error-tips{min-height:28px;font-size:24px}[data-dpr="2.5"] .address-mask .address-modal .address-form .error-tips{min-height:35px;font-size:30px}[data-dpr="2.75"] .address-mask .address-modal .address-form .error-tips{min-height:38px;font-size:33px}[data-dpr="3"] .address-mask .address-modal .address-form .error-tips{min-height:42px;font-size:36px}[data-dpr="4"] .address-mask .address-modal .address-form .error-tips{min-height:56px;font-size:48px}
  6. .address-mask .address-modal .address-form .sbtn{background-color:#ff4965;color:#fff;text-align:center;padding:.512rem 0;border-radius:0 0 .384rem .384rem;font-size:18px}[data-dpr="2"] .address-mask .address-modal .address-form .sbtn{font-size:36px}[data-dpr="2.5"] .address-mask .address-modal .address-form .sbtn{font-size:45px}[data-dpr="2.75"] .address-mask .address-modal .address-form .sbtn{font-size:49px}[data-dpr="3"] .address-mask .address-modal .address-form .sbtn{font-size:54px}[data-dpr="4"] .address-mask .address-modal .address-form .sbtn{font-size:72px}.address-mask .address-modal .address-form .border-b{border-bottom:1px solid #999}.address-mask .address-modal .address-form .border-l{border-left:1px solid #999}.address-mask .address-modal .icon-closed{position:absolute;right:-.64rem;top:-.64rem;width:1.92rem;height:1.92rem;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAMAAABg3Am1AAAAh1BMVEUAAAD/SWX/SWX/SWX/SWX/SWX/SWX/SWX/SWX/SWX/SWX/SWX/SWX/SWX/SWX/SWX/SWX/SWX/SWX/SWX/SWX/SWX/SWX/SWX/SWX/SWX/SWX/SWX/SWX/SWX/SWX/SWX/SWX/SWX/SWX/SWX/SWX/SWX/SWX/SWX/SWX/SWX/SWX/SWX/SWV+ZsJgAAAALHRSTlMA/PPx7xXqyLRrD+VOh28lCgP1zT4rGgbAjHdcOicf0mXc2LqtkIFhVzagSSpfOkgAAAG7SURBVEjHlZbXloMgEEAHxRKj0TW9F7Op8//ftycFnAHWct843jkhMAWwmN2W8Sksy/AUL28BtJAMImREg6aYIPPQwlvOwM3PyEcn3mru8ndj/JdxbvtPiQ14qelfBTYiDtxfYysD6qcCWxEp+b8SO+Bt9XlG2Im9Ot0BdmT1vV96X7FxXENJN/W58wxrFgVcmZ/fS7L8feebT3aZqB0qn59gGQDAoV4fPz850v7WvKMRACzq5QaARoRbtdSMARJBdqRyf/X2p9/VhCg7SFlWJl/nQn36t9eQ8QLTEbXvITunM/KIQpW208cK9qjQN0HZGFV4hCEaVEWDjxLsOo7rCr5bX4UjAB/Kz+2Pwt4S+ned9w80kbB3+TrijAZHOJv+BqAhooLM8hnzGJFfXMrrVvnTiztiDYmg/kT5IWbwoaiQsGPpXRIf8aIiiDHmBZRqn9Y8THgBJb6ZR9uQfAbIQ16i9Jzin5c/ZO0xOBpNAALJsiKnd3+AIqJtxm5kGfNRXOmprlytUjaMlXnvZqx5dmr3/QcKi2gdWf2Gop86xm7UNnbtwS7bB3v/p0P74ySBFoLX80cKId3Pnz84CvgkMbBytAAAAABJRU5ErkJggg==) center center no-repeat;background-size:.96rem .96rem}
  7. </style>
  8. <div class="wrapper hasActions" style="display: block;">
  9. <div class="content">
  10. <!--状态-->
  11. <div class="status waitForReceiving">
  12. <span class="text">{$order_status_info.name}</span>
  13. <span class="img"></span>
  14. </div>
  15. <!--快递,收货地址-->
  16. <div class="addressWrapper">
  17. <div class="receiver">
  18. <div class="r1">
  19. <span class="name">{$order_info.shipping_name}</span>
  20. <span class="phone">{$order_info.telephone}</span>
  21. </div>
  22. <div class="address">
  23. {$shipping_province.area_name}{$shipping_city.area_name}{$shipping_country.area_name}{$order_info.shipping_address}
  24. </div>
  25. </div>
  26. </div>
  27. <!--商品,金额明细-->
  28. <div class="goods">
  29. <?php $goods_total =0; foreach($order_goods_list as $order_goods){ ?>
  30. <ul class="items">
  31. <li class="item">
  32. <a href="javascript:;">
  33. <div class="img-wrapper">
  34. <img class="icon" src="{$order_goods.image}" />
  35. </div>
  36. <div class="title">
  37. <?php if($order_goods['head_disc'] < 100){ ?>
  38. <?php if($order_goods['head_disc'] ==0){ ?>
  39. <font color="#ff4965">[团长免单]</font>
  40. <?php }else{ ?>
  41. <font color="#ff4965">[<?php echo round($order_goods['head_disc'] / 10,1); ?>折]</font>
  42. <?php } ?>
  43. <?php } ?>
  44. <?php if($order_info['type'] == 'integral'){ ?>
  45. <font color="#ff4965">[积分兑换]</font>
  46. <?php } ?>
  47. {$order_goods.name}
  48. </div>
  49. <div class="sku">
  50. {$order_goods.option_str}
  51. </div>
  52. <div class="money">
  53. <span class="price">&yen;<?php echo round($order_goods['price'],2);?></span>
  54. <span class="num">x{$order_goods.quantity}</span>
  55. </div>
  56. </a>
  57. </li>
  58. <li class="goodActions" <?php if( !in_array($order_info['order_status_id'], array(4)) ){ ?>style="display:none;" <?php } ?> onclick="location.href='{:U('Order/refund', array('order_id' => $order_info['order_id']))}';">
  59. <div class="btn highlight" data-after_sale="">
  60. <span>申请售后</span>
  61. </div>
  62. </li>
  63. <li class="goodActions" <?php if( !in_array($order_info['order_status_id'],array(12,13)) ){ ?>style="display:none;" <?php } ?> onclick="location.href='{:U('Order/refunddetail', array('order_id' => $order_info['order_id']))}';">
  64. <div class="btn highlight" data-after_sale="">
  65. <span>退款处理中</span>
  66. </div>
  67. </li>
  68. </ul>
  69. <?php $goods_total += $order_goods['total'];} ?>
  70. <div class="expenses">
  71. <?php if($order_info['shipping_fare']>0){?>
  72. <div class="row">
  73. <span class="key">运费:</span>
  74. <span class="value">&yen;<?php echo round($order_info['shipping_fare'],2); ?></span>
  75. </div>
  76. <?php } ?>
  77. <div class="row">
  78. <span class="key">商品金额:</span>
  79. <span class="value">&yen;<?php echo round($goods_total,2); ?></span>
  80. </div>
  81. <?php if($order_info['type'] == 'integral'){ ?>
  82. <div class="row">
  83. <span class="key">兑换积分:</span>
  84. <span class="value">-<?php echo intval($score); ?>积分</span>
  85. </div>
  86. <?php } ?>
  87. <?php if(!empty($voucher_info)){ ?>
  88. <div class="row">
  89. <span class="key">优惠券:</span>
  90. <span class="value">{$voucher_info.voucher_title}</span>
  91. </div>
  92. <?php } ?>
  93. <div class="row">
  94. <span class="key">总计:</span>
  95. <span class="value">&yen;<?php echo round($order_info['total'],2);?></span>
  96. </div>
  97. </div>
  98. </div>
  99. <!--订单信息-->
  100. <div class="order">
  101. <div class="row">
  102. 订单编号:
  103. <span class="value">{$order_info.order_num_alias} &nbsp;(长按复制)</span>
  104. </div>
  105. <div class="row">
  106. 下单时间:
  107. <span class="value"><?php echo date('Y-m-d H:i', $order_info['date_added']); ?></span>
  108. </div>
  109. <?php if($order_info['delivery'] == 'pickup'){ ?>
  110. <?php if( in_array($order_info['order_status_id'],array(4,6,11,12,13))){ ?>
  111. <div class="row">
  112. 配送方式:<span class="value">自提</span>
  113. </div>
  114. <div class="row">
  115. 自提点:<span class="value">{$pick_up.pick_name}</span>
  116. </div>
  117. <div class="row">
  118. 自提点位置:<span class="value">{$pick_up.pick_pos}</span>
  119. </div>
  120. <div class="row">
  121. 联系方式:<span class="value"><a href="tel:{$pick_up.telephone}">{$pick_up.telephone}</a></span>
  122. </div>
  123. <div class="row">
  124. 自提单号:<span class="value">
  125. <?php echo $pick_order_info['pick_sn']; ?>
  126. (提货状态:<span style="color:red;">
  127. <?php
  128. if($pick_order_info['state'] == 0)
  129. {
  130. echo '未提货';
  131. } else if($pick_order_info['state'] == 1){
  132. echo '已提货';
  133. }
  134. ?></span>)
  135. </span>
  136. </div>
  137. <div class="row">
  138. 核销码:
  139. </div>
  140. <div class="row">
  141. <img src="{:U('Order/get_picksn_qrcode', array('pick_sn' => $pick_order_info['pick_sn']))}" width="90%"/>
  142. <div id="allmap" style="display:none;height:400px;width:100%;font-size:18px;"></div>
  143. </div>
  144. <script type="text/javascript" src="https://api.map.baidu.com/api?v=2.0&ak=DC28bd66db60c272578c79beb570bf6d"></script>
  145. <script type="text/javascript">
  146. // 百度地图API功能
  147. var map = new BMap.Map("allmap");
  148. var point = new BMap.Point(<?php echo $pick_up['lng']; ?>, <?php echo $pick_up['lat']; ?>);
  149. var marker = new BMap.Marker(point); // 创建标注
  150. map.addOverlay(marker); // 将标注添加到地图中
  151. map.centerAndZoom(point, 16);
  152. var opts = {
  153. width : 200, // 信息窗口宽度
  154. height: 100, // 信息窗口高度
  155. title : "<?php echo $pick_up['pick_name']; ?>" , // 信息窗口标题
  156. enableMessage:true,//设置允许信息窗发送短息
  157. message:"联系电话:<?php echo $pick_up['telephone']; ?>"
  158. }
  159. var infoWindow = new BMap.InfoWindow("<br/>联系电话:<?php echo $pick_up['telephone']; ?>", opts); // 创建信息窗口对象
  160. marker.addEventListener("click", function(){
  161. map.openInfoWindow(infoWindow,point); //开启信息窗口
  162. });
  163. </script>
  164. <?php } ?>
  165. <?php } ?>
  166. </div>
  167. </div>
  168. <style>
  169. .order .row:first-child:after{display:none;}
  170. </style>
  171. <!--可操作项-->
  172. <?php if( in_array($order_info['order_status_id'], array(2,3,4,6,12) ) ){ ?>
  173. <div class="actions">
  174. <?php if($order_info['order_status_id'] == 3){ ?>
  175. <div class="btn hasActions" onclick="order_pay(this)" data-pay-url="{:U('Payment/order_pay', array('order_id' => $order_info['order_id']) )}">
  176. <span>立即支付</span>
  177. </div>
  178. <div class="btn highlight" onclick="order_cancel(this)" data-o-id="{$order_info.order_id}">
  179. <span>取消订单</span>
  180. </div>
  181. <?php } ?>
  182. <!-- 拼团中 -->
  183. <?php if($order_info['order_status_id'] == 2){ ?>
  184. <div class="btn hasActions" onclick="location.href='{:U('Group/info', array('group_order_id' => $order_info['hash_order_id']))}';">
  185. <span>邀请好友拼团</span>
  186. </div>
  187. <?php } ?>
  188. <!-- 待收货 -->
  189. <?php if( in_array($order_info['order_status_id'], array(4,12))){ ?>
  190. <div class="btn highlight" onclick="order_receive(this)" rel="确认收货" data-o-id="{$order_info.order_id}">
  191. <span>确认收货</span>
  192. </div>
  193. <div class="btn " onclick="location.href='{:U('Order/goods_express', array('id' => $order_info['order_id']))}';">
  194. <span>查看物流</span>
  195. </div>
  196. <?php } ?>
  197. <!-- 待评价-->
  198. <?php if($order_info['order_status_id'] == 6){ ?>
  199. <div class="btn highlight" onclick="location.href='{:U('Order/comment', array('order_id' => $order_info['order_id']))}';">
  200. <span>立即评价</span>
  201. </div>
  202. <?php } ?>
  203. </div>
  204. <?php }else{ ?>
  205. <include file="Public:foot_pinduoduo" />
  206. <style>
  207. .go-top{display:none;}
  208. .footer .nav-controller i{margin-bottom: 6px;}
  209. .footer{max-width:3000px;display:none;}
  210. </style>
  211. <script>
  212. $(function(){
  213. var _dpr = $(window).attr('dpr');
  214. if(_dpr > 1)
  215. {
  216. $('.footer').css('height',($('.footer').height() * _dpr)+'px');
  217. $('.footer .nav-controller i').css('height',(23 * _dpr)+'px');
  218. $('.footer .nav-controller i').css('width',(23 * _dpr)+'px');
  219. $('.footer .nav-controller i').css('background-size',(23 * _dpr) +'px');
  220. $('.footer .nav-controller i').css('margin-bottom',(4 * _dpr) +'px');
  221. $('.footer .nav-controller i').css('margin-top',(6 * _dpr) +'px');
  222. $('.footer a').css('font-size', (10 * _dpr) + 'px');
  223. $('.footer').show();
  224. }else{
  225. $('.footer').show();
  226. }
  227. })
  228. </script>
  229. <?php } ?>
  230. </div>
  231. <div class="popup-mask" style="display: none;position: fixed; width: 100%;height: auto;top: 50%;z-index: 999999999; background: rgba(0, 0, 0, 0);">
  232. <div class="popup-main" style=" max-width: 50%; height: auto;margin: auto;background-color: rgba(0,0,0,.8);color: #f0f0f0;font-size: 16px;padding: 10px;text-align: center;border-radius: 5px;box-shadow: 0 0 24px -1px #383838; background: rgba(41, 49, 61, 0.701961);">
  233. <div class="popup-content"><div style="color:#fff;font-size:0.6rem;margin:0"></div>
  234. </div>
  235. </div>
  236. </div>
  237. <script>
  238. var order_id = "<?php echo $order_info['order_id']; ?>";
  239. $(function(){
  240. $('.J_icon-closed').click(function(){
  241. $('.J_address-mask').addClass('hidden');
  242. })
  243. $('#J_submit_btn').click(function(){
  244. var refund_reason = $('#refund-reason').val();
  245. $.ajax({
  246. url:"{:U('Order/refund_order')}",
  247. type:'post',
  248. data:{order_id:order_id,refund_reason:refund_reason},
  249. success:function(ret){
  250. if(ret.code ==1)
  251. {
  252. } else {
  253. }
  254. }
  255. })
  256. })
  257. })
  258. function show_mask(title)
  259. {
  260. $('.popup-content div').html(title);
  261. $('.popup-mask').fadeIn(1500,function(){
  262. $('.popup-mask').fadeOut(1500);
  263. })
  264. }
  265. //立即支付
  266. function order_pay(obj)
  267. {
  268. var pay_url = $(obj).attr('data-pay-url');
  269. //goto pay
  270. location.href = pay_url;
  271. return false;
  272. }
  273. //确认收货
  274. function order_receive(obj)
  275. {
  276. var order_id = $(obj).attr('data-o-id');
  277. $.ajax({
  278. url:"{:U('Order/receive_order')}",
  279. type:'post',
  280. data:{order_id:order_id},
  281. dataType:'json',
  282. success:function(result){
  283. if(result.code == 1){
  284. show_mask('收货成功');
  285. $(obj).hide();
  286. } else {
  287. show_mask(result.msg);
  288. }
  289. }
  290. })
  291. }
  292. //取消订单
  293. function order_cancel(obj)
  294. {
  295. var order_id = $(obj).attr('data-o-id');
  296. var back_url = "{:U('Order/index')}";
  297. $.ajax({
  298. url:"{:U('Order/cancel_order')}",
  299. type:'post',
  300. data:{order_id:order_id},
  301. dataType:'json',
  302. success:function(result){
  303. if(result.code == 1){
  304. show_mask('取消成功');
  305. location.href = back_url;
  306. return false;
  307. } else {
  308. show_mask(result.msg);
  309. }
  310. }
  311. })
  312. }
  313. </script>
  314. </block>