authSnapShot.html 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta http-equiv="Content-Type" content="application/xhtml+xml;charset=UTF-8">
  6. <meta http-equiv="Cache-Control" content="no-cache,must-revalidate">
  7. <meta http-equiv="pragma" content="no-cache">
  8. <meta http-equiv="expires" content="0">
  9. <meta name="format-detection" content="telephone=no,email=no">
  10. <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no">
  11. <title>微信授权</title>
  12. <style>
  13. * {
  14. box-sizing: border-box;
  15. }
  16. body, html {
  17. margin: 0;
  18. padding: 0;
  19. background: #fff;
  20. font-size: 14px;
  21. }
  22. .wx-auth {
  23. position: absolute;
  24. height: 100%;
  25. width: 100%;
  26. text-align: center;
  27. line-height: 1.9;
  28. }
  29. .wx-auth-tips-main {
  30. position: relative;
  31. height: 260px;
  32. width: 100%;
  33. overflow: hidden;
  34. color: rgba(255, 255, 255, .82);
  35. }
  36. .wx-auth-tips-main:before {
  37. content: '';
  38. z-index: 0;
  39. position: absolute;
  40. width: 1800px;
  41. height: 1800px;
  42. border-radius: 900px;
  43. background: #2CAE67;
  44. left: 50%;
  45. bottom: 0;
  46. transform: translateX(-50%);
  47. }
  48. .wx-auth-tips {
  49. position: relative;
  50. margin-top: 36px;
  51. }
  52. .wx-auth-tips img {
  53. width: 28px;
  54. height: 28px;
  55. filter: brightness(10) opacity(.82);
  56. vertical-align: middle;
  57. }
  58. .wx-auth-tips span {
  59. vertical-align: middle;
  60. line-height: 32px;
  61. font-size: 16px;
  62. margin-left: 4px;
  63. }
  64. .wx-auth-info {
  65. position: relative;
  66. margin-top: 18px;
  67. }
  68. .wx-auth-user {
  69. position: relative;
  70. margin-top: 18px;
  71. }
  72. .user-head {
  73. padding: 6px;
  74. width: 44px;
  75. height: 44px;
  76. border-radius: 6px;
  77. opacity: .38;
  78. background: rgba(255, 255, 255, .38);
  79. }
  80. .user-name {
  81. width: 180px;
  82. height: 44px;
  83. display: inline-block;
  84. border-radius: 6px;
  85. background: rgba(255, 255, 255, .144);
  86. margin-left: 2px;
  87. }
  88. .wx-auth-desc {
  89. color: rgb(102, 102, 102);
  90. padding: 32px 46px;
  91. }
  92. /**如果微信黑色提示实在浏览器容器之外,则bottom: 0;在浏览器内部则是按照实际位置设置bottom;**/
  93. .wx-auth-guide-main {
  94. position: absolute;
  95. width: 100%;
  96. height: 150px;
  97. bottom: 0;
  98. overflow: hidden;
  99. }
  100. .wx-auth-guide-btn {
  101. position: relative;
  102. font-size: 13px;
  103. display: inline-block;
  104. height: 40px;
  105. line-height: 40px;
  106. border-radius: 20px;
  107. background: #F8F8F8;
  108. padding: 0 22px;
  109. }
  110. .wx-auth-guide-btn strong {
  111. padding: 0 4px;
  112. }
  113. .wx-auth-guide-img {
  114. display: block;
  115. position: absolute;
  116. width: 100px;
  117. right: 50px;
  118. bottom: 10px;
  119. transform: rotate(60deg);
  120. margin: 16px 0;
  121. opacity: .4;
  122. }
  123. </style>
  124. </head>
  125. <body>
  126. <div class="wx-auth">
  127. <div class="wx-auth-tips-main">
  128. <div class="wx-auth-tips">
  129. <img src="/app/img/info-tips.png"/> <span> 温馨提示</span>
  130. </div>
  131. <div class="wx-auth-info">
  132. 该网页需获取个人信息才可使用完整服务<br/>当前仅可浏览部分内容。
  133. </div>
  134. <div class="wx-auth-user">
  135. <img class="user-head" src="/app/img/head.png"/>
  136. <div class="user-name"></div>
  137. </div>
  138. </div>
  139. <div class="wx-auth-desc" id="tip">为了更好的为您服务,我们将收集您的微信昵称和头像信息。这些信息将用于订单管理中定位您的消费订单,以便进行后续的服务。</div>
  140. <div class="wx-auth-guide-main">
  141. <div class="wx-auth-guide-btn">
  142. 点击下方 <strong>使用完整服务</strong> 继续
  143. </div>
  144. <img class="wx-auth-guide-img" src="/app/img/guide-arrow.png"/>
  145. </div>
  146. </div>
  147. <script>
  148. function getQueryString(name) {
  149. var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
  150. var r = window.location.search.substr(1).match(reg);
  151. if (r != null)
  152. return decodeURI(r[2]);
  153. return null;
  154. }
  155. var tip = getQueryString('tip')
  156. if (tip) {
  157. document.getElementById('tip').innerHTML = tip
  158. }
  159. </script>
  160. </body>
  161. </html>