作者 李铮

增加接口逻辑-李铮

@@ -194,7 +194,7 @@ @@ -194,7 +194,7 @@
194 padding:0.2rem 0rem 0.25rem 0rem; 194 padding:0.2rem 0rem 0.25rem 0rem;
195 border-right: 0.03rem solid #f7f7f7; 195 border-right: 0.03rem solid #f7f7f7;
196 border-bottom:0.03rem solid #f7f7f7; 196 border-bottom:0.03rem solid #f7f7f7;
197 - width: 2.1rem; 197 + width: 32.7%;
198 } 198 }
199 .mbpart2 ul li p{ 199 .mbpart2 ul li p{
200 text-align:center; 200 text-align:center;
@@ -205,6 +205,9 @@ @@ -205,6 +205,9 @@
205 } 205 }
206 #mbkuang li:nth-child(3n){ 206 #mbkuang li:nth-child(3n){
207 border-right:none; 207 border-right:none;
  208 + display: flex;
  209 + justify-content: center;
  210 + align-items: center;
208 } 211 }
209 #mbkuang li a{ 212 #mbkuang li a{
210 color:#000; 213 color:#000;
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2 <html xmlns="http://www.w3.org/1999/xhtml"> 2 <html xmlns="http://www.w3.org/1999/xhtml">
  3 +
3 <head> 4 <head>
4 -<meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,minimum-scale=1,user-scalable=no">  
5 -<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />  
6 -<link rel="stylesheet" type="text/css" href="css/base.css" />  
7 -<link rel="stylesheet" type="text/css" href="css/style.css" />  
8 -<link rel="stylesheet" type="text/css" href="css/share.css" />  
9 -<script src="js/base.js" type="text/javascript" charset="utf-8"></script>  
10 -<script src="js/share.js"></script>  
11 -<script src="js/jquery-1.2.6.min.js"></script>  
12 -<title>家庭医生</title> 5 + <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,minimum-scale=1,user-scalable=no">
  6 + <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  7 + <link rel="stylesheet" href="css/weui.css">
  8 + <link rel="stylesheet" type="text/css" href="css/base.css" />
  9 + <link rel="stylesheet" type="text/css" href="css/style.css" />
  10 + <link rel="stylesheet" type="text/css" href="css/share.css" />
  11 + <script src="js/base.js" type="text/javascript" charset="utf-8"></script>
  12 + <script src="js/share.js"></script>
  13 + <script src="js/jquery-1.2.6.min.js"></script>
  14 + <script src="js/common.js"></script>
  15 + <title>家庭医生</title>
13 </head> 16 </head>
14 17
15 <body> 18 <body>
16 -<div class="header center">  
17 - <div class="left back"><a href="#" onClick="javascript:history.back(-1);"><img src="images/care_03.jpg"/></a></div> 19 + <div class="header center">
  20 + <div class="left back">
  21 + <a href="#" onClick="javascript:history.back(-1);">
  22 + <img src="images/care_03.jpg" />
  23 + </a>
  24 + </div>
18 <div class="hotitle">家庭医生</div> 25 <div class="hotitle">家庭医生</div>
19 - <div class="right hoshare"><a href="#" onClick="toshare()"><img src="images/hoshare_03.png"/></a></div>  
20 - <div class="banner"><img src="images/dobanner_02.jpg"/></div>  
21 -</div>  
22 -<!--dopart1 -->  
23 -<div class="dopart1 center doctorimg">  
24 - <img src="images/dc_02.jpg"/>  
25 -</div>  
26 -  
27 -<!--trfooter-->  
28 -<div id="trfooter">  
29 - <div id="trlprice" class="left"><span class="trmoney">¥4980</span></div>  
30 - <div class="left listen"><a href="#"><img src="images/listen_03.jpg"/></a></div>  
31 - <div id="trsub" class="right"><a href="#">去预约</a></div>  
32 -</div>  
33 -<!--trfooter end-->  
34 -  
35 -<!--share start-->  
36 -<div class="am-share">  
37 - <h3 class="am-share-title">分享到</h3>  
38 - <ul class="am-share-sns">  
39 - <li><a href="#"> <i class="share-icon-weibo"></i> <span>新浪微博</span> </a> </li>  
40 - <li><a href="#"> <i class="share-icon-weibo"></i> <span>新浪微博</span> </a> </li>  
41 - <li><a href="#"> <i class="share-icon-weibo"></i> <span>新浪微博</span> </a> </li>  
42 - <li><a href="#"> <i class="share-icon-weibo"></i> <span>新浪微博</span> </a> </li>  
43 - </ul>  
44 - <div class="am-share-footer"><button class="share_btn">取消</button></div>  
45 -</div>  
46 -<!--share end--> 26 + <div class="right hoshare">
  27 + <a href="#" onClick="toshare()">
  28 + <img src="images/hoshare_03.png" />
  29 + </a>
  30 + </div>
  31 + <div class="banner">
  32 + <img src="images/dobanner_02.jpg" />
  33 + </div>
  34 + </div>
  35 + <!--dopart1 -->
  36 + <div class="dopart1 center doctorimg">
  37 + <img src="images/dc_02.jpg" />
  38 + </div>
  39 +
  40 + <!--trfooter-->
  41 + <div id="trfooter">
  42 + <div id="trlprice" class="left">
  43 + <span class="trmoney">¥4980</span></div>
  44 + <div class="left listen">
  45 + <a href="#">
  46 + <img src="images/listen_03.jpg" />
  47 + </a>
  48 + </div>
  49 + <div id="trsub" class="right">
  50 + <a href="#">去预约</a>
  51 + </div>
  52 + </div>
  53 + <!--trfooter end-->
  54 +
  55 + <!--share start-->
  56 + <div class="am-share">
  57 + <h3 class="am-share-title">分享到</h3>
  58 + <ul class="am-share-sns">
  59 + <li>
  60 + <a href="#">
  61 + <i class="share-icon-weibo"></i>
  62 + <span>新浪微博</span>
  63 + </a>
  64 + </li>
  65 + <li>
  66 + <a href="#">
  67 + <i class="share-icon-weibo"></i>
  68 + <span>新浪微博</span>
  69 + </a>
  70 + </li>
  71 + <li>
  72 + <a href="#">
  73 + <i class="share-icon-weibo"></i>
  74 + <span>新浪微博</span>
  75 + </a>
  76 + </li>
  77 + <li>
  78 + <a href="#">
  79 + <i class="share-icon-weibo"></i>
  80 + <span>新浪微博</span>
  81 + </a>
  82 + </li>
  83 + </ul>
  84 + <div class="am-share-footer">
  85 + <button class="share_btn">取消</button>
  86 + </div>
  87 + </div>
  88 + <!--share end-->
  89 +
  90 + <script src="js/weui.js"></script>
  91 + <script>
  92 + $(function () {
  93 + let loading = weui.loading("加载中")
  94 +
  95 + sendAjax('post', 'portal/Goods/getDoctor', {}, function (res) {
  96 + if (res.code == 1) {
  97 + loading.hide();
  98 + var data = res.data
  99 + console.log(data)
  100 + // 本页title
  101 + $(".hotitle").html(data.post_title)
  102 + // banner
  103 + $(".banner").find("img").attr("src",data.banner)
  104 + // 钱数
  105 + $(".trmoney").html("¥"+data.price)
  106 + } else if (res.code == 0) {
  107 + let loading = weui.loading(res.msg)
  108 + setTimeout(function () {
  109 + loading.hide();
  110 + }, 1500);
  111 + }
  112 +
  113 + });
  114 + })
  115 +
  116 + </script>
47 </body> 117 </body>
@@ -203,7 +203,7 @@ @@ -203,7 +203,7 @@
203 <div style="display:inline-block;"> 203 <div style="display:inline-block;">
204 <ul> 204 <ul>
205 <li> 205 <li>
206 - <a href="home.html.html"> 206 + <a href="home.html">
207 <div class="left text3"> 207 <div class="left text3">
208 <p class="title3">居家照护</p> 208 <p class="title3">居家照护</p>
209 <p class="context3">提供生活照护病症护理</p> 209 <p class="context3">提供生活照护病症护理</p>
@@ -264,7 +264,7 @@ @@ -264,7 +264,7 @@
264 <img class="left" src="images/part4_li_07.jpg" /> 264 <img class="left" src="images/part4_li_07.jpg" />
265 </a> 265 </a>
266 <div class="corigt left"> 266 <div class="corigt left">
267 - <a href="home.html.html"> 267 + <a href="home.html">
268 <span>普通换药</span> 268 <span>普通换药</span>
269 <p>术后伤口换药,污染伤口的清创消毒</p> 269 <p>术后伤口换药,污染伤口的清创消毒</p>
270 </a> 270 </a>
@@ -507,17 +507,17 @@ @@ -507,17 +507,17 @@
507 <div class="footer center"> 507 <div class="footer center">
508 <ul style="font-size:0rem;"> 508 <ul style="font-size:0rem;">
509 <li> 509 <li>
510 - <a href="index.html.html"> 510 + <a href="index.html">
511 <img src="images/yanxuan.png" /> 511 <img src="images/yanxuan.png" />
512 </a> 512 </a>
513 </li> 513 </li>
514 <li> 514 <li>
515 - <a href="introduce.html.html"> 515 + <a href="introduce.html">
516 <img src="images/footer_05.jpg" /> 516 <img src="images/footer_05.jpg" />
517 </a> 517 </a>
518 </li> 518 </li>
519 <li> 519 <li>
520 - <a href="member.html.html"> 520 + <a href="member.html">
521 <img src="images/footer_07.jpg" /> 521 <img src="images/footer_07.jpg" />
522 </a> 522 </a>
523 </li> 523 </li>
@@ -17,6 +17,7 @@ @@ -17,6 +17,7 @@
17 } 17 }
18 .mbpart2{ 18 .mbpart2{
19 height: auto; 19 height: auto;
  20 + width:100%;
20 } 21 }
21 .footer { 22 .footer {
22 position: absolute; 23 position: absolute;