暂无描述

inviteApp.html 3.8KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
  6. <meta name="viewport" content="width=device-width,initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no"/>
  7. <meta http-equiv="X-UA-Compatible" content="ie=edge">
  8. <title>邀请好友</title>
  9. <link rel="stylesheet" href="./common/reset.css?v=1">
  10. <script src="./common/jquery-2.1.0.js"></script>
  11. <style>
  12. * {box-sizing: border-box;margin: 0;padding: 0;border: none;text-align: center;font-family: "PingFang SC,Microsoft YaHei,SourceHanSansCN-Normal,HiraginoSansGB,HiraginoSans-W3,Helvetica Neue,Helvetica,STHeiTi,sans-serif";}
  13. span,p,div {font-size: .12rem;}
  14. html,body {
  15. width: 100%;
  16. }
  17. .back {
  18. width: 100%;position: absolute;top: 0;left: 0;
  19. }
  20. .button {
  21. width: 2.75rem;height: .54rem;position: absolute;top: 4.49rem;left: 50%;transform: translate(-50%,0);font-size: .12rem;
  22. }
  23. .record{
  24. background: url(./img/bgRecord.png) no-repeat;background-size:100%;width: 3.43rem;height: 2.5rem;
  25. position: absolute;top: 9.7rem;left: 0;right: 0;margin: auto;
  26. }
  27. .record .myReward{
  28. font-size: 0.15rem;line-height: 0.21rem;color: #333333;text-align: center;margin-top:0.59rem;
  29. }
  30. .record .myReward span{
  31. color: #FD5E02;font-size: 0.15rem;line-height: 0.21rem;
  32. }
  33. .record ul{
  34. width: 3.17rem;height: 1.06rem;border-radius: 0.53rem;background: #FFCCA9;margin: 0.28rem auto 0;
  35. display: flex;align-items: center;justify-content: space-around;
  36. }
  37. .record ul li {
  38. text-align: center;
  39. }
  40. .record ul li div{
  41. color: #333333;font-size: 0.15rem;line-height: 0.21rem;margin-bottom: 0.06rem;
  42. display: flex;align-items: center;justify-content: center;
  43. }
  44. .record ul li em{
  45. color: #FD5E02;font-size: 0.24rem;line-height: 0.33rem;
  46. }
  47. .record ul li span{
  48. color: #666666;font-size: 0.13rem;line-height: 0.18rem;
  49. }
  50. </style>
  51. <script>
  52. var viewport = document.querySelector("meta[name=viewport]")
  53. if (window.devicePixelRatio == 1) {
  54. viewport.setAttribute('content', 'width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no')
  55. }
  56. if (window.devicePixelRatio == 2) {
  57. viewport.setAttribute('content', 'width=device-width, initial-scale=0.5, maximum-scale=0.5, minimum-scale=0.5, user-scalable=no')
  58. }
  59. if (window.devicePixelRatio == 3) {
  60. viewport.setAttribute('content', 'width=device-width, initial-scale=0.333333333, maximum-scale=0.333333333, minimum-scale=0.333333333, user-scalable=no')
  61. }
  62. document.documentElement.style.fontSize=document.documentElement.clientWidth/375*100+"px";
  63. window.onresize=function(){
  64. document.documentElement.style.fontSize=document.documentElement.clientWidth/375*100+"px";
  65. }
  66. </script>
  67. </head>
  68. <body>
  69. <img class="back" src="./img/appBack.png" alt="">
  70. <img class="button" src="./img/invite.png" alt="">
  71. <div class="record">
  72. <div class="myReward">我的历史奖励:<span>*江湖币</span></div>
  73. <ul>
  74. <li>
  75. <div><em id="inviteNum">*</em>人</div>
  76. <span>邀请人数</span>
  77. </li>
  78. <li>
  79. <div><em id="authNum">*</em>人</div>
  80. <span>认证人数</span>
  81. </li>
  82. <li>
  83. <div><em id="inviteGold">*</em>币</div>
  84. <span>邀请奖励</span>
  85. </li>
  86. </ul>
  87. </div>
  88. </body>
  89. </html>
  90. <script src="./js/inviteApp.js?v=1"></script>