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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157
  1. {layout name="layout2" /}
  2. <style>
  3. .layui-form-label { width: 160px; }
  4. .layui-input-block { margin-left: 190px; }
  5. .engine_method { line-height: 36px; }
  6. </style>
  7. <div class="layui-form" style="padding: 20px 30px 0 0;">
  8. <input type="hidden" name="engine" value="{$engine}">
  9. {if $engine == 'local'}
  10. <div class="layui-form-item" style=" margin-bottom: 0; ">
  11. <label class="layui-form-label">存储方式:</label>
  12. <div class="layui-input-block">
  13. <span class="engine_method">本地存储</span>
  14. </div>
  15. </div>
  16. <div class="layui-form-item">
  17. <label class="layui-form-label"></label>
  18. <div class="layui-input-block">
  19. <div class="layui-form-mid layui-word-aux">本地存储方式不需要配置其他参数</div>
  20. </div>
  21. </div>
  22. {elseif $engine == 'qiniu'}
  23. <div class="layui-form-item">
  24. <label class="layui-form-label">存储方式:</label>
  25. <div class="layui-input-block">
  26. <span class="engine_method">七牛云存储</span>
  27. </div>
  28. </div>
  29. <div class="layui-form-item">
  30. <label class="layui-form-label">存储空间(Bucket):</label>
  31. <div class="layui-input-block">
  32. <input type="text" name="qiniu_bucket" value="{$storage.qiniu.bucket}" placeholder="存储空间名称" autocomplete="off" class="layui-input">
  33. </div>
  34. </div>
  35. <div class="layui-form-item">
  36. <label class="layui-form-label">ACCESS_KEY(AK):</label>
  37. <div class="layui-input-block">
  38. <input type="text" name="qiniu_ak" value="{$storage.qiniu.access_key}" autocomplete="off" class="layui-input">
  39. </div>
  40. </div>
  41. <div class="layui-form-item">
  42. <label class="layui-form-label">SECRET_KEY(SK):</label>
  43. <div class="layui-input-block">
  44. <input type="text" name="qiniu_sk" value="{$storage.qiniu.secret_key}" autocomplete="off" class="layui-input">
  45. </div>
  46. </div>
  47. <div class="layui-form-item" style="margin-bottom: 0;">
  48. <label class="layui-form-label">空间域名(Domain):</label>
  49. <div class="layui-input-block">
  50. <input type="text" name="qiniu_domain" value="{$storage.qiniu.domain}" placeholder="http://" autocomplete="off" class="layui-input">
  51. </div>
  52. </div>
  53. <div class="layui-form-item">
  54. <label class="layui-form-label"></label>
  55. <div class="layui-input-block">
  56. <div class="layui-form-mid layui-word-aux">请补全http://或https://,例如https://static.cloud.com</div>
  57. </div>
  58. </div>
  59. {elseif $engine == 'aliyun'}
  60. <div class="layui-form-item">
  61. <label class="layui-form-label">存储方式:</label>
  62. <div class="layui-input-block">
  63. <span class="engine_method">阿里云存储</span>
  64. </div>
  65. </div>
  66. <div class="layui-form-item">
  67. <label class="layui-form-label">存储空间(Bucket):</label>
  68. <div class="layui-input-block">
  69. <input type="text" name="aliyun_bucket" value="{$storage.aliyun.bucket}" placeholder="存储空间名称" autocomplete="off" class="layui-input">
  70. </div>
  71. </div>
  72. <div class="layui-form-item">
  73. <label class="layui-form-label">AccessKeyId:</label>
  74. <div class="layui-input-block">
  75. <input type="text" name="aliyun_ak" value="{$storage.aliyun.access_key_id}" autocomplete="off" class="layui-input">
  76. </div>
  77. </div>
  78. <div class="layui-form-item">
  79. <label class="layui-form-label">AccessKeySecret:</label>
  80. <div class="layui-input-block">
  81. <input type="text" name="aliyun_sk" value="{$storage.aliyun.access_key_secret}" autocomplete="off" class="layui-input">
  82. </div>
  83. </div>
  84. <div class="layui-form-item" style="margin-bottom: 0;">
  85. <label class="layui-form-label">空间域名(Domain):</label>
  86. <div class="layui-input-block">
  87. <input type="text" name="aliyun_domain" value="{$storage.aliyun.domain}" placeholder="http://" autocomplete="off" class="layui-input">
  88. </div>
  89. </div>
  90. <div class="layui-form-item">
  91. <label class="layui-form-label"></label>
  92. <div class="layui-input-block">
  93. <div class="layui-form-mid layui-word-aux">请补全http://或https://,例如https://static.cloud.com</div>
  94. </div>
  95. </div>
  96. {elseif $engine == 'qcloud'}
  97. <div class="layui-form-item">
  98. <label class="layui-form-label">存储方式:</label>
  99. <div class="layui-input-block">
  100. <span class="engine_method">腾讯云存储</span>
  101. </div>
  102. </div>
  103. <div class="layui-form-item">
  104. <label class="layui-form-label">存储空间(Bucket):</label>
  105. <div class="layui-input-block">
  106. <input type="text" name="qcloud_bucket" value="{$storage.qcloud.bucket}" placeholder="存储空间名称" autocomplete="off" class="layui-input">
  107. </div>
  108. </div>
  109. <div class="layui-form-item">
  110. <label class="layui-form-label">所属地区(Region):</label>
  111. <div class="layui-input-block">
  112. <input type="text" name="qcloud_region" value="{$storage.qcloud.region}" autocomplete="off" class="layui-input">
  113. </div>
  114. </div>
  115. <div class="layui-form-item">
  116. <label class="layui-form-label">SecretId:</label>
  117. <div class="layui-input-block">
  118. <input type="text" name="qcloud_ak" value="{$storage.qcloud.secret_id}" autocomplete="off" class="layui-input">
  119. </div>
  120. </div>
  121. <div class="layui-form-item">
  122. <label class="layui-form-label">SecretKey:</label>
  123. <div class="layui-input-block">
  124. <input type="text" name="qcloud_sk" value="{$storage.qcloud.secret_key}" autocomplete="off" class="layui-input">
  125. </div>
  126. </div>
  127. <div class="layui-form-item" style="margin-bottom: 0;">
  128. <label class="layui-form-label">空间域名(Domain):</label>
  129. <div class="layui-input-block">
  130. <input type="text" name="qcloud_domain" value="{$storage.qcloud.domain}" placeholder="http://" autocomplete="off" class="layui-input">
  131. </div>
  132. </div>
  133. <div class="layui-form-item">
  134. <label class="layui-form-label"></label>
  135. <div class="layui-input-block">
  136. <div class="layui-form-mid layui-word-aux">请补全http://或https://,例如https://static.cloud.com</div>
  137. </div>
  138. </div>
  139. {/if}
  140. <div class="layui-form-item" >
  141. <div class="layui-form-item layui-hide">
  142. <input type="button" lay-submit lay-filter="addSubmit" id="addSubmit" value="确认">
  143. </div>
  144. </div>
  145. </div>
  146. <script>
  147. layui.use(['form','like'], function(){
  148. var $ = layui.$
  149. ,form = layui.form;
  150. })
  151. </script>