detail.html 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. <div style="padding: 20px; background-color: #F2F2F2;">
  2. <div class="layui-row layui-col-space15">
  3. <div class="layui-col-md12">
  4. <div class="layui-card">
  5. <div class="layui-card-header">订单信息</div>
  6. <div class="layui-card-body">
  7. <div class="layui-col-md6">订单号:{$data['order_no']}</div>
  8. <div class="layui-col-md6">订单状态:
  9. {eq name='vo.status' value='0'}<span class="layui-badge layui-bg-orange margin-left-5">待付款</span>{/eq}
  10. {eq name='vo.status' value='1'}<span class="layui-badge layui-bg-black margin-left-5">待发货</span>{/eq}
  11. {eq name='vo.status' value='2'}<span class="layui-badge layui-bg-green margin-left-5">已发货</span>{/eq}
  12. {eq name='vo.status' value='3'}<span class="layui-badge layui-bg-blue margin-left-5">已收货待评价</span>{/eq}
  13. {eq name='vo.status' value='4'}<span class="layui-badge layui-bg-blue margin-left-5">已完成</span>{/eq}
  14. {eq name='vo.status' value='9'}<span class="layui-badge layui-bg-blue margin-left-5">已取消</span>{/eq}
  15. </div><hr />
  16. <div class="layui-col-md6">商品总价:{$data['price_goods']|default='0'}</div><hr />
  17. <div class="layui-col-md6">需支付金额:{$data['price_total']|default='0'}</div>
  18. <div class="layui-col-md6">实际支付金额:{$data['price_total']|default='0'}</div><hr />
  19. <div class="layui-col-md6">优惠券抵扣金额:{$data['coupon_cash']|default='0'}</div>
  20. <hr />
  21. <div class="layui-col-md6">支付方式:
  22. {eq name='vo.pay_type' value='0'}<span class="layui-badge layui-bg-green margin-left-5">未支付</span>{/eq}
  23. {eq name='vo.pay_type' value='1'}<span class="layui-badge layui-bg-green margin-left-5">微信</span>{/eq}
  24. {eq name='vo.pay_type' value='2'}<span class="layui-badge layui-bg-blue margin-left-5">余额</span>{/eq}
  25. {eq name='vo.pay_type' value='3'}<span class="layui-badge layui-bg-orange margin-left-5">支付宝</span>{/eq}
  26. </div>
  27. <hr />
  28. <div class="layui-col-md6">下单时间:{$data.create_at|default='--'}</div>
  29. <div class="layui-col-md6">
  30. 支付时间:{$vo.pay_at|default='--'}
  31. </div>
  32. <hr />
  33. </div>
  34. </div>
  35. </div>
  36. <div class="layui-col-md12">
  37. <div class="layui-card">
  38. <div class="layui-card-header">收货信息</div>
  39. <div class="layui-card-body">
  40. <div class="layui-col-md6">收货人姓名:{$data.user_name|default='--'}</div>
  41. <div class="layui-col-md6">收货人手机:{$data.phone|default='--'}</div><hr />
  42. <div class="layui-col-md6">地址:{$vo.pro_name|default='--'}{$vo.city_name}{$vo.county_name}{$vo.street_name}{$vo.add_detail}{$vo.add_detail}</div><hr />
  43. <hr />
  44. </div>
  45. </div>
  46. </div>
  47. <div class="layui-col-md12">
  48. <div class="layui-card">
  49. <div class="layui-card-header">商品信息</div>
  50. <div class="layui-card-body">
  51. <table class="layui-table margin-top-10" lay-skin="line">
  52. {notempty name='order_item'}
  53. <thead>
  54. <tr>
  55. <th class='text-left nowrap'>商品</th>
  56. <th class='text-left nowrap'>分类</th>
  57. <th class='text-left nowrap'>价格</th>
  58. <th class='text-left nowrap'>数量</th>
  59. </tr>
  60. </thead>
  61. {/notempty}
  62. <tbody>
  63. {foreach $order_item as $key=>$iv}
  64. <tr>
  65. <td class='text-left nowrap'>
  66. <div class="inline-block" style="max-width: 210px;overflow: hidden;text-overflow: ellipsis;white-space: nowrap;">
  67. {foreach $iv.images_arr as $mv}
  68. <img data-tips-image style="width:40px;height:40px;vertical-align:top" src="{$mv}" class="margin-right-5">
  69. {/foreach}
  70. </div>
  71. </td>
  72. <td class='text-left'>
  73. {$iv.title|default='--'}
  74. </td>
  75. <td class='text-left'>
  76. {$iv.sell_price|default='0'}
  77. </td>
  78. <td class='text-left'>
  79. {$iv.num|default='0'}
  80. </td>
  81. </tr>
  82. {/foreach}
  83. </tbody>
  84. </table>
  85. {empty name='order_item'}<span class="notdata">没有记录哦</span>{else}{$pagehtml|raw|default=''}{/empty}
  86. </div>
  87. </div>
  88. </div>
  89. </div>
  90. </div>