index.html 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title>第三方登录 - {$site.name}</title>
  5. <meta charset="UTF-8">
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  7. <link href="__CDN__/assets/css/frontend.min.css" rel="stylesheet">
  8. <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
  9. <!--[if lt IE 9]>
  10. <script src="https://cdn.jsdelivr.net/npm/html5shiv@3.7.3/dist/html5shiv.min.js"></script>
  11. <script src="https://cdn.jsdelivr.net/npm/respond.js@1.4.2/dest/respond.min.js"></script>
  12. <![endif]-->
  13. </head>
  14. <body>
  15. <div class="container">
  16. <h2>第三方登录</h2>
  17. <hr>
  18. <div class="well">
  19. <div class="row">
  20. <div class="col-xs-4">
  21. {if $user && in_array('qq', $platformList)}
  22. <a href="{:addon_url('third/index/unbind',[':platform'=>'qq'])}" class="btn btn-block btn-info">
  23. <i class="fa fa-qq"></i> 点击解绑
  24. </a>
  25. {else/}
  26. <a href="{:addon_url('third/index/connect',[':platform'=>'qq'])}" class="btn btn-block btn-info">
  27. <i class="fa fa-qq"></i> QQ登录
  28. </a>
  29. {/if}
  30. </div>
  31. <div class="col-xs-4">
  32. {if $user && in_array('wechat', $platformList)}
  33. <a href="{:addon_url('third/index/unbind',[':platform'=>'wechat'])}" class="btn btn-block btn-success">
  34. <i class="fa fa-wechat"></i> 点击解绑
  35. </a>
  36. {else/}
  37. <a href="{:addon_url('third/index/connect',[':platform'=>'wechat'])}" class="btn btn-block btn-success">
  38. <i class="fa fa-wechat"></i> 微信登录
  39. </a>
  40. {/if}
  41. </div>
  42. <div class="col-xs-4">
  43. {if $user && in_array('weibo', $platformList)}
  44. <a href="{:addon_url('third/index/unbind',[':platform'=>'weibo'])}" class="btn btn-block btn-danger">
  45. <i class="fa fa-weibo"></i> 点击解绑
  46. </a>
  47. {else/}
  48. <a href="{:addon_url('third/index/connect',[':platform'=>'weibo'])}" class="btn btn-block btn-danger">
  49. <i class="fa fa-weibo"></i> 微博登录
  50. </a>
  51. {/if}
  52. </div>
  53. </div>
  54. </div>
  55. <h2>相关链接</h2>
  56. <hr>
  57. <table class="table table-striped table-hover">
  58. <thead>
  59. <tr>
  60. <th>QQ</th>
  61. <th>链接</th>
  62. </tr>
  63. </thead>
  64. <tbody>
  65. <tr>
  66. <td>QQ 连接</td>
  67. <td>{:addon_url('third/index/connect',[':platform'=>'qq'], false, true)}</td>
  68. </tr>
  69. <tr>
  70. <td>QQ 绑定</td>
  71. <td>{:addon_url('third/index/bind',[':platform'=>'qq'], false, true)}</td>
  72. </tr>
  73. <tr>
  74. <td>QQ 解绑</td>
  75. <td>{:addon_url('third/index/unbind',[':platform'=>'qq'], false, true)}</td>
  76. </tr>
  77. </tbody>
  78. </table>
  79. <table class="table table-striped table-hover">
  80. <thead>
  81. <tr>
  82. <th>微信</th>
  83. <th>链接</th>
  84. </tr>
  85. </thead>
  86. <tbody>
  87. <tr>
  88. <td>微信 连接</td>
  89. <td>{:addon_url('third/index/connect',[':platform'=>'wechat'], false, true)}</td>
  90. </tr>
  91. <tr>
  92. <td>微信 绑定</td>
  93. <td>{:addon_url('third/index/bind',[':platform'=>'wechat'], false, true)}</td>
  94. </tr>
  95. <tr>
  96. <td>微信 解绑</td>
  97. <td>{:addon_url('third/index/unbind',[':platform'=>'wechat'], false, true)}</td>
  98. </tr>
  99. </tbody>
  100. </table>
  101. <table class="table table-striped table-hover">
  102. <thead>
  103. <tr>
  104. <th>微博</th>
  105. <th>链接</th>
  106. </tr>
  107. </thead>
  108. <tbody>
  109. <tr>
  110. <td>微博 连接</td>
  111. <td>{:addon_url('third/index/connect',[':platform'=>'weibo'], false, true)}</td>
  112. </tr>
  113. <tr>
  114. <td>微博 绑定</td>
  115. <td>{:addon_url('third/index/bind',[':platform'=>'weibo'], false, true)}</td>
  116. </tr>
  117. <tr>
  118. <td>微博 解绑</td>
  119. <td>{:addon_url('third/index/unbind',[':platform'=>'weibo'], false, true)}</td>
  120. </tr>
  121. </tbody>
  122. </table>
  123. </div>
  124. <!-- jQuery -->
  125. <script src="https://cdn.jsdelivr.net/npm/jquery@2.1.4/dist/jquery.min.js"></script>
  126. <!-- Bootstrap Core JavaScript -->
  127. <script src="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/js/bootstrap.min.js"></script>
  128. <script type="text/javascript">
  129. $(function () {
  130. });
  131. </script>
  132. </body>
  133. </html>