截流自动化的商城平台
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

express.html 5.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172
  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 | default= "--"}</div>
  45. <label class="layui-form-label ">快递方式:</label>
  46. <div class="width-160">{$detail.shipping.shipping_name | default="--"}</div>
  47. <label class="layui-form-label ">快递单号:</label>
  48. <div class="width-160">{$detail.shipping.invoice_no | default= "--"}</div>
  49. </div>
  50. {/empty}
  51. <div class="layui-form-item">
  52. <fieldset class="layui-elem-field layui-field-title">
  53. <legend>商品信息</legend>
  54. </fieldset>
  55. </div>
  56. <div class="layui-form-item table-margin">
  57. <table class="layui-table">
  58. <colgroup>
  59. <col width="250">
  60. <col width="100">
  61. <col width="200">
  62. <col width="100">
  63. <col width="200">
  64. </colgroup>
  65. <thead>
  66. <tr>
  67. <th>商品名称</th>
  68. <th>市场价</th>
  69. <th>兑换积分</th>
  70. <th>数量</th>
  71. <th>运费</th>
  72. <th>实付</th>
  73. </tr>
  74. </thead>
  75. <tbody>
  76. <tr>
  77. <td>
  78. <div style="text-align: left">
  79. <div class="layui-col-md3">
  80. <img src="{$detail.goods_snap.image}" class="image-show image" >
  81. </div>
  82. <div class="layui-col-md9">
  83. <p style="margin-top: 10px">{$detail.goods_snap.name}</p>
  84. </div>
  85. </div>
  86. </td>
  87. <td>¥{$detail.goods_snap.market_price}</td>
  88. <td>{$detail.goods_snap.need_integral}积分{if $detail.goods_snap.exchange_way == 2}+{$detail.goods_snap.need_money}元{/if}</td>
  89. <td>{$detail.total_num}</td>
  90. <td>¥{$detail.shipping_price}</td>
  91. <td>{$detail.order_integral}积分{if $detail.order_amount > 0}+{$detail.order_amount}元{/if}</td>
  92. </tr>
  93. </tbody>
  94. </table>
  95. </div>
  96. <div class="layui-form-item">
  97. <fieldset class="layui-elem-field layui-field-title">
  98. <legend>物流轨迹</legend>
  99. </fieldset>
  100. </div>
  101. <div class="layui-form-item table-margin">
  102. <table class="layui-table">
  103. <colgroup>
  104. <col>
  105. </colgroup>
  106. <thead>
  107. <tr >
  108. <th colspan="3">轨迹</th>
  109. </tr>
  110. </thead>
  111. <tbody>
  112. {foreach $detail.shipping.traces as $k => $item}
  113. <tr>
  114. {if is_array($item)}
  115. {foreach $item as $k1 => $value}
  116. <td>{$value}</td>
  117. {/foreach}
  118. {else /}
  119. <td>{$item}</td>
  120. {/if}
  121. </tr>
  122. {/foreach}
  123. </tbody>
  124. </table>
  125. </div>
  126. <div class="layui-form-item div-flex ">
  127. <div class="layui-input-block ">
  128. <button type="button" class="layui-btn layui-btn-sm layui-btn-primary width_160 " id="back">返回</button>
  129. </div>
  130. </div>
  131. </div>
  132. </div>
  133. <script type="text/javascript">
  134. //注意:选项卡 依赖 element 模块,否则无法进行功能性操作
  135. layui.use(['element', 'jquery','form'], function () {
  136. var $ = layui.$
  137. , form = layui.form;
  138. //主图放大
  139. $(document).on('click', '.image-show', function () {
  140. var src = $(this).attr('src');
  141. like.showImg(src,400);
  142. });
  143. $('#back').click(function () {
  144. var index=parent.layer.getFrameIndex(window.name); //获取当前窗口的name
  145. parent.layer.close(index);
  146. parent.layui.table.reload('order-lists');
  147. return true;
  148. });
  149. });
  150. </script>