_index.html 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  6. <meta http-equiv="X-UA-Compatible" content="ie=edge">
  7. <title>Document</title>
  8. <style>
  9. /*适配wap*/
  10. .wap .dw-account-login-tip {
  11. width: 310px;
  12. margin: 0;
  13. transform: translate(-50%, -50%);
  14. -webkit-transform: translate(-50%, -50%);
  15. -ms-transform: translate(-50%, -50%);
  16. -o-transform: translate(-50%, -50%);
  17. -moz-transform: translate(-50%, -50%);
  18. }
  19. .wap .dw-account-login-tip .close {
  20. right: -20px;
  21. }
  22. .wap .dw-account-login-tip .dw-account-tip-cont {
  23. font-size: 13px;
  24. }
  25. .wap .dw-account-login-tip .dw-account-tip-cont .specical-tip {
  26. font-size: 13px;
  27. }
  28. @media screen and (max-width:320px) {
  29. .wap .dw-account-login-tip {
  30. width: 280px;
  31. }
  32. }
  33. /*适配wap end*/
  34. .account-login-mask {
  35. position: fixed;
  36. top: 0;
  37. left: 0;
  38. z-index: 20000;
  39. width: 100%;
  40. height: 100%;
  41. background-color: #000;
  42. opacity: .5;
  43. zoom: 1;
  44. -moz-opacity: .5;
  45. filter: alpha(opacity=50)
  46. }
  47. .dw-account-login-tip {
  48. position: fixed;
  49. top: 50%;
  50. left: 50%;
  51. z-index: 20001;
  52. display: none;
  53. margin: -146px 0 0 -228px;
  54. width: 455px;
  55. min-height: 180px;
  56. border-radius: 3px;
  57. background: #fff;
  58. box-shadow: 3px 3px 10px rgba(0, 0, 0, .3);
  59. font-family: Microsoft Yahei
  60. }
  61. .dw-account-login-tip p {
  62. margin: 0 auto;
  63. }
  64. .dw-account-login-tip.bbs-setnick {
  65. width: 520px;
  66. margin-left: -260px;
  67. }
  68. .dw-account-login-tip .close {
  69. position: absolute;
  70. top: 0px;
  71. right: -24px;
  72. width: 14px;
  73. height: 14px;
  74. background: url(http://pub.dwstatic.com/common/dwUDBProxy/img/close-icon_8635244.png) no-repeat;
  75. cursor: pointer;
  76. font-size: 0;
  77. }
  78. .dw-account-login-tip .close:hover {
  79. background-image: url(http://pub.dwstatic.com/common/dwUDBProxy/img/close-icon-hover_ae1378d.png);
  80. }
  81. .dw-account-login-tip .dw-account-tip-title {
  82. color: #000003;
  83. font-size: 20px;
  84. line-height: 32px;
  85. margin: 40px 0 23px;
  86. text-align: center;
  87. font-weight: bold;
  88. }
  89. .dw-account-login-tip .dw-account-tip-cont {
  90. font-size: 16px;
  91. line-height: 36px;
  92. color: #333333;
  93. text-align: center;
  94. }
  95. .dw-account-login-tip .dw-account-tip-cont .specical-tip {
  96. font-size: 14px;
  97. font-weight: bold;
  98. color: #e94646;
  99. }
  100. .dw-account-login-tip .dw-account-tip-cont .specical-icon {
  101. display: inline-block;
  102. *display: inline;
  103. *zoom: 1;
  104. width: 15px;
  105. height: 15px;
  106. vertical-align: top;
  107. margin: 10px 5px 0 0;
  108. background: url(http://pub.dwstatic.com/common/dwUDBProxy/img/specical-icon.png);
  109. }
  110. .dw-account-login-tip.bbs-setnick .dw-account-tip-tools {
  111. margin-top: 30px;
  112. }
  113. .dw-account-login-tip .dw-account-tip-tools {
  114. font-size: 0;
  115. text-align: center;
  116. margin: 37px 0 50px;
  117. }
  118. .dw-account-login-tip .dw-account-tip-tools a,
  119. .dw-account-login-tip .dw-account-tip-tools button {
  120. display: inline-block;
  121. *display: inline;
  122. *zoom: 1;
  123. box-sizing: content-box;
  124. width: 90px;
  125. height: 32px;
  126. padding: 0;
  127. margin: 0 10px;
  128. background: transparent;
  129. font-size: 14px;
  130. line-height: 32px;
  131. color: #596d81;
  132. border: 1px solid #596d81;
  133. border-radius: 2px;
  134. outline: none;
  135. text-decoration: none;
  136. vertical-align: top;
  137. cursor: pointer;
  138. }
  139. .dw-account-login-tip .dw-account-tip-tools .dw-account-tip-confirm:hover {
  140. background-color: #e9eff4;
  141. }
  142. .dw-account-login-tip .dw-account-tip-tools .dw-account-tip-cancel {
  143. color: #fff;
  144. background-color: #596d81;
  145. }
  146. .dw-account-login-tip .dw-account-tip-tools .dw-account-tip-cancel:hover {
  147. background-color: #7992ab;
  148. border-color: #7992ab;
  149. }
  150. </style>
  151. </head>
  152. <body>
  153. <!--公共消息弹窗-->
  154. <div class="dw-account-login-tip" id="dwAccountMsg">
  155. <div class="dw-account-tip-title">提示</div>
  156. <div class="dw-account-tip-cont">
  157. 我们支持微信、QQ、微博账号绑定啦!
  158. </div>
  159. <a class="close" title="关闭">退出</a>
  160. </div>
  161. <!--强制绑定弹窗-->
  162. <div class="dw-account-login-tip" id="checkBind">
  163. <div class="dw-account-tip-title">该账号已经绑定过了!</div>
  164. <div class="dw-account-tip-cont">
  165. <p>你可以选择强制绑定,也可以换个账号绑定</p>
  166. <p class="specical-tip"><i class="specical-icon"></i>强制绑定后将不能使用该第三方账号登录原账号</p>
  167. </div>
  168. <div class="dw-account-tip-tools">
  169. <button class="dw-account-tip-confirm">强制绑定</button>
  170. <button class="dw-account-tip-cancel">换个账号</a>
  171. </div>
  172. <a class="close" title="关闭">退出</a>
  173. </div>
  174. <div class="account-login-mask" style="display:none"></div>
  175. <script src="http://pub.dwstatic.com/common/js/jquery.js"></script>
  176. <script src="./dwFoot/duowanFooter.js"></script>
  177. <script>
  178. var $dwMsg = $('#dwAccountMsg'),
  179. $msgCont = $dwMsg.find('.dw-account-tip-cont'),
  180. $checkBind = $('#checkBind'),
  181. $mask = $('.account-login-mask'),
  182. //适配wap
  183. adapt = (function () {
  184. var isWap = /Android|webOS|iPhone|Windows Phone|iPod|BlackBerry|SymbianOS/i.test(window.navigator.userAgent)
  185. isWap && $('body').addClass('wap')
  186. })(),
  187. showTip = function (text) {
  188. $msgCont.text(text)
  189. $dwMsg.show()
  190. $mask.show()
  191. },
  192. showCheckBind = function () {
  193. $checkBind.show()
  194. $mask.show()
  195. },
  196. hideModal = function () {
  197. $dwMsg.hide()
  198. $checkBind.hide()
  199. $mask.hide()
  200. }
  201. $dwMsg.on('click', '.close', function () {
  202. hideModal()
  203. })
  204. $checkBind.on('click', '.close', function () {
  205. hideModal()
  206. }).on('click', '.dw-account-tip-confirm', function () {
  207. //强制绑定方法
  208. }).on('click', '.dw-account-tip-cancel', function () {
  209. window.close()
  210. })
  211. </script>
  212. </body>
  213. </html>