vip-info.html 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>会员信息</title>
  6. <meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1, user-scalable=no">
  7. <meta name="apple-mobile-web-app-capable" content="yes">
  8. <meta name="apple-mobile-web-app-status-bar-style" content="black">
  9. <link rel="stylesheet" type="text/css" href="css/mui.min.css" />
  10. <link rel="stylesheet" type="text/css" href="css/iconfont.css" />
  11. <link rel="stylesheet" type="text/css" href="css/main.css" />
  12. <style>
  13. .v-top {
  14. background: #9fa0a0;
  15. height: 80px;
  16. }
  17. .v-middle {
  18. position: absolute;
  19. background: transparent;
  20. top: 28px;
  21. left: 0;
  22. width: 100%;
  23. }
  24. .v-content {
  25. position: absolute;
  26. left: 15px;
  27. right: 15px;
  28. top: 30px;
  29. background: #fff;
  30. padding-top: 90px;
  31. border-radius: 8px;
  32. overflow: hidden;
  33. box-shadow:rgba(0,0,0,.2) 0px 0px 6px;
  34. }
  35. .v-content .mui-table-view-cell:after{left: 15px;right: 15px;background-color: #e5e5e5;}
  36. .v-content .mui-table-view-cell:last-child:after{display: none;}
  37. .v-content .mui-table-view-cell>a:not(.mui-btn).mui-active{background: #fff;}
  38. .v-image{width: 56px;display: block;position: absolute;left: 50%;top: 0;margin-left: -28px;border-radius: 56px;}
  39. .v-title{position: absolute;left: 0;top: 72px;text-align: center;font-size: 16px;color: #333;right: 0;}
  40. .v-content .mui-table-view:after,.v-content .mui-table-view:before{display: none;}
  41. .v-content .mui-badge{background: transparent;color: #999;}
  42. </style>
  43. <script type="text/javascript" src="//res.wx.qq.com/open/js/jweixin-1.1.0.js"></script>
  44. <script>
  45. //屏蔽分享
  46. document.addEventListener('WeixinJSBridgeReady', function onBridgeReady() {
  47. WeixinJSBridge.call('hideOptionMenu');
  48. });
  49. </script>
  50. </head>
  51. <body style="background: #fff;">
  52. <div class="loading-bg">
  53. <div class="mui-loading">
  54. <div class="mui-spinner">
  55. </div>
  56. &nbsp;&nbsp;加载中...
  57. </div>
  58. </div>
  59. <div class="mui-content">
  60. <div class="v-top">
  61. <div class="v-middle">
  62. <div class="v-content">
  63. <ul class="mui-table-view">
  64. <li class="mui-table-view-cell">
  65. <a class="mui-navigate-right">
  66. <span class="mui-badge likeName-head"></span>姓名
  67. </a>
  68. </li>
  69. <li class="mui-table-view-cell">
  70. <a class="mui-navigate-right">
  71. <span class="mui-badge birthdate-head"></span>生日
  72. </a>
  73. </li>
  74. <li class="mui-table-view-cell">
  75. <a class="mui-navigate-right">
  76. <span class="mui-badge sex-head"></span>性别
  77. </a>
  78. </li>
  79. <li class="mui-table-view-cell">
  80. <a class="mui-navigate-right go-edit-phone">
  81. <span class="mui-badge tel-head"></span>手机号
  82. </a>
  83. </li>
  84. </ul>
  85. </div>
  86. <img class="v-image img_head" src="images/tx-1.jpg" />
  87. <div class="v-title name_head"></div>
  88. </div>
  89. </div>
  90. </div>
  91. <script type="text/javascript" src="js/mui.min.js"></script>
  92. <script type="text/javascript" src="js/jquery-2.1.1.min.js"></script>
  93. <script type="text/javascript" src="js/main.js"></script>
  94. <script type="text/javascript">
  95. mui.ready(function() {
  96. console.log("页面加载完毕")
  97. document.querySelector('.loading-bg').style.display = 'none';
  98. $.ajax(base_path + '/wechat/agent/member?dates=' + new Date().getTime(), {
  99. dataType: 'json',
  100. type: 'post',
  101. timeout: 15000,
  102. xhrFields: {
  103. withCredentials: true
  104. },
  105. crossDomain: true,
  106. success: function(dt) {
  107. if(dt.isRedirect) {
  108. location.href = dt.redirectURL;
  109. } else {
  110. var data = dt.data;
  111. if(dt.status) {
  112. $('.img_head').attr('src',data.userHead);
  113. if(data.userNickname != null && typeof(data.userNickname) != "undefined" && data.userNickname != '') {
  114. $(".name_head").html(decodeURI(data.userNickname))
  115. }
  116. $('.likeName-head').text(data.userName);
  117. $('.birthdate-head').text(data.userBirthDate);
  118. $('.tel-head').text(data.userTel);
  119. if(data.userSex == 1){
  120. $('.sex-head').text('男');
  121. }else{
  122. $('.sex-head').text('女');
  123. }
  124. } else {
  125. }
  126. }
  127. },
  128. error: function(xhr, type, errorThrown) {
  129. console.log(xhr)
  130. }
  131. });
  132. });
  133. $(document).on('tap', '.go-edit-phone', function() {
  134. location.href='edit-phone.html'
  135. });
  136. </script>
  137. </body>
  138. </html>