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

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