member.html
4.0 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
<!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>