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

config.html 3.4KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. {layout name="layout2" /}
  2. <style>
  3. .layui-form-label{
  4. width: 120px;
  5. }
  6. </style>
  7. <div class="layui-card layui-form" style="box-shadow:none;">
  8. <div class="layui-card-body">
  9. <input type="hidden" value="{$engine}" name="engine">
  10. <div class="layui-form-item">
  11. <label class="layui-form-label">短信渠道:</label>
  12. <div class="layui-input-inline" style="padding-top: 8px">
  13. {if $engine == 'ali'}
  14. 阿里云
  15. {else/}
  16. 腾讯云
  17. {/if}
  18. </div>
  19. </div>
  20. <div class="layui-form-item">
  21. <label class="layui-form-label">短信签名:</label>
  22. <div class="layui-input-block">
  23. <div class="layui-col-sm4">
  24. <input type="text" name="sign" placeholder="请输入短信签名" autocomplete="off" class="layui-input" value="{$info.sign}" lay-verify="required" lay-vertype="tips">
  25. </div>
  26. </div>
  27. </div>
  28. <!-- 腾讯短信才需要APPID -->
  29. {if $engine == 'tc'}
  30. <div class="layui-form-item">
  31. <label class="layui-form-label">APP_ID:</label>
  32. <div class="layui-input-block">
  33. <div class="layui-col-sm4">
  34. <input type="text" name="app_id" placeholder="请输入APP_ID" autocomplete="off" class="layui-input" value="{$info.app_id | default = ''}" lay-verify="required" lay-vertype="tips">
  35. </div>
  36. </div>
  37. </div>
  38. {/if}
  39. <div class="layui-form-item">
  40. <label class="layui-form-label">
  41. {if $engine == 'ali'}
  42. AccessKey_ID:
  43. {else/}
  44. SECRET_ID:
  45. {/if}
  46. </label>
  47. <div class="layui-input-block">
  48. <div class="layui-col-sm4">
  49. <input type="text" name="app_key"
  50. {if $engine == 'ali'}
  51. placeholder="请输入AccessKey_ID)"
  52. {else/}
  53. placeholder="请输入SECRET_ID"
  54. {/if}
  55. autocomplete="off" class="layui-input" value="{$info.app_key}" lay-verify="required" lay-vertype="tips">
  56. </div>
  57. </div>
  58. </div>
  59. <div class="layui-form-item">
  60. <label class="layui-form-label">SECRET_KEY:</label>
  61. <div class="layui-input-block">
  62. <div class="layui-col-sm4">
  63. <input type="text" name="secret_key" placeholder="请输入SECRET_KEY" autocomplete="off" class="layui-input" value="{$info.secret_key}" lay-verify="required" lay-vertype="tips">
  64. </div>
  65. </div>
  66. </div>
  67. <div class="layui-form-item">
  68. <label class="layui-form-label">状态</label>
  69. <div class="layui-input-inline">
  70. <input type="checkbox" lay-filter="disable" name="status" lay-skin="switch" lay-text="开启|关闭" {if condition="$info.default_engine eq $engine" }checked{/if}>
  71. </div>
  72. </div>
  73. <div class="layui-form-item layui-hide">
  74. <input type="button" lay-submit lay-filter="addSubmit" id="addSubmit" value="确认">
  75. </div>
  76. </div>
  77. </div>
  78. <script>
  79. layui.use(['form'], function(){
  80. var $ = layui.$
  81. ,form = layui.form ;
  82. })
  83. </script>