my_fri.html
6.6 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
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
<script src="../../assets/js/fontsize.js"></script>
<link rel="stylesheet" href="../../assets/css/api.css"/>
<link rel="stylesheet" href="../../assets/css/swiper-3.4.2.min.css">
<link rel="stylesheet" href="../../assets/icon/iconfont.css">
<style>
body, html {
background-color: #efefef;
height: 100%;
}
.fir_body {
background: url("../../assets/image/fri_bgc.jpg") no-repeat;
background-size: cover;
height: 100%;
width: 100%;
position: fixed;
left: 0;
top: 0;
font-size: 20px;
}
.swiper-container {
margin-top: 1rem;
}
.swiper-slide {
-webkit-transition: transform 1.0s;
-moz-transition: transform 1.0s;
-ms-transition: transform 1.0s;
-o-transition: transform 1.0s;
-webkit-transform: scale(0.7);
transform: scale(0.7);
width: 100%;
}
.swiper-slide-active, .swiper-slide-duplicate-active {
-webkit-transform: scale(1);
transform: scale(1);
}
.swiper_item_fir {
width: 66%;
margin: 0 auto;
overflow: hidden;
border-radius: 0.16rem;
}
.swiper_item_fir_num {
padding: 0.53rem 0.7rem;
font-size: 20px;
color: #424242;
}
.swiper_item_fir_num span {
font-weight: bold;
font-size: 26px;
}
.swiper_item_fir_name {
margin: 1.5rem 0 0 0;
padding: 0 0.4rem 0 0;
text-align: right;
font-size: 18px;
color: #424242;
}
.swiper_item_fir_time {
padding: 0.25rem 0.42rem 0.25rem 0;
text-align: right;
font-size: 18px;
color: #424242;
}
.swiper_item_fir_report_box {
background-color: #fff;
padding: 0.65rem 0;
text-align: center;
}
.swiper_item_fir_report {
padding: 0.2rem 0;
font-size: 18px;
color: #424242;
}
.swiper_item_fir_report .iconfont {
font-size: 18px;
}
.look_move {
text-align: center;
margin: 1.5rem 0 0 0;
color: #424242;
font-size: 20px;
}
</style>
</head>
<body>
<div id="loadStart"></div>
<div id="app" v-cloak>
<!--<div v-if="familyRecord_data.length==0" class="nodata">暂无亲友信息哦</div>-->
<div class="fir_body">
<div class="swiper-container">
<div class="swiper-wrapper">
<div class="swiper-slide" v-for="(item,index) in familyRecord_data"
@click="openFri(item.rid)">
<div class="swiper_item_fir" style="background-image: url('../../assets/image/two.png')">
<div class="swiper_item_fir_num"><span>{{index+1}}</span>/{{familyRecord_data.length}}</div>
<div class="swiper_item_fir_name">{{item.name}}的健康档案</div>
<div class="swiper_item_fir_time">最后更新时间:{{item.time}}</div>
<div class="swiper_item_fir_report_box">
<div class="swiper_item_fir_report"><span class="iconfont icon-baogao1"></span>服务报告({{item.checkout}}份)
</div>
<div class="swiper_item_fir_report"><span class="iconfont icon-wenjian"></span>检验报告({{item.service}}份)
</div>
</div>
</div>
</div>
</div>
</div>
<div class="look_move"><< 左右滑动浏览 >></div>
</div>
<!--<div v-else class="nodata">暂无亲友信息哦</div>-->
</div>
</body>
</html>
<script type="text/javascript" src="../../assets/js/api.js"></script>
<script type="text/javascript" src="../../assets/js/public.js"></script>
<script type="text/javascript" src="../../assets/js/fastclick.js"></script>
<script>
new FastClick(document.body);
</script>
<script type="text/javascript" src="../../assets/js/vue.min.js"></script>
<script type="text/javascript" src="../../assets/js/swiper-3.4.2.min.js"></script>
<script type="text/javascript" src="../../assets/js/axios.min.js"></script>
<script type="text/javascript" src="../../assets/icon/iconfont.js"></script>
<script>
var app = new Vue({
el: '#app',
data: {
fir_swiper: {},
familyRecord_data: []
},
created: function () {
this.familyRecord();
},
methods: {
// 获取亲友信息档案
familyRecord: function () {
var header = {
"XX-Device-Type": getDevice(),
'XX-Token': getToken(),
};
getRequest('post', 'user/index/familyRecord', null, header).then(function (res) {
// alert(JSON.stringify(res));
if (res.data.code == 1) {
app.familyRecord_data = res.data.data.info;
} else {
toastMsg(res.data.msg)
}
loadEnd();
})
},
// 跳转详情页面
openFri: function (rid) {
openWin({
name: 'my_health',
url: './my_health.html',
pageParam: {
rid: rid,
type:0
}
});
}
},
mounted(){
var mySwiper = new Swiper('.swiper-container', {
speed: 1000,
observer: true,
observeParents: true,
effect: 'coverflow',
slidesPerView: 1,
coverflow: {
rotate: 0,
depth: 60,
modifier: 2,
stretch: 20,
slideShadows: false
},
pagination: {
el: '.swiper-pagination',
clickable: true
}
});
}
})
</script>