journal.html 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. <style>
  2. .layui-col-md2
  3. {
  4. height: 250px;
  5. border:1px solid #bababa;
  6. margin:5px;
  7. }
  8. .layui-col-md2 .img
  9. {
  10. text-align: center;overflow: hidden;text-align: center;
  11. }
  12. </style>
  13. <div class="layui-fluid layadmin-cmdlist-fluid">
  14. <ul class="layui-row layui-col-space30" id="sortable">
  15. <li class="layui-col-md2 layui-col-sm4" id="data" style="">
  16. <div class="cmdlist-container">
  17. <div href="javascript:;" class="img" style="height: 154px;">
  18. <img src="../../layuiadmin/style/res/template/portrait.png">
  19. </div>
  20. <a href="javascript:;" >
  21. <div class="cmdlist-text" style="text-align:center;">
  22. <p class="info">2018春夏季新款港味短款白色T恤+网纱中长款chic半身裙套装两件套</p>
  23. <div class="price">
  24. <b></b>
  25. </div>
  26. <div class="text"></div>
  27. <div style="margin-top:10px;text-align:center;">
  28. <div class="layui-table-cell"><a href="javascript:;" class="edit" onclick=""><button type="button" class="btn btn-info btn-rounded waves-effect waves-light m-b-5 layui-btn layui-btn-xs">编辑</button></a>&nbsp;&nbsp;<a href="#" class="oper_delete"><button type="button" class="btn btn-info btn-rounded waves-effect waves-light m-b-5 layui-btn layui-btn-danger layui-btn-xs"><span class="am-icon-trash-o"></span>删除</button></a>&nbsp;&nbsp;</div>
  29. </div>
  30. </div>
  31. </a>
  32. </div>
  33. </li>
  34. </ul>
  35. </div>
  36. <script id="url">var url = ""</script>
  37. <script>
  38. $( function() {
  39. var sort = $( "#sortable" ).sortable({
  40. opacity: 0.7,
  41. stop:function(){
  42. var arr = $( "#sortable" ).sortable('toArray');
  43. arr = arr.join(',');
  44. $.post(url, {data:arr}, function()
  45. {
  46. })
  47. }
  48. });
  49. $( "#sortable" ).disableSelection();
  50. } );
  51. </script>