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

edit_hfdg_alipay.html 3.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. {layout name="layout2" /}
  2. <style>
  3. .layui-form-label{
  4. width: 120px;
  5. }
  6. </style>
  7. <div class="layui-form" lay-filter="layuiadmin-form" id="layuiadmin-form" style="padding: 20px 30px 0 0;">
  8. <!--支付简称-->
  9. <div class="layui-form-item">
  10. <label class="layui-form-label">支付简称:</label>
  11. <div class="layui-input-block">
  12. <div class="layui-col-md4">
  13. <input type="text" name="short_name" value="{$info.short_name | default = ''}" lay-verify="check_required" lay-verType="tips" autocomplete="off" class="layui-input">
  14. <div class="layui-form-mid layui-word-aux">会员在商城看见的支付名称</div>
  15. </div>
  16. </div>
  17. </div>
  18. <!--支付图标-->
  19. <div class="layui-form-item">
  20. <label class="layui-form-label">支付图标</label>
  21. <div class="layui-input-inline">
  22. <div class="like-upload-image">
  23. {if $info.image}
  24. <div class="upload-image-div">
  25. <img src="{$info.image}" alt="img">
  26. <input type="hidden" name="image" value="{$info.image}">
  27. <div class="del-upload-btn">x</div>
  28. </div>
  29. <div class="upload-image-elem" style="display:none;"><a class="add-upload-image"> + 添加图片</a></div>
  30. {else}
  31. <div class="upload-image-elem"><a class="add-upload-image"> + 添加图片</a></div>
  32. {/if}
  33. </div>
  34. </div>
  35. <div class="layui-form-item">
  36. <label class="layui-form-label"></label>
  37. <label class=" layui-form-mid layui-word-aux">支付方式图标。建议尺寸:宽100px*高100px,jpg,jpeg,png格式</label>
  38. </div>
  39. </div>
  40. <!--排序-->
  41. <div class="layui-form-item">
  42. <label class="layui-form-label">排序:</label>
  43. <div class="layui-input-block">
  44. <div class="layui-col-md4">
  45. <input type="number" name="sort" value="{$info.sort | default = ''}" placeholder="请输入排序" class="layui-input">
  46. <div class=" layui-form-mid layui-word-aux">排序越小越前</div>
  47. </div>
  48. </div>
  49. </div>
  50. <!--状态-->
  51. <div class="layui-form-item" id="pay_use">
  52. <label class="layui-form-label" >状态:</label>
  53. <div class="layui-input-block">
  54. <input type="radio" name="status" value=1 title="启用"{if condition="$info.status eq 1" }checked{/if}>
  55. <input type="radio" name="status" value=0 title="关闭" {if condition="$info.status eq 0" }checked{/if}>
  56. </div>
  57. </div>
  58. <div class="layui-form-item layui-hide">
  59. <input type="button" lay-submit lay-filter="edit-submit" id="edit-submit" value="确认">
  60. </div>
  61. </div>
  62. <script>
  63. layui.use(['form'], function(){
  64. var $ = layui.$
  65. ,form = layui.form;
  66. like.delUpload();
  67. $(document).on("click", ".add-upload-image", function () {
  68. like.imageUpload({
  69. limit: 1,
  70. field: "image",
  71. that: $(this)
  72. });
  73. });
  74. form.verify({
  75. check_required: function (value, item) {
  76. var status = $('input[name="status"]:checked').val();
  77. value = value.trim();
  78. if (status == 1 && value.length == 0) {
  79. return '请填写完整';
  80. }
  81. }
  82. });
  83. })
  84. </script>