rehab.html
6.1 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
<!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/common.js"></script>
<script src="js/base.js"></script>
<title>慢病康护</title>
<style>
.remg li {
overflow: hidden;
list-style: none;
}
</style>
</head>
<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/rehab_02.jpg" />
</div>
</div>
<div class="capart1">
<div class="minbox">
<P class="parttitle">
<span class="c1">康复</span>
<span class="c2">服务</span>
<span class="c3">| 把握黄金康复期,提高健康质量</span>
</P>
<div class="remg">
<ul>
<li>
<a href="#">
<img src="images/rehabli_03.jpg" class="left mari" />
</a>
<div class="corigt left">
<a href="#">
<span>心脑血管疾病康护</span>
<p>偏瘫、失语、长期卧床等脑血管疾病引发的肢...
</p>
</a>
<p class="minute">
<span>
<img src="images/rebmin_03.png">专业方法</span>
<span>
<img src="images/rebmin_05.png">医学康复</span>
</p>
<p class="price">¥8686</p>
</div>
</li>
</ul>
</div>
</div>
</div>
<div class="capart2">
<div class="box">
<P class="parttitle">
<span class="c1">相关</span>
<span class="c2">服务</span>
<span class="c3">| 更多优质服务推介</span>
</P>
<div class="camg cali">
<ul class="center">
<li>
<a href="#">
<img src="images/reha2_08.png" />
<p class="tx">老年痴呆护理</p>
<p>
<span class="camo">596</span>元</p>
</a>
</li>
<li>
<a href="#">
<img src="images/reha2_03.png" />
<p class="tx">癌症护理</p>
<p>
<span class="camo">596</span>元</p>
</a>
</li>
<li>
<a href="#">
<img src="images/reha2_05.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/getCatInfo2', {
cid: 2
}, function (res) {
if (res.code == 1) {
loading.hide();
var data = res.data
console.log(data)
// 本页title
$(".headertext").html(data.name)
// banner
$(".banner").find("img").attr("src", data.img)
// 康复服务列表
var html = ""
var htmls = ""
for (var n in data.goods) {
for(var j in data.goods[n].tag){
htmls += `<span>
<img src="${data.goods[n].tag[j].url}">${data.goods[n].tag[j].text}</span>`
}
html += `<li data-good_id="${data.goods[n].good_id}">
<a href="#" >
<img src="images/rehabli_03.jpg" class="left mari" />
</a>
<div class="corigt left">
<a href="#">
<span>${data.goods[n].other_title}</span>
<p>
${data.goods[n].post_title}
</p>
</a>
<p class="minute">
${htmls}
</p>
<p class="price">¥${data.goods[n].real_price}</p>
</div>
</li>`
htmls = ""
}
console.log(htmls)
$(".remg").html(html)
} else if (res.code == 0) {
let loading = weui.loading(res.msg)
setTimeout(function () {
loading.hide();
}, 1500);
}
});
})
</script>
</body>