detail.html 3.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. {extend name="common/common2" /}
  2. {block name="main"}
  3. <div class="row">
  4. <div class="col-sm-12">
  5. <div class="ibox float-e-margins">
  6. <div class="ibox-title">
  7. <h5>订单详情</h5>
  8. <div class="ibox-tools">
  9. <a class="toback" href="{:url('index')}">
  10. 返回上一页
  11. </a>
  12. </div>
  13. </div>
  14. <div class="ibox-content">
  15. <table class="table table-bordered">
  16. <tbody>
  17. <tr>
  18. <th style="width:120px">订单号</th><td>{$info['order_sn']}</td>
  19. </tr>
  20. <tr>
  21. <th>订单金额</th><td>{$info['amount']}</td>
  22. </tr>
  23. <!--<tr>
  24. <th>类型</th>
  25. {if condition="$info['cate'] eq 1"}
  26. <td>早餐</td>
  27. {/if}
  28. {if condition="$info['cate'] eq 2"}
  29. <td>午餐</td>
  30. {/if}
  31. {if condition="$info['cate'] eq 3"}
  32. <td>晚餐</td>
  33. {/if}
  34. {if condition="$info['cate'] eq 4"}
  35. <td>当日餐</td>
  36. {/if}
  37. </tr>-->
  38. <!-- <tr>
  39. <th>配送时间</th><td>{$info['delivery_time']}</td>
  40. </tr>-->
  41. <tr>
  42. <th>姓名</th><td>{$info['name']}</td>
  43. </tr>
  44. <tr>
  45. <th>联系电话</th><td>{$info['phone']}</td>
  46. </tr>
  47. <tr>
  48. <th>详细地址</th><td>{$info['address']}</td>
  49. </tr>
  50. <tr>
  51. <th>下单日期</th><td>{$info['create_time']}</td>
  52. </tr>
  53. <tr>
  54. <th>支付状态</th>
  55. {if condition="$info['status'] eq 1"}
  56. <td>已预订</td>
  57. {/if}
  58. {if condition="$info['status'] eq 2"}
  59. <td>已取消</td>
  60. {/if}
  61. </tr>
  62. </tbody>
  63. </table>
  64. </div>
  65. <div class="ibox-content">
  66. <table class="table table-bordered">
  67. <thead>
  68. <tr>
  69. <th>图片</th>
  70. <th>商品名称</th>
  71. <th>价格</th>
  72. <th>购买数量</th>
  73. </tr>
  74. </thead>
  75. <tbody>
  76. {volist name="info['goods']" id='v'}
  77. <tr>
  78. <td><img src="{$v['img']}" alt="" onclick="open_img(this)" style="width: 80px;height: 60px;" ></td>
  79. <td>{$v['title']}</td>
  80. <td>{$v['price']}</td>
  81. <td>{$v['nums']}</td>
  82. </tr>
  83. {/volist}
  84. </tbody>
  85. </table>
  86. </div>
  87. </div>
  88. </div>
  89. </div>
  90. {/block}