sms.html 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170
  1. <div class="layui-fluid">
  2. <div class="layui-row layui-col-space15">
  3. <div class="layui-col-md12">
  4. <div class="layui-card layui-tab layui-tab-brief" lay-filter="linktab">
  5. <ul class="layui-tab-title">
  6. <li class="layui-this">基础配置</li>
  7. <li>创蓝</li>
  8. <li>阿里</li>
  9. </ul>
  10. <div class="layui-tab-content">
  11. <div class="layui-tab-item layui-show">
  12. <div class="layui-card">
  13. <div class="layui-card-header">平台选择</div>
  14. <div class="layui-card-body" pad15>
  15. <div class="layui-form layui-form-pane">
  16. <div class="layui-form-item">
  17. <label class="layui-form-label"><span style="color:#f90c05;">*</span>默认平台</label>
  18. <div class="layui-input-block">
  19. <select name="sms_type">
  20. <option value="">请选择默认平台</option>
  21. {volist name="sms_type_list" id="type"}
  22. <option value="{$key}" {:array_get($sms,'sms_type')==$key ? 'selected' : '' }>{$type}</option>
  23. {/volist}
  24. </select>
  25. </div>
  26. </div>
  27. <div class="layui-form-item">
  28. <div class="layui-input-block">
  29. <button class="layui-btn" lay-submit lay-filter="{$lay_btn}">确认修改</button>
  30. </div>
  31. </div>
  32. </div>
  33. </div>
  34. </div>
  35. </div>
  36. <div class="layui-tab-item">
  37. <div class="layui-card">
  38. <div class="layui-card-header">创蓝短信接口参数</div>
  39. <div class="layui-card-body" pad15>
  40. <div class="layui-form layui-form-pane">
  41. <div class="layui-form-item">
  42. <label class="layui-form-label"><span style="color:#f90c05;">*</span>密钥 ID</label>
  43. <div class="layui-input-block">
  44. <input type="text" placeholder="请输入 AccessKey ID"
  45. name="sms_chuanglan_appkey"
  46. value="{:array_get($sms,'sms_chuanglan_appkey')}"
  47. lay-verify="required"
  48. class="layui-input">
  49. <div class="layui-form-mid layui-word-aux">访问创蓝API的密钥:app key</div>
  50. </div>
  51. </div>
  52. <div class="layui-form-item">
  53. <label class="layui-form-label"><span style="color:#f90c05;">*</span>密钥 Secret</label>
  54. <div class="layui-input-block">
  55. <input type="text" placeholder="请输入 AccessKey Secret"
  56. name="sms_chuanglan_secret"
  57. value="{:array_get($sms,'sms_chuanglan_secret')}"
  58. lay-verify="required"
  59. class="layui-input">
  60. <div class="layui-form-mid layui-word-aux">访问创蓝API的密钥:secret key</div>
  61. </div>
  62. </div>
  63. <div class="layui-form-item">
  64. <div class="layui-input-block">
  65. <button class="layui-btn" lay-submit lay-filter="{$lay_btn}">确认修改</button>
  66. </div>
  67. </div>
  68. </div>
  69. </div>
  70. </div>
  71. </div>
  72. <div class="layui-tab-item">
  73. <div class="layui-card">
  74. <div class="layui-card-header">阿里云短信接口参数</div>
  75. <div class="layui-card-body" pad15>
  76. <div class="layui-form layui-form-pane">
  77. <div class="layui-form-item">
  78. <label class="layui-form-label"><span style="color:#f90c05;">*</span>密钥 ID</label>
  79. <div class="layui-input-block">
  80. <input type="text" placeholder="请输入 AccessKey ID"
  81. name="sms_ali_accesskeyid"
  82. lay-verify="required"
  83. value="{:array_get($sms,'sms_ali_accesskeyid')}"
  84. class="layui-input">
  85. <div class="layui-form-mid layui-word-aux">访问阿里云API的密钥:AccessKey ID</div>
  86. </div>
  87. </div>
  88. <div class="layui-form-item">
  89. <label class="layui-form-label"><span style="color:#f90c05;">*</span>密钥 Secret</label>
  90. <div class="layui-input-block">
  91. <input type="text" placeholder="请输入 AccessKey Secret"
  92. name="sms_ali_accesskeysecret"
  93. lay-verify="required"
  94. value="{:array_get($sms,'sms_ali_accesskeysecret')}"
  95. class="layui-input">
  96. <div class="layui-form-mid layui-word-aux">访问阿里云API的密钥:AccessKey Secret
  97. </div>
  98. </div>
  99. </div>
  100. <div class="layui-form-item">
  101. <label class="layui-form-label">签名名称</label>
  102. <div class="layui-input-block">
  103. <input type="text" name="sms_ali_signname"
  104. value="{:array_get($sms,'sms_ali_signname')}" class="layui-input">
  105. <div class="layui-form-mid layui-word-aux"></div>
  106. </div>
  107. </div>
  108. <div class="layui-form-item">
  109. <label class="layui-form-label">注册验证</label>
  110. <div class="layui-input-block">
  111. <input type="text" name="sms_ali_register"
  112. value="{:array_get($sms,'sms_ali_register')}" class="layui-input">
  113. <div class="layui-form-mid layui-word-aux">注册验证模版CODE,验证码变量名称:code</div>
  114. </div>
  115. </div>
  116. <div class="layui-form-item">
  117. <label class="layui-form-label">密码重置</label>
  118. <div class="layui-input-block">
  119. <input type="text" name="sms_ali_getpassword"
  120. value="{:array_get($sms,'sms_ali_getpassword')}" class="layui-input">
  121. <div class="layui-form-mid layui-word-aux">密码重置模版CODE,验证码变量名称:code</div>
  122. </div>
  123. </div>
  124. <div class="layui-form-item">
  125. <label class="layui-form-label">登录验证</label>
  126. <div class="layui-input-block">
  127. <input type="text" name="sms_ali_mobilelogin"
  128. value="{:array_get($sms,'sms_ali_mobilelogin')}" class="layui-input">
  129. <div class="layui-form-mid layui-word-aux">登录验证模版CODE,验证码变量名称:code</div>
  130. </div>
  131. </div>
  132. <div class="layui-form-item">
  133. <div class="layui-input-block">
  134. <button class="layui-btn" lay-submit lay-filter="{$lay_btn}">确认修改</button>
  135. </div>
  136. </div>
  137. </div>
  138. </div>
  139. </div>
  140. </div>
  141. </div>
  142. </div>
  143. </div>
  144. </div>
  145. </div>
  146. <script>
  147. layui.use(['index', 'form'], function () {
  148. const admin = layui.admin;
  149. const form = layui.form;
  150. form.render();
  151. form.on('submit({$lay_btn})', function (obj) {
  152. admin.req({
  153. url: "{:url('setting/editSms')}",
  154. type: 'post',
  155. data: obj.field,
  156. done: function (res) {
  157. layer.msg("提交成功", {icon: 1});
  158. }
  159. });
  160. });
  161. });
  162. </script>