doctor.html
3.2 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
<!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" href="css/weui.css">
<link rel="stylesheet" type="text/css" href="css/base.css" />
<link rel="stylesheet" type="text/css" href="css/style.css" />
<link rel="stylesheet" type="text/css" href="css/share.css" />
<script src="js/base.js" type="text/javascript" charset="utf-8"></script>
<script src="js/share.js"></script>
<script src="js/jquery-1.2.6.min.js"></script>
<script src="js/common.js"></script>
<title>家庭医生</title>
</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="hotitle">家庭医生</div>
<div class="right hoshare">
<a href="#" onClick="toshare()">
<img src="images/hoshare_03.png" />
</a>
</div>
<div class="banner">
<img src="images/dobanner_02.jpg" />
</div>
</div>
<!--dopart1 -->
<div class="dopart1 center doctorimg">
<img src="images/dc_02.jpg" />
</div>
<!--trfooter-->
<div id="trfooter">
<div id="trlprice" class="left">
<span class="trmoney">¥4980</span>起</div>
<div class="left listen">
<a href="#">
<img src="images/listen_03.jpg" />
</a>
</div>
<div id="trsub" class="right">
<a href="#">去预约</a>
</div>
</div>
<!--trfooter end-->
<!--share start-->
<div class="am-share">
<h3 class="am-share-title">分享到</h3>
<ul class="am-share-sns">
<li>
<a href="#">
<i class="share-icon-weibo"></i>
<span>新浪微博</span>
</a>
</li>
<li>
<a href="#">
<i class="share-icon-weibo"></i>
<span>新浪微博</span>
</a>
</li>
<li>
<a href="#">
<i class="share-icon-weibo"></i>
<span>新浪微博</span>
</a>
</li>
<li>
<a href="#">
<i class="share-icon-weibo"></i>
<span>新浪微博</span>
</a>
</li>
</ul>
<div class="am-share-footer">
<button class="share_btn">取消</button>
</div>
</div>
<!--share end-->
<script src="js/weui.js"></script>
<script>
$(function () {
let loading = weui.loading("加载中")
sendAjax('post', 'portal/Goods/getDoctor', {}, function (res) {
if (res.code == 1) {
loading.hide();
var data = res.data
console.log(data)
// 本页title
$(".hotitle").html(data.post_title)
// banner
$(".banner").find("img").attr("src",data.banner)
// 钱数
$(".trmoney").html("¥"+data.price)
} else if (res.code == 0) {
let loading = weui.loading(res.msg)
setTimeout(function () {
loading.hide();
}, 1500);
}
});
})
</script>
</body>