CINXE.COM
佛山健翔骨伤医院
<!DOCTYPE html> <html style="height: 100%; width: 100%; min-width: 1300px; padding: 0; margin: auto; position: relative;"> <head> <meta name="viewport" content="width=device-width" charset="utf-8" /> <title>佛山健翔骨伤医院</title> <meta name="description" content="佛山健翔骨伤医院" /> <meta name="keywords" content="佛山健翔骨伤医院,健翔医院,健翔"> <link rel="icon" href="/Scripts/images/u100.png" /> <link href="/Scripts/layui/css/layui.css" rel="stylesheet" media="all" /> <link href="/Scripts/layui/css/my_css.css" rel="stylesheet" media="all" /> <style> .container { width: 1300px; margin: 0 auto; } .hospital-nav { background-color: transparent !important; height: 80px; font-size: 0; display: inline-block; padding: 0; } .hospital-nav .layui-nav-bar { background-color: #8E623F !important; } .logo { line-height: 80px; } .logo img { width: 254px; height: 40px; } .nav-item { line-height: 80px; } .box-search { display: inline-block; vertical-align: top; height: 100%; line-height: 110px; margin-right: 30px; } .nav-item-link { color: #8E623F !important; font-size: 16px; line-height: 80px; padding: 0 8px !important; } .nav-item-link:hover { color: #fff !important; background-image: url(/Scripts/images/select@2x.png); background-position: center center; background-repeat: no-repeat; background-size: 100% 40px; } .nav-item-link:valid { color: #fff !important; background-image: url(/Scripts/images/select@2x.png); background-position: center center; background-repeat: no-repeat; background-size: 100% 40px; } .nav-item a i { display: none } .image { width: 100% } .foot-float-list h1 { font-size: 18px; color: #fff; margin-bottom: 20px } .limit-line-2 { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; } .limit-line-3 { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; } .limit-line-4 { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; } .home-search { width: 212px; height: 100%; display: flex; justify-content: center; align-items: center; } .home-search-input { padding: 0; border: 1px solid #D6D6D6; line-height: 40px; border-radius: 0 20px 20px 0; background-color: #fff; width: 210px; height: 40px; font-size: 0; display: flex; } .home-search-input .layui-input { height: 40px; } .home-search .layui-form-select dl dd.layui-this { background-color: #8E623F !important; } .fbg { background: linear-gradient(rgba(255,255,255,0.7), rgba(255,255,255, 0.7)), url(/Scripts/images/bg2.png); background-repeat: repeat; background-size: 50px; background-color: #fff; } .my-detail p { display: block; margin-block-start: 1em; margin-block-end: 1em; margin-inline-start: 0px; margin-inline-end: 0px; } .my-detail h1 { display: block; font-size: 2em; margin-block-start: 0.67em; margin-block-end: 0.67em; margin-inline-start: 0px; margin-inline-end: 0px; } .my-detail h2 { display: block; font-size: 1.5em; margin-block-start: 0.83em; margin-block-end: 0.83em; margin-inline-start: 0px; margin-inline-end: 0px; } .my-detail h3 { display: block; font-size: 1.17em; margin-block-start: 1em; margin-block-end: 1em; margin-inline-start: 0px; margin-inline-end: 0px; } .my-detail h4 { display: block; font-size: 1em; margin-block-start: 1.33em; margin-block-end: 1.33em; margin-inline-start: 0px; margin-inline-end: 0px; } .my-detail h5 { display: block; font-size: 0.83em; margin-block-start: 1.67em; margin-block-end: 1.67em; margin-inline-start: 0px; margin-inline-end: 0px; } .my-detail h6 { display: block !important; font-size: 0.67em !important; margin-block-start: 2.33em !important; margin-block-end: 2.33em !important; margin-inline-start: 0px !important; margin-inline-end: 0px !important; } </style> </head> <body style="height: 100%; width: 100%; padding: 0; margin: 0; background-color: aliceblue;"> <div style="height: 110px;"> <div style="background-color: #fff; height: 110px; width: 100%; position: fixed; z-index: 99;" id="myHeader"> <div class="layui-clear" style="background-color: #8E623F;"> <div class="container" style="color: #fff; line-height: 30px; height: 30px; background-color: #8E623F; display: flex; justify-content: space-between;"> <div style="float: left"> <span>欢迎访问佛山健翔骨伤医院</span> </div> <div style="float: right"> <span>咨询电话: 0757-66636999</span> <a href="/Home" style="margin-left: 45px; color: #fff">集团首页</a> </div> </div> </div> <div class="fbg" style="height: 80px; box-shadow: 0 0px 2px #999;"> <div class="container" style="position: relative; height: 100%; display: flex; justify-content: space-between;"> <div class="logo"> <img src="/Scripts/images/fhospital-logo@2x.png" style="object-fit:cover" /> </div> <div style="height: 80px; position: relative"> <div style="height: 80px; vertical-align: middle "> <ul class="layui-nav hospital-nav" lay-filter=""> <li class="layui-nav-item nav-item"> <a href="/Fhospital" class="nav-item-link">首页</a> </li> <li class="layui-nav-item nav-item"> <a href="/Fhospital/FhospitalProfile" class="nav-item-link">概述</a> <dl class="layui-nav-child" style="top: 80px;"> <dd><a href="/Fhospital/FhospitalProfile">医院简介</a></dd> <dd><a href="/Fhospital/DevelopmentEvolution">发展沿革</a></dd> <dd><a href="/Fhospital/HonoraryTitle">荣誉称号</a></dd> <dd><a href="/Fhospital/ExcellentEquipment">精良设备</a></dd> <dd><a href="/Fhospital/CoreValue">核心价值</a></dd> </dl> </li> <li class="layui-nav-item nav-item"> <a href="/Fhospital/NewsDynamic" class="nav-item-link">新闻中心</a> <dl class="layui-nav-child" style="top: 80px;"> <dd><a href="/Fhospital/NewsDynamic">新闻动态</a></dd> <dd><a href="/Fhospital/MediaNews">媒体报道</a></dd> <dd><a href="/Fhospital/ClassicCase">经典案例</a></dd> </dl> </li> <li class="layui-nav-item nav-item"> <a href="/Fhospital/CharacteristicDepartment" class="nav-item-link">特色科室</a> <dl class="layui-nav-child" style="top: 80px;" id="departmentItemList"></dl> </li> <li class="layui-nav-item nav-item"> <a href="/Fhospital/DepartmentNavigation" class="nav-item-link">科室导航</a> </li> <li class="layui-nav-item nav-item"> <a href="/Fhospital/ExpertIntroduction" class="nav-item-link">专家介绍</a> </li> <li class="layui-nav-item nav-item"> <a href="/Fhospital/VisitingTable" class="nav-item-link">就医指南</a> <dl class="layui-nav-child" style="top: 80px;"> <dd><a href="/Fhospital/VisitingTable">出诊表</a></dd> <dd><a href="/Fhospital/MedicalGuide">就医流程</a></dd> <dd><a href="/Fhospital/MedicalInsurance">医保服务</a></dd> <dd><a href="/Fhospital/BusGuide">交通指引</a></dd> </dl> </li> <li class="layui-nav-item nav-item"> <a href="/Fhospital/TeachCase" class="nav-item-link">科研教学</a> <dl class="layui-nav-child" style="top: 80px;"> <dd><a href="/Fhospital/TeachCase">教学动态</a></dd> <dd><a href="/Fhospital/Scientific">科研成果</a></dd> </dl> </li> <li class="layui-nav-item nav-item"> <a href="/Fhospital/PartyCommitteeIntroduction" class="nav-item-link">党工青</a> <dl class="layui-nav-child" style="top: 80px;"> <dd><a href="/Fhospital/PartyCommitteeIntroduction">党委介绍</a></dd> <dd><a href="/Fhospital/YouthIntroduction">团委介绍</a></dd> <dd><a href="/Fhospital/LabourUnionIntroduction">职代会</a></dd> <dd><a href="/Fhospital/ActivityReview">相关新闻</a></dd> <dd><a href="/Fhospital/Honour">相关荣誉</a></dd> </dl> </li> <li class="layui-nav-item nav-item"> <a href="/Fhospital/Affiche" class="nav-item-link">公告</a> </li> <li class="layui-nav-item nav-item"> <a href="/Fhospital/Recruit" class="nav-item-link">招聘</a> </li> <li class="layui-nav-item nav-item"> <a href="/Fhospital/ThankLetter" class="nav-item-link">联系我们</a> <dl class="layui-nav-child" style="top: 80px;"> <dd><a href="/Fhospital/ThankLetter">感谢信</a></dd> <dd><a href="/Fhospital/Thank">写感谢信</a></dd> <dd><a href="/Fhospital/Contact">联系方式</a></dd> <dd><a href="/Fhospital/Complaint">投诉建议</a></dd> </dl> </li> </ul> </div> </div> <div class="home-search"> <form class="layui-form" lay-filter="homeSearch"> <div class="layui-form-item home-search-input" style="margin-bottom: 0"> <div style="display: inline-block; color: black; width: 70px; font-size: 14px; height: 100%;"> <select name="Type"> <option value="0">专家</option> <option value="1">科室</option> <option value="2">新闻</option> <option value="3">报道</option> <option value="4">案例</option> <option value="5">教学</option> <option value="6">成果</option> <option value="7">公告</option> </select> </div> <input class="layui-input" style="display: inline-block; vertical-align: middle; width: 100px; border: none; color: #9B9B9B; font-size: 14px;" name="Title" placeholder="请输入关键字" /> <div style="display: inline-block; cursor: pointer; position: relative; width: 40px;"> <input type="submit" style="width: 40px; height: 40px; position: absolute; top: 0px; right: 0; background-color: transparent; border: none; cursor: pointer" lay-submit lay-filter="homeSearch" /> <img style="padding: 10px;" src="/Scripts/images/search@2x.png" /> </div> </div> </form> </div> </div> </div> </div> </div> <div> <style> .departmentList::-webkit-scrollbar-corner { background: #F1F1F1; } .departmentList::-webkit-scrollbar { display: block; width: 13px; background: transparent; } .departmentList::-webkit-scrollbar-track { background: transparent; } .departmentList::-webkit-scrollbar-track-piece { background: #F1F1F1; } .departmentList::-webkit-scrollbar-thumb { background: #C1C1C1; -webkit-box-shadow: inset 0 0 5px rgba(0,0,0,0.2); } .departmentList::-webkit-scrollbar-button { width: 0; height: 0; background: transparent; display: block; } .card { display: inline-block; width: 310px; height: 365px; color: #8E623F; background-color: #fff; border-radius: 10px; text-align: center; vertical-align: top; box-shadow: 3px 3px 3px 2px #8E623F; } .card:hover { opacity: 0.9; } .item { display: block; font-size: 14px; line-height: 45px; border-bottom: 1px solid #E6E6E6; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .introduce-item { display: block; padding: 10px; text-align: center; background-color: #fff; margin-top: 20px; border-radius: 5px; font-size: 16px; border: 1px solid #C1C1C1; position: relative; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .introduce-item::before { content: ''; position: absolute; left: 0; width: 0; height: 0; bottom: calc(50% - 8px); border-width: 8px; border-style: solid; border-color: transparent transparent transparent #C1C1C1; } .introduce-item::after { content: ''; position: absolute; left: 0; bottom: calc(50% - 6px); width: 0; height: 0; border-width: 6px; border-style: solid; border-color: transparent transparent transparent #C1C1C1; } .corner { position: absolute; left: 0; bottom: calc(50% - 7px); width: 0; height: 0; border-width: 7px; border-style: solid; border-color: transparent transparent transparent #fff; } .case-side-list { background-color: #F4F4F4; } .case-side-list:hover { background-color: #fff; cursor: pointer } .case-side-list:hover a { border-left: 5px solid #8E623F; } .case-side-list a { display: block; font-size: 20px; color: #000; width: 100%; box-sizing: border-box; padding: 15px 10px; } .expert-carouse::before { content: '' !important; } .caseTitle { font-size: 18px; line-height: 40px; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .caseText { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 5; text-overflow: ellipsis; line-height: 24px; height: 120px; overflow: hidden; } #test2 button { width: 50px; height: 90px; border-radius: unset; font-size: 40px; margin-top: -45px; } #test2 .layui-carousel-arrow[lay-type=sub] { left: 0 !important; } #test2 .layui-carousel-arrow[lay-type=add] { right: 0 !important; } .fbbg { background: linear-gradient(rgba(255,255,255,0), rgba(255,255,255, 0)), url(/Scripts/images/bg1.png); background-repeat: repeat; background-size: 300px; background-color: #ECE3D4; padding: 30px 0; } </style> <div style="width: 100%; height: 44vw; min-height: 580px"> <div class="layui-carousel" id="banner"> <div carousel-item id="bannerList"> </div> </div> </div> <div class="fbbg"> <div class="container"> <div style="font-size: 0"> <a href="/Fhospital/VisitingTable" class="card" style="margin-right: 20px;"> <div style="padding: 60px 30px;"> <img src="/Scripts/images/register.png" /> <div style="margin-top: 35px; font-size: 24px;">出诊表</div> <div style="margin-top: 30px; font-size: 16px;">预约挂号 方便快捷 免排队 及时就诊即可</div> </div> </a> <a href="Fhospital/MedicalGuide" class="card" style="margin-right: 20px;"> <div style="padding: 60px 30px;"> <img src="/Scripts/images/service.png" /> <div style="margin-top: 35px; font-size: 24px;">医疗服务</div> <div style="margin-top: 30px; font-size: 16px;">预约挂号 方便快捷 免排队 及时就诊即可</div> </div> </a> <a href="Fhospital/MedicalInsurance" class="card" style="margin-right: 20px;"> <div style="padding: 60px 30px;"> <img src="/Scripts/images/process.png" /> <div style="margin-top: 35px; font-size: 24px;">就医流程</div> <div style="margin-top: 30px; font-size: 16px;">预约挂号 方便快捷 免排队 及时就诊即可</div> </div> </a> <a href="/Fhospital/BusGuide" class="card"> <div style="padding: 60px 30px;"> <img src="/Scripts/images/guide.png" /> <div style="margin-top: 35px; font-size: 24px;">班车指引</div> <div style="margin-top: 30px; font-size: 16px;">预约挂号 方便快捷 免排队 及时就诊即可</div> </div> </a> </div> <div style="margin-top: 90px;"> <div style="display: inline-block; width: 410px; height: 500px; border-radius: 10px; overflow: hidden; margin-right: 30px; box-shadow: 0 0 10px #bbb;"> <div> <img src="/Scripts/images/Notice@2x.png" style="width: 410px; height: 250px; object-fit: cover;" /> </div> <div style="height: 250px; background-color: #fff;"> <div style="padding: 30px 25px;"> <div> <div style="display: inline-block; font-size: 24px;">医院公告</div> <a href="/Fhospital/Affiche" style="display: inline-block; width: 100px; line-height: 25px; text-align: center; font-size: 14px; border-radius: 15px; border: 1px solid #EBEBEB; float: right">查看更多</a> </div> <div style="margin-top: 20px;" id="affiche"> </div> </div> </div> </div> <div style="display: inline-block; width: 410px; height: 500px; border-radius: 10px; overflow: hidden; margin-right: 30px; box-shadow: 0 0 10px #bbb;"> <div style="background: #F4F3F1"> <img src="/Scripts/images/CK2@2x.png" style="width: 410px; height: 250px; object-fit: cover;" /> </div> <div style="height: 250px; background-color: #fff;"> <div style="padding: 30px 25px;"> <div> <div style="display: inline-block; font-size: 24px;">重大新闻</div> <a href="/Fhospital/NewsDynamic" style="display: inline-block; width: 100px; line-height: 25px; text-align: center; font-size: 14px; border-radius: 15px; border: 1px solid #EBEBEB; float: right">查看更多</a> </div> <div style="margin-top: 20px;" id="news"> </div> </div> </div> </div> <div style="display: inline-block; width: 410px; height: 500px; border-radius: 10px; overflow: hidden; box-shadow: 0 0 10px #bbb;"> <div style="background: #F4F3F1"> <img src="/Scripts/images/CK3@2x.png" style="width: 410px; height: 250px; object-fit: cover;" /> </div> <div style="height: 250px; background-color: #fff;"> <div style="padding: 30px 25px;"> <div> <div style="display: inline-block; font-size: 24px;">健翔医生说</div> <a href="/Fhospital/MediaNews" style="display: inline-block; width: 100px; line-height: 25px; text-align: center; font-size: 14px; border-radius: 15px; border: 1px solid #EBEBEB; float: right">查看更多</a> </div> <div style="margin-top: 20px;" id="media"> </div> </div> </div> </div> </div> <div style="margin-top: 100px;"> <div style="text-align: center"> <div style="width: 45px; height: 1px; background-color: #8E623F; margin: 0 auto;"></div> <span style="font-size: 24px; line-height: 70px">专科介绍</span> </div> <div style="margin-right: -15px; font-size: 0; overflow-x: auto; white-space: nowrap; height: 455px;" id="department"></div> <div style="margin-top: 15px; font-size: 0;"> <div style="display: inline-block; width: 420px; height: 200px; margin-right: 20px"><img src="/Scripts/images/international.png" style="width: 100%; height: 100%; object-fit: cover" /></div> <div style="display: inline-block; width: 420px; height: 200px; margin-right: 20px"><img src="/Scripts/images/healthy.png" style="width: 100%; height: 100%; object-fit: cover" /></div> <div style="display: inline-block; width: 420px; height: 200px;"><img src="/Scripts/images/clinical.png" style="width: 100%; height: 100%; object-fit: cover" /></div> </div> <div style="margin-top: 90px;"> <div style="text-align: center"> <div style="width: 45px; height: 1px; background-color: #8E623F; margin: 0 auto;"></div> <span style="font-size: 24px; line-height: 70px">专家介绍</span> <p style="width: 765px; margin: 0 auto; font-size: 16px; color: #98999B"> 佛山健翔骨伤医院健康管理中心使用面积约为10000平方米,配备有西门子CT、核磁共振、高端彩超、罗氏检验设备等事件知名的先进医疗设备。依托省内外知名医学评估师,医疗实力雄厚。 </p> </div> <div class="layui-carousel" lay-filter="expert" id="expert" style="background-color: transparent; margin-top: 50px;"> <div carousel-item="" class="expert-carouse" style="margin-right: -25px;" id="expertList"></div> </div> </div> <div style="margin-top: 90px;"> <div style="text-align: center"> <div style="width: 45px; height: 1px; background-color: #8E623F; margin: 0 auto;"></div> <span style="font-size: 24px; line-height: 70px">部分案例</span> </div> <div class="container" style="margin-top: 30px; margin-bottom: 40px; background-color: #fff; box-shadow: 1px 2px 6px rgba(0, 0, 0, 0.5);"> <div style="display: inline-block; width: 370px; height: 745px; background-color: #F4F4F4; margin-right: 40px;"> <ul class="" lay-filter="test" id="caseList" style="width: 100%; text-align: left;"></ul> </div> <div style="display: inline-block; vertical-align: top; "> <div style="width: 855px; height: 480px; margin: 35px 0;"> <div class="layui-carousel" id="test2" lay-filter="test2"> <div carousel-item id="caseImage" style="cursor: pointer"> </div> </div> </div> <div style="width: 855px; margin: 35px 0;"> <h3 class="caseTitle" id="caseTitle" style="cursor: pointer"></h3> <p class="caseText" id="caseText" style="cursor: pointer"></p> </div> </div> </div> </div> </div> </div> </div> </div> <div style="background-color: #474747; position: relative;"> <div class="container" style="box-sizing: border-box; height: 165px; color: #fff; padding-top: 20px; "> <div style="line-height: 30px; float: left"> <p>主办单位: 佛山健翔骨伤医院</p> <p>传真: 0757-66638666</p> <p>服务电话: 0757-66636999</p> <p>地址: 广东省佛山市南海区季华七路华龙路10号</p> </div> <div style="float: right; "> <div style="display: inline-block; margin-right: 80px;"> <img src="/Scripts/images/OfficialAccounts@2x.png" style="width: 100px; height: 100px;" /> <div style="text-align: center; margin-top: 10px;">集团公众号</div> </div> <div style="display: inline-block"> <img src="/Scripts/images/fhospitalCode.png" style="width: 100px; height: 100px;" /> <div style="text-align: center; margin-top: 10px;">医院公众号</div> </div> </div> </div> </div> <div style="height: 60px; background-color: #5D5D5D; color: #ADADAD; text-align: center; line-height: 60px "> <span style="margin-right: 10px;"> 版权所有©佛山健翔骨伤医院 </span> <a href="#" style="color: #ADADAD"> 粤ICP备17070002号 </a> <span style="margin-left: 10px;"> 佛山市领蓝信息科技提供网站建设 </span> </div> <script src="/Scripts/layui/layui.js"></script> <script> window.onscroll = function (e) { document.getElementById('myHeader').style.left = - e.currentTarget.scrollX + 'px'; // 设置头部横向滚动 } var ua = navigator.userAgent.toLowerCase(); var isAndroid = ua.indexOf('android') != -1; var isIos = (ua.indexOf('iphone') != -1) || (ua.indexOf('ipad') != -1); if (isAndroid || isIos) { window.location.href = window.location.href.replace('/Fhospital', '/MobileFhospital'); console.log("isMobile"); } else { console.log("isPC"); } //JS layui.use(['element', 'layer', 'util', 'jquery', 'carousel', 'laytpl', 'form'], function () { var element = layui.element , layer = layui.layer , util = layui.util , $ = layui.$ , laytpl = layui.laytpl , form = layui.form , carousel = layui.carousel; form.val('homeSearch', { Type: localStorage.getItem('FhospitalSearchType') == 'undefined' ? '0' : (localStorage.getItem('FhospitalSearchType') || '0'), Title: localStorage.getItem('FhospitalSearchTitle') == 'undefined' ? '' : (localStorage.getItem('FhospitalSearchTitle') || '') }); laytpl.getDate = function (date, format = 'yyyy-MM-dd') { var dateStr = date && date.replace('/Date(', '').replace(')/', ''); return util.toDateString(dateStr, format); } //全局处理上下篇链接标题方法 laytpl.getContext = function (str) { if (str.indexOf(',') == -1) { return str.split('|') } else { return str.split(',') } } const req = function (url, data = {}) { return new Promise(function (resolve, reject) { layui.jquery.ajax({ url: url, type: 'post', data: data, success: function (res) { if (res.code === 0) { resolve(res) } else { layer.msg(res.msg, { icon: 5 }); } }, error: function (XMLHttpRequest, textStatus, errorThrown) { layer.msg('请求异常!', { icon: 5 }); }, complete: function () { layer.close(this.layerIndex); }, }); }) } req('/fhospital/GetHpDepartmentList', { page: 1, limit: 100, IsSpecial: '1' }).then(function (res) { var mytext = ""; res.data.forEach(item => { mytext += "<dd><a href=\"/Fhospital/CharacteristicDepartment?HpDepartmentId=" + item.HpDepartmentId + "\">" + item.Name + "</a></dd>"; }); document.getElementById('departmentItemList').innerHTML = mytext; }) form.on('submit(homeSearch)', function (data) { localStorage.setItem('FhospitalSearchType', data.field.Type); localStorage.setItem('FhospitalSearchTitle', data.field.Title); if (data.field.Type == '0') { window.location = '/Fhospital/ExpertIntroduction?Title=' + data.field.Title; } else if (data.field.Type == '1') { window.location = '/Fhospital/DepartmentNavigation?Title=' + data.field.Title; } else if (data.field.Type == '2') { window.location = '/Fhospital/NewsDynamic?Title=' + data.field.Title; } else if (data.field.Type == '3') { window.location = '/Fhospital/MediaNews?Title=' + data.field.Title; } else if (data.field.Type == '4') { window.location = '/Fhospital/ClassicCase?Title=' + data.field.Title; } else if (data.field.Type == '5') { window.location = '/Fhospital/TeachCase?Title=' + data.field.Title; } else if (data.field.Type == '6') { window.location = '/Fhospital/Scientific?Title=' + data.field.Title; } else if (data.field.Type == '7') { window.location = '/Fhospital/Affiche?Title=' + data.field.Title; } return false }) }); </script> <script> layui.use(['element', 'layer', 'util', 'jquery', 'carousel', 'laytpl'], function () { var element = layui.element , layer = layui.layer , util = layui.util , $ = layui.$ , laytpl = layui.laytpl , carousel = layui.carousel; var banner = carousel.render({ elem: '#banner' , width: '100%' //设置容器宽度 , height: '100%' , arrow: 'always' //始终显示箭头 //,anim: 'updown' //切换动画方式 }); layui.jquery.ajax({ url: '/fhospital/GetHpBannerList', type: 'post', data: {}, success: function (res) { if (res.code === 0) { var element = ''; res.data.map(function (item, index) { if (item.ToPath) { element += '<a href=' + item.ToPath + '><img src=' + item.FilePath + ' style="width: 100%; height: 100%;" /></a>' } else { element += '<img src=' + item.FilePath + ' style="width: 100%; height: 100%;" />' } }) $('#bannerList').html(element) banner.reload() } else { layer.msg(res.msg, { icon: 5 }); } }, error: function (XMLHttpRequest, textStatus, errorThrown) { layer.msg('请求异常!', { icon: 5 }); }, complete: function () { layer.close(this.layerIndex); }, }); const req = function (url, data = {}) { return new Promise(function (resolve, reject) { layui.jquery.ajax({ url: url, type: 'post', data: data, success: function (res) { if (res.code === 0) { resolve(res.data) } else { layer.msg(res.msg, { icon: 5 }); } }, error: function (XMLHttpRequest, textStatus, errorThrown) { layer.msg('请求异常!', { icon: 5 }); }, complete: function () { layer.close(this.layerIndex); }, }); }) } const getHpAfficheIndexList = req('/fhospital/GetHpAfficheIndexList', { page: 1, limit: 3 }); //查询公告列表 const getHpNewsIndexList = req('/fhospital/GetHpNewsIndexList', { page: 1, limit: 3 }); //查询新闻列表 const getHpMediaIndexList = req('/fhospital/GetHpMediaIndexList', { page: 1, limit: 3 }); //查询动态列表 const getHpOdepartmentList = req('/fhospital/GetHpOdepartmentList', { page: 1, limit: 5 }); //专科介绍列表 const getHpExpertIndexList = req('/fhospital/GetHpExpertIndexList', { page: 1, limit: 20 }); //专家列表 const getHpCaseIndexList = req('/fhospital/GetHpCaseIndexList', { page: 1, limit: 8 }); //查询案例列表 Promise.all([getHpAfficheIndexList, getHpNewsIndexList, getHpMediaIndexList, getHpOdepartmentList, getHpExpertIndexList, getHpCaseIndexList]).then(function (res) { console.log(res) //公告列表 res[0].map(function (item, index) { $('#affiche').append(`<a href="/Fhospital/AfficheDeatils?HpAfficheId=${item.HpAfficheId}" class="item">${item.Title}</a>`) }) //新闻列表 res[1].map(function (item, index) { $('#news').append(`<a href="/Fhospital/NewsDynamicDeatils?HpNewsId=${item.HpNewsId}" class="item">${item.Title}</a>`) }) //动态列表 res[2].map(function (item, index) { $('#media').append(`<a href="/Fhospital/MediaNewsDeatils?HpMediaId=${item.HpMediaId}" class="item">${item.Title}</a>`) }) //专科介绍列表 res[3].map(function (item, index) { $('#department').append( `<div style="display: inline-block; vertical-align: top; width: 244px; border: 2px solid #8E623F; margin-right: 15px; "> <div style = "padding: 20px 10px;"> <div style="background-image: url('/Scripts/images/bar@2x.png'); line-height: 76px; font-size: 16px; text-align: center; color: #8E623F; font-weight: bold">${item.Name}</div> <div class="departmentList" style="height: 315px; overflow-y: auto;"> ${item.HpDepartment && item.HpDepartment.map(function (item) { return ( `<a href="/Fhospital/DepartmentIntroduction?HpDepartmentId=${item.HpDepartmentId}" class="introduce-item"> <div class= "corner" ></div> ${item.Name} </a>` ) })} </div> </div > </div>`) }) //专家介绍 let index = 0; let newArr = [] while (index < res[4].length) { newArr.push(res[4].slice(index, index += 5)) } var expertList = function () { return ( newArr.map(function (item) { return ( `<div style="background-color: transparent; font-size: 0;"> ${ item.map(function (item, index) { return ( `<a href="/Fhospital/ExpertIntroductionDetails?HpExpertId=${item.HpExpertId}" style="box-shadow: 1px 2px 4px rgba(0, 0, 0, 0.5);display: inline-block; width: 240px; height: 320px; position: relative; margin-right: ${index === 4 ? '0' : '25px'}"> <img src=${item.Avatar} style="width: 240px; height: 320px; object-fit: cover" /> <div style="width: 100%; height: 80px; position: absolute; bottom: 0; background: rgba(0,0,0,0.4)"> <p style="text-align: center; color: #fff; font-size: 18px; line-height: 40px;"> ${item.Name} </p> <p style="text-align: center; color: #fff; font-size: 14px;"> ${item.Position} </p> </div> </a>` ) }) } </div>` ) }) ) } $('#expertList').html(expertList()) var expert = carousel.render({ elem: '#expert' , width: '100%' , height: '345px' , arrow: 'always' , autoplay: false , indicator: 'none' }); //案例列表 let carouselElement = '' res[5].map(function (item, index) { $('#caseList').append('<li id="case' + index + '" class="case-side-list" id=""><a>' + item.Title + '</a></li >') carouselElement += '<div class="this"><img src=' + item.FilePath + ' style="width: 905px; height: 480px; object-fit: cover" /></div>' $('#case' + index).on('click', function () { $('#caseTitle').html(item.Title) $('#caseText').html(item.Introduction) $('#caseImage').html(carouselElement) $('#caseImage').on('click', function () { window.location = '/Fhospital/ClassicCaseDeatils?HpCaseId=' + item.HpCaseId; }) $('#caseTitle').on('click', function () { window.location = '/Fhospital/ClassicCaseDeatils?HpCaseId=' + item.HpCaseId; }) $('#caseText').on('click', function () { window.location = '/Fhospital/ClassicCaseDeatils?HpCaseId=' + item.HpCaseId; }) caseCarousel.reload({ index: index }) }) }) $('#caseTitle').html(res[5][0].Title) $('#caseText').html(res[5][0].Introduction) $('#caseImage').html(carouselElement) $('#caseImage').on('click', function () { window.location = '/Fhospital/ClassicCaseDeatils?HpCaseId=' + res[5][0].HpCaseId; }) $('#caseTitle').on('click', function () { window.location = '/Fhospital/ClassicCaseDeatils?HpCaseId=' + res[5][0].HpCaseId; }) $('#caseText').on('click', function () { window.location = '/Fhospital/ClassicCaseDeatils?HpCaseId=' + res[5][0].HpCaseId; }) var caseCarousel = carousel.render({ elem: '#test2' , width: '100%' //设置容器宽度 , height: '100%' , arrow: 'always' //始终显示箭头 //,anim: 'updown' //切换动画方式 , autoplay: true }); //触发轮播切换事件 carousel.on('change(test2)', function (obj) { //test2来源于对应HTML容器的 lay-filter="test2" 属性值 console.log(obj.index); //当前条目的索引 res[5].map(function (item, index) { if (obj.index == index) { $('#caseTitle').html(item.Title) $('#caseText').html(item.Introduction) $('#caseImage').on('click', function () { window.location = '/Fhospital/ClassicCaseDeatils?HpCaseId=' + item.HpCaseId; }) $('#caseTitle').on('click', function () { window.location = '/Fhospital/ClassicCaseDeatils?HpCaseId=' + item.HpCaseId; }) $('#caseText').on('click', function () { window.location = '/Fhospital/ClassicCaseDeatils?HpCaseId=' + item.HpCaseId; }) } }) }); }).catch() }) </script> </body> </html>