orders.htm 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. ##tlayout("wap/layout.htm",{head_title:"我的订单"}){
  2. <div class="index_navbar order_list_navber">
  3. <div class="index_navbar_content">
  4. ##if(exist("status")){
  5. <a href="/wap/user/orders">全部</a>
  6. ##if(status==0){
  7. <a href="/wap/user/orders?status=0" class="cur">未付款</a>
  8. ##}else{
  9. <a href="/wap/user/orders?status=0">未付款</a>
  10. ##}
  11. ##if(status==1){
  12. <a href="/wap/user/orders?status=1" class="cur">付款确认中</a>
  13. ##}else{
  14. <a href="/wap/user/orders?status=1">付款确认中</a>
  15. ##}
  16. ##if(status==2){
  17. <a href="/wap/user/orders?status=2" class="cur">待发货</a>
  18. ##}else{
  19. <a href="/wap/user/orders?status=2">待发货</a>
  20. ##}
  21. ##if(status==3){
  22. <a href="/wap/user/orders?status=3" class="cur">已发货</a>
  23. ##}else{
  24. <a href="/wap/user/orders?status=3">已发货</a>
  25. ##}
  26. ##if(status==4){
  27. <a href="/wap/user/orders?status=4" class="cur">已收货</a>
  28. ##}else{
  29. <a href="/wap/user/orders?status=4">已收货</a>
  30. ##}
  31. ##if(status==5){
  32. <a href="/wap/user/orders?status=5" class="cur">已完成</a>
  33. ##}else{
  34. <a href="/wap/user/orders?status=5">已完成</a>
  35. ##}
  36. ##if(status==9){
  37. <a href="/wap/user/orders?status=9" class="cur">退款中</a>
  38. ##}else{
  39. <a href="/wap/user/orders?status=9">退款中</a>
  40. ##}
  41. ##}else{
  42. <a href="/wap/user/orders" class="cur">全部</a>
  43. <a href="/wap/user/orders?status=0">未付款</a>
  44. <a href="/wap/user/orders?status=1">付款确认中</a>
  45. <a href="/wap/user/orders?status=2">待发货</a>
  46. <a href="/wap/user/orders?status=3">已发货</a>
  47. <a href="/wap/user/orders?status=4">已收货</a>
  48. <a href="/wap/user/orders?status=5">已完成</a>
  49. <a href="/wap/user/orders?status=9">退款中</a>
  50. ##}
  51. </div>
  52. </div>
  53. <div class="body" style="padding-top:45px;">
  54. <div class="order_list">
  55. ##for(_item in results.list!){
  56. <div class="order_list_item">
  57. <div class="title">
  58. <span>订单号:<a href="/wap/user/ordersMsg?code=${_item.code!}" style="color: #666">${_item.code!}</a></span>
  59. <span class="status color_red">
  60. ##if(_item.status==0){
  61. 未付款
  62. ##}else if(_item.status==1){
  63. 付款确认中
  64. ##}else if(_item.status==2){
  65. 待发货
  66. ##}else if(_item.status==3){
  67. 已发货
  68. ##}else if(_item.status==4){
  69. 已收货
  70. ##}else if(_item.status==5){
  71. 已完成
  72. ##}else{
  73. 退款中
  74. ##}
  75. </span>
  76. </div>
  77. <div class="order_list_item_content">
  78. ##for(_diy in _item.item_list!){
  79. <div class="goods_items">
  80. <div class="goods_items_base">
  81. <a href="${_diy.diy_img_url!}" class="goods_items_img" style="background-image:url(${_diy.diy_img_url!})"></a>
  82. <div class="goods_items_content">
  83. <h3><a href="/wap/user/ordersMsg?code=${_item.code!}">${_diy.diy_title!}</a></h3>
  84. <div class="goods_remark"><a href="/wap/user/ordersMsg?code=${_item.code!}">${_diy.diy_remark!}</a></div>
  85. <div class="goods_remark"><a href="/wap/user/ordersMsg?code=${_item.code!}">${_diy.bottle_title!}&nbsp;|&nbsp;${_diy.bottle_type_title!}</a></div>
  86. <div class="goods_peice_wrap" style="margin: 0px;">
  87. <span class="price">¥${_diy.item_price!}</span>
  88. <span class="goods_number goods_number_one">
  89. <span class="color_red">×<span style="margin-left: 5px;">${_diy.item_number!}箱</span></span>
  90. </span>
  91. </div>
  92. </div>
  93. </div>
  94. </div>
  95. ##}
  96. </div>
  97. </div>
  98. ##if(totalPage>1){
  99. <div class="fenye">
  100. <#_wapPage page="${results!}">
  101. <ul id="Pagination" class="Pagination"></ul>
  102. </#_wapPage>
  103. </div>
  104. ##}
  105. ##}
  106. </div>
  107. </div>
  108. <a href="/wap" class="goback"><span>首页</span></a>
  109. ##}