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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222
  1. {layout name="layout1" /}
  2. <style>
  3. .layui-table-cell { height: auto; }
  4. .layui-input-block { line-height: 38px; }
  5. .layui-form-label { width: 100px; }
  6. </style>
  7. <div class="layui-fluid">
  8. <div class="layui-card">
  9. <div class="layui-form layui-card-body">
  10. <!-- 发起人信息 -->
  11. <div class="layui-form-item" style="margin-bottom:0;">
  12. <span>发起人信息</span>
  13. </div>
  14. <div style="margin-left:30px">
  15. <div class="layui-form-item" style="margin-bottom:0;">
  16. <label class="layui-form-label">会员编号:</label>
  17. <div class="layui-input-block">{$detail.user.sn}</div>
  18. </div>
  19. <div class="layui-form-item" style="margin-bottom:0;">
  20. <label class="layui-form-label">会员昵称:</label>
  21. <div class="layui-input-block">{$detail.user.nickname}</div>
  22. </div>
  23. <div class="layui-form-item" style="margin-bottom:0;">
  24. <label class="layui-form-label">手机号码:</label>
  25. <div class="layui-input-block">{$detail.user.mobile}</div>
  26. </div>
  27. <div class="layui-form-item" style="margin-bottom:0;">
  28. <label class="layui-form-label">会员等级:</label>
  29. <div class="layui-input-block">{$detail.user.level.name}</div>
  30. </div>
  31. </div>
  32. <!-- 砍价信息 -->
  33. <div class="layui-form-item" style="margin-bottom:0;">
  34. <span>砍价信息</span>
  35. </div>
  36. <div style="margin-left:30px">
  37. <div class="layui-form-item" style="margin-bottom:0;">
  38. <label class="layui-form-label">发起砍价时间:</label>
  39. <div class="layui-input-block">{$detail.launch_start_time}</div>
  40. </div>
  41. <div class="layui-form-item" style="margin-bottom:0;">
  42. <label class="layui-form-label">砍价有效期限:</label>
  43. <div class="layui-input-block">{$detail.launch_end_time}</div>
  44. </div>
  45. <div class="layui-form-item" style="margin-bottom:0;">
  46. <label class="layui-form-label">砍价商品:</label>
  47. <div class="layui-input-block">
  48. <img src="{$detail.goods_snap.image}" alt="图片" style="width:60px;height:60px;float:left;" class="image-show">
  49. <div class="layui-inline">
  50. <div>{$detail.goods_snap.name}</div>
  51. <div>{$detail.goods_snap.spec_value_str}&nbsp; ¥{$detail.goods_snap.price}</div>
  52. </div>
  53. </div>
  54. </div>
  55. <div class="layui-form-item" style="margin-bottom:0;">
  56. <label class="layui-form-label">活动底价:</label>
  57. <div class="layui-input-block">¥{$detail.bargain_price}</div>
  58. </div>
  59. <div class="layui-form-item" style="margin-bottom:0;">
  60. <label class="layui-form-label">购买方式:</label>
  61. <div class="layui-input-block">任意金额可购买</div>
  62. </div>
  63. <div class="layui-form-item" style="margin-bottom:0;">
  64. <label class="layui-form-label">已砍次数:</label>
  65. <div class="layui-input-block">{$detail.help_number}</div>
  66. </div>
  67. <div class="layui-form-item" style="margin-bottom:0;">
  68. <label class="layui-form-label">砍价状态:</label>
  69. <div class="layui-input-block">{$detail.status}</div>
  70. </div>
  71. </div>
  72. <!-- ===================砍价订单列表 ====================== -->
  73. <div class="layui-form-item" style="margin:30px 0 10px 0;">
  74. <span>砍价订单</span>
  75. </div>
  76. <div style="margin-left:30px">
  77. <table id="table-lists-order" lay-filter="table-lists-order"></table>
  78. <script type="text/html" id="table-goods-order">
  79. <div>
  80. <img src="{{d.goods_snap.image}}" alt="图片" style="width:60px;height:60px;float:left;" class="image-show">
  81. <div class="layui-inline">
  82. <div>{{d.goods_snap.name}}</div>
  83. <div>{{d.goods_snap.spec_value_str}}&nbsp; ¥{{d.goods_snap.price}}</div>
  84. </div>
  85. </div>
  86. </script>
  87. <script type="text/html" id="table-order_sn-order">
  88. {{# if(d.order){ }} {{d.order.order_sn}} {{# } }}
  89. </script>
  90. <script type="text/html" id="table-create_time-order">
  91. {{# if(d.order){ }} {{d.order.create_time}} {{# } }}
  92. </script>
  93. <script type="text/html" id="table-order_amount-order">
  94. {{# if(d.order){ }} {{d.order.order_amount}} {{# } }}
  95. </script>
  96. <script type="text/html" id="table-order_status-order">
  97. {{d.order_status}}
  98. </script>
  99. <!--会员信息-->
  100. <script type="text/html" id="table-user-order">
  101. <div class="layui-input-inline" style="text-align: left">
  102. {{# if(d.user){ }}
  103. <img src="{{d.user.avatar}}" style="width: 80px; height: 80px;">
  104. <div class="layui-inline">
  105. <p>会员编号:{{d.user.sn}}</p>
  106. <p>会员昵称:{{d.user.nickname}}</p>
  107. <p>会员等级:{{d.user.level.name ?? '无'}}</p>
  108. </div>
  109. {{# } }}
  110. </div>
  111. </script>
  112. </div>
  113. <!-- ===================砍价记录列表 ====================== -->
  114. <div class="layui-form-item" style="margin:30px 0 10px 0;">
  115. <span>砍价记录</span>
  116. </div>
  117. <div style="margin-left:30px">
  118. <table id="table-lists-knife" lay-filter="table-lists-knife"></table>
  119. <!--会员信息-->
  120. <script type="text/html" id="table-user-knife">
  121. <div class="layui-input-inline" style="text-align: left">
  122. {{# if(d.user){ }}
  123. <img src="{{d.user.avatar}}" style="width: 80px; height: 80px;">
  124. <div class="layui-inline">
  125. <p>会员编号:{{d.user.sn}}</p>
  126. <p>会员昵称:{{d.user.nickname}}</p>
  127. <p>会员等级:{{d.user.level.name ?? '无'}}</p>
  128. </div>
  129. {{# } }}
  130. </div>
  131. </script>
  132. </div>
  133. </div>
  134. </div>
  135. </div>
  136. <script>
  137. layui.config({
  138. base: '/static/plug/layui-admin/dist/layuiadmin/' //静态资源所在路径
  139. }).extend({
  140. index: 'lib/index' //主入口模块
  141. }).use(['index','table','like'], function(){
  142. var $ = layui.$
  143. ,form = layui.form
  144. ,table = layui.table
  145. ,like = layui.like;
  146. //图片放大
  147. $(document).on('click', '.image-show', function () {
  148. var src = $(this).attr('src');
  149. like.showImg(src);
  150. });
  151. // 渲染数据表格
  152. table.render({
  153. elem: '#table-lists-order'
  154. ,url: '{:url("bargain.Bargain/knifeOrderRecord")}?launch_id={$detail.id}'
  155. ,cols: [[
  156. {field: 'userInfo', title: '发起人',width:'20%', templet: '#table-user-order'}
  157. ,{field: 'order_sn', title: '订单号', width:'20%', align: 'center', templet: '#table-order_sn-order'}
  158. ,{field: 'goods', title: '商品信息',width:'20%', templet: '#table-goods-order'}
  159. ,{field: 'create_time', title: '下单时间', width:'20%', align: 'center', templet: '#table-create_time-order'}
  160. ,{field: 'order_amount', title: '下单金额', width:'10%', align: 'center', templet: '#table-order_amount-order'}
  161. ,{field: 'order_status', title: '订单状态',width:'10%', align: 'center', templet: '#table-order_status-order'}
  162. ]]
  163. ,page:true
  164. ,text: {none: '暂无数据!'}
  165. ,response: {
  166. statusCode: 1
  167. }
  168. ,parseData: function(res){
  169. return {
  170. "code":res.code,
  171. "msg":res.msg,
  172. "count": res.data.count,
  173. "data": res.data.lists
  174. };
  175. }
  176. ,done: function(res, curr, count){
  177. $(".layui-table-main tr").each(function (index, val) {
  178. $($(".layui-table-fixed-l .layui-table-body tbody tr")[index]).height($(val).height());
  179. $($(".layui-table-fixed-r .layui-table-body tbody tr")[index]).height($(val).height());
  180. });
  181. }
  182. });
  183. table.render({
  184. elem: '#table-lists-knife'
  185. ,url: '{:url("bargain.Bargain/knifeRecord")}?launch_id={$detail.id}'
  186. ,cols: [[
  187. {field: 'userInfo', title: '会员信息',width:'25%', templet: '#table-user-knife'}
  188. ,{field: 'help_price', title: '砍掉金额', width:'25%', align: 'center'}
  189. ,{field: 'surplus_price', title: '剩余金额', width:'25%', align: 'center'}
  190. ,{field: 'help_time', title: '砍价时间', width:'25%', align: 'center'}
  191. ]]
  192. ,page:true
  193. ,text: {none: '暂无数据!'}
  194. ,response: {
  195. statusCode: 1
  196. }
  197. ,parseData: function(res){
  198. return {
  199. "code":res.code,
  200. "msg":res.msg,
  201. "count": res.data.count,
  202. "data": res.data.lists
  203. };
  204. }
  205. ,done: function(res, curr, count){
  206. $(".layui-table-main tr").each(function (index, val) {
  207. $($(".layui-table-fixed-l .layui-table-body tbody tr")[index]).height($(val).height());
  208. $($(".layui-table-fixed-r .layui-table-body tbody tr")[index]).height($(val).height());
  209. });
  210. }
  211. });
  212. });
  213. </script>