正在显示
1 个修改的文件
包含
155 行增加
和
0 行删除
qinyou.html
0 → 100644
1 | +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | ||
2 | +<html xmlns="http://www.w3.org/1999/xhtml"> | ||
3 | + | ||
4 | +<head> | ||
5 | + <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,minimum-scale=1,user-scalable=no"> | ||
6 | + <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | ||
7 | + <link rel="stylesheet" type="text/css" href="css/base.css" /> | ||
8 | + <link rel="stylesheet" type="text/css" href="css/style.css" /> | ||
9 | + <link rel="stylesheet" href="css/swiper.min.css"> | ||
10 | + <script type="text/javascript" src="js/base.js"/> | ||
11 | + <script src="js/base.js" type="text/javascript" charset="utf-8"></script> | ||
12 | + <title>健康档案</title> | ||
13 | + <style> | ||
14 | + .agheader { | ||
15 | + background: rgba(255, 255, 255, .8); | ||
16 | + } | ||
17 | + | ||
18 | + .body { | ||
19 | + background: none; | ||
20 | + position: fixed; | ||
21 | + top: 0; | ||
22 | + width: 100%; | ||
23 | + height: 100%; | ||
24 | + background-image: url(images/health2_02.jpg); | ||
25 | + background-size: 100% 100%; | ||
26 | + } | ||
27 | + | ||
28 | + .he2part{ | ||
29 | + background-image: none; | ||
30 | + height:100%; | ||
31 | + } | ||
32 | + .he2part .swiper-container{ | ||
33 | + margin-top: 2rem; | ||
34 | + } | ||
35 | + .he2kuang,.he3kuang,.he4kuang{ | ||
36 | + /* width:4.77rem; */ | ||
37 | + height:6.04rem; | ||
38 | + background-size: 100% 100%; | ||
39 | + margin-top: 0; | ||
40 | + } | ||
41 | + .dangtit{ | ||
42 | + margin-top: 1.5rem; | ||
43 | + } | ||
44 | + .dangdesc{ | ||
45 | + margin-bottom: 1.2rem; | ||
46 | + } | ||
47 | + .dangreport{ | ||
48 | + margin-bottom: 0.3rem; | ||
49 | + } | ||
50 | + .swiper-slide { | ||
51 | + width: 3.5rem !important; | ||
52 | + border-radius: 10px; | ||
53 | + margin-right: 1rem; | ||
54 | + } | ||
55 | + | ||
56 | + | ||
57 | + </style> | ||
58 | +</head> | ||
59 | + | ||
60 | +<body> | ||
61 | + <div class="body"> | ||
62 | + <div class="agheader center"> | ||
63 | + <div class="left seback"> | ||
64 | + <a href="#" onClick="javascript:history.back(-1);"> | ||
65 | + <img src="images/care_03.jpg" /> | ||
66 | + </a> | ||
67 | + </div> | ||
68 | + <div class="headertext">健康档案</div> | ||
69 | + </div> | ||
70 | + | ||
71 | + | ||
72 | + | ||
73 | + <div class="he2part center"> | ||
74 | + <div class="swiper-container"> | ||
75 | + <div class="swiper-wrapper" id="familyRecord"> | ||
76 | + | ||
77 | + | ||
78 | + </div> | ||
79 | + </div> | ||
80 | + | ||
81 | + <div style="color:#424242;margin-top:1.5rem;"> | ||
82 | + << 左右滑动浏览>></div> | ||
83 | + | ||
84 | + </div> | ||
85 | + | ||
86 | + </div> | ||
87 | + | ||
88 | +</body> | ||
89 | +<!-- Swiper JS --> | ||
90 | +<script src="js/swiper.min.js"></script> | ||
91 | +<script type="text/javascript" src="js/common.js"/> | ||
92 | +<script src="http://res.wx.qq.com/open/js/jweixin-1.2.0.js"></script> | ||
93 | +<script type="text/javascript" src="js/jquery.min.js"></script> | ||
94 | +<!-- Initialize Swiper --> | ||
95 | +<script> | ||
96 | + window.onload = function () { | ||
97 | + var swiper = new Swiper('.swiper-container', { | ||
98 | + slidesPerView: 3, | ||
99 | + spaceBetween: 30, | ||
100 | + centeredSlides: true, | ||
101 | + pagination: { | ||
102 | + el: '.swiper-pagination', | ||
103 | + clickable: true, | ||
104 | + }, | ||
105 | + }); | ||
106 | + | ||
107 | + familyRecord() | ||
108 | + } | ||
109 | + function familyRecord() { | ||
110 | + $.ajax({ | ||
111 | + type:"POST", | ||
112 | + url: baseUrl+"user/index/familyRecord", | ||
113 | + dataType:"json", | ||
114 | + headers:{ | ||
115 | + "XX-Device-Type":"1", | ||
116 | + "XX-Token":"1", | ||
117 | + }, | ||
118 | + success:function (res) { | ||
119 | + $('#familyRecord').html(``) | ||
120 | + var data = res.data; | ||
121 | + var info = data.info | ||
122 | + console.log(info[0].time) | ||
123 | + for ( key in info) { | ||
124 | + var img = key%3 == '0'?'images/hebg2_03.png':key%3 == '1'?'images/he2_03.png':key%3 == '2'?'images/hebg2_04.png':"" | ||
125 | + console.log(img) | ||
126 | + $('#familyRecord').append(`<div class="swiper-slide" id="" data-id = ${parseInt(key)+1}> | ||
127 | + <div class="he2kuang" style="background-image:url(${img})"> | ||
128 | + <div class="dangall"> | ||
129 | + <span>${parseInt(key)+1}</span>/${info.length}</div> | ||
130 | + <div class="dangtit">${info[key].name}的健康档案</div> | ||
131 | + <div class="dangdesc">最后更新时间:${info[key].time}</div> | ||
132 | + <div class="dangreport"> | ||
133 | + <a href="#"> | ||
134 | + <img src="images/he2a_03.jpg" />服务报告(${info[key].service}份)</a> | ||
135 | + </div> | ||
136 | + <div class="dangreport"> | ||
137 | + <a href="#"> | ||
138 | + <img src="images/he2a_06.jpg" />检验报告(${info[key].checkout}份)</a> | ||
139 | + </div> | ||
140 | + </div> | ||
141 | + </div>`) | ||
142 | + } | ||
143 | + // if ($('#swiper_item').attr('data-id')==1){ | ||
144 | + // $('#swiper_item').css('background-image',"url(../images/hebg2_03.png)") | ||
145 | + // } else if ($('#swiper_item').attr('data-id')==2){ | ||
146 | + // $('#swiper_item').css('background-image',"url(../images/he2_03.png)") | ||
147 | + // }else if ($('#swiper_item').attr('data-id')==3){ | ||
148 | + // $(this).css('background-image',"url(../images/hebg2_04.png)") | ||
149 | + // } | ||
150 | + } | ||
151 | + }) | ||
152 | + } | ||
153 | +</script> | ||
154 | + | ||
155 | +</html> |
-
请 注册 或 登录 后发表评论