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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  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. .goods-li {
  8. float: left;
  9. opacity: 1;
  10. position: relative;
  11. }
  12. .goods-img {
  13. width: 80px;
  14. height: 80px;
  15. padding: 4px;
  16. }
  17. .goods-img-del-x {
  18. position: absolute;
  19. z-index: 100;
  20. top: -4px;
  21. right: -2px;
  22. width: 20px;
  23. height: 20px;
  24. font-size: 16px;
  25. line-height: 16px;
  26. color: #fff;
  27. text-align: center;
  28. cursor: pointer;
  29. background: hsla(0, 0%, 60%, .6);
  30. border-radius: 10px;}
  31. html{
  32. background-color: #ffffff;
  33. }
  34. </style>
  35. <div class="layui-form" lay-filter="layuiadmin-form-supplier" id="layuiadmin-form-supplier" style="padding: 20px 30px 0 0;background-color: #ffffff">
  36. <input type="hidden" value="{$info.id}" name="id">
  37. <div class="layui-form-item">
  38. <label class="layui-form-label"><font color="red">*</font>快递公司:</label>
  39. <div class="layui-input-inline" >
  40. <input type="text" name="name" value="{$info.name}" lay-verify="required" lay-vertype="tips" placeholder="请输入快递公司" autocomplete="off" class="layui-input" >
  41. </div>
  42. </div>
  43. <!--快递图标-->
  44. <!-- <div class="layui-form-item">-->
  45. <!-- <label class="layui-form-label"><font color="red">*</font>快递图标:</label>-->
  46. <!-- <div class="layui-inline">-->
  47. <!-- <div style="height:80px;line-height:80px">-->
  48. <!-- <input name="icon" type="hidden" value="{$info.icon}" >-->
  49. <!-- {if !empty($info.icon)}-->
  50. <!-- <div class="goods-img-add" style="display: none"></div>-->
  51. <!-- <div class="goods-li">-->
  52. <!-- <img class="goods-img" src="{$info.abs_icon}">-->
  53. <!-- <a class="goods-img-del-x" style="display: none">x</a>-->
  54. <!-- </div>-->
  55. <!-- {else}-->
  56. <!-- <div class="goods-img-add"></div>-->
  57. <!-- {/if}-->
  58. <!-- </div>-->
  59. <!-- <div class=" layui-form-mid layui-word-aux">快递图标,建议宽高尺寸200px*200px。</div>-->
  60. <!-- </div>-->
  61. <!-- </div>-->
  62. <div class="layui-form-item" style="margin-bottom: 0px">
  63. <label class="layui-form-label"><span class="form-label-asterisk">*</span>快递图标:</label>
  64. <div class="layui-input-block" id="Couriericon">
  65. <div class="upload-image-div">
  66. <img src="{$info.abs_icon}" alt="img" />
  67. <input type="hidden" name="poster" value="{$info.abs_icon}">
  68. <div class="del-upload-btn">x</div>
  69. </div>
  70. <div class="upload-image-elem" style="display:none;"><a class="add-upload-image" id="courier_icon"> + 添加图片</a></div>
  71. </div>
  72. </div>
  73. <div class="layui-form-item">
  74. <label class="layui-form-label"></label>
  75. <span style="color: #a3a3a3;font-size: 9px">快递图标,建议宽高尺寸200px*200px。</span>
  76. </div>
  77. <div class="layui-form-item">
  78. <label class="layui-form-label">公司网址:</label>
  79. <div class="layui-input-inline" >
  80. <input type="text" name="website" value="{$info.website}" lay-vertype="tips" placeholder="请输入联系电话" autocomplete="off" class="layui-input" >
  81. <label class=" layui-form-mid layui-word-aux" ></label>
  82. </div>
  83. </div>
  84. <div class="layui-form-item">
  85. <label class="layui-form-label">快递编码:</label>
  86. <div class="layui-input-inline">
  87. <input type="text" name="code" value="{$info.code}" placeholder="请输入快递编码" lay-vertype="tips" autocomplete="off" class="layui-input">
  88. <label class=" layui-form-mid layui-word-aux" >快递公司拼音简称。</label>
  89. </div>
  90. </div>
  91. <div class="layui-form-item">
  92. <label class="layui-form-label" style="white-space: nowrap">快递100编码:</label>
  93. <div class="layui-input-inline">
  94. <input type="text" name="code100" value="{$info.code100}" placeholder="请输入快递100编码" lay-vertype="tips" autocomplete="off" class="layui-input">
  95. <label class=" layui-form-mid layui-word-aux" style="white-space: nowrap" >快递公司在快递100平台的编码,方便快递查询跟踪。</label>
  96. </div>
  97. </div>
  98. <div class="layui-form-item">
  99. <label class="layui-form-label" style="white-space: nowrap;left: 10px;">快递鸟编码:</label>
  100. <div class="layui-input-inline">
  101. <input type="text" name="codebird" value="{$info.codebird}" placeholder="请输入快递鸟编码" lay-vertype="tips" autocomplete="off" class="layui-input">
  102. <label class=" layui-form-mid layui-word-aux" style="white-space: nowrap" >快递公司在快递鸟平台的编码,方便快递查询跟踪。</label>
  103. </div>
  104. </div>
  105. <div class="layui-form-item">
  106. <label class="layui-form-label">排序:</label>
  107. <div class="layui-input-inline">
  108. <input type="text" name="sort" value="{$info.sort}" placeholder="请输入排序" lay-vertype="tips" autocomplete="off" class="layui-input">
  109. </div>
  110. </div>
  111. <div class="layui-form-item layui-hide">
  112. <input type="button" lay-submit lay-filter="express-submit-edit" id="express-submit-edit" value="确认">
  113. </div>
  114. </div>
  115. <script>
  116. layui.config({
  117. version:"{$front_version}",
  118. base: '/static/lib/'
  119. }).extend({
  120. likeedit: 'likeedit/likeedit'
  121. }).use(['table', 'form', 'element', 'likeedit'], function() {
  122. var form = layui.form
  123. ,$ = layui.$
  124. , element = layui.element
  125. , likeedit = layui.likeedit;
  126. like.delUpload();
  127. // 快递图标上传
  128. $(document).on("click", "#courier_icon", function () {
  129. like.imageUpload({
  130. limit: 1,
  131. field: "poster",
  132. that: $(this),
  133. content: '{:url("file/lists")}?type=10'
  134. });
  135. })
  136. })
  137. </script>