123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146 |
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="UTF-8">
- <title>会员信息</title>
- <meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1, user-scalable=no">
- <meta name="apple-mobile-web-app-capable" content="yes">
- <meta name="apple-mobile-web-app-status-bar-style" content="black">
- <link rel="stylesheet" type="text/css" href="css/mui.min.css" />
- <link rel="stylesheet" type="text/css" href="css/iconfont.css" />
- <link rel="stylesheet" type="text/css" href="css/main.css" />
- <style>
- .v-top {
- background: #9fa0a0;
- height: 80px;
- }
-
- .v-middle {
- position: absolute;
- background: transparent;
- top: 28px;
- left: 0;
- width: 100%;
- }
-
- .v-content {
- position: absolute;
- left: 15px;
- right: 15px;
- top: 30px;
- background: #fff;
- padding-top: 90px;
- border-radius: 8px;
- overflow: hidden;
- box-shadow:rgba(0,0,0,.2) 0px 0px 6px;
- }
- .v-content .mui-table-view-cell:after{left: 15px;right: 15px;background-color: #e5e5e5;}
- .v-content .mui-table-view-cell:last-child:after{display: none;}
- .v-content .mui-table-view-cell>a:not(.mui-btn).mui-active{background: #fff;}
- .v-image{width: 56px;display: block;position: absolute;left: 50%;top: 0;margin-left: -28px;border-radius: 56px;}
- .v-title{position: absolute;left: 0;top: 72px;text-align: center;font-size: 16px;color: #333;right: 0;}
- .v-content .mui-table-view:after,.v-content .mui-table-view:before{display: none;}
- .v-content .mui-badge{background: transparent;color: #999;}
- </style>
- <script type="text/javascript" src="//res.wx.qq.com/open/js/jweixin-1.1.0.js"></script>
- <script>
- //屏蔽分享
- document.addEventListener('WeixinJSBridgeReady', function onBridgeReady() {
- WeixinJSBridge.call('hideOptionMenu');
- });
- </script>
- </head>
- <body style="background: #fff;">
- <div class="loading-bg">
- <div class="mui-loading">
- <div class="mui-spinner">
- </div>
- 加载中...
- </div>
- </div>
- <div class="mui-content">
- <div class="v-top">
- <div class="v-middle">
- <div class="v-content">
- <ul class="mui-table-view">
- <li class="mui-table-view-cell">
- <a class="mui-navigate-right">
- <span class="mui-badge likeName-head"></span>姓名
- </a>
- </li>
- <li class="mui-table-view-cell">
- <a class="mui-navigate-right">
- <span class="mui-badge birthdate-head"></span>生日
- </a>
- </li>
- <li class="mui-table-view-cell">
- <a class="mui-navigate-right">
- <span class="mui-badge sex-head"></span>性别
- </a>
- </li>
- <li class="mui-table-view-cell">
- <a class="mui-navigate-right go-edit-phone">
- <span class="mui-badge tel-head"></span>手机号
- </a>
- </li>
- </ul>
- </div>
- <img class="v-image img_head" src="images/tx-1.jpg" />
- <div class="v-title name_head"></div>
- </div>
- </div>
- </div>
- <script type="text/javascript" src="js/mui.min.js"></script>
- <script type="text/javascript" src="js/jquery-2.1.1.min.js"></script>
- <script type="text/javascript" src="js/main.js"></script>
- <script type="text/javascript">
- mui.ready(function() {
- console.log("页面加载完毕")
- document.querySelector('.loading-bg').style.display = 'none';
-
- $.ajax(base_path + '/wechat/agent/member?dates=' + new Date().getTime(), {
- dataType: 'json',
- type: 'post',
- timeout: 15000,
- xhrFields: {
- withCredentials: true
- },
- crossDomain: true,
- success: function(dt) {
- if(dt.isRedirect) {
- location.href = dt.redirectURL;
- } else {
- var data = dt.data;
- if(dt.status) {
- $('.img_head').attr('src',data.userHead);
- if(data.userNickname != null && typeof(data.userNickname) != "undefined" && data.userNickname != '') {
- $(".name_head").html(decodeURI(data.userNickname))
- }
- $('.likeName-head').text(data.userName);
- $('.birthdate-head').text(data.userBirthDate);
- $('.tel-head').text(data.userTel);
- if(data.userSex == 1){
- $('.sex-head').text('男');
- }else{
- $('.sex-head').text('女');
- }
- } else {
-
- }
- }
- },
- error: function(xhr, type, errorThrown) {
- console.log(xhr)
- }
- });
-
- });
- $(document).on('tap', '.go-edit-phone', function() {
- location.href='edit-phone.html'
- });
- </script>
- </body>
- </html>
|