info.html 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160
  1. <extend name="Public:base" />
  2. <block name="head_script">
  3. <link href="__CSS__/member.css" rel="stylesheet" type="text/css">
  4. <link href="__PUBLIC__/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css">
  5. </block>
  6. <block name="content">
  7. <div>
  8. <div class="container">
  9. <div class="row">
  10. <div id="content" class="col-sm-9">
  11. <div class="page-title">
  12. <h1>订单信息</h1>
  13. </div>
  14. <div class="table-responsive">
  15. <table class="table table-bordered table-hover">
  16. <thead>
  17. <tr>
  18. <td class="text-left">订单号</td>
  19. <td></td>
  20. </tr>
  21. </thead>
  22. <tbody>
  23. <tr>
  24. <td class="text-left" style="width: 50%;">
  25. <b>订单号:</b><?php echo $order['order'][0]['order_num_alias'] ?> <br />
  26. <b>支付方式:</b><?php echo get_payment_name($order['order'][0]['payment_code']); ?>
  27. </td>
  28. <td><b>下单时间:</b><?php echo date("Y-m-d H:i:s",$order['order'][0]['date_added']) ?><br />
  29. <b>货运方式:</b><?php echo get_shipping_name($order['order'][0]['shipping_method']); ?>
  30. </td>
  31. </tr>
  32. </tbody>
  33. </table>
  34. </div>
  35. <div class="table-responsive">
  36. <table class="table table-bordered table-hover">
  37. <thead>
  38. <tr>
  39. <td colspan="2" class="text-left">收货地址</td>
  40. </tr>
  41. </thead>
  42. <tbody>
  43. <tr>
  44. <td colspan="2" class="text-left">
  45. <b>收货人:</b><?php echo $order['address']['name']; ?>,
  46. <b>联系电话:</b><?php echo $order['address']['telephone']; ?>,
  47. <b>收货地址:</b><?php echo get_area_name($order['address']['province_id']); ?>,
  48. <?php echo get_area_name($order['address']['city_id']); ?>,
  49. <?php echo get_area_name($order['address']['country_id']); ?>,
  50. <?php echo $order['address']['address']; ?>
  51. </td>
  52. </tr>
  53. </tbody>
  54. </table>
  55. </div>
  56. <div class="table-responsive">
  57. <table class="table table-bordered table-hover">
  58. <thead>
  59. <tr>
  60. <td class="text-left">名称</td>
  61. <td class="text-left">型号</td>
  62. <td class="text-left">数量</td>
  63. <td class="text-left">价格</td>
  64. <td class="text-left">总计</td>
  65. </tr>
  66. </thead>
  67. <tbody>
  68. <volist name="order['goods']" id="d">
  69. <tr>
  70. <td><a>{$d.name}</a>
  71. <?php if($option_list=M()->query('select * from '.C('DB_PREFIX').'order_option where order_goods_id='.$d['order_goods_id'].' and order_id='.$d['order_id'])){ ?>
  72. <?php foreach ($option_list as $option) { ?>
  73. <br />
  74. &nbsp;<small> - <?php echo $option['name']; ?>: <?php echo $option['value']; ?></small>
  75. <?php } ?>
  76. <?php } ?>
  77. </td>
  78. <td>{$d.model}</td>
  79. <td>{$d.quantity}</td>
  80. <td>¥ <?php echo round($d['price'],2); ?></td>
  81. <td>¥ <?php echo round($d['total'],2); ?></td>
  82. </tr>
  83. </volist>
  84. </tbody>
  85. <tfoot>
  86. <tr>
  87. <td colspan="3"></td>
  88. <td class="text-left"><b><?php echo $order['total'][0]['title']; ?></b></td>
  89. <td><?php echo $order['total'][0]['text']; ?></td>
  90. </tr>
  91. <tr>
  92. <td colspan="3"></td>
  93. <td class="text-left"><b><?php echo $order['total'][1]['title']; ?></b></td>
  94. <td><?php echo $order['total'][1]['text']; ?></td>
  95. </tr>
  96. <tr>
  97. <td colspan="3"></td>
  98. <td class="text-left"><b><?php echo $order['total'][2]['title']; ?></b></td>
  99. <td><?php echo $order['total'][2]['text']; ?></td>
  100. </tr>
  101. </tfoot>
  102. </table>
  103. </div>
  104. <div class="page-title">
  105. <h1>订单历史</h1>
  106. </div>
  107. <div class="table-responsive">
  108. <table class="table table-bordered table-hover">
  109. <thead>
  110. <tr>
  111. <td class="text-left">时间</td>
  112. <td class="text-left">状态</td>
  113. <td class="text-left">留言</td>
  114. </tr>
  115. </thead>
  116. <tbody>
  117. <volist name="order['history']" id="d">
  118. <tr>
  119. <td><?php echo date("Y-m-d H:i:s",$d['date_added']) ?></td>
  120. <td><?php echo get_order_status_name($d['order_status_id']); ?> </td>
  121. <td>{$d.comment}</td>
  122. </tr>
  123. </volist>
  124. </tbody>
  125. </table>
  126. </div>
  127. <?php if($order['order'][0]['order_status_id']==C('default_order_status_id')){ ?>
  128. <div class="buttons clearfix">
  129. <div class="left">
  130. <a style="background:#da2c2a;" onclick="window.location = '<?php echo U('Payment/confirm_pay',array('token'=>pay_token('pay_token'),'id'=>$_GET['id'])); ?>'" class="btn btn-primary btn-continue">去付款</a>
  131. <a style="float:right;" id="cancel" class="btn btn-primary btn-continue right" href="{:U('/cancel_order/'.$_GET['id'])}">取消订单</a>
  132. </div>
  133. </div>
  134. <?php } ?>
  135. </div>
  136. <include file="User/side" />
  137. </div>
  138. </div>
  139. </div>
  140. </block>
  141. <block name="foot_script">
  142. <script type="text/javascript">
  143. $('#cancel').click(function(){
  144. var f=confirm('确认要取消订单吗?');
  145. if(f==false){
  146. return false;
  147. }
  148. });
  149. </script>
  150. </block>