-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmine_detail.html
113 lines (102 loc) · 2.68 KB
/
mine_detail.html
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
<!doctype html>
<html lang="zh">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" type="text/css" href="css/mui.css"/>
<script src="js/mui.min.js"></script>
<link rel="stylesheet" type="text/css" href="css/common.css"/>
<link rel="stylesheet" type="text/css" href="css/mine/mine_detail.css"/>
<script type="text/javascript">
if(window.localStorage){
var un = localStorage.getItem("username");
var pas = localStorage.getItem("password");
var pname = localStorage.getItem("pname");
var dname = localStorage.getItem("dname");
//alert(un+pas);
}else{alert("浏览不支持localStorage")}
</script>
</head>
<script src="https://code.jquery.com/jquery-3.1.0.js"></script>
<body>
<header class="mui-bar mui-bar-nav">
<a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left" ></a>
<h1 class="mui-title">我的信息</h1>
</header>
<script src="https://code.jquery.com/jquery-3.1.0.js"></script>
<div id="1" class="mineDetail" style="margin-top: 60px;">
<div id="11" class="attri">
<h1>头像:</h1>
</div>
<div id="12" class="value img" >
<img src="images/touxiang.jpg" >
</div>
</div>
<div id="2" class="mineDetail">
<div id="21" class="attri">
<h1>姓名:</h1>
</div>
<div id="22" class="value">
<h2 id="name_p">XXX</h2>
</div>
</div>
<div id="3" class="mineDetail">
<div id="31" class="attri">
<h1>手机号:</h1>
</div>
<div id="32" class="value">
<h2 id="num_p">XXXXX</h2>
</div>
</div>
<div id="4" class="mineDetail">
<div id="41" class="attri">
<h1>性别:</h1>
</div>
<div id="42" class="value">
<h2 id="gend_p">女</h2>
</div>
</div>
<div id="5" class="mineDetail">
<div id="51" class="attri">
<h1>年龄:</h1>
</div>
<div id="52" class="value">
<h2 id="age_p">52岁</h2>
</div>
</div>
<div id="6" class="mineDetail">
<div id="61" class="attri">
<h1>并发症:</h1>
</div>
<div id="62" class="value">
<h2 >糖尿病足</h2>
</div>
</div>
</body>
<script type="text/javascript">
function openMine(){
mui.openWindow({
url : 'mine_head.html',
extras :
{}
});
}
$.ajax({
url:"http://203.195.148.111:8080/index/index/show_p_info",
withCredentials:true,
data:{un:un},
success: function(data){
var arr1 = data.split("|");
$("#name_p").html(arr1[0]);
$("#num_p").html(arr1[1]);
if(arr1[2]=="m"){
$("#gend_p").html("男");
}else if(data=="f"){
$("#gend_p").html("女");
}
}
});
</script>
</html>
<!-- 改了ajax和id -->