show.html 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183
  1. <extend name="Public:base" />
  2. <block name="content">
  3. <div class="page-header">
  4. <h1>
  5. {$breadcrumb2}
  6. <small>
  7. <i class="icon-double-angle-right"></i>
  8. {$crumbs}
  9. </small>
  10. </h1>
  11. </div>
  12. <div class="page-content">
  13. <div class="panel panel-default">
  14. <div class="panel-heading">
  15. 团信息
  16. </div>
  17. <div class="panel-body" style="">
  18. <div class="detail-context">
  19. <div style="padding-left:5px;padding-top:10px;padding-bottom:10px">
  20. 拼团详情二维码:
  21. <img src="http://qr.topscan.com/api.php?text={$pin_url}" width="200" />
  22. </div>
  23. <table class="table table-hover">
  24. <thead class="navbar-inner">
  25. <tr>
  26. <th>团购订单号</th>
  27. <th>团购人数</th>
  28. <th>创建时间</th>
  29. <th>过期时间</th>
  30. <th>团购状态</th>
  31. </tr>
  32. </thead>
  33. <tbody>
  34. <tr>
  35. <td>{$pin_info.pin_id}</td>
  36. <td> {$pin_buy_count}/ {$pin_info.need_count}</td>
  37. <td>
  38. <?php echo date('Y-m-d H:i:s', $pin_info['begin_time']); ?>
  39. </td>
  40. <td>
  41. <?php echo date('Y-m-d H:i:s', $pin_info['end_time']); ?>
  42. </td>
  43. <td>
  44. <?php if($v['state'] == 0){ ?>
  45. <span class="blue">拼团中</span>
  46. <?php }else if($v['state'] == 1){ ?>
  47. <span class="red">已完成</span>
  48. <?php }else if($v['state'] == 2){ ?>
  49. <span class="grey">已过期</span>
  50. <?php } ?>
  51. </td> </td>
  52. </tr>
  53. </tbody>
  54. </table>
  55. </div>
  56. </div>
  57. <!--修改团状态-->
  58. </div>
  59. <div class="panel panel-default">
  60. <div class="panel-heading">
  61. 用户信息
  62. </div>
  63. <div class="panel-body table-responsive">
  64. <table class="table table-hover">
  65. <thead class="navbar-inner">
  66. <tr>
  67. <th style="width:80px;">订单号</th>
  68. <th style="width:70px;">姓名</th>
  69. <th style="width:100px;">电话</th>
  70. <th style="">支付方式</th>
  71. <th style="width:80px;">订单状态</th>
  72. <th >拼团单价</th>
  73. <th >购买数量</th>
  74. <th style="">运费</th>
  75. <th style="width:60px;">总价</th>
  76. <th style="">下单时间</th>
  77. <th style="">收货地址</th>
  78. <th style="width:100px;">操作</th>
  79. </tr>
  80. </thead>
  81. <tbody>
  82. <volist name="list" id="v" empty="$empty">
  83. <tr>
  84. <td>{$v.order_num_alias}</td>
  85. <td>
  86. {$v.name}
  87. </td>
  88. <td>{$v.telephone}</td>
  89. <td>
  90. 微信公众号支付
  91. </td>
  92. <td>
  93. <span class="label label-default">
  94. <?php if($v['order_status_id'] == 1) {
  95. echo '已成团待发货';
  96. }else{
  97. echo $order_status_arr[$v['order_status_id']];
  98. }
  99. ?>
  100. </span>
  101. </td>
  102. <td> <?php echo round($v['price'],2); ?> 元</td>
  103. <td>
  104. {$v.quantity}
  105. </td>
  106. <td> <?php echo round($v['shipping_fare'],2); ?> 元</td>
  107. <td> <?php echo round($v['total'],2); ?> 元</td>
  108. <td><?php echo date('Y-m-d H:i:s',$v['date_added']); ?></td>
  109. <td>{$v.province_name}-{$v.city_name}-{$v.area_name}-{$v.shipping_address}</td>
  110. <td>
  111. <a href="{:U('Order/show_order', array('id' => $v['order_id']))}" target="_blank" class="btn btn-success btn-sm">查看订单</a>
  112. </td>
  113. </tr>
  114. </volist>
  115. </tbody>
  116. </table>
  117. </div>
  118. </div>
  119. <div class="panel panel-default">
  120. <div class="panel-heading">
  121. 商品信息
  122. </div>
  123. <div class="panel-body table-responsive">
  124. <table class="table table-hover">
  125. <thead class="navbar-inner">
  126. <tr>
  127. <th style="width:5%;">ID</th>
  128. <th style="width:15%;">商品标题</th>
  129. <th style="width:15%;">商品图片</th>
  130. </tr>
  131. </thead>
  132. <tbody>
  133. <tr>
  134. <td>{$order.goods_id}</td>
  135. <td>{$order.goods_name}</td>
  136. <td>
  137. <div style=" width:40px;height:40px;">
  138. <img src="{$goods_images}" style=" width:40px;height:40px;" alt="" title="">
  139. </div>
  140. </td>
  141. </tr>
  142. </tbody></table>
  143. </div>
  144. </div>
  145. </div>
  146. </block>
  147. <block name="javascript">
  148. <script>
  149. $('#history').load('<?php echo U("Order/history",array("id"=>I("id"))); ?>');
  150. $('#button-history').live('click', function() {
  151. $.ajax({
  152. url: '<?php echo U("Order/history",array("id"=>I("id"))); ?>',
  153. type: 'post',
  154. dataType: 'html',
  155. data: 'shipping_no='+encodeURIComponent($('#shipping_no').val())+'&shipping_method='+encodeURIComponent($('#shipping_method').val())+'&order_status_id=' + encodeURIComponent($('select[name=\'order_status_id\']').val()) + '&notify=' + encodeURIComponent($('input[name=\'notify\']').attr('checked') ? 1 : 0) + '&comment=' + encodeURIComponent($('textarea[name=\'comment\']').val()),
  156. beforeSend: function() {
  157. $('.success, .warning').remove();
  158. $('#button-history').attr('disabled', true);
  159. $('#history').prepend('<div class="attention"><img src="__IMG__/loading.gif" alt="" />加载中...</div>');
  160. },
  161. complete: function() {
  162. $('#button-history').attr('disabled', false);
  163. $('.attention').remove();
  164. },
  165. success: function(html) {
  166. $('#history').html(html);
  167. $('textarea[name=\'comment\']').val('');
  168. $('#order-status').html($('select[name=\'order_status_id\'] option:selected').text());
  169. }
  170. });
  171. });
  172. </script>
  173. </block>