order_all_info.html 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287
  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. <?php $i=1; foreach($need_data as $need_val){ ?>
  10. <?php
  11. $order_info = $need_val['order_info'];
  12. $store_info = $need_val['store_info'];
  13. $order_goods_list = $need_val['order_goods_list'];
  14. ?>
  15. <div class="content">
  16. <!--状态-->
  17. <div class="status waitForReceiving" <?php if($i == 1){ ?> style="display:block;" <?php }else{ ?>style="display:none;" <?php } ?>>
  18. <span class="text">{$order_status_info.name}</span>
  19. <span class="img"></span>
  20. </div>
  21. <!--快递,收货地址-->
  22. <div class="addressWrapper" <?php if($i == 1){ ?> style="display:block;" <?php }else{ ?>style="display:none;" <?php } ?> >
  23. <div class="receiver">
  24. <div class="r1">
  25. <span class="name">{$shipping_name}</span>
  26. <span class="phone">{$telephone}</span>
  27. </div>
  28. <div class="address">
  29. {$shipping_province.area_name}{$shipping_city.area_name}{$shipping_country.area_name}{$shipping_address}
  30. </div>
  31. </div>
  32. </div>
  33. <!--商品,金额明细-->
  34. <div class="goods">
  35. <?php $goods_total =0; foreach($order_goods_list as $order_goods){ ?>
  36. <ul class="items">
  37. <li class="item">
  38. <a href="javascript:;">
  39. <div class="img-wrapper">
  40. <img class="icon" src="{$order_goods.image}" />
  41. </div>
  42. <div class="title">
  43. {$order_goods.name}
  44. </div>
  45. <div class="sku">
  46. {$order_goods.option_str}
  47. </div>
  48. <div class="money">
  49. <span class="price">&yen;<?php echo round($order_goods['price'],2);?></span>
  50. <span class="num">x{$order_goods.quantity}</span>
  51. </div>
  52. </a>
  53. </li>
  54. <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']))}';">
  55. <div class="btn highlight" data-after_sale="">
  56. <span>申请售后</span>
  57. </div>
  58. </li>
  59. </ul>
  60. <?php $goods_total += $order_goods['total'];} ?>
  61. <section class="address-mask J_address-mask hidden">
  62. <div class="address-modal">
  63. <span class="icon-closed J_icon-closed"></span>
  64. <div class="address-form J_address-form" data-aid="0">
  65. <div class="title border-b J_title">退款详情</div>
  66. <div class="single-input border-b">
  67. <input placeholder="退款原因" id="refund-reason">
  68. </div>
  69. <div class="error-tips J_error-tips"></div>
  70. <div id="J_submit_btn" class="sbtn J_addAdress-btn">
  71. <span>确认</span>
  72. </div>
  73. </div>
  74. </div>
  75. </section>
  76. <div class="expenses">
  77. <?php if($order_info['shipping_fare']>0){?>
  78. <div class="row">
  79. <span class="key">运费:</span>
  80. <span class="value">&yen;<?php echo round($order_info['shipping_fare'],2); ?></span>
  81. </div>
  82. <?php } ?>
  83. <div class="row">
  84. <span class="key">商品金额:</span>
  85. <span class="value">&yen;<?php echo round($goods_total,2); ?></span>
  86. </div>
  87. <div class="row">
  88. <span class="key">总计:</span>
  89. <span class="value">&yen;<?php echo round($order_info['total'],2);?></span>
  90. </div>
  91. </div>
  92. </div>
  93. <!--订单信息-->
  94. <div class="order">
  95. <div class="row">
  96. 订单编号22:
  97. <span class="value">{$order_info.order_num_alias}</span>
  98. </div>
  99. <div class="row">
  100. 下单时间:
  101. <span class="value"><?php echo date('Y-m-d H:i', $order_info['date_added']); ?></span>
  102. </div>
  103. </div>
  104. </div>
  105. <?php $i++;} ?>
  106. <!--可操作项-->
  107. <?php if( in_array($order_info['order_status_id'], array(2,3,4,6,12) ) ){ ?>
  108. <div class="actions">
  109. <?php if($order_info['order_status_id'] == 3){ ?>
  110. <div class="btn hasActions" onclick="order_pay(this)" data-pay-url="{:U('Payment/order_pay', array('order_id' => $order_info['order_id']) )}">
  111. <span>立即支付</span>
  112. </div>
  113. <div class="btn highlight" onclick="order_cancel(this)" data-o-id="{$order_info.order_id}">
  114. <span>取消订单</span>
  115. </div>
  116. <?php } ?>
  117. <!-- 拼团中 -->
  118. <?php if($order_info['order_status_id'] == 2){ ?>
  119. <div class="btn hasActions" onclick="location.href='{:U('Group/info', array('group_order_id' => $order_info['hash_order_id']))}';">
  120. <span>邀请好友拼团</span>
  121. </div>
  122. <?php } ?>
  123. <!-- 待收货 -->
  124. <?php if( in_array($order_info['order_status_id'], array(4,12))){ ?>
  125. <div class="btn highlight" onclick="order_receive(this)" rel="确认收货" data-o-id="{$order_info.order_id}">
  126. <span>确认收货</span>
  127. </div>
  128. <div class="btn " onclick="location.href='{:U('Order/goods_express', array('id' => $order_info['order_id']))}';">
  129. <span>查看物流</span>
  130. </div>
  131. <?php } ?>
  132. <!-- 待评价-->
  133. <?php if($order_info['order_status_id'] == 6){ ?>
  134. <div class="btn highlight" onclick="location.href='{:U('Order/comment', array('order_id' => $order_info['order_id']))}';">
  135. <span>立即评价</span>
  136. </div>
  137. <?php } ?>
  138. </div>
  139. <?php }else{ ?>
  140. <include file="Public:foot_pinduoduo" />
  141. <style>
  142. .go-top{display:none;}
  143. .footer .nav-controller i{margin-bottom: 6px;}
  144. .footer{max-width:3000px;display:none;}
  145. </style>
  146. <script>
  147. $(function(){
  148. var _dpr = $(window).attr('dpr');
  149. if(_dpr > 1)
  150. {
  151. $('.footer').css('height',($('.footer').height() * _dpr)+'px');
  152. $('.footer .nav-controller i').css('height',(23 * _dpr)+'px');
  153. $('.footer .nav-controller i').css('width',(23 * _dpr)+'px');
  154. $('.footer .nav-controller i').css('background-size',(23 * _dpr) +'px');
  155. $('.footer .nav-controller i').css('margin-bottom',(4 * _dpr) +'px');
  156. $('.footer .nav-controller i').css('margin-top',(6 * _dpr) +'px');
  157. $('.footer a').css('font-size', (10 * _dpr) + 'px');
  158. $('.footer').show();
  159. }else{
  160. $('.footer').show();
  161. }
  162. })
  163. </script>
  164. <?php } ?>
  165. </div>
  166. <div class="popup-mask" style="display: none;position: fixed; width: 100%;height: auto;top: 50%;z-index: 999999999; background: rgba(0, 0, 0, 0);">
  167. <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);">
  168. <div class="popup-content"><div style="color:#fff;font-size:0.6rem;margin:0"></div>
  169. </div>
  170. </div>
  171. </div>
  172. <script>
  173. var order_id = "<?php echo $order_info['order_id']; ?>";
  174. $(function(){
  175. $('.J_icon-closed').click(function(){
  176. $('.J_address-mask').addClass('hidden');
  177. })
  178. $('#J_submit_btn').click(function(){
  179. var refund_reason = $('#refund-reason').val();
  180. $.ajax({
  181. url:"{:U('Order/refund_order')}",
  182. type:'post',
  183. data:{order_id:order_id,refund_reason:refund_reason},
  184. success:function(ret){
  185. if(ret.code ==1)
  186. {
  187. } else {
  188. }
  189. }
  190. })
  191. })
  192. })
  193. function show_mask(title)
  194. {
  195. $('.popup-content div').html(title);
  196. $('.popup-mask').fadeIn(1500,function(){
  197. $('.popup-mask').fadeOut(1500);
  198. })
  199. }
  200. //立即支付
  201. function order_pay(obj)
  202. {
  203. var pay_url = $(obj).attr('data-pay-url');
  204. //goto pay
  205. location.href = pay_url;
  206. return false;
  207. }
  208. //确认收货
  209. function order_receive(obj)
  210. {
  211. var order_id = $(obj).attr('data-o-id');
  212. $.ajax({
  213. url:"{:U('Order/receive_order')}",
  214. type:'post',
  215. data:{order_id:order_id},
  216. dataType:'json',
  217. success:function(result){
  218. if(result.code == 1){
  219. show_mask('收货成功');
  220. $(obj).hide();
  221. } else {
  222. show_mask(result.msg);
  223. }
  224. }
  225. })
  226. }
  227. //取消订单
  228. function order_cancel(obj)
  229. {
  230. var order_id = $(obj).attr('data-o-id');
  231. var back_url = "{:U('Order/index')}";
  232. $.ajax({
  233. url:"{:U('Order/cancel_order')}",
  234. type:'post',
  235. data:{order_id:order_id},
  236. dataType:'json',
  237. success:function(result){
  238. if(result.code == 1){
  239. show_mask('取消成功');
  240. location.href = back_url;
  241. return false;
  242. } else {
  243. show_mask(result.msg);
  244. }
  245. }
  246. })
  247. }
  248. </script>
  249. </block>