member.html 4.0 KB
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,minimum-scale=1,user-scalable=no">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="css/base.css" />
<link rel="stylesheet" type="text/css" href="css/style.css" />
<script src="js/base.js" type="text/javascript" charset="utf-8"></script>
<title>个人中心</title>
<style type="text/css">
	#mbkuang{
		display: flex;
		flex-wrap: wrap;
		width: 7.5rem;
		justify-content: center;
		margin: 0;
	}
	.mbpart2{
		height: auto;
	}
	.footer {
		position: absolute;
		bottom: 0;
		width: 7.5rem;
	}
	body{
		height: auto;
		position: relative;
		padding-bottom: 1.1rem;
	}
</style>
</head>

<body>
<div class="mbheader center">
	<div class="right mbmes">
    	<a href="#"><img src="images/mbrig_03.png"/></a>
    </div>
    <div class="mblogo">
    	<p id="mbvip"><img src="images/mbvip_03.png"/></p>
    	<p><a href="peridata.html"><img src="images/mblogo_03.png" id="avatar"/></a></p>
        <p id="person_name"></p>
    </div>
</div>

<div class="mbpart1">
	<div class="mbw">
    	<a href="accout.html">
    	<p class="mbmoney">0.00元</p>
        <p>账户余额</p>
        </a>
    </div>
    <div class="mbw">
    	<a href="consumption.html">
    	<p class="mbmoney">0张</p>
        <p>消费金额</p>
        </a>
    </div>
</div>

<div class="mbpart2">
    	<ul id="mbkuang">
        	<li>
            	<a href="order.html">
            	<p><img src="images/mbli_03.jpg"/></p>
                <P>我的订单</P>
                </a>
            </li>
            <li>
            	<a href="health.html">
            	<p><img src="images/mbli_05.jpg"/></p>
                <P>健康档案</P>
                </a>
            </li>
            <li>
            	<a href="vipequity.html">
            	<p><img src="images/mbli_07.jpg"/></p>
                <P>我的权益</P>
                </a>
            </li>
            <li style="border-bottom:none;">
            	<a href="phone_question.html">
            	<p><img src="images/mbli_18.jpg"/></p>
                <P>常见问题</P>
                </a>
            </li>
            <li style="border-bottom:none;">
            	<a href="#">
            	<p><img src="images/mbli_16.jpg"/></p>
                <P>邀请好友</P>
                <p style="color:#c8c8c8;font-size: 0.16rem;">领取高额消费金额</p>
                </a>
            </li>
            <li style="border-bottom:none;">
            	<a href="set.html">
            	<p><img src="images/mbli_13.jpg"/></p>
                <P>设置</P>
                </a>
            </li>
        </ul>
</div>


<!--footer-->
<div class="footer center">
<ul style="font-size:0rem;">
	<li><a href="#"><img src="images/footer_03.jpg"/></a></li>
    <li><a href="#"><img src="images/footer_05.jpg"/></a></li>
    <li><a href="#"><img src="images/my.png"/></a></li>
</ul>
</div>
<!--footer end-->
	
</div>
<script type="text/javascript" src="js/common.js"/>
<script src="http://res.wx.qq.com/open/js/jweixin-1.2.0.js"></script>
<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript">
    $(document).ready(function () {
        $.ajax({
            type:"POST",
            url: baseUrl+"user/index/getUserinfo",
            dataType:"json",
            data:{
                DeviceType:"1",
                token:"1",
                rid:"0"
            },
            success:function (res) {
                var data = res.data
                $('#person_name').html('')
                $('#person_name').html(`${data.name}`)
                if (data.avatar == ''||data.avatar == undefined||data.avatar == null){
                    $('#avatar').attr('src','images/mblogo_03.png')
                } else{
                    $('#avatar').attr('src',data.avatar)
                }
            }
        })
    })
</script>
</body>
</html>