截流自动化的商城平台
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

express.html 5.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182
  1. {layout name="layout2" /}
  2. <style>
  3. .div-flex {
  4. display: flex;
  5. align-items: center;
  6. justify-content: left;
  7. }
  8. .width-160 {
  9. width: 200px;
  10. }
  11. .layui-table th {
  12. text-align: center;
  13. }
  14. .table-margin {
  15. margin-left: 50px;
  16. margin-right: 50px;
  17. text-align: center;
  18. }
  19. .image {
  20. height: 80px;
  21. width: 80px;
  22. }
  23. .mt50 {
  24. margin-left: 50px;
  25. }
  26. </style>
  27. <div class="layui-card-body" >
  28. <!--基本信息-->
  29. <div class="layui-form" lay-filter="layuiadmin-form-express" id="layuiadmin-form-express" >
  30. <input type="hidden" name="order_id" value="{$detail.id}">
  31. <div class="layui-form-item">
  32. <fieldset class="layui-elem-field layui-field-title">
  33. <legend>快递信息</legend>
  34. </fieldset>
  35. </div>
  36. {empty name="$detail.shipping"}
  37. <div class="layui-form-item div-flex">
  38. <label class="layui-form-label"></label>
  39. <div class="width-160">暂无物流信息</div>
  40. </div>
  41. {else/}
  42. <div class="layui-form-item div-flex">
  43. <label class="layui-form-label ">发货时间:</label>
  44. <div class="width-160">{$detail.shipping.create_time_text | default= "未知"}</div>
  45. {if condition = "$detail.shipping.send_type eq 1"}
  46. <label class="layui-form-label ">快递方式:</label>
  47. <div class="width-160">{$detail.shipping.shipping_name | default="未知"}</div>
  48. <label class="layui-form-label ">快递单号:</label>
  49. <div class="width-160">{$detail.shipping.invoice_no | default= "未知"}</div>
  50. {else/}
  51. <label class="layui-form-label ">配送方式:</label>
  52. <div class="width-160">无需快递</div>
  53. {/if}
  54. </div>
  55. {/empty}
  56. <div class="layui-form-item">
  57. <fieldset class="layui-elem-field layui-field-title">
  58. <legend>商品信息</legend>
  59. </fieldset>
  60. </div>
  61. <div class="layui-form-item table-margin">
  62. <table class="layui-table">
  63. <colgroup>
  64. <col width="250">
  65. <col width="100">
  66. <col width="100">
  67. <col width="100">
  68. </colgroup>
  69. <thead>
  70. <tr>
  71. <th>商品信息</th>
  72. <th>价格(元)</th>
  73. <th>数量</th>
  74. <th>小计(元)</th>
  75. </tr>
  76. </thead>
  77. <tbody>
  78. {foreach $detail.order_goods as $k => $goods}
  79. <tr>
  80. <td>
  81. <div style="text-align: left">
  82. <div class="layui-col-md3">
  83. <img src="{$goods.goods_image}" class="image-show image">
  84. </div>
  85. <div class="layui-col-md9">
  86. <p style="margin-top: 10px">{$goods.goods_name}</p>
  87. <br>
  88. <p>{$goods.spec_value}</p>
  89. </div>
  90. </div>
  91. </td>
  92. <td>¥{$goods.goods_price}</td>
  93. <td>{$goods.goods_num}</td>
  94. <td>{$goods.total_pay_price}</td>
  95. </tr>
  96. {/foreach}
  97. </tbody>
  98. </table>
  99. </div>
  100. <div class="layui-form-item">
  101. <fieldset class="layui-elem-field layui-field-title">
  102. <legend>物流轨迹</legend>
  103. </fieldset>
  104. </div>
  105. <div class="layui-form-item table-margin">
  106. <table class="layui-table">
  107. <colgroup>
  108. <col>
  109. </colgroup>
  110. <thead>
  111. <tr >
  112. <th colspan="3">轨迹</th>
  113. </tr>
  114. </thead>
  115. <tbody>
  116. {foreach $detail.shipping.traces as $k => $item}
  117. <tr>
  118. {if is_array($item)}
  119. {foreach $item as $k1 => $value}
  120. <td>{$value}</td>
  121. {/foreach}
  122. {else /}
  123. <td>{$item}</td>
  124. {/if}
  125. </tr>
  126. {/foreach}
  127. </tbody>
  128. </table>
  129. </div>
  130. <div class="layui-form-item div-flex ">
  131. <div class="layui-input-block ">
  132. <button type="button" class="layui-btn layui-btn-sm layui-btn-primary width_160 " id="back">返回</button>
  133. </div>
  134. </div>
  135. </div>
  136. </div>
  137. <script type="text/javascript">
  138. //注意:选项卡 依赖 element 模块,否则无法进行功能性操作
  139. layui.config({
  140. version:"{$front_version}",
  141. base: '/static/plug/layui-admin/dist/layuiadmin/' //静态资源所在路径
  142. }).extend({
  143. index: 'lib/index' //主入口模块
  144. }).use(['index', 'element', 'jquery', 'like', 'form'], function () {
  145. var $ = layui.$
  146. , form = layui.form;
  147. var like = layui.like;
  148. //主图放大
  149. $(document).on('click', '.image-show', function () {
  150. var src = $(this).attr('src');
  151. like.showImg(src,600);
  152. });
  153. $('#back').click(function () {
  154. var index=parent.layer.getFrameIndex(window.name); //获取当前窗口的name
  155. parent.layer.close(index);
  156. parent.layui.table.reload('order-lists');
  157. return true;
  158. });
  159. });
  160. </script>