Geen omschrijving
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.

canal_list.htm 4.1KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. <div class="hDiv" id="canal_list">
  2. <div class="hDivBox">
  3. <table cellspacing="0" cellpadding="0" style="width: 100%">
  4. <thead>
  5. <tr>
  6. <th class="sign w10" axis="col0">
  7. <div class="tc"></div>
  8. </th>
  9. <th abbr="article_title" axis="col3" class="w10">
  10. <div id="anchor-sms" class="tc">渠道配置</div>
  11. </th>
  12. <th abbr="ac_id" axis="col4">
  13. <div class=""></div>
  14. </th>
  15. </tr>
  16. </thead>
  17. </table>
  18. </div>
  19. </div>
  20. <div class="plug-list">
  21. <!-- 开放API -->
  22. <div class="plug-item-content">
  23. <div class="plug-item-top">
  24. <div class="plug-img">
  25. <a href="{:url('Canal/conf_api')}"><img src="__SKIN__/images/conf_api.png?v={$version}" width="80" height="80"></a>
  26. </div>
  27. <div class="plug-text">
  28. <div class="plug-text-title">
  29. <a href="{:url('Canal/conf_api')}">小程序API</a>
  30. </div>
  31. <div class="plug-text-versions">
  32. <span>开源小程序api接口配置(目前支持微信、百度、抖音小程序)</span>
  33. </div>
  34. <!-- <div class="plug-text-des">暂无描述</div> -->
  35. </div>
  36. </div>
  37. <div class="plug-item-bottm">
  38. <a href="JavaScript:void(0);" id="conf_api_open1" onclick="ConfApiOpen(1);" {empty name="$confApi.apiopen"} style="cursor: pointer;" {else/} style="cursor: pointer; display: none;" {/empty} title="点击关闭">已启用 </a>
  39. <a href="JavaScript:void(0);" id="conf_api_open0" onclick="ConfApiOpen(0);" {empty name="$confApi.apiopen"} style="cursor: pointer; color: #9ea3a7; display: none;" {else/} style="cursor: pointer; color: #9ea3a7;" {/empty} title="点击启用">已关闭 </a>
  40. <a href="{:url('Canal/conf_api')}" id="a_conf_api" {notempty name="$confApi.apiopen"}class="none"{/notempty}>配置</a>
  41. </div>
  42. </div>
  43. <script type="text/javascript">
  44. function ConfApiOpen(open_value) {
  45. $.ajax({
  46. url: "{:url('Canal/ajax_save_apiopen', ['_ajax'=>1])}",
  47. type: 'POST',
  48. dataType: 'JSON',
  49. data: {open_value: open_value},
  50. success: function(res) {
  51. if (1 == res.code) {
  52. if (1 == open_value) {
  53. $('#conf_api_open0').show();
  54. $('#conf_api_open1').hide();
  55. $('#a_conf_api').hide();
  56. } else {
  57. $('#conf_api_open1').show();
  58. $('#conf_api_open0').hide();
  59. $('#a_conf_api').show();
  60. }
  61. layer.msg(res.msg, {icon: 1, time: 1000});
  62. return false;
  63. } else {
  64. layer.alert(res.msg, {icon: 2, title:false});
  65. return false;
  66. }
  67. },
  68. error: function(e){
  69. showErrorMsg(e.responseText);
  70. return false;
  71. }
  72. });
  73. }
  74. </script>
  75. <!-- 微信公众号 -->
  76. <div class="plug-item-content">
  77. <div class="plug-item-top">
  78. <div class="plug-img">
  79. <a href="{:url('Canal/conf_wechat')}"><img src="__SKIN__/images/conf_wechat.png?v={$version}" width="80" height="80"></a>
  80. </div>
  81. <div class="plug-text">
  82. <div class="plug-text-title">
  83. <a href="{:url('Canal/conf_wechat')}">微信公众号</a>
  84. </div>
  85. <div class="plug-text-versions">
  86. <span>微信公众号api接口配置、微站点开启及相关设置</span>
  87. </div>
  88. <!-- <div class="plug-text-des">暂无描述</div> -->
  89. </div>
  90. </div>
  91. <div class="plug-item-bottm">
  92. <a href="{:url('Canal/conf_wechat')}">配置</a>
  93. </div>
  94. </div>
  95. </div>