作者 李铮

增加接口逻辑-李铮

... ... @@ -194,7 +194,7 @@
padding:0.2rem 0rem 0.25rem 0rem;
border-right: 0.03rem solid #f7f7f7;
border-bottom:0.03rem solid #f7f7f7;
width: 2.1rem;
width: 32.7%;
}
.mbpart2 ul li p{
text-align:center;
... ... @@ -205,6 +205,9 @@
}
#mbkuang li:nth-child(3n){
border-right:none;
display: flex;
justify-content: center;
align-items: center;
}
#mbkuang li a{
color:#000;
... ...
<!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" 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>
<title>家庭医生</title>
<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="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-->
<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>
\ No newline at end of file
... ...
... ... @@ -203,7 +203,7 @@
<div style="display:inline-block;">
<ul>
<li>
<a href="home.html.html">
<a href="home.html">
<div class="left text3">
<p class="title3">居家照护</p>
<p class="context3">提供生活照护病症护理</p>
... ... @@ -264,7 +264,7 @@
<img class="left" src="images/part4_li_07.jpg" />
</a>
<div class="corigt left">
<a href="home.html.html">
<a href="home.html">
<span>普通换药</span>
<p>术后伤口换药,污染伤口的清创消毒</p>
</a>
... ... @@ -507,17 +507,17 @@
<div class="footer center">
<ul style="font-size:0rem;">
<li>
<a href="index.html.html">
<a href="index.html">
<img src="images/yanxuan.png" />
</a>
</li>
<li>
<a href="introduce.html.html">
<a href="introduce.html">
<img src="images/footer_05.jpg" />
</a>
</li>
<li>
<a href="member.html.html">
<a href="member.html">
<img src="images/footer_07.jpg" />
</a>
</li>
... ...
... ... @@ -17,6 +17,7 @@
}
.mbpart2{
height: auto;
width:100%;
}
.footer {
position: absolute;
... ...