care.html
6.8 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
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
<!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" />
<link rel="stylesheet" href="css/weui.css">
<script src="js/base.js" type="text/javascript" charset="utf-8"></script>
<script src="js/common.js"></script>
<title>专业护理</title>
</head>
<style type="text/css">
.cali1 ul li {
width: 31%;
overflow: hidden;
}
.item_list {
display: flex;
flex-wrap: wrap;
}
.style_list img {
width: 0.87rem;
margin-left: 0.1rem;
margin-right: 0.1rem;
}
.style_list {
display: flex;
flex-wrap: wrap;
width: 100%;
padding: 0.1rem 0;
}
.style_item {
height: 1.5rem;
display: flex;
align-items: center;
width: 3.68rem;
box-sizing: border-box;
padding: 0.24rem 0;
border-bottom: 1px solid #EBEBEB;
padding-left: 0.16rem;
}
.style_item:nth-child(odd) {
border-right: 1px solid #EBEBEB;
}
.catitle {
line-height: 0.3rem;
margin-bottom: 0.08rem;
}
.cadesc {
width: 2.3rem;
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
}
.cali ul li {
margin-left: 0.49rem
}
.cali ul li:nth-child(4n) {
margin-left: 0;
}
.cali ul li:first-child {
margin-left: 0;
}
</style>
<body>
<div class="header center">
<div class="left back">
<a href="#" onClick="javascript:history.back(-1);">
<img src="images/care_03.jpg" />
</a>
</div>
<div class="headertext">专业护理</div>
<div class="banner">
<img src="images/care_06.jpg" />
</div>
</div>
<!--capart1-->
<div class="capart1">
<div class="box">
<P class="parttitle">
<span class="c1">专业</span>
<span class="c2">护理</span>
<span class="c3">| 优质上门护理服务推荐</span>
</P>
<div class="camg cali1">
<ul class="center">
<!-- <li>
<a href="home.html">
<img src="images/camg_03.jpg" />
</a>
</li> -->
<!-- <li>
<a href="home.html">
<p class="tx">居家照护</p>
<p>
<span class="camo">270</span>元起</p>
<img src="images/camg_03.jpg" />
</a>
</li> -->
<!-- <li>
<a href="#">
<p class="tx">住院照护</p>
<p>
<span class="camo">300</span>元起</p>
<img src="images/camg_05.jpg" />
</a>
</li>
<li>
<a href="#">
<p class="tx">陪诊</p>
<p>
<span class="camo">210</span>元起</p>
<img src="images/camg_07.jpg" />
</a>
</li> -->
</ul>
</div>
</div>
</div>
<!--capart2-->
<div class="capart2">
<div class="style_list">
<div class="style_item">
<img src="images/cali_03.jpg" class="left" />
<div class="left">
<P class="catitle">上门打针</P>
<P class="cadesc">提供皮下及肌肉注射</P>
</div>
</div>
<!-- <div class="style_item">
<img src="images/cali_09.jpg" class="left" />
<div class="left">
<P class="catitle">上门打针</P>
<P class="cadesc">提供皮下及肌肉注射</P>
</div>
</div>
<div class="style_item">
<img src="images/cali_05.jpg" class="left" />
<div class="left">
<P class="catitle">上门打针</P>
<P class="cadesc">提供皮下及肌肉注射</P>
</div>
</div>
<div class="style_item">
<img src="images/cali_03.jpg" class="left" />
<div class="left">
<P class="catitle">上门打针</P>
<P class="cadesc">提供皮下及肌肉注射</P>
</div>
</div>
<div class="style_item">
<img src="images/cali_09.jpg" class="left" />
<div class="left">
<P class="catitle">上门打针</P>
<P class="cadesc">提供皮下及肌肉注射</P>
</div>
</div>
<div class="style_item">
<img src="images/cali_05.jpg" class="left" />
<div class="left">
<P class="catitle">上门打针</P>
<P class="cadesc">提供皮下及肌肉注射</P>
</div>
</div> -->
</div>
</div>
<!--capart3-->
<div class="capart3">
<div class="box">
<P class="parttitle" style="display: flex;align-items: baseline;">
<span class="c1">相关</span>
<span class="c2">服务</span>
<span class="c3">| 更多优质服务推介</span>
</P>
<div class="camg cali relatedService">
<ul class="center" style="display: flex;justify-content: flex-start;flex-wrap: wrap;">
<li>
<a href="#">
<img src="images/caserver_03.jpg" />
<p class="tx">老年痴呆护理</p>
<p>
<span class="camo">596</span>元</p>
</a>
</li>
<li>
<a href="#">
<img src="images/caserver_05.jpg" />
<p class="tx">癌症护理</p>
<p>
<span class="camo">596</span>元</p>
</a>
</li>
<li>
<a href="#">
<img src="images/caserver_07.jpg" />
<p class="tx">帕金森护理</p>
<p>
<span class="camo">596</span>元</p>
</a>
</li>
<li>
<a href="#">
<img src="images/caserver_07.jpg" />
<p class="tx">帕金森护理</p>
<p>
<span class="camo">596</span>元</p>
</a>
</li>
</ul>
</div>
</div>
</div>
<script src="js/jquery-3.3.1.min.js"></script>
<script src="js/weui.js"></script>
<script>
$(function () {
let loading = weui.loading("加载中")
sendAjax('post', 'portal/Goods/getCatInfo', {
cid: 1
}, function (res) {
if (res.code == 1) {
loading.hide();
var data = res.data
console.log(data)
$(".headertext").html(data.name)
$(".banner").find("img").attr("src",data.img)
// 专业护理
let html = '';
for(let n in data.introduce){
html += `<li><a href="home.html"><img src="${data.introduce[n].img}" /></a></li>`
}
$(".cali1 .center").html(html)
// 相关服务
let htmlTwo = "";
for (let n in data.related_service) {
htmlTwo += `<li><a href="home.html"><img src="${data.related_service[n].img}" /></a></li>`
}
$(".relatedService .center").html(htmlTwo)
// 上门打针列表 专业护理下
let htmlThree = "";
for (let n in data.goods) {
htmlThree += `<div class="style_item"><img src="${data.goods[0].icon}" class="left" /><div class="left"><P class="catitle">"${data.goods[0].post_title}"</P><P class="cadesc">"${data.goods[0].other_title}"</P></div></div>`
}
$(".capart2 .style_list").html(htmlThree)
} else if (res.code == 0) {
let loading = weui.loading(res.msg)
setTimeout(function () {
loading.hide();
}, 1500);
}
});
})
</script>
</body>