截流自动化的商城平台
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.

add.html 4.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. {layout name="layout2" /}
  2. <script src="__PUBLIC__/static/common/js/area.js"></script>
  3. <style>
  4. .layui-form-label {
  5. color: #6a6f6c;
  6. }
  7. html{
  8. background-color: #ffffff;
  9. }
  10. .reqRed::before {
  11. content: '*';
  12. color: red;
  13. }
  14. </style>
  15. <div class="layui-form" lay-filter="layuiadmin-form-unit" id="layuiadmin-form-unit" style="padding: 20px 30px 0 0;background-color: #ffffff">
  16. <input type="hidden" value="0" name="id">
  17. <div class="layui-form-item">
  18. <label class="layui-form-label reqRed">快递公司:</label>
  19. <div class="layui-input-inline" >
  20. <input type="text" name="name" lay-verify="required" lay-vertype="tips" placeholder="请输入快递公司" autocomplete="off" class="layui-input">
  21. </div>
  22. </div>
  23. <div class="layui-form-item" style="margin-bottom: 0px">
  24. <label class="layui-form-label reqRed">快递图标:</label>
  25. <div class="layui-input-block" id="Couriericon">
  26. <div class="like-upload-image">
  27. <div class="upload-image-elem"><a class="add-upload-image" id="courier_icon"> + 添加图片</a></div>
  28. </div>
  29. </div>
  30. </div>
  31. <div class="layui-form-item">
  32. <label class="layui-form-label"></label>
  33. <span style="color: #a3a3a3;font-size: 9px">快递图标,建议宽高尺寸200px*200px。</span>
  34. </div>
  35. <div class="layui-form-item">
  36. <label class="layui-form-label">公司网址:</label>
  37. <div class="layui-input-inline" >
  38. <input type="text" name="website" lay-vertype="tips" placeholder="请输入公司网址" autocomplete="off" class="layui-input">
  39. <label class=" layui-form-mid layui-word-aux" ></label>
  40. </div>
  41. </div>
  42. <div class="layui-form-item">
  43. <label class="layui-form-label">快递编码:</label>
  44. <div class="layui-input-inline" >
  45. <input type="text" name="code" lay-vertype="tips" placeholder="请输入快递编码" autocomplete="off" class="layui-input">
  46. <label class=" layui-form-mid layui-word-aux" >快递公司拼音简称。</label>
  47. </div>
  48. </div>
  49. <div class="layui-form-item">
  50. <label class="layui-form-label" style="white-space: nowrap">快递100编码:</label>
  51. <div class="layui-input-inline" >
  52. <input type="text" name="code100" lay-vertype="tips" placeholder="请输入快递100编码" autocomplete="off" class="layui-input">
  53. <label class=" layui-form-mid layui-word-aux" style="white-space: nowrap" >快递公司在快递100平台的编码,方便快递查询跟踪。</label>
  54. </div>
  55. </div>
  56. <div class="layui-form-item">
  57. <label class="layui-form-label" style="white-space: nowrap;left: 10px;">快递鸟编码:</label>
  58. <div class="layui-input-inline" >
  59. <input type="text" name="codebird" lay-vertype="tips" placeholder="请输入快递鸟" autocomplete="off" class="layui-input">
  60. <label class=" layui-form-mid layui-word-aux" style="white-space: nowrap" >快递公司在快递鸟平台的编码,方便快递查询跟踪。</label>
  61. </div>
  62. </div>
  63. <div class="layui-form-item">
  64. <label class="layui-form-label">排序:</label>
  65. <div class="layui-input-inline" >
  66. <input type="text" name="sort" lay-vertype="tips" placeholder="请输入排序" autocomplete="off" class="layui-input">
  67. </div>
  68. </div>
  69. <div class="layui-form-item layui-hide">
  70. <input type="button" lay-submit lay-filter="express-submit" id="express-submit" value="确认">
  71. </div>
  72. </div>
  73. <script>
  74. layui.config({
  75. version:"{$front_version}",
  76. base: '/static/lib/'
  77. }).extend({
  78. likeedit: 'likeedit/likeedit'
  79. }).use(['table', 'form', 'element', 'likeedit'], function() {
  80. var form = layui.form
  81. ,$ = layui.$
  82. , element = layui.element
  83. , likeedit = layui.likeedit;
  84. // 监听图片删除
  85. like.delUpload();
  86. // 快递图标上传
  87. $(document).on("click", "#courier_icon", function () {
  88. like.imageUpload({
  89. limit: 1,
  90. field: "poster",
  91. that: $(this),
  92. content: '{:url("file/lists")}?type=10'
  93. });
  94. })
  95. })
  96. </script>