截流自动化的商城平台
Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

edit_alipay.html 6.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  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. <!--应用ID-->
  41. <div class="layui-form-item">
  42. <label class="layui-form-label">应用ID:</label>
  43. <div class="layui-input-block">
  44. <div class="layui-col-md4">
  45. <input type="text" name="app_id" value="{$info.config.app_id | default = ''}" lay-verify="check_required" lay-verType="tips" autocomplete="off" class="layui-input">
  46. <div class="layui-form-mid layui-word-aux">支付宝应用APP_ID</div>
  47. </div>
  48. </div>
  49. </div>
  50. <!--应用私钥-->
  51. <div class="layui-form-item">
  52. <label class="layui-form-label">应用私钥:</label>
  53. <div class="layui-input-block">
  54. <div class="layui-col-md4">
  55. <input type="text" name="private_key" value="{$info.config.private_key | default = ''}" lay-verify="check_required" lay-verType="tips" autocomplete="off" class="layui-input">
  56. <div class="layui-form-mid layui-word-aux">应用私钥(private_key)</div>
  57. </div>
  58. </div>
  59. </div>
  60. <!-- 接口加密方式 -->
  61. <div class="layui-form-item">
  62. <label class="layui-form-label">接口加密方式:</label>
  63. <div class="layui-input-block">
  64. <input type="radio" name="api_type" value="certificate" title="证书" checked>
  65. </div>
  66. </div>
  67. <!--应用公钥证书-->
  68. <div class="layui-form-item layui-form-text">
  69. <label class="layui-form-label">应用公钥证书:</label>
  70. <div class="layui-input-block">
  71. <div class="layui-col-md4">
  72. <textarea placeholder="请输入应用公钥证书" name="app_cert" class="layui-textarea">{$info.config.app_cert | default = ''}</textarea>
  73. <div class="layui-form-mid layui-word-aux">应用公钥证书(appCertPublicKey)</div>
  74. </div>
  75. </div>
  76. </div>
  77. <!--支付宝公钥证书-->
  78. <div class="layui-form-item layui-form-text">
  79. <label class="layui-form-label">支付宝公钥证书:</label>
  80. <div class="layui-input-block">
  81. <div class="layui-col-md4">
  82. <textarea placeholder="请输入支付宝公钥证书" name="ali_public_cert" class="layui-textarea">{$info.config.ali_public_cert | default = ''}</textarea>
  83. <div class="layui-form-mid layui-word-aux">支付宝公钥证书(alipayCertPublicKey)</div>
  84. </div>
  85. </div>
  86. </div>
  87. <!--支付宝CA根证书-->
  88. <div class="layui-form-item layui-form-text">
  89. <label class="layui-form-label">支付宝根证书:</label>
  90. <div class="layui-input-block">
  91. <div class="layui-col-md4">
  92. <textarea placeholder="请输入支付宝CA根证书" name="ali_root_cert" class="layui-textarea">{$info.config.ali_root_cert | default = ''}</textarea>
  93. <div class="layui-form-mid layui-word-aux">支付宝根证书(alipayRootCert)</div>
  94. </div>
  95. </div>
  96. </div>
  97. <!--排序-->
  98. <div class="layui-form-item">
  99. <label class="layui-form-label">排序:</label>
  100. <div class="layui-input-block">
  101. <div class="layui-col-md4">
  102. <input type="number" name="sort" value="{$info.sort | default = ''}" placeholder="请输入排序" class="layui-input">
  103. <div class=" layui-form-mid layui-word-aux">排序越小越前</div>
  104. </div>
  105. </div>
  106. </div>
  107. <!--状态-->
  108. <div class="layui-form-item" id="pay_use">
  109. <label class="layui-form-label" >状态:</label>
  110. <div class="layui-input-block">
  111. <input type="radio" name="status" value=1 title="启用"{if condition="$info.status eq 1" }checked{/if}>
  112. <input type="radio" name="status" value=0 title="关闭" {if condition="$info.status eq 0" }checked{/if}>
  113. </div>
  114. </div>
  115. <div class="layui-form-item layui-hide">
  116. <input type="button" lay-submit lay-filter="edit-submit" id="edit-submit" value="确认">
  117. </div>
  118. </div>
  119. <script>
  120. layui.use(['form'], function(){
  121. var $ = layui.$
  122. ,form = layui.form;
  123. like.delUpload();
  124. $(document).on("click", ".add-upload-image", function () {
  125. like.imageUpload({
  126. limit: 1,
  127. field: "image",
  128. that: $(this)
  129. });
  130. });
  131. form.verify({
  132. check_required: function (value, item) {
  133. var status = $('input[name="status"]:checked').val();
  134. value = value.trim();
  135. if (status == 1 && value.length == 0) {
  136. return '请填写完整';
  137. }
  138. }
  139. });
  140. })
  141. </script>