orders.htm 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. ##tlayout("www/layout.htm"){
  2. <nav class="my-nav">
  3. <ul class="container list-unstyled nav-list clearfix">
  4. <li><a href="/user">个人中心</a></li>
  5. <li class="active"><a href="/user/orders">我的订单</a></li>
  6. <li><a href="/user/diy">我的定制</a></li>
  7. <li><a href="/user/address">收货地址</a></li>
  8. </ul>
  9. </nav>
  10. <section class="container" style="min-height: 600px;">
  11. <div class="order-tab clearfix">
  12. ##if(exist("status")){
  13. <a href="/user/orders">全部</a>
  14. ##if(status==0){
  15. <a href="/user/orders?status=0" class="active">未付款</a>
  16. ##}else{
  17. <a href="/user/orders?status=0">未付款</a>
  18. ##}
  19. ##if(status==1){
  20. <a href="/user/orders?status=1" class="active">付款确认中</a>
  21. ##}else{
  22. <a href="/user/orders?status=1">付款确认中</a>
  23. ##}
  24. ##if(status==2){
  25. <a href="/user/orders?status=2" class="active">待发货</a>
  26. ##}else{
  27. <a href="/user/orders?status=2">待发货</a>
  28. ##}
  29. ##if(status==3){
  30. <a href="/user/orders?status=3" class="active">已发货</a>
  31. ##}else{
  32. <a href="/user/orders?status=3">已发货</a>
  33. ##}
  34. ##if(status==4){
  35. <a href="/user/orders?status=4" class="active">已收货</a>
  36. ##}else{
  37. <a href="/user/orders?status=4">已收货</a>
  38. ##}
  39. ##if(status==5){
  40. <a href="/user/orders?status=5" class="active">已完成</a>
  41. ##}else{
  42. <a href="/user/orders?status=5">已完成</a>
  43. ##}
  44. ##if(status==9){
  45. <a href="/user/orders?status=9" class="active">退款中</a>
  46. ##}else{
  47. <a href="/user/orders?status=9">退款中</a>
  48. ##}
  49. ##}else{
  50. <a href="/user/orders" class="active">全部</a>
  51. <a href="/user/orders?status=0">未付款</a>
  52. <a href="/user/orders?status=1">付款确认中</a>
  53. <a href="/user/orders?status=2">待发货</a>
  54. <a href="/user/orders?status=3">已发货</a>
  55. <a href="/user/orders?status=4">已收货</a>
  56. <a href="/user/orders?status=5">已完成</a>
  57. <a href="/user/orders?status=9">退款中</a>
  58. ##}
  59. </div>
  60. ##for(_item in results.list!){
  61. <table class="table table-bordered order-table table-list">
  62. <thead>
  63. <tr>
  64. <th colspan="4">
  65. <span>${_item.create_date!,dateFormat='yyyy-MM-dd HH:mm'}</span>
  66. <span class="font-nom">订单号:${_item.code!}</span>
  67. ##if(_item.payment==1){
  68. <span class="font-nom">微信支付</span>
  69. ##}else if(_item.payment==2){
  70. <span class="font-nom">银行卡支付</span>
  71. ##}else if(_item.payment==3){
  72. <span class="font-nom">支付宝支付</span>
  73. ##}
  74. </th>
  75. </tr>
  76. </thead>
  77. <tbody>
  78. <tr>
  79. <td class="list-td">
  80. <ul class="order-list list-unstyled">
  81. ##for(_diy in _item.item_list!){
  82. <li>
  83. <div class="pro-img pull-left">
  84. <a href="${_diy.diy_img_url!}" target="_blank">
  85. <img src="${_diy.diy_img_url!}" />
  86. </a>
  87. </div>
  88. <div class="pro-title ellipsis">${_diy.diy_title!}</div>
  89. <div class="pro-title ellipsis" style="font-weight: normal;font-size: 12px;">${_diy.diy_remark!}</div>
  90. <div class="pro-title ellipsis" style="font-weight: normal;font-size: 12px;">${_diy.bottle_title!}&nbsp;|&nbsp;${_diy.bottle_type_title!}</div>
  91. <div class="pro-num">¥${_diy.item_price!} * ${_diy.item_number!}箱</div>
  92. <div class="pro-price">¥${_diy.subtotal!}</div>
  93. </li>
  94. ##}
  95. </ul>
  96. </td>
  97. <td>¥${_item.grand_total!}<br/>(含运费:¥${_item.freight_price!})</td>
  98. <td>
  99. ##if(_item.status==0){
  100. 未付款
  101. ##}else if(_item.status==1){
  102. 付款确认中
  103. ##}else if(_item.status==2){
  104. 待发货
  105. ##}else if(_item.status==3){
  106. 已发货
  107. ##}else if(_item.status==4){
  108. 已收货
  109. ##}else if(_item.status==5){
  110. 已完成
  111. ##}else{
  112. 退款中
  113. ##}
  114. </td>
  115. <td><a href="/user/ordersMsg?code=${_item.code!}" class="red" target="_blank">查看详情</a></td>
  116. </tr>
  117. </tbody>
  118. </table>
  119. ##}
  120. ##if(totalPage>1){
  121. <nav aria-label="Page navigation" class="page">
  122. <#_page page="${results!}" params="status">
  123. <ul id="Pagination" class="pagination"></ul>
  124. </#_page>
  125. </nav>
  126. ##}
  127. </section>
  128. ##}