configpri.html 30 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542
  1. <include file="public@header"/>
  2. <style>
  3. .cdnhide{
  4. display:none;
  5. }
  6. .codehide{
  7. display:none;
  8. }
  9. </style>
  10. </head>
  11. <body>
  12. <div class="wrap js-check-wrap">
  13. <ul class="nav nav-tabs">
  14. <li class="active"><a href="#A" data-toggle="tab">基本设置</a></li>
  15. <li><a href="#B" data-toggle="tab">登录配置</a></li>
  16. <li><a href="#C" data-toggle="tab">直播配置</a></li>
  17. <li><a href="#D" data-toggle="tab">映票提现配置</a></li>
  18. <li><a href="#F" data-toggle="tab">支付配置</a></li>
  19. <li><a href="#O" data-toggle="tab">云存储配置</a></li>
  20. </ul>
  21. <form class="form-horizontal js-ajax-form margin-top-20" role="form" action="{:url('setting/configpriPost')}" method="post">
  22. <fieldset>
  23. <div class="tabbable">
  24. <div class="tab-content">
  25. <div class="tab-pane active" id="A">
  26. <div class="form-group">
  27. <label for="input-sensitive_words" class="col-sm-2 control-label">敏感词</label>
  28. <div class="col-md-6 col-sm-10">
  29. <textarea class="form-control" id="input-sensitive_words" name="options[sensitive_words]" >{$config.sensitive_words|default=''}</textarea><p class="help-block">设置多个敏感字,请用英文状态下逗号隔开</p>
  30. </div>
  31. </div>
  32. <div class="form-group">
  33. <div class="col-sm-offset-2 col-sm-10">
  34. <button type="submit" class="btn btn-primary js-ajax-submit" data-refresh="1">
  35. {:lang('SAVE')}
  36. </button>
  37. </div>
  38. </div>
  39. </div>
  40. <div class="tab-pane" id="B">
  41. <div class="form-group">
  42. <label for="input-reg_reward" class="col-sm-2 control-label">注册奖励</label>
  43. <div class="col-md-6 col-sm-10">
  44. <input type="text" class="form-control" id="input-reg_reward"
  45. name="options[reg_reward]" value="{$config.reg_reward|default=''}">
  46. <p class="help-block">新用户注册奖励(整数)</p>
  47. </div>
  48. </div>
  49. <div class="form-group">
  50. <label for="input-sendcode_switch" class="col-sm-2 control-label">短信验证码开关</label>
  51. <div class="col-md-6 col-sm-10">
  52. <select class="form-control" name="options[sendcode_switch]">
  53. <option value="0">关闭</option>
  54. <option value="1" <eq name="config['sendcode_switch']" value="1">selected</eq>>开启</option>
  55. </select>
  56. <p class="help-block">短信验证码开关,关闭后不再发送真实验证码,采用默认验证码123456</p>
  57. </div>
  58. </div>
  59. <div class="form-group">
  60. <label for="input-tencent_sms_appid" class="col-sm-2 control-label">腾讯云短信SMS-AppID</label>
  61. <div class="col-md-6 col-sm-10">
  62. <input type="text" class="form-control" id="input-tencent_sms_appid" name="options[tencent_sms_appid]" value="{$config['tencent_sms_appid']|default=''}">
  63. <p class="help-block">腾讯云控制台==》短信-》应用管理-》应用列表==》 应用详情</p>
  64. </div>
  65. </div>
  66. <div class="form-group">
  67. <label for="input-tencent_sms_appkey" class="col-sm-2 control-label">腾讯云短信SMS-AppKey</label>
  68. <div class="col-md-6 col-sm-10">
  69. <input type="text" class="form-control" id="input-tencent_sms_appkey" name="options[tencent_sms_appkey]" value="{$config['tencent_sms_appkey']|default=''}">
  70. <p class="help-block">腾讯云控制台==》短信-》应用管理-》应用列表==》 应用详情</p>
  71. </div>
  72. </div>
  73. <div class="form-group">
  74. <label for="input-tencent_sms_signName" class="col-sm-2 control-label">腾讯云短信国内签名</label>
  75. <div class="col-md-6 col-sm-10">
  76. <input type="text" class="form-control" id="input-tencent_sms_signName" name="options[tencent_sms_signName]" value="{$config['tencent_sms_signName']|default=''}">
  77. <p class="help-block">腾讯云控制台==》短信-》国内短信==》 签名管理</p>
  78. </div>
  79. </div>
  80. <div class="form-group">
  81. <label for="input-tencent_sms_templateCode" class="col-sm-2 control-label">腾讯云国内短信模板ID</label>
  82. <div class="col-md-6 col-sm-10">
  83. <input type="text" class="form-control" id="input-tencent_sms_templateCode" name="options[tencent_sms_templateCode]" value="{$config['tencent_sms_templateCode']|default=''}">
  84. <p class="help-block">腾讯云控制台==》短信-》国内短信==》 正文模板管理</p>
  85. </div>
  86. </div>
  87. <div class="form-group">
  88. <label for="input-iplimit_switch" class="col-sm-2 control-label">短信验证码IP限制开关</label>
  89. <div class="col-md-6 col-sm-10">
  90. <select class="form-control" name="options[iplimit_switch]">
  91. <option value="0">关闭</option>
  92. <option value="1" <eq name="config['iplimit_switch']" value="1">selected</eq>>开启</option>
  93. </select>
  94. </div>
  95. </div>
  96. <div class="form-group">
  97. <label for="input-iplimit_times" class="col-sm-2 control-label">短信验证码IP限制次数</label>
  98. <div class="col-md-6 col-sm-10">
  99. <input type="text" class="form-control" id="input-iplimit_times" name="options[iplimit_times]" value="{$config['iplimit_times']|default=''}">
  100. <p class="help-block">同一IP每天可以发送验证码的最大次数</p>
  101. </div>
  102. </div>
  103. <div class="form-group">
  104. <div class="col-sm-offset-2 col-sm-10">
  105. <button type="submit" class="btn btn-primary js-ajax-submit" data-refresh="0">
  106. {:lang('SAVE')}
  107. </button>
  108. </div>
  109. </div>
  110. </div>
  111. <div class="tab-pane" id="C">
  112. <div class="form-group">
  113. <label for="input-auth_islimit" class="col-sm-2 control-label">认证限制</label>
  114. <div class="col-md-6 col-sm-10">
  115. <select class="form-control" name="options[auth_islimit]">
  116. <option value="0">关闭</option>
  117. <option value="1" <eq name="config['auth_islimit']" value="1">selected</eq>>开启</option>
  118. </select>
  119. <p class="help-block">主播开播是否需要身份认证</p>
  120. </div>
  121. </div>
  122. <div class="form-group">
  123. <label for="input-level_islimit" class="col-sm-2 control-label">直播等级控制</label>
  124. <div class="col-md-6 col-sm-10">
  125. <select class="form-control" name="options[level_islimit]">
  126. <option value="0">关闭</option>
  127. <option value="1" <eq name="config['level_islimit']" value="1">selected</eq>>开启</option>
  128. </select>
  129. <p class="help-block">直播等级控制是否开启</p>
  130. </div>
  131. </div>
  132. <div class="form-group">
  133. <label for="input-level_limit" class="col-sm-2 control-label">直播限制等级</label>
  134. <div class="col-md-6 col-sm-10">
  135. <input type="text" class="form-control" id="input-level_limit" name="options[level_limit]" value="{$config['level_limit']|default=''}">
  136. <p class="help-block">直播等级限制开启时,最低开播等级(用户等级)</p>
  137. </div>
  138. </div>
  139. <div class="form-group">
  140. <label for="input-speak_limit" class="col-sm-2 control-label">发言等级限制</label>
  141. <div class="col-md-6 col-sm-10">
  142. <input type="text" class="form-control" id="input-speak_limit" name="options[speak_limit]" value="{$config['speak_limit']|default=''}">
  143. <p class="help-block"> 0表示无限制</p>
  144. </div>
  145. </div>
  146. <div class="form-group">
  147. <label for="input-barrage_limit" class="col-sm-2 control-label">弹幕等级限制</label>
  148. <div class="col-md-6 col-sm-10">
  149. <input type="text" class="form-control" id="input-barrage_limit" name="options[barrage_limit]" value="{$config['barrage_limit']|default=''}"> <p class="help-block">0表示无限制</p>
  150. </div>
  151. </div>
  152. <div class="form-group">
  153. <label for="input-barrage_fee" class="col-sm-2 control-label">弹幕费用</label>
  154. <div class="col-md-6 col-sm-10">
  155. <input type="text" class="form-control" id="input-barrage_fee" name="options[barrage_fee]" value="{$config['barrage_fee']|default=''}">
  156. <p class="help-block">每条弹幕的价格(整数)</p>
  157. </div>
  158. </div>
  159. <div class="form-group">
  160. <label for="input-userlist_time" class="col-sm-2 control-label">用户列表请求间隔(秒)</label>
  161. <div class="col-md-6 col-sm-10">
  162. <input type="text" class="form-control" id="input-userlist_time" name="options[userlist_time]" value="{$config['userlist_time']|default=''}"> <p class="help-block">直播间用户列表刷新间隔时间 注:不小于5s</p>
  163. </div>
  164. </div>
  165. <div class="form-group">
  166. <label for="input-chatserver" class="col-sm-2 control-label">聊天服务器带端口</label>
  167. <div class="col-md-6 col-sm-10">
  168. <input type="text" class="form-control" id="input-chatserver" name="options[chatserver]" value="{$config['chatserver']|default=''}">
  169. <p class="help-block"> 格式:http://域名(:端口) 或者 http://IP(:端口)</p>
  170. </div>
  171. </div>
  172. <div class="form-group">
  173. <label for="input-cdn_switch" class="col-sm-2 control-label">CDN</label>
  174. <div class="col-md-6 col-sm-10" id="cdn">
  175. <label class="radio-inline"><input type="radio" value="2" name="options[cdn_switch]" <in value="2" name="config['cdn_switch']">checked="checked"</in>>腾讯云</label>
  176. </div>
  177. </div>
  178. <div class="form-group">
  179. <label for="input-tx_appid" class="col-sm-2 control-label">腾讯云直播appid</label>
  180. <div class="col-md-6 col-sm-10">
  181. <input type="text" class="form-control" id="input-tx_appid" name="options[tx_appid]" value="{$config['tx_appid']|default=''}">
  182. </div>
  183. </div>
  184. <div class="form-group">
  185. <label for="input-tx_bizid" class="col-sm-2 control-label">腾讯云直播bizid</label>
  186. <div class="col-md-6 col-sm-10">
  187. <input type="text" class="form-control" id="input-tx_bizid" name="options[tx_bizid]" value="{$config['tx_bizid']|default=''}">
  188. </div>
  189. </div>
  190. <div class="form-group">
  191. <label for="input-tx_push_key" class="col-sm-2 control-label">腾讯云推流防盗链Key</label>
  192. <div class="col-md-6 col-sm-10">
  193. <input type="text" class="form-control" id="input-tx_push_key" name="options[tx_push_key]" value="{$config['tx_push_key']|default=''}">
  194. </div>
  195. </div>
  196. <div class="form-group">
  197. <label for="input-tx_acc_key" class="col-sm-2 control-label">腾讯云直播低延迟Key</label>
  198. <div class="col-md-6 col-sm-10">
  199. <input type="text" class="form-control" id="input-tx_acc_key" name="options[tx_acc_key]" value="{$config['tx_acc_key']|default=''}">
  200. <p class="help-block">一般是 直播推流防盗链Key</p>
  201. </div>
  202. </div>
  203. <div class="form-group">
  204. <label for="input-tx_api_key" class="col-sm-2 control-label">腾讯云直播推流鉴权key</label>
  205. <div class="col-md-6 col-sm-10">
  206. <input type="text" class="form-control" id="input-tx_api_key" name="options[tx_api_key]" value="{$config['tx_api_key']|default=''}">
  207. </div>
  208. </div>
  209. <div class="form-group">
  210. <label for="input-tx_play_key" class="col-sm-2 control-label">腾讯云直播播流鉴权key</label>
  211. <div class="col-md-6 col-sm-10">
  212. <input type="text" class="form-control" id="input-tx_play_key" name="options[tx_play_key]" value="{$config['tx_play_key']|default=''}">
  213. </div>
  214. </div>
  215. <div class="form-group">
  216. <label for="input-tx_play_time" class="col-sm-2 control-label">腾讯云直播播流鉴权时间(秒)</label>
  217. <div class="col-md-6 col-sm-10">
  218. <input type="text" class="form-control" id="input-tx_play_time" name="options[tx_play_time]" value="{$config['tx_play_time']|default=''}">
  219. </div>
  220. </div>
  221. <div class="form-group">
  222. <label for="input-tx_play_key_switch" class="col-sm-2 control-label">是否开启腾讯云播流鉴权</label>
  223. <div class="col-md-6 col-sm-10" id="sdk">
  224. <label class="radio-inline"><input type="radio" value="0" name="options[tx_play_key_switch]" <if condition="array_key_exists('tx_play_key_switch',$config) && $config['tx_play_key_switch'] eq '0'">checked="checked" </if>>关闭</label>
  225. <label class="radio-inline"><input type="radio" value="1" name="options[tx_play_key_switch]" <if condition="array_key_exists('tx_play_key_switch',$config) && $config['tx_play_key_switch'] eq '1'">checked="checked" </if>>开启</label>
  226. <p class="help-block">如果选择开启,请确保腾讯云-->云直播-->域名管理-->{$config['tx_pull']|default=''}-->管理-->访问控制-->鉴权配置 里的信息开启了配置,并保持腾讯云填写的鉴权key和鉴权时间与此处填写的一致,参考文档:<a href="https://cloud.tencent.com/document/product/267/32463" target="_blank">https://cloud.tencent.com/document/product/267/32463</a></p>
  227. </div>
  228. </div>
  229. <div class="form-group">
  230. <label for="input-tx_push" class="col-sm-2 control-label">腾讯云直播推流域名</label>
  231. <div class="col-md-6 col-sm-10">
  232. <input type="text" class="form-control" id="input-tx_push" name="options[tx_push]" value="{$config['tx_push']|default=''}">
  233. <p class="help-block"> 不带 http:// ,最后无 /</p>
  234. </div>
  235. </div>
  236. <div class="form-group">
  237. <label for="input-tx_pull" class="col-sm-2 control-label">腾讯云直播播流域名</label>
  238. <div class="col-md-6 col-sm-10">
  239. <input type="text" class="form-control" id="input-tx_pull" name="options[tx_pull]" value="{$config['tx_pull']|default=''}">
  240. <p class="help-block"> 不带 http:// ,最后无 /</p>
  241. </div>
  242. </div>
  243. <div class="form-group">
  244. <div class="col-sm-offset-2 col-sm-10">
  245. <button type="submit" class="btn btn-primary js-ajax-submit" data-refresh="0">
  246. {:lang('SAVE')}
  247. </button>
  248. </div>
  249. </div>
  250. </div>
  251. <div class="tab-pane" id="D">
  252. <div class="form-group">
  253. <label for="input-cash_rate" class="col-sm-2 control-label">提现比例</label>
  254. <div class="col-md-6 col-sm-10">
  255. <input type="text" class="form-control" id="input-cash_rate" name="options[cash_rate]" value="{$config['cash_rate']|default=''}">
  256. <p class="help-block">(整数)提现一元人民币需要的票数</p>
  257. </div>
  258. </div>
  259. <div class="form-group">
  260. <label for="input-cash_take" class="col-sm-2 control-label">提现抽成(元)</label>
  261. <div class="col-md-6 col-sm-10">
  262. <input type="text" class="form-control" id="input-cash_take" name="options[cash_take]" value="{$config['cash_take']|default=''}">
  263. <p class="help-block">(%-整数)百分比<br/>说明: 当提现比例设置为100映票等于1元时,提现抽成比例设置为10%,那么用户提现1000映票时,通过提现比例转换为10元,平台在从10元的基础上抽成10%,用户最终提现到账金额为9元</p>
  264. </div>
  265. </div>
  266. <div class="form-group">
  267. <label for="input-cash_min" class="col-sm-2 control-label">提现最低额度(元)</label>
  268. <div class="col-md-6 col-sm-10">
  269. <input type="text" class="form-control" id="input-cash_min" name="options[cash_min]" value="{$config['cash_min']|default=''}">
  270. <p class="help-block">可提现的最小额度,低于该额度无法提现</p>
  271. </div>
  272. </div>
  273. <div class="form-group">
  274. <label for="input-cash_start" class="col-sm-2 control-label">每月提现期</label>
  275. <div class="col-md-6 col-sm-10">
  276. <input type="text" class="form-control" id="input-cash_start" name="options[cash_start]" value="{$config['cash_start']|default=''}" style="width:100px;display:inline-block;"> -
  277. <input type="text" class="form-control" id="input-cash_end" name="options[cash_end]" value="{$config['cash_end']|default=''}" style="width:100px;display:inline-block;">
  278. <p class="help-block">每月提现期限,不在时间段无法提现</p>
  279. </div>
  280. </div>
  281. <div class="form-group">
  282. <label for="input-cash_max_times" class="col-sm-2 control-label">每月提现次数</label>
  283. <div class="col-md-6 col-sm-10">
  284. <input type="text" class="form-control" id="input-cash_max_times" name="options[cash_max_times]" value="{$config['cash_max_times']|default=''}">
  285. <p class="help-block">每月可提现最大次数,0表示不限制</p>
  286. </div>
  287. </div>
  288. <div class="form-group">
  289. <div class="col-sm-offset-2 col-sm-10">
  290. <button type="submit" class="btn btn-primary js-ajax-submit" data-refresh="0">
  291. {:lang('SAVE')}
  292. </button>
  293. </div>
  294. </div>
  295. </div>
  296. <div class="tab-pane" id="F">
  297. <div class="form-group">
  298. <label for="input-aliapp_partner" class="col-sm-2 control-label">支付宝合作者身份ID</label>
  299. <div class="col-md-6 col-sm-10">
  300. <input type="text" class="form-control" id="input-aliapp_partner" name="options[aliapp_partner]" value="{$config['aliapp_partner']|default=''}">
  301. </div>
  302. </div>
  303. <div class="form-group">
  304. <label for="input-aliapp_seller_id" class="col-sm-2 control-label">支付宝登录账号</label>
  305. <div class="col-md-6 col-sm-10">
  306. <input type="text" class="form-control" id="input-aliapp_seller_id" name="options[aliapp_seller_id]" value="{$config['aliapp_seller_id']|default=''}">
  307. </div>
  308. </div>
  309. <div class="form-group">
  310. <label for="input-aliapp_key_android" class="col-sm-2 control-label">支付宝安卓密钥</label>
  311. <div class="col-md-6 col-sm-10">
  312. <textarea class="form-control" id="input-aliapp_key_android" name="options[aliapp_key_android]" >{$config.aliapp_key_android|default=''}</textarea>
  313. <p class="help-block">支付宝安卓密钥pkcs8</p>
  314. </div>
  315. </div>
  316. <div class="form-group">
  317. <label for="input-aliapp_check" class="col-sm-2 control-label" style="font-weight: normal;padding-top: 0;">--------------------</label>
  318. <div class="col-md-6 col-sm-10">
  319. ----------------------------------------------------------------------------------
  320. </div>
  321. </div>
  322. <div class="form-group">
  323. <label for="input-wx_appid" class="col-sm-2 control-label">微信开放平台移动应用AppID</label>
  324. <div class="col-md-6 col-sm-10">
  325. <input type="text" class="form-control" id="input-wx_appid" name="options[wx_appid]" value="{$config['wx_appid']|default=''}">
  326. </div>
  327. </div>
  328. <div class="form-group">
  329. <label for="input-wx_appsecret" class="col-sm-2 control-label">微信开放平台移动应用appsecret</label>
  330. <div class="col-md-6 col-sm-10">
  331. <input type="text" class="form-control" id="input-wx_appsecret" name="options[wx_appsecret]" value="{$config['wx_appsecret']|default=''}">
  332. </div>
  333. </div>
  334. <div class="form-group">
  335. <label for="input-wx_mchid" class="col-sm-2 control-label">微信开放平台绑定商户号mchid</label>
  336. <div class="col-md-6 col-sm-10">
  337. <input type="text" class="form-control" id="input-wx_mchid" name="options[wx_mchid]" value="{$config['wx_mchid']|default=''}">
  338. </div>
  339. </div>
  340. <div class="form-group">
  341. <label for="input-wx_key" class="col-sm-2 control-label">微信开放平台绑定商户号密钥key</label>
  342. <div class="col-md-6 col-sm-10">
  343. <input type="text" class="form-control" id="input-wx_key" name="options[wx_key]" value="{$config['wx_key']|default=''}">
  344. </div>
  345. </div>
  346. <div class="form-group">
  347. <label class="col-sm-2 control-label" style="text-align: center;color: #F00;">{$name_coin}充值支付方式开关</label>
  348. <div class="col-md-6 col-sm-10">
  349. </div>
  350. </div>
  351. <div class="form-group">
  352. <label for="input-aliapp_switch" class="col-sm-2 control-label">支付宝APP开关</label>
  353. <div class="col-md-6 col-sm-10">
  354. <select class="form-control" name="options[aliapp_switch]">
  355. <option value="0">关闭</option>
  356. <option value="1" <eq name="config['aliapp_switch']" value="1">selected</eq>>开启</option>
  357. </select>
  358. </div>
  359. </div>
  360. <div class="form-group">
  361. <label for="input-wx_switch" class="col-sm-2 control-label">微信支付APP开关</label>
  362. <div class="col-md-6 col-sm-10">
  363. <select class="form-control" name="options[wx_switch]">
  364. <option value="0">关闭</option>
  365. <option value="1" <eq name="config['wx_switch']" value="1">selected</eq>>开启</option>
  366. </select>
  367. </div>
  368. </div>
  369. <div class="form-group">
  370. <div class="col-sm-offset-2 col-sm-10">
  371. <button type="submit" class="btn btn-primary js-ajax-submit" data-refresh="0">
  372. {:lang('SAVE')}
  373. </button>
  374. </div>
  375. </div>
  376. </div>
  377. <!-- 云存储设置 -->
  378. <div class="tab-pane" id="O">
  379. <div class="form-group">
  380. <label for="input-cloudtype" class="col-sm-2 control-label">选择存储方式</label>
  381. <div class="col-md-6 col-sm-10" id="cloudtype">
  382. <label class="radio-inline"><input type="radio" value="1" name="options[cloudtype]" <in value="1" name="config['cloudtype']">checked="checked"</in>>七牛云存储</label>
  383. </div>
  384. </div>
  385. <div id="cloudtype_1" class="cloudtype_hide <neq name="config['cloudtype']" value="1">hide</neq>">
  386. <div class="form-group">
  387. <label for="input-aws_bucket" class="col-sm-2 control-label"></label>
  388. <div class="col-md-6 col-sm-10">
  389. <p class="help-block">七牛云存储信息请到插件中心--》插件列表里配置</p>
  390. </div>
  391. </div>
  392. </div>
  393. <div class="form-group">
  394. <div class="col-sm-offset-2 col-sm-10">
  395. <button type="submit" class="btn btn-primary js-ajax-submit" data-refresh="0">
  396. {:lang('SAVE')}
  397. </button>
  398. </div>
  399. </div>
  400. </div>
  401. </div>
  402. </div>
  403. </fieldset>
  404. </form>
  405. </div>
  406. <script type="text/javascript" src="__STATIC__/js/admin.js"></script>
  407. <script>
  408. (function(){
  409. $('.btn-cancel-thumbnail2').click(function () {
  410. $('#thumbnail2-preview').attr('src', '__TMPL__/public/assets/images/default-thumbnail.png');
  411. $('#thumbnail2').val('');
  412. });
  413. $("#sdk label").on('click',function(){
  414. var v=$("input",this).val();
  415. if(v==1){
  416. $("#cdn label input[type=radio]").attr('disabled','disabled');
  417. $("#cdn label input[type=radio][value=2]").removeAttr('disabled');
  418. $("#cdn label").eq(1).click();
  419. }else{
  420. $("#cdn label input[type=radio]").removeAttr('disabled');
  421. }
  422. })
  423. $("#cdn label").on('click',function(){
  424. var v_d=$("input",this).attr('disabled');
  425. if(v_d=='disabled'){
  426. return !1;
  427. }
  428. var v=$("input",this).val();
  429. var b=$("#cdn_switch_"+v);
  430. $(".cdn_bd").hide();
  431. b.show();
  432. })
  433. $("#cloudtype label").on('click',function(){
  434. var v=$("input",this).val();
  435. var b=$("#cloudtype_"+v);
  436. $(".cloudtype_bd").siblings('.cloudtype_bd').hide();
  437. b.show();
  438. })
  439. $("#duanxin label").on('click',function(){
  440. var v_d=$("input",this).attr('disabled');
  441. if(v_d=='disabled'){
  442. return !1;
  443. }
  444. var v=$("input",this).val();
  445. console.log(v);
  446. var b=$("#typecode_switch_"+v);
  447. $(".code_bd").hide();
  448. b.show();
  449. })
  450. //云存储切换
  451. $("#cloudtype label.radio-inline").on('click',function(){
  452. var v=$("input",this).val();
  453. $(".cloudtype_hide").addClass('hide');
  454. $("#cloudtype_"+v).removeClass('hide');
  455. })
  456. })()
  457. </script>
  458. </body>
  459. </html>