hexiao_pickup.html 8.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243
  1. <extend name="Public:pinduoduobase" />
  2. <block name="content">
  3. <link rel="stylesheet" href="__PUBLIC__/pinduoduo/assets/css/order_bbf21a65d7f04ce42404217afc4512bd.css">
  4. <div id="root">
  5. <div>
  6. <div class="order-banner">
  7. <div class="_banner_img order_unpay">
  8. </div>
  9. <div class="_banner_txt">
  10. <div class="_msg_tag">{$order_status_info.name}</div>
  11. <div class="_msg_content"></div>
  12. </div>
  13. </div>
  14. <div class="order-address-info">
  15. <img class="order-address-icon" src="__PUBLIC__/pinduoduo/assets/img/address_locate-a8a004db65.png">
  16. <div class="order-address-body">
  17. <div class="address-body-top">
  18. <div class="_address_person">收货人:{$order_info.shipping_name}</div>
  19. <div class="_address_mobile">{$order_info.telephone}</div>
  20. </div>
  21. <div class="address-body-detail">收货地址:{$shipping_province.area_name}{$shipping_city.area_name}{$shipping_country.area_name}{$order_info.shipping_address}</div>
  22. </div>
  23. </div>
  24. <div class="order-order">
  25. <div class="order-order-bd-top">
  26. <div class="order-mall-title">
  27. <img class="_icon" src="<?php echo resize($store_info['s_logo'], 100, 100); ?>">
  28. <span class="_mall_name">{$store_info.s_true_name}</span>
  29. <span class="_order_status">{$order_status_info.name}</span>
  30. </div>
  31. </div>
  32. <div class="order-order-goods">
  33. <div class="order-order-goods-img">
  34. <img src="{$goods_info.image}">
  35. </div>
  36. <div class="order-order-goods-name" >
  37. <div class="_goods_name">{$order_goods.name}</div>
  38. <div class="_spec">
  39. <?php if(!empty($order_option_info)){ ?>
  40. <?php foreach($order_option_info as $val) { ?>
  41. <?php echo $val['name']; ?>(<?php echo $val['value']; ?>)
  42. <?php } ?>
  43. <?php } ?>
  44. </div>
  45. </div>
  46. <div class="order-order-goods-attr">
  47. <div class="order-order-goods-attr-item">
  48. <div class="order-order-goods-price">
  49. <div class="_price"><i>¥</i><?php echo round($order_goods['price'],2);?></div>
  50. <div class="_num">×{$order_goods.quantity}</div>
  51. </div>
  52. </div>
  53. </div>
  54. <div class="order-order-group-detail">
  55. <?php if($order_info['delivery'] == 'pickup'){ ?>
  56. <?php if( in_array($order_info['order_status_id'],array(4))){ ?>
  57. <div class="_group_info" id="hexiao" rel="{:U('Seller/pickup_pickage', array('pick_id' => $pick_order_info['id']))}">确认核销</div>
  58. <?php } ?>
  59. <?php } ?>
  60. </div>
  61. </div>
  62. <div class="order-order-bd-bottom">
  63. <div class="order-order-ft">
  64. <div class="order-order-total">
  65. <?php if(!empty($voucher_info)){ ?>
  66. <div class="_coupon_des">{$voucher_info.voucher_title}</div>
  67. <?php } ?>
  68. <!--ms-if-->
  69. <div class="_right">
  70. <div class="_order_price">共{$order_goods.quantity}件商品&nbsp;合计:<span>¥<?php echo round($order_info['total'],2);?></span>(免运费)</div>
  71. </div>
  72. </div>
  73. <div class="order-order-more-info" style="display:none;">
  74. <div class="_more_info">
  75. <img class="_more_info_img" src="http://cdn.yangkeduo.com/assets/img/phone_call-9c4b445ee5.png">
  76. <a class="_more_info_txt" id="phone_call" href="tel: 4008822528">拨打电话</a>
  77. </div>
  78. <div class="_more_info _hr">
  79. <img class="_more_info_img" src="http://cdn.yangkeduo.com/assets/img/chat-4f13924c39.png">
  80. <!--ms-if-->
  81. <span class="_more_info_txt">联系卖家</span>
  82. </div>
  83. </div>
  84. </div>
  85. </div>
  86. </div>
  87. <div class="order-order-detail">
  88. <div class="order-detail-row">
  89. <div class="_row_key">订单编号:</div>
  90. <div class="_row_value">
  91. <span>{$order_info.order_num_alias}</span>
  92. </div>
  93. </div>
  94. <div class="order-detail-row">
  95. <div class="_row_key">支付方式:</div>
  96. <div class="_row_value">
  97. 微信支付
  98. </div>
  99. </div>
  100. <div class="order-detail-row">
  101. <div class="_row_key">下单时间:</div>
  102. <div class="_row_value"><?php echo date('Y-m-d H:i:s', $order_info['date_added']); ?></div>
  103. </div>
  104. <!--ms-if-->
  105. <?php if($order_info['delivery'] == 'pickup'){ ?>
  106. <?php if( in_array($order_info['order_status_id'],array(4,6,11,12,13))){ ?>
  107. <div class="order-detail-row" style="">
  108. <div class="_row_key">配送方式:</div>
  109. <div class="_row_value">自提</div>
  110. </div>
  111. <div class="order-detail-row" style="">
  112. <div class="_row_key">自提点:</div>
  113. <div class="_row_value">{$pick_up.pick_name}</div>
  114. </div>
  115. <div class="order-detail-row" style="">
  116. <div class="_row_key">联系方式:</div>
  117. <div class="_row_value">{$pick_up.telephone}</div>
  118. </div>
  119. <div class="order-detail-row" style="">
  120. <div class="_row_key">自提单号:</div>
  121. <div class="_row_value">
  122. <?php echo $pick_order_info['pick_sn']; ?>
  123. (提货状态:<span style="color:red;">
  124. <?php
  125. if($pick_order_info['state'] == 0)
  126. {
  127. echo '未提货';
  128. } else if($pick_order_info['state'] == 1){
  129. echo '已提货';
  130. }
  131. ?></span>)
  132. </div>
  133. </div>
  134. <?php } ?>
  135. <?php }else { ?>
  136. <?php if( in_array($order_info['order_status_id'],array(4,6,11,12,13))){ ?>
  137. <div class="order-detail-row" style="">
  138. <div class="_row_key">快递方式:</div>
  139. <?php $seller_express = M('seller_express')->where( array('id' =>$order_info['shipping_method']) )->find(); ?>
  140. <div class="_row_value">{$seller_express['express_name']}</div>
  141. </div>
  142. <div class="order-detail-row" style="">
  143. <div class="_row_key">运单编号:</div>
  144. <div class="_row_value">{$order_info.shipping_no}</div>
  145. </div>
  146. <?php } ?>
  147. <?php } ?>
  148. </div>
  149. </div>
  150. <div class="order-detail-bottom"></div>
  151. </div>
  152. <include file="Widget:pin_toast" />
  153. <script>
  154. $(function(){
  155. var s_wins_width = $(window).width() - 170;
  156. $('.order-order-goods-name').css('width',s_wins_width+'px');
  157. $('#hexiao').click(function(){
  158. var rel_url = $(this).attr('rel');
  159. $.ajax({
  160. url:rel_url,
  161. type:'get',
  162. dataType:'json',
  163. success:function(ret){
  164. if(ret.code == 1)
  165. {
  166. alert('核销成功');
  167. location.href = location.href;
  168. return false;
  169. } else {
  170. alert(ret.msg);
  171. }
  172. }
  173. })
  174. })
  175. })
  176. //立即支付
  177. function order_pay(obj)
  178. {
  179. var pay_url = $(obj).attr('data-pay-url');
  180. //goto pay
  181. location.href = pay_url;
  182. return false;
  183. }
  184. //确认收货
  185. function order_receive(obj)
  186. {
  187. var order_id = $(obj).attr('data-o-id');
  188. $.ajax({
  189. url:"{:U('Order/receive_order')}",
  190. type:'post',
  191. data:{order_id:order_id},
  192. dataType:'json',
  193. success:function(result){
  194. if(result.code == 1){
  195. showTip('收货成功');
  196. $(obj).hide();
  197. } else {
  198. showTip(result.msg);
  199. }
  200. }
  201. })
  202. }
  203. //取消订单
  204. function order_cancel(obj)
  205. {
  206. var order_id = $(obj).attr('data-o-id');
  207. var back_url = "{:U('Order/index')}";
  208. $.ajax({
  209. url:"{:U('Order/cancel_order')}",
  210. type:'post',
  211. data:{order_id:order_id},
  212. dataType:'json',
  213. success:function(result){
  214. if(result.code == 1){
  215. showTip('取消成功');
  216. location.href = back_url;
  217. return false;
  218. } else {
  219. showTip(result.msg);
  220. }
  221. }
  222. })
  223. }
  224. </script>
  225. </block>