截流自动化的商城平台
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

delivery.html 7.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207
  1. {layout name="layout2" /}
  2. <style>
  3. .div-flex {
  4. display: flex;
  5. align-items: center;
  6. justify-content: left;
  7. }
  8. .layui-form-label {
  9. width: 100px;
  10. }
  11. .width-160 {
  12. width: 200px;
  13. }
  14. .layui-table th {
  15. text-align: center;
  16. }
  17. .table-margin {
  18. margin-left: 50px;
  19. margin-right: 50px;
  20. text-align: center;
  21. }
  22. .image {
  23. height: 80px;
  24. width: 80px;
  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="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. <div class="layui-form-item div-flex">
  37. <label class="layui-form-label ">收货人:</label>
  38. <div class="width-160">{$detail.consignee}</div>
  39. <label class="layui-form-label ">手机号:</label>
  40. <div class="width-160">{$detail.mobile}</div>
  41. <label class="layui-form-label ">收货地址:</label>
  42. <div class="width-160">{$detail.delivery_address}</div>
  43. </div>
  44. <div class="layui-form-item">
  45. <fieldset class="layui-elem-field layui-field-title">
  46. <legend>商品信息</legend>
  47. </fieldset>
  48. </div>
  49. <div class="layui-form-item table-margin">
  50. <table class="layui-table">
  51. <colgroup>
  52. <col width="250">
  53. <col width="100">
  54. <col width="200">
  55. <col width="100">
  56. <col width="100">
  57. <col width="200">
  58. </colgroup>
  59. <thead>
  60. <tr>
  61. <th>商品名称</th>
  62. <th>市场价</th>
  63. <th>兑换积分</th>
  64. <th>数量</th>
  65. <th>运费</th>
  66. <th>实付</th>
  67. </tr>
  68. </thead>
  69. <tbody>
  70. <tr>
  71. <td>
  72. <div style="text-align: left">
  73. <div class="layui-col-md4">
  74. <img src="{$detail.goods_snap.image}" class="image-show image" >
  75. </div>
  76. <div class="layui-col-md8">
  77. <p style="margin-top: 10px; margin-left: 10px">{$detail.goods_snap.name}</p>
  78. </div>
  79. </div>
  80. </td>
  81. <td>¥{$detail.goods_snap.market_price}</td>
  82. <td>{$detail.goods_snap.need_integral}积分{if $detail.goods_snap.exchange_way == 2}+{$detail.goods_snap.need_money}元{/if}</td>
  83. <td>{$detail.total_num}</td>
  84. <td>¥{$detail.shipping_price}</td>
  85. <td>{$detail.order_integral}积分{if $detail.order_amount > 0}+{$detail.order_amount}元{/if}</td>
  86. </tr>
  87. </tbody>
  88. </table>
  89. </div>
  90. <div class="layui-form-item">
  91. <fieldset class="layui-elem-field layui-field-title">
  92. <legend>快递配送</legend>
  93. </fieldset>
  94. </div>
  95. <!-- <div class="layui-form-item div-flex">-->
  96. <!-- <label class="layui-form-label ">配送方式:</label>-->
  97. <!-- <div>-->
  98. <!-- <input type="radio" name="send_type" lay-filter="express" value="1" title="快递配送" checked>-->
  99. <!-- <input type="radio" name="send_type" lay-filter="express" value="2" title="无需快递">-->
  100. <!-- </div>-->
  101. <!-- </div>-->
  102. <div class="layui-form-item div-flex select-express">
  103. <label class="layui-form-label ">选择快递:</label>
  104. <div>
  105. <select name="shipping_id" lay-verify="required">
  106. {foreach $express as $k => $v}
  107. <option value="{$v.id}">{$v.name}</option>
  108. {/foreach}
  109. </select>
  110. </div>
  111. </div>
  112. <div class="layui-form-item div-flex select-express" >
  113. <label class="layui-form-label ">快递单号:</label>
  114. <div>
  115. <input type="text" name="invoice_no" placeholder="请输入快递单号" autocomplete="off"
  116. class="layui-input">
  117. </div>
  118. </div>
  119. <div class="layui-form-item div-flex ">
  120. <div class="layui-input-block ">
  121. <input type="button" class="layui-btn layui-btn-sm layui-btn-normal width_160" lay-submit lay-filter="send" id="send" value="发货">
  122. <button type="button" class="layui-btn layui-btn-sm layui-btn-primary width_160 " id="back">返回</button>
  123. </div>
  124. </div>
  125. </div>
  126. </div>
  127. <script type="text/javascript">
  128. //注意:选项卡 依赖 element 模块,否则无法进行功能性操作
  129. layui.config({
  130. version:"{$front_version}",
  131. base: '/static/plug/layui-admin/dist/layuiadmin/' //静态资源所在路径
  132. }).extend({
  133. index: 'lib/index' //主入口模块
  134. }).use(['index', 'element', 'jquery', 'like', 'form'], function () {
  135. var $ = layui.$
  136. , form = layui.form;
  137. var like = layui.like;
  138. //主图放大
  139. $(document).on('click', '.image-show', function () {
  140. var src = $(this).attr('src');
  141. like.showImg(src,600);
  142. });
  143. form.on('radio(express)', function (data) {
  144. var checked = data.value;
  145. if (checked == 1) {
  146. $('.select-express').show();
  147. } else {
  148. $('.select-express').hide();
  149. }
  150. });
  151. $('#back').click(function () {
  152. var index=parent.layer.getFrameIndex(window.name); //获取当前窗口的name
  153. parent.layer.close(index);
  154. parent.layui.table.reload('order-lists');
  155. return true;
  156. });
  157. //发货
  158. form.on('submit(send)', function (data) {
  159. var field = data.field;
  160. like.ajax({
  161. url: '{:url("integral.IntegralOrder/deliveryHandle")}'
  162. , data: field
  163. , type: 'post'
  164. , success: function (res) {
  165. if (res.code == 1) {
  166. layui.layer.msg(res.msg, {
  167. offset: '15px'
  168. , icon: 1
  169. , time: 1000
  170. },function () {
  171. var index = parent.layer.getFrameIndex(window.name);
  172. parent.location.reload();
  173. parent.layer.close(index);
  174. });
  175. }
  176. },
  177. });
  178. })
  179. });
  180. </script>