123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580 |
- <!doctype html>
- <html>
- <head>
- <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
- <meta charset="utf-8">
- <title>医生主页</title>
- <link rel="stylesheet" type="text/css" href="../../../css/cross.css" />
- <link rel="stylesheet" type="text/css" href="../../../iconfont/iconfont.css" />
- <link rel="stylesheet" type="text/css" href="../css/sq-style.css" />
- <link rel="stylesheet" type="text/css" href="../../../widget/artDialog/6.0.5/css/ui-dialog.min.css">
- <link rel="stylesheet" type="text/css" href="../css/wdz.css">
- <script src="../../../js/jquery/2.1.3/jquery.js"></script>
- <script src="../../../js/app.js" type="text/javascript" charset="utf-8"></script>
- <script type="text/javascript" src="../../../js/mui.min.js"></script>
- <script src="../../../widget/artDialog/6.0.5/js/dialog-plus.min.js"></script>
- <script src="../js/general.js"></script>
- <script src="../../../widget/marques/marquee.js"></script>
- <script type="text/javascript" src="../../../js/common_http.js" ></script>
- <script type="text/javascript" src="../../../js/weixin_common.js" ></script>
- <link rel="stylesheet" type="text/css" href="../../../widget/mobiscroll/2.15.1/css/mobiscroll.css">
- <script src="../../../widget/mobiscroll/2.15.1/js/mobiscroll.js"></script>
- <script src="http://res.wx.qq.com/open/js/jweixin-1.2.0.js"></script>
- </head>
- <body>
- <div class="c-main">
- <!--<div class="h45">
- <div class="demo-comtop">
- <a class="mui-action-back"></a>
- <h1>医生主页</h1>
- </div>
- </div>-->
- <div class="sdoc-top smil short clearfix">
- <span class="sdimg fl">
- <img id="photo" src="" class="c-images-cycle" />
- </span>
- <p class="c-t-left mt5 c-f18">
- <span id="name" class="c-f20 mr10 ml10"></span><label id="jobName"></label></p>
- <p class="c-t-left c-f16">
- <span id="hospitalName" class="mr10 ml10"></span></p>
- <p class="c-t-left c-f16">
- <span id="deptName" class="mr10 ml10"></span></p>
- </div>
- <div class="slider-detail plr15 bgc-fff mtb10 c-border-tb">
- <ul>
- <li class="c-border-b">
- <h2 class="c-f18">擅长</h2>
- <p class="c-f16 show" id="expertise"></p>
- </li>
- <li>
- <h2 class="c-f18">简介</h2>
- <p class="c-f16 show" id="introduce"></p>
- </li>
- </ul>
- </div>
- <div id="divAgree" class="bgc-fff mt10 c-border-tb list-item-1">
- <div class="ui-grid ptb15 plr10 c-border-b">
- <img src="../images/xieyi@2x.png" style="width: 20px; height: 20px;"/>
- <div class="ui-col-1" style="padding-left: 5px;">
- <p class="tit-name c-nowrap c-f18 c-333">签约协议</p>
- </div>
- </div>
- <ul class="c-list sever-list">
- <li class="c-list-cover c-list-text" onclick="changeAgreement()" style="height: 80px;">
- <div style="padding-top: 15px; padding-bottom: 5px;">
- <img src="../images/jiatingqianyue@2x.png" style="width: 45px; height: 45px;"/>
- </div>
- <div class="c-list-info" style="padding-left: 10px;">
- <h4 class="c-nowrap c-f16">家庭医生签约协议</h4>
- </div>
- <span class="list-icon arrow-right"></span>
- </li>
- </ul>
- </div>
- <!-- 服务介绍 开始 -->
- <div class="bgc-fff c-border-tb list-item-1 mt10 mb30">
- <!-- 头部部分 开始 -->
- <div class="ui-grid ptb15 plr10 c-border-b">
- <i class="logo-icon iconfont icon-yanghu bgc-fb8d7c"></i>
- <div class="ui-col-1">
- <p class="tit-name c-nowrap c-f18 c-333">服务介绍</p>
- </div>
- </div>
- <!-- 头部部分 结束 -->
- <!-- 列表项 开始 -->
- <ul id="ul-common" class="c-list sever-list" style="display: none;">
- <li class="c-list-cover c-list-text">
- <div class="c-avatar-m bgc-3fcba9" style="border-radius: 15px;">
- <i class="iconfont icon-yisheng"></i>
- </div>
- <div class="c-list-info">
- <h4 class="c-nowrap">家庭医生服务</h4>
- <p class="c-nowrap-multi">贴心家庭医生为居民提供健康指导,保健,随访等服务</p>
- </div>
- </li>
- <li class="c-list-cover c-list-text">
- <div class="c-avatar-m bgc-52a5f1" style="border-radius: 15px;">
- <i class="iconfont icon-zixun"></i>
- </div>
- <div class="c-list-info">
- <h4 class="c-nowrap">健康咨询服务</h4>
- <p class="c-nowrap-multi">身体疾病,用药疑问让居民足不出户,在家就能及时咨询到医生</p>
- </div>
- </li>
- <li class="c-list-cover c-list-text">
- <div class="c-avatar-m bgc-f98d44" style="border-radius: 15px;">
- <i class="iconfont icon-yanghu1"></i>
- </div>
- <div class="c-list-info">
- <h4 class="c-nowrap">慢病养护</h4>
- <p class="c-nowrap-multi">对患有慢性疾病居民进行健康管理与干预,定期进行随访以及保健指导</p>
- </div>
- </li>
- <li class="c-list-cover c-list-text">
- <div class="c-avatar-m bgc-67bfed" style="border-radius: 15px;">
- <i class="iconfont icon-zixun1"></i>
- </div>
- <div class="c-list-info">
- <h4 class="c-nowrap">健康头条资讯</h4>
- <p class="c-nowrap-multi">热点健康知识推送,提升家庭健康意识</p>
- </div>
- </li>
- <li class="c-list-cover c-list-text">
- <div class="c-avatar-m bgc-91c66a" style="border-radius: 15px;">
- <i class="iconfont icon-fenzhen"></i>
- </div>
- <div class="c-list-info">
- <h4 class="c-nowrap">分诊预约</h4>
- <p class="c-nowrap-multi">社区可以帮助有需要的居民进行分诊预约三甲医院</p>
- </div>
- </li>
- <li class="c-list-cover c-list-text">
- <div class="c-avatar-m bgc-f792b1" style="border-radius: 15px;">
- <i class="iconfont icon-yunfu"></i>
- </div>
- <div class="c-list-info">
- <h4 class="c-nowrap">妇幼保健</h4>
- <p class="c-nowrap-multi">对儿童疫苗接种进行提醒,对孕产、妇幼人群提供养生保健知识</p>
- </div>
- </li>
- </ul>
- <ul id="ul-health" class="c-list sever-list" style="display: none;">
- <li class="c-list-cover c-list-text">
- <div class="c-avatar-m bgc-3fcba9" style="border-radius: 15px;">
- <i class="iconfont icon-yisheng"></i>
- </div>
- <div class="c-list-info">
- <h4 class="c-nowrap">医保优惠</h4>
- <p>社区门诊免除500元起付线,住院医疗费不设二次及以上起付标准(二次及以上住院可以免付100-500起付线)</p>
- </div>
- </li>
- <li class="c-list-cover c-list-text">
- <div class="c-avatar-m bgc-52a5f1" style="border-radius: 15px;">
- <i class="iconfont icon-zixun"></i>
- </div>
- <div class="c-list-info">
- <h4 class="c-nowrap">免费服务</h4>
- <p>11类43项基本公共卫生服务,专家门诊预约,团队健康管理,便捷双向转诊,大型设备检查预约,康复训练指导,健康指导。</p>
- </div>
- </li>
- <li class="c-list-cover c-list-text">
- <div class="c-avatar-m bgc-f98d44" style="border-radius: 15px;">
- <i class="iconfont icon-yanghu1"></i>
- </div>
- <div class="c-list-info">
- <h4 class="c-nowrap">个性化服务(按物价规定标准收费)</h4>
- <p>基本医疗服务,针对性康复训练和康复治疗服务,健康检查项目:血、尿常规检查、肝功、肾功、血脂、血糖、心电图、胸片,糖化血红蛋白、眼底检查、尿微量白蛋白检测、糖尿病足筛查、踝肱指数、动态血压监测等,提供建立家庭病床、导尿、换药、上门测血糖、上门抽血检验等有偿上门服务。</p>
- </div>
- </li>
- </ul>
- <ul id="ul-sixfive" class="c-list sever-list" style="display: none;">
- <li class="c-list-cover c-list-text">
- <div class="c-avatar-m bgc-3fcba9" style="border-radius: 15px;">
- <i class="iconfont icon-yisheng"></i>
- </div>
- <div class="c-list-info">
- <h4 class="c-nowrap">医保优惠</h4>
- <p>慢性病长处方,一次可开取4-8周用药,社区门诊免除500元起付线,住院医疗费不设二次及以上起付标准(二次及以上住院可以免付50-250起付线)</p>
- </div>
- </li>
- <li class="c-list-cover c-list-text">
- <div class="c-avatar-m bgc-52a5f1" style="border-radius: 15px;">
- <i class="iconfont icon-zixun"></i>
- </div>
- <div class="c-list-info">
- <h4 class="c-nowrap">免费服务</h4>
- <p>11类43项基本公共卫生服务,专家门诊预约,团队健康管理,便捷双向转诊,大型设备检查预约,康复训练指导,每年一次健康检查(血、尿常规检查、肝功、肾功、血脂、血糖、心电图检查),对失能、半失能、80岁以上老年人每年一次免费上门出诊,健康指导。</p>
- </div>
- </li>
- <li class="c-list-cover c-list-text">
- <div class="c-avatar-m bgc-f98d44" style="border-radius: 15px;">
- <i class="iconfont icon-yanghu1"></i>
- </div>
- <div class="c-list-info">
- <h4 class="c-nowrap">个性化服务(按物价规定标准收费)</h4>
- <p>基本医疗服务,针对性康复训练和康复治疗服务,健康检查项目:血、尿常规检查、肝功、肾功、血脂、血糖、心电图、胸片,糖化血红蛋白、眼底检查、尿微量白蛋白检测、糖尿病足筛查、踝肱指数、动态血压监测等,提供建立家庭病床、导尿、换药、上门测血糖、上门抽血检验等有偿上门服务。</p>
- </div>
- </li>
- </ul>
- <ul id="ul-disease" class="c-list sever-list" style="display: none;">
- <li class="c-list-cover c-list-text">
- <div class="c-avatar-m bgc-3fcba9" style="border-radius: 15px;">
- <i class="iconfont icon-yisheng"></i>
- </div>
- <div class="c-list-info">
- <h4 class="c-nowrap">医保优惠</h4>
- <p>慢性病长处方,一次可开取4-8周用药,社区门诊免除500元起付线,住院医疗费不设二次及以上起付标准(二次及以上住院可以免付50-500起付线)</p>
- </div>
- </li>
- <li class="c-list-cover c-list-text">
- <div class="c-avatar-m bgc-52a5f1" style="border-radius: 15px;">
- <i class="iconfont icon-zixun"></i>
- </div>
- <div class="c-list-info">
- <h4 class="c-nowrap">免费服务</h4>
- <p>11类43项基本公共卫生服务,专家门诊预约,“三师共管”慢病精细化管理,便捷双向转诊,大型设备检查预约,康复训练指导,每年一次健康检查,糖尿病患者4次空腹血糖检测,对失能、半失能、80岁以上老年人每年一次免费上门出诊,健康指导。</p>
- </div>
- </li>
- <li class="c-list-cover c-list-text">
- <div class="c-avatar-m bgc-f98d44" style="border-radius: 15px;">
- <i class="iconfont icon-yanghu1"></i>
- </div>
- <div class="c-list-info">
- <h4 class="c-nowrap">个性化服务(按物价规定标准收费)</h4>
- <p>基本医疗服务,针对性康复训练和康复治疗服务,健康检查项目:血、尿常规检查、肝功、肾功、血脂、血糖、心电图、胸片,糖化血红蛋白、眼底检查、尿微量白蛋白检测、糖尿病足筛查、踝肱指数、动态血压监测等,提供建立家庭病床、导尿、换药、上门测血糖、上门抽血检验等有偿上门服务。</p>
- </div>
- </li>
- </ul>
- <!-- 列表项 结束 -->
- </div>
- <div class="h61">
- <div class="plr15 pb15 bottom-btn-box c-border-t" id="btnSign">
-
- </div>
- </div>
- <div class="input-group width-100 mt10" id="xf-artd" style="display:none">
- <textarea id="textReason" class="form-textarea width-100" maxlength="200" placeholder="请输入解约原因" rows="5"></textarea>
- <input id="txtInfo" style="display: none; color: red;" value="请填写解约原因"/>
- </div>
- </div>
- <script type="text/javascript">
- var d = dialog({contentType:'load', skin:'bk-popup'});
- var d1 = dialog({contentType:'load', skin:'bk-popup', content:'提交中...'});
- var doctor = "";
- var isQr="";
- $(function() {
- var userAgent = window.localStorage.getItem(agentName);
- Request = GetRequest();
- var openid = Request["openid"];
- var code = Request["code"];
- isQr = Request["isQr"];
- if(!userAgent){
- if(!openid){
- sendPost("weixin/getOpenidByCode",{"code":code},'JSON','GET',
- function(res){
- queryFailed(res);
- },function(res){
- if(res.status==200){
- openid = res.openid;
- window.localStorage.setItem(pageName,"{\"pageurl\":\""+window.location.href+"\"}");
- window.location.href = "../../home/html/login.html?type=0&openid=" + openid;
- }else{
- queryFailed(res);
- }
- })
- }
- }
- closeWindow();
- queryInit();
- });
-
-
- function closeWindow(){
- var Request = new Object();
- Request = GetRequest();
- var code = Request["code"];
- //从后台那边获取签名等信息
- var params = {};
- params.pageUrl = window.location.href;
- $.ajax(server + "weixin/getSign", {
- data: params,
- dataType: "json",
- type: "post",
- success: function(res){
- if (res.status == 200) {
- var t = res.data.timestamp;
- var noncestr = res.data.noncestr;
- var signature = res.data.signature;
- wx.config({
- //debug: true, // 开启调试模式,调用的所有api的返回值会在客户端alert出来,若要查看传入的参数,可以在pc端打开,参数信息会通过log打出,仅在pc端时才会打印。
- appId: appId, // 必填,公众号的唯一标识
- timestamp: t, // 必填,生成签名的时间戳
- nonceStr: noncestr, // 必填,生成签名的随机串
- signature: signature,// 必填,签名,见附录1
- jsApiList: [
- 'closeWindow'
- ] // 必填,需要使用的JS接口列表,所有JS接口列表见附录2
- });
- }
- }
- });
- }
-
- function queryInit(){
- d.show();
- var data={};
- var Request = new Object();
- Request = GetRequest();
- doctor = Request["state"];
- data.doctor = doctor;
- sendPost('patient/family_contract/homepage', data, 'json', 'post', queryFailed, querySuccess);
- }
-
- function queryFailed(res) {
- d.close();
- if (res && res.msg) {
- dialog({contentType:'tipsbox', skin:'bk-popup' , content:res.msg}).show();
- } else {
- dialog({contentType:'tipsbox', skin:'bk-popup' , content:'加载失败'}).show();
- }
- }
-
- function querySuccess(res) {
- if (res.status == 200) {
- var name = res.data.name;
- var jobName = res.data.job;
- var hospitalName = res.data.hospital;
- var deptName = res.data.dept;
- var photo = getImgUrl(res.data.photo);
- var expertise = res.data.expertise;
- var introduce = res.data.intro;
- var sign = Number(res.data.sign);
- var group = Number(res.data.group);
- var url2 = "../../../images/d-default.png";
- if(photo != null && photo != ""){
- url2 = photo;
- }
- if(!jobName) jobName = "";
- if(!deptName) deptName = "";
- if(!expertise) expertise = "无";
- if(!introduce) introduce = "无";
- document.getElementById("photo").src = url2;
- document.getElementById("name").innerHTML = name;
- document.getElementById("jobName").innerHTML = jobName;
- document.getElementById("hospitalName").innerHTML = hospitalName;
- document.getElementById("deptName").innerHTML = deptName;
- document.getElementById("expertise").innerHTML = expertise;
- document.getElementById("introduce").innerHTML = introduce;
-
- if(group == 1){
- $("#ul-health").show();
- }else if(group == 2){
- $("#ul-disease").show();
- }else if(group == 3){
- $("#ul-sixfive").show();
- }else{
- $("#ul-common").show();
- }
-
- if(sign == 0){
- document.getElementById("btnSign").innerHTML ='<a onclick="cancelSign()" class="c-btn c-btn-E0A526 c-btn-full c-btn-radius c-f18">取消申请</a>';
- }
- else if(sign == 1){
- document.getElementById("btnSign").innerHTML ='<a onclick="overSign()" class="c-btn c-btn-E0A526 c-btn-full c-btn-radius c-f18">申请解约</a>';
- }
- else if(sign == -1){
- document.getElementById("btnSign").innerHTML ='<a onclick="startSign()" class="c-btn c-btn-4dcd70 c-btn-full c-btn-radius c-f18">申请签约</a>';
- $("#divAgree").hide();
- }
- else if(sign == 2){
- document.getElementById("btnSign").innerHTML = '<span class="c-f18" style="color: #E71F19;">您已申请了解约,流程审核中,请等待!!</span>';
- }
- else{
- document.getElementById("btnSign").innerHTML = '<span class="c-f18" style="color: #E71F19;">医生申请与您解约,流程审核中,请等待!!</span>';
- }
- d.close();
- }
- else{
- queryFailed(res);
- }
- }
-
- //申请签约
- function startSign(){
- if(isQr!=false){
- sendPost('patient/family_contract/checkOpenid', {}, 'json', 'post', queryFailed, openidSuccess2);
- }else{
- var doctorName = encodeURI(document.getElementById("name").innerHTML);
- var hospitalName = encodeURI(document.getElementById("hospitalName").innerHTML);
- window.location.href = "sign-agreement.html?doctor=" + doctor + "&doctorName=" + doctorName + "&hospitalName=" + hospitalName;
- }
- }
-
- function changeAgreement(){
- window.location.href = "sign-agreement1.html";
- }
-
- function cancelSign(){
- dialog({
- title: '提示',
- content: '您确定继续取消和' + document.getElementById("name").innerHTML + '医生的签约吗?',
- ok: function (){
- d1.showModal();
- var data = {};
- data.doctor = doctor;
- sendPost('patient/family_contract/unsign', data, 'json', 'post', submitFailed, submitSuccess);
- },
- cancel: function () {
- return;
- }
- }).showModal();
- }
-
- function overSign(){
- $("#txtInfo").hide();
- dialog({
- title: '申请解约',
- skin:"ui-dialog ax-popup pror",
- content:$("#xf-artd").get(0),
- ok: function (){
- var data = {};
- data.doctor = doctor;
- data.doctorName = document.getElementById("name").innerHTML;
- data.reason = $("#textReason").val();
- if(data.reason == "" || data.reason == null){
- $("#txtInfo").show();
- return false;
- }
- else{
- $("#txtInfo").hide();
- d1.showModal();
- sendPost('patient/family_contract/surrender', data, 'json', 'post', submitFailed, submitSuccess2);
- return;
- }
- },
- cancel: function () {
- return;
- }
- }).showModal();
- }
-
- function submitFailed(res) {
- d1.close();
- if (res && res.msg) {
- dialog({contentType:'tipsbox', skin:'bk-popup' , content:res.msg}).show();
- } else {
- dialog({contentType:'tipsbox', skin:'bk-popup' , content:'操作失败'}).show();
- }
- }
-
- function submitSuccess(res) {
- if (res.status == 200) {
- d1.close();
- window.location.href = "choose-region.html";
- } else{
- submitFailed(res);
- }
- }
-
- function submitSuccess2(res) {
- if (res.status == 200) {
- document.getElementById("btnSign").innerHTML = '<span class="c-f18" style="color: #E71F19;">您已申请了解约,流程审核中,请等待!!</span>';
- d1.close();
- dialog({contentType:'tipsbox', skin:'bk-popup' , content:'解约申请成功'}).show();
- window.scrollTo(0,0);
- //window.location.href = "doctor-home-page.html?doctor=" + doctor;
- } else{
- submitFailed(res);
- }
- }
-
- //判断是否有三师信息
- function checkTeacter(){
- var data = {};
- sendPost('patient/teachers', data, 'json', 'post', queryFailedTeacter, querySuccessTeacter);
- }
- function querySuccessTeacter(res) {
- if (res.status == 200) {
- d.close();
- var list = res.data.list;
- if(list.length > 0){
- var doctorTemp = "";
- var doctorName = "";
- for(var i=0; i<list.length; i++){
- var data = list[i];
- if(Number(data.type) == 2){
- doctorTemp = data.code;
- doctorName = data.name;
- }
- }
- var doctorNameTemp = document.getElementById("name").innerHTML;
- if(doctorNameTemp!=doctorName){
- dialog({
- title:'提示',
- content:'您已存在三师签约,签约医生为' + doctorName + '医生,继续与' + doctorName + '医生签约家庭医生服务吗?',
- ok: function (){
- window.location.href = "doctor-home-page.html?doctor=" + doctorTemp;
- }
- }).showModal();
- }else{
- familyDoctor();
- }
- }else{
- familyDoctor();
- }
- } else if(res.status == 1 || res.status == 2){
- d.close();
- familyDoctor();
- }
- else{
- queryFailedTeacter(res);
- }
- }
- //成功
- function openidSuccess2(res) {
- if (res.status == 200) {
- if(res.data == null || res.data == ""){
- checkTeacter();
- }
- else{
- queryDoctor(res);
- }
- } else {
- queryFailed(res);
- }
- }
- //获取家庭签约的医生信息
- function queryDoctor(res){
- var data={};
- data.doctor = res.data;
- sendPost('patient/family_contract/homepage', data, 'json', 'post', queryFailed, querySuccess3);
- }
- function querySuccess3(res) {
- if (res.status == 200) {
- var doctorName = document.getElementById("name").innerHTML;
- if(res.data.name!=doctorName){
- dialog({
- title:'提示',
- content:'您已存在家庭签约,签约医生为' + res.data.name + '医生,只可以签约一个家庭医生',
- ok: function (){
- wx.closeWindow();
- }
- }).showModal();
- }else{
- familyDoctor();
- }
- }else{
- queryFailed(res);
- }
- }
- function familyDoctor(){
- var doctorName = encodeURI(document.getElementById("name").innerHTML);
- var hospitalName = encodeURI(document.getElementById("hospitalName").innerHTML);
- window.location.href = "sign-agreement.html?doctor=" + doctor + "&doctorName=" + doctorName + "&hospitalName=" + hospitalName;
- }
-
- function queryFailedTeacter(res) {
- d.close();
- if (res && res.msg) {
- dialog({contentType:'tipsbox', skin:'bk-popup' , content:res.msg}).show();
- } else {
- dialog({contentType:'tipsbox', skin:'bk-popup' , content:'加载失败'}).show();
- }
- }
- </script>
- </body>
- </html>
|