浏览代码

厦门i健康患者端代码拷贝

raolu 7 年之前
父节点
当前提交
cae5dfd755
共有 100 个文件被更改,包括 26685 次插入0 次删除
  1. 179 0
      html/yszx/css/add-prescription-consult.css
  2. 1597 0
      html/yszx/css/chatRoom.css
  3. 468 0
      html/yszx/css/consultation.css
  4. 62 0
      html/yszx/css/csx.css
  5. 9 0
      html/yszx/css/doctor-work-hours.css
  6. 388 0
      html/yszx/css/jy-style.css
  7. 239 0
      html/yszx/css/manyidu.css
  8. 234 0
      html/yszx/css/mf-style.css
  9. 31 0
      html/yszx/css/mingyi-homepage.css
  10. 92 0
      html/yszx/css/prescription-consulting.css
  11. 200 0
      html/yszx/css/prescription-selection.css
  12. 121 0
      html/yszx/css/search-bar.css
  13. 457 0
      html/yszx/css/sfdoc-style.css
  14. 370 0
      html/yszx/css/sfp-style.css
  15. 5626 0
      html/yszx/css/sq-style.css
  16. 445 0
      html/yszx/css/ss-style.css
  17. 3989 0
      html/yszx/css/style.css
  18. 485 0
      html/yszx/css/suifang.css
  19. 3114 0
      html/yszx/css/zx-style.css
  20. 143 0
      html/yszx/html/add-consult.html
  21. 208 0
      html/yszx/html/add-prescription-consult.html
  22. 130 0
      html/yszx/html/consulting-doctor.html
  23. 199 0
      html/yszx/html/doctor-consultation.html
  24. 332 0
      html/yszx/html/doctor-work-hours.html
  25. 122 0
      html/yszx/html/manyidu.html
  26. 127 0
      html/yszx/html/mingyi-homepage.html
  27. 153 0
      html/yszx/html/prescription-consulting.html
  28. 179 0
      html/yszx/html/questionaires.html
  29. 116 0
      html/yszx/html/select-consult-doctor.html
  30. 170 0
      html/yszx/html/suifangdiaocha.html
  31. 二进制
      html/yszx/images/backspace.png
  32. 二进制
      html/yszx/images/bofang_icon.png
  33. 二进制
      html/yszx/images/btn_pingjiaxiangqing.png
  34. 二进制
      html/yszx/images/btn_pingjiayisheng.png
  35. 二进制
      html/yszx/images/btn_shangla.png
  36. 二进制
      html/yszx/images/btn_xiala.png
  37. 二进制
      html/yszx/images/gouxuan002_icon.png
  38. 二进制
      html/yszx/images/gouxuan_btn.png
  39. 二进制
      html/yszx/images/gouxuan_btn_pre.png
  40. 二进制
      html/yszx/images/guanbi_btn.png
  41. 二进制
      html/yszx/images/icon_daipingjia.png
  42. 二进制
      html/yszx/images/icon_liangsewujiaoxing.png
  43. 二进制
      html/yszx/images/icon_pingjiacheng.png
  44. 二进制
      html/yszx/images/icon_shiming.png
  45. 二进制
      html/yszx/images/icon_wujiaoxing.png
  46. 二进制
      html/yszx/images/icon_yipingjia.png
  47. 二进制
      html/yszx/images/jianpang_icon.png
  48. 二进制
      html/yszx/images/jiantou_shang_btn.png
  49. 二进制
      html/yszx/images/jiantou_xia_btn.png
  50. 二进制
      html/yszx/images/jiating_btn.png
  51. 二进制
      html/yszx/images/jiating_pre.png
  52. 二进制
      html/yszx/images/jinxingzhong_icon.png
  53. 二进制
      html/yszx/images/manbing_btn.png
  54. 二进制
      html/yszx/images/manbing_pre.png
  55. 二进制
      html/yszx/images/manbingguanli_icon.png
  56. 二进制
      html/yszx/images/manbingguanli_icon_pre.png
  57. 二进制
      html/yszx/images/manbingguanli_xuanzhong_icon.png
  58. 二进制
      html/yszx/images/mingyizixun_icon.png
  59. 二进制
      html/yszx/images/mingyizixun_xuanzhong_icon.png
  60. 二进制
      html/yszx/images/more-tb1.png
  61. 二进制
      html/yszx/images/quxiao_btn.png
  62. 二进制
      html/yszx/images/quxiao_pre.png
  63. 二进制
      html/yszx/images/sanshi_btn.png
  64. 二进制
      html/yszx/images/sanshi_pre.png
  65. 二进制
      html/yszx/images/tuoyuan.png
  66. 二进制
      html/yszx/images/tupian_icon.png
  67. 二进制
      html/yszx/images/tw-add.png
  68. 二进制
      html/yszx/images/wuneirong_icon.png
  69. 二进制
      html/yszx/images/xiaoshiping_icon.png
  70. 二进制
      html/yszx/images/xitongtixing_im_icon.png
  71. 二进制
      html/yszx/images/xuanfu_btn.png
  72. 二进制
      html/yszx/images/xuanfuguanbi_icon.png
  73. 二进制
      html/yszx/images/xuanfutianjia_icon.png
  74. 二进制
      html/yszx/images/xufangshenqing_icon.png
  75. 二进制
      html/yszx/images/xunfangxinxi_icon.png
  76. 二进制
      html/yszx/images/yijieshu_icon.png
  77. 二进制
      html/yszx/images/yisheng_bg.png
  78. 二进制
      html/yszx/images/yiyuanjianzhu_icon.png
  79. 二进制
      html/yszx/images/youshanjiao_bg.png
  80. 二进制
      html/yszx/images/yuyin-2.gif
  81. 二进制
      html/yszx/images/yuyin.gif
  82. 二进制
      html/yszx/images/yuyin2_icon.png
  83. 二进制
      html/yszx/images/yuyin3.gif
  84. 二进制
      html/yszx/images/yuyin4_icon.png
  85. 二进制
      html/yszx/images/yuyin_icon.png
  86. 二进制
      html/yszx/images/yuying_icon.png
  87. 二进制
      html/yszx/images/yuying_icon5.png
  88. 二进制
      html/yszx/images/zixunjihua_icon.png
  89. 二进制
      html/yszx/images/zuoshanjiao_bg.png
  90. 259 0
      html/yszx/js/add-prescription-consult.js
  91. 1317 0
      html/yszx/js/consulting-doctor.js
  92. 1077 0
      html/yszx/js/doctor-consultation.js
  93. 832 0
      html/yszx/js/doctor-consultation_new.js
  94. 560 0
      html/yszx/js/manyidu.js
  95. 404 0
      html/yszx/js/mingyi-homepage.js
  96. 1213 0
      html/yszx/js/prescription-consulting.js
  97. 264 0
      html/yszx/js/prescription-selection.js
  98. 214 0
      html/yszx/js/questionaires.js
  99. 560 0
      html/yszx/js/sanshitijiao.js
  100. 0 0
      html/yszx/js/select-consult-doctor.js

+ 179 - 0
html/yszx/css/add-prescription-consult.css

@ -0,0 +1,179 @@
.bgc-f2f4f6{
    background-color: #f2f4f6;
}
.c-a8a8a8{
    color: #a8a8a8;
}
.h40{
    height: 40px;
} 
.lh40{
    line-height: 40px;
}
.header-icon{
    vertical-align: baseline;
    margin-bottom: -3px;
}
.arrow-r{
    position: absolute;
    top: 50%;
    right: 10px;
    margin-top: -5px;
    display: inline-block;
    width: 10px;
    height: 10px;
    border: solid #909090;
    border-width: 2px 2px 0 0;
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
}
.arrow-d{
    position: absolute;
    top: 50%;
    right: 0px;
    margin-top: -8px;
    display: inline-block;
    width: 10px;
    height: 10px;
    border: solid #909090;
    border-width:0 2px 2px 0;
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
}
.box{
    display: -webkit-box;
    display: box;
    background-color: #fff;
    padding-left: 10px;
    padding-right: 10px;
}
.box-info{
    -webkit-box-flex: 1;
    box-flex: 1;
    display: box;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-box-pack: center;
}
.word-wrap{
    word-wrap: break-word;
}
.c-list li.ml0{
    margin-left: 0;
}
.c-list .c-list-info.pr0{
    padding-right: 0;
}
textarea{
    height: 100px;
    font-size: 14px; 
    padding: 7px 10px 22px;
    width: calc(100% - 22px);
    border-color: #e1e1e1;
    margin: 0;
}
#commit.active,
#commit:hover{
    background-color:#74bf00;
}
.num-box{
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 100%;
    text-align: right;
}
.text-tag{
    float: left;
    background-color: #fff;
    border: 1px solid #74bf00;
    color: #74bf00;
    padding: 5px 15px;
    border-radius: 17px;
    margin-right: 10px;
    font-size: 14px;
    margin-bottom: 10px;
}
.text-tag.active{
    background-color:#74bf00;
    color: #fff;
}
input[type="text"]{
    border: none;
    margin: 0;
    padding: 0;
    height: inherit;
}
.mui-views,
.mui-view,
.mui-pages,
.mui-page,
.mui-page-content {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background-color: #efeff4;
}
.mui-pages {
    top: 0px;
    height: auto;
}
.mui-page.mui-transitioning {
    -webkit-transition: -webkit-transform 300ms ease;
    transition: transform 300ms ease;
}
.mui-page-left {
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
}
.mui-ios .mui-page-left {
    -webkit-transform: translate3d(-20%, 0, 0);
    transform: translate3d(-20%, 0, 0);
}
.mui-navbar .mui-btn-nav {
    -webkit-transition: none;
    transition: none;
    -webkit-transition-duration: .0s;
    transition-duration: .0s;
}
.mui-navbar .mui-bar .mui-title {
    display: inline-block;
    width: auto;
}
.mui-page-shadow {
    position: absolute;
    right: 100%;
    top: 0;
    width: 16px;
    height: 100%;
    z-index: -1;
    content: '';
}
.mui-page-shadow {
    background: -webkit-linear-gradient(left, rgba(0, 0, 0, 0) 0, rgba(0, 0, 0, 0) 10%, rgba(0, 0, 0, .01) 50%, rgba(0, 0, 0, .2) 100%);
    background: linear-gradient(to right, rgba(0, 0, 0, 0) 0, rgba(0, 0, 0, 0) 10%, rgba(0, 0, 0, .01) 50%, rgba(0, 0, 0, .2) 100%);
}
.mui-navbar-inner.mui-transitioning,
.mui-navbar-inner .mui-transitioning {
    -webkit-transition: opacity 300ms ease, -webkit-transform 300ms ease;
    transition: opacity 300ms ease, transform 300ms ease;
}
.mui-page {
    display: none;
}
.mui-pages .mui-page {
    display: block;
}
a:active{color:#ccc}

+ 1597 - 0
html/yszx/css/chatRoom.css

@ -0,0 +1,1597 @@
@charset "utf-8";
/* CSS Document */
body,
html {
	background: #f3f3f3;
}
.c-ccc {
	color: #ccc;
}
.ax-naills span.axills-boxer {
	display: inline-block;
	padding: 3px 5px;
	background: #f5f5f5;
	color: #999999;
	font-size: 10px;
	border-radius: 5px;
}
.ax-naills span.axills-right {
	background: #fff;
	color: #17b3ec;
	border: 1px solid #17b3ec;
	padding: 3px 5px;
	border-radius: 5px;
	font-size: 10px;
}
.ax-naills .c-btn-tiny {
	padding: 3px 15px;
	border-color: #17b3ec;
	color: #17b3ec;
}
.ax-naills .c-btn-tiny-grey {
	padding: 3px 15px;
	border-color: #C0C0C0;
	color: #C0C0C0;
	background-color: #E5E5E5;
}
.ax-naills span.ax-longboxer {
	background: #f5f5f5;
	color: #999999;
	font-size: 10px;
	padding: 3px 10px;
	display: inline-block;
	max-width: 100%;
	box-sizing: border-box;
	border-radius: 5px;
}
.c-17b3ec {
	color: #17b3ec;
}
.ax-naills span.ax-qybox {
	display: inline-block;
	font-size: 10px;
	padding: 2px 5px;
	border-radius: 5px;
	font-size: 10px;
}
.ax-naills span.ax-qybox.b-ff9555 {
	color: #ff9555;
	border: 1px solid #ff9555;
}
.ax-naills span.ax-qybox.b-2ddc46 {
	color: #2ddc46;
	border: 1px solid #2ddc46;
}
.ax-naills span.ax-qybox.b-2d8cdc {
	color: #2d8cdc;
	border: 1px solid #2d8cdc;
}
.c-4bd663 {
	color: #4bd663;
}
.tioper-hd {
	line-height: 33px;
}
.bgc-f7f7f7 {
	background: #f7f7f7;
}
.bgc-ebebeb {
	background: #ebebeb;
}
#serv-liang th {
	background: #f4f7fa;
	vertical-align: middle;
	text-align: center;
	border-right: 1px solid #e1e1e1;
	border-bottom: 1px solid #e1e1e1;
	padding: 10px 5px;
}
#serv-liang td {
	background: #fff;
	vertical-align: middle;
	text-align: center;
	border-right: 1px solid #e1e1e1;
	border-bottom: 1px solid #e1e1e1;
	padding: 10px 5px;
	color: #5b5b5b;
}
#serv-liang td.first {
	color: #909090;
}
.c-list .c-list-info > p.c-f12 {
	font-size: 12px;
}
.tanper .c-btn {
	padding: 5px 5px;
}
.tanper {
	background: #fbfcfc;
}
/* 医患沟通开始 */
.c-chat-box {
	border: none;
	padding-left: 2%;
	padding-right: 2%;
}
.time-tips {
	margin: 10px 0 0 0;
	text-align: center;
	clear: both;
}
.time-tips span {
	position: relative;
	display: inline-block;
	padding: 0 60px;
	color: #aeaeae;
	font-size: 15px;
}
.time-tips span:before,
.time-tips span:after {
	position: absolute;
	content: "";
	display: block;
	width: 50px;
	height: 1px;
	background: #e6e4e1;
	top: 50%;
}
.time-tips span:before {
	left: 0;
}
.time-tips span:after {
	right: 0;
}
.chat-left,
.chat-right {
	clear: both;
	overflow: hidden;
	padding: 10px 0;
}
.chat-left > dt,
.chat-right > dt {
	width: 40px;
	height: 40px;
}
.chat-left > dt {
	float: left;
	margin-right: 15px;
}
.chat-right > dt {
	float: right;
	margin-left: 15px;
}
.chat-left > dt img,
.chat-right > dt img {
	width: 40px;
	height: 40px;
	border-radius: 50%;
}
.chat-left > dd,
.chat-right > dd {
	position: relative;
	min-height: 18px;
	font-size: 15px;
	display: inline-block;
	max-width: 80%;
	background: #fff;
	border: 1px solid #e1e1e1;
	border-radius: 6px;
	padding: 8px 10px;
	box-shadow: 1px 1px 1px rgba(0, 0, 0, .1);
}
.chat-left > dd {
	float: left;
	white-space: pre-wrap;
	word-wrap: break-word;
}
.chat-right > dd {
	float: right;
	background: #bce0ff;
	border: 1px solid #81bdf7;
	white-space: pre-wrap;
	word-wrap: break-word;
}
.chat-left > dd:after {
	content: "";
	position: absolute;
	top: 14px;
	left: -6px;
	display: block;
	width: 8px;
	height: 8px;
	background: #fff;
	border-color: #e1e1e1;
	border-style: solid;
	border-width: 1px 0 0 1px;
	-webkit-transform: rotate(-45deg);
	-moz-transform: rotate(-45deg);
	transform: rotate(-45deg);
}
.chat-right > dd:after {
	content: "";
	position: absolute;
	top: 14px;
	right: -6px;
	display: block;
	width: 8px;
	height: 8px;
	background: #bce0ff;
	border-color: #81bdf7;
	border-style: solid;
	border-width: 1px 0 0 1px;
	-webkit-transform: rotate(135deg);
	-moz-transform: rotate(135deg);
	transform: rotate(135deg);
}
.chat-left > dd p img,
.chat-right > dd p img {
	max-width: 150px;
	max-height: 150px;
	margin: 5px 0;
}
.chat-msg-box {
	bottom: 0;
	left: 0
}
.chat-msg-box .input-group .form-control {
	height: 32px;
}
.pull-more {
	text-align: center;
	color: #5b5b5b;
	font-size: 14px;
	padding: 14px 0;
}
/* 医患沟通结束 */
.pt13 {
	padding-top: 13px;
}
.jt-boradius {
	border-radius: 5px;
}
.bot-pper a.c-btn {
	border: 1px dashed #999999;
	text-align: center;
	display: block;
	color: #666666;
	font-size: 16px;
	border-radius: 5px;
}
.c-999999 {
	color: #999999;
}
.lh40 {
	line-height: 40px;
}
/***/
.call-con {
	clear: both;
	overflow: hidden;
}
.phone-book,
.doctor-list,
.ill-case {
	width: 100%;
	background: #fff;
}
.phone-book li,
.doctor-list li,
.ill-case li {
	width: 100%;
	overflow: hidden;
	border-bottom: 1px solid #e1e1e1;
}
.contacts {
	position: relative;
	height: 65px;
	transform: translateX(0);
	transition: all 0.3s;
	-webkit-transform: translateX(0);
	-webkit-transition: all 0.3s;
	-moz-transform: translateX(0);
	-moz-transition: all 0.3s;
}
.contact-sin {
	position: absolute;
	top: 50%;
	padding: 0 15px 0 15px;
	width: 100%;
	box-sizing: border-box;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	transform: translateY(50%);
	-webkit-transform: translateY(-50%);
	-moz-transform: translateY(-50%);
}
.contact-sin dt {
	position: absolute;
	width: 40px;
}
.contact-sin dd {
	float: left;
	min-height: 40px;
	width: 100%;
}
.contact-sin dd h4 {
	font-size: 15px;
	display: inline-block;
	padding-right: 20px;
	line-height: normal;
	vertical-align: middle;
	position: relative;
	box-sizing: border-box;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
}
.contact-sin h4 .iconfont {
	position: absolute;
	top: 50%;
	right: 0;
	margin-top: -9px;
	font-size: 14px;
}
.contact-sin dt a,
.doctor-sin dt a {
	display: block;
}
.doctors {
	position: relative;
	height: 90px;
	padding-right: 60px;
	box-sizing: border-box;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
}
.doctor-sin {
	position: absolute;
	top: 50%;
	padding: 0 60px 0 15px;
	width: 100%;
	box-sizing: border-box;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	transform: translateY(50%);
	-webkit-transform: translateY(-50%);
	-moz-transform: translateY(-50%);
}
.doctors:after {
	position: absolute;
	top: 50%;
	right: 60px;
	content: "";
	display: block;
	width: 1px;
	height: 54px;
	background: #e1e1e1;
	z-index: 100;
	margin-top: -27px;
}
.apply:after {
	right: 75px;
	background: rgba(0, 0, 0, 0);
}
.apply .doctor-sin {
	padding-right: 70px;
}
@media screen and (min-width:360px) {
	.apply .doctor-sin {
		padding-right: 75px;
	}
}
.doctor-sin dt {
	position: absolute;
	width: 54px;
	top: 50%;
	transform: translateY(-50%);
	-webkit-transform: translateY(-50%);
	-moz-transform: translateY(-50%);
}
.doctor-sin dd {
	float: left;
	margin-left: 69px;
	padding: 5px 0;
	min-height: 54px;
	box-sizing: border-box;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
}
.doctor-sin dd h4 {
	font-size: 18px;
	display: inline-block;
	padding: 0 0 4px 0;
	line-height: normal;
	vertical-align: middle;
	position: relative;
	box-sizing: border-box;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
}
.doctor-sin dd p {
	white-space: pre-wrap;
	word-wrap: break-word;
	max-height: 40px;
	overflow: hidden;
}
.scrollLeft {
	transform: translateX(-72px);
	transition: all 0.3s;
	-webkit-transform: translateX(-72px);
	-webkit-transition: all 0.3s;
	-moz-transform: translateX(-72px);
	-moz-transition: all 0.3s;
}
.call-phone {
	position: absolute;
	display: inline-block;
	width: 40px;
	height: 40px;
	right: 10px;
	top: 50%;
	margin-top: -20px;
	text-align: center;
	line-height: 40px;
}
.call-phone .iconfont {
	font-size: 30px;
	color: #4dcd70;
}
.apply-btn {
	position: absolute;
	display: inline-block;
	width: 50px;
	right: 15px;
	top: 50%;
	margin-top: -14px;
	text-align: center;
	line-height: 40px;
}
.del-contact {
	position: absolute;
	display: inline-block;
	width: 72px;
	height: 100%;
	background: #ff3b2f;
	left: 100%;
	top: 0;
	text-align: center;
	line-height: 65px;
	color: #fff;
	font-size: 18px;
}
.call-tips {
	list-style: decimal;
	list-style-position: outside;
	padding-left: 15px;
}
.call-tips li {
	padding-bottom: 5px;
}
.no-data {
	width: 100%;
	font-size: 12px;
	color: #909090;
	text-align: center;
	padding: 30px 0;
}
.no-data-img {
	width: 40%;
	max-width: 320px;
	margin: 0 auto;
}
.no-data-icon {
	width: 100%;
	height: 0;
	padding-bottom: 100%;
	background: url(http://ued.yihu.cn/htmlCode/健康之路APP/诊间咨询/images/nodata.png) no-repeat 0 0;
	background-size: 100% auto;
}
.no-data p {
	font-size: 14px;
	padding-top: 10px;
}
em.online,
em.offline {
	display: inline-block;
	font-size: 12px;
	background: #4dcd70;
	color: #fff;
	border-radius: 2px;
	padding: 0 2px;
	line-height: 14px;
	vertical-align: middle;
}
em.offline {
	background: #909090;
}
/**/
.header-menus {
	right: 15px;
	top: 0;
	position: absolute;
}
.header-menus a {
	color: #5cb4ff;
}
.referral-pop {
	width: 250px;
	position: fixed;
	left: 50%;
	margin-left: -125px;
	top: 50%;
	margin-top: -80px;
	z-index: 600;
}
.referral-pop-hold {
	position: relative;
	z-index: 631;
	background: #fff;
	border-radius: 7px;
	overflow: hidden;
}
.referral-pop-hold a {
	display: block;
	line-height: 55px;
	text-align: center;
	color: #666;
	border-bottom: 1px solid #f2f2f2;
	font-size: 16px;
}
.referral-pop-hold a.cancle {
	color: #999;
	border-bottom: none;
}
.referral-pop-mb {
	width: 100%;
	height: 100%;
	position: fixed;
	left: 0;
	top: 0;
	background: rgba(0, 0, 0, .5);
	z-index: 600;
}
.juris-close {
	position: absolute;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, .7);
	left: 0;
	top: 0;
	z-index: 600;
	color: #fff;
	text-align: center;
	display: box;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-box-pack: center;
	font-size: 18px;
}
.seval-hold {
	position: relative;
	padding-left: 33px;
	font-size: 12px;
	color: #999;
	margin-top: 6px;
}
.seval-tit {
	position: absolute;
	left: 0;
	top: 5px;
}
.seval-con {
	background: #eee;
	padding: 7px 10px;
	border-radius: 5px;
}
.star-img {
	vertical-align: middle;
	margin-bottom: 4px;
}
.tw-add {
	margin: 0 7px 0 2px;
	text-align: center;
}
.tw-add-detail {
	padding: 7px 15px;
	border-top: 1px solid #e1e1e1;
	margin-top: 10px;
}
.tw-add-detail li {
	display: block;
	width: 25%;
	text-align: center;
	float: left;
	color: #909090;
}
.tw-add-detail li img {
	margin: 5px;
}
.ask-lab-lage {
	width: 100%;
	overflow: auto;
	border-bottom: 1px solid #e1e1e1;
}
.ask-lab-lage ul {
	display: block;
	width: 400px;
	background: #fff;
}
.ask-lab-lage li {
	display: block;
	width: auto;
	padding: 0 2px;
	float: left;
	line-height: 40px;
	text-align: center;
	position: relative;
	margin: 0 12px;
}
.ask-lab-lage li a {
	margin-top: 5px;
	color: #333;
}
.ask-lab-lage li.curr a {
	color: #17b3ec;
}
.ask-lab-lage li.curr:before {
	content: '';
	display: block;
	width: 100%;
	height: 2px;
	background: #17b3ec;
	position: absolute;
	left: 0;
	bottom: 0;
}
.appeal-texa {
	background: #fff;
	border: none;
	width: 100%;
	padding: 10px;
	height: 150px;
	font-size: 14px;
}
.mui-toast-container {
	position: fixed;
	z-index: 9999;
	bottom: 50px;
	width: 100%;
	-webkit-transition: opacity .8s;
	transition: opacity .8s;
	opacity: 0
}
.mui-toast-container.mui-active {
	opacity: 1
}
.mui-toast-message {
	font-size: 14px;
	width: 270px;
	margin: 5px auto;
	padding: 5px;
	text-align: center;
	color: #000;
	border-radius: 7px;
	background-color: #d8d8d8
}
.win-broadcast {
	position: fixed;
	outline: 0px;
	top: 50%;
	left: 50%;
	margin: -113px 0 0 -135px;
	width: 269px;
	height: 226px;
	border-radius: 5px;
	z-index: 100;
}
.win-broadcast .bg {
	background-color: #fff;
	width: 269px;
	height: 226px;
	border-radius: 5px;
	display: block;
}
.win-broadcast .broadcast {
	background: url(../images/broadcast.png) no-repeat 0 -2px;
	width: 85px;
	height: 85px;
	display: block;
	background-size: 100%;
	position: absolute;
	top: 67px;
	left: 34%;
	border-radius: 50%;
	z-index: 99;
}
.win-broadcast .word {
	position: absolute;
	bottom: 0;
	border-radius: 5px;
	border-top: 1px solid #e1e1e1;
	border-top-right-radius: 0;
	border-top-left-radius: 0;
	color: #666;
	background-color: #fff;
	height: 35px;
	width: 100%;
	line-height: 35px;
}
.win-broadcast .word.title {
	top: 0;
	border-top-left-radius: 5px;
	border-top-right-radius: 5px;
}
.delete {
	display: block;
	position: absolute;
	height: 12px;
	width: 12px;
	border-radius: 50%;
	background-color: #fff;
	right: 6px;
	top: 6px;
	z-index: 10;
	text-align: center;
	line-height: 9px;
	color: #919191;
	font-size: 12px;
}
.broadcast-shadow-panel {
	width: 100%;
	position: absolute;
	overflow: hidden;
	z-index: 10;
	top: 0;
	background-color: rgba(0, 0, 0, .35);
}
/*动画*/
.win-broadcast .broadcast {
	animation: broadcast 2s infinite;
	-webkit-animation: broadcast 2s infinite;
	/* Safari 和 Chrome */
}
@-webkit-keyframes broadcast {
	0% {
		background-color: #ccf5ff;
		box-shadow: 0 0 0 0px #ccf5ff, 0 0 0 0 #c3e9f2, 0 0 0 0px #e9fffe, 0 0 0 0 #ddf5f4;
	}
	25% {
		background-color: #ccf5ff;
		box-shadow: 0 0 0 5px #ccf5ff, 0 0 0 1px #c3e9f2, 0 0 0 20px #e9fffe, 0 0 0 1px #ddf5f4;
	}
	50% {
		background-color: #ccf5ff;
		box-shadow: 0 0 0 10px #ccf5ff, 0 0 0 1px #c3e9f2, 0 0 0 25px #e9fffe, 0 0 0 1px #ddf5f4;
	}
	100% {
		background-color: #ccf5ff;
		box-shadow: 0 0 0 15px #ccf5ff, 0 0 0 1px #c3e9f2, 0 0 0 30px #e9fffe, 0 0 0 1px #ddf5f4;
	}
}
/* 12-18 */
.nxz-voice {
	line-height: 21px;
	text-align: right;
}
.nzx-tb {
	display: inline-block;
	width: 15px;
	height: 21px;
	background: url(../images/icon-broadcast.png) no-repeat;
	background-size: 100% auto;
	-webkit-background-size: 100% auto;
	-moz-background-size: 100% auto;
	-ms-background-size: 100% auto;
	vertical-align: middle;
}
.win-broadcast-mb {
	width: 100%;
	height: 100%;
	position: fixed;
	left: 0;
	top: 0;
	z-index: 10;
	background: rgba(0, 0, 0, .35);
	display: none;
}
.myorder li .vlname {
	line-height: 20px;
	border-bottom: 1px solid #f2f2f2;
	position: relative;
	padding-right: 15px;
	padding-top: 10px;
	padding-bottom: 10px;
}
.pa-icon-dagou {
	width: 20px;
	height: 20px;
	font-size: 13px;
	display: block;
	text-align: center;
	border-radius: 100%;
	border: 1px solid #e1e1e1;
}
.pa-icon-dagou.on {
	background: #17b3ec;
	color: #fff;
}
.ask-record li {
	background: #fff;
	position: relative;
	padding: 10px 35px 10px 45px;
	border-top: 1px solid #f2f2f2;
	color: #909090;
}
.ask-record li .ar-check {
	position: absolute;
	left: 10px;
	top: 50%;
	margin-top: -10px;
}
.ask-record li .ar-check i {
	display: block;
	width: 18px;
	height: 18px;
	border: 1px solid #e1e1e1;
	border-radius: 50%;
}
.ask-record li .ar-check i.checked {
	background: #17b3ec;
	border: 1px solid #17b3ec;
}
.ask-record li .ar-check i.checked:before {
	content: "\d61a";
	position: absolute;
	top: -12px;
	left: 3px;
	color: #fff;
	font-size: 12px;
}
.ask-record li .arrow-right {
	position: absolute;
	right: 12px;
	top: 50%;
	margin-top: -6px;
	transform: rotate(135deg);
	-webkit-transform: rotate(135deg);
	transition: all .3s ease;
}
.ask-record li .arrow-right.ashow {
	transform: rotate(-45deg);
	-webkit-transform: rotate(-45deg);
	margin-top: -3px;
}
.view-more {
	display: inline-block;
	width: 100%;
	text-align: center;
	padding: 15px 0 10px 0;
}
.view-more a {
	/*color: #5b5b5b;*/
	color: #17b3ec;
}
.time-tips span{
	padding: 2px 10px;
	border-radius: 15px;
	color: #aaa;
	/*background-color: #E1E1E1;*/
	font-size: 12px;
}
.chat-left, .chat-right {
	display: -webkit-box;
	clear: both;
	overflow: hidden;
	padding: 10px 0;
}
.chat-right{
	-webkit-box-direction: reverse;
}
.chat-left > dt{
	float: none;
}
.chat-right > dt {
	float: none;
}
.chat-right .word-bread{
	text-align: left;
	/*float: right;*/
	background: #17b3ec;
	border: 1px solid #17b3ec;
	white-space: pre-wrap;
	word-wrap: break-word;
	
	position: relative;
	min-height: 18px;
	font-size: 15px;
	display: inline-block;
	max-width: 80%;
	border-radius: 6px;
	padding: 8px 10px;
	box-shadow: 1px 1px 1px rgba(0, 0, 0, .1);
}
.chat-right > div.c-content{
	-webkit-box-flex: 1;
	text-align: right;
}
.chat-right .word-bread:after{
	content: "";
	position: absolute;
	top: 5px;
	right: -5px;
	display: block;
	width: 8px;
	height: 8px;
	background: #17b3ec;
	border-color: #E1E1E1;
	border-style: solid;
	border-width: 1px 0 0 1px;
	-webkit-transform: rotate(135deg);
	-moz-transform: rotate(135deg);
	transform: rotate(135deg);
}
.chat-left .word-bread{
	/*float: left;*/
	white-space: pre-wrap;
	word-wrap: break-word;
	
	position: relative;
	min-height: 18px;
	font-size: 15px;
	display: inline-block;
	max-width: 80%;
	background: #fff;
	border: 1px solid #e1e1e1;
	border-radius: 6px;
	padding: 8px 10px;
	box-shadow: 1px 1px 1px rgba(0, 0, 0, .1);
}
.chat-left > div.c-content{
	-webkit-box-flex: 1;
	text-align: left;
}
.chat-left .word-bread:after{
	content: "";
	position: absolute;
	top: 5px;
	left: -5px;
	display: block;
	width: 8px;
	height: 8px;
	background: #fff;
	border-color: #e1e1e1;
	border-style: solid;
	border-width: 1px 0 0 1px;
	-webkit-transform: rotate(-45deg);
	-moz-transform: rotate(-45deg);
	transform: rotate(-45deg);
}
.chat-left span.name, .chat-right span.name{
	display: block;
	height: 24px;
}
.time-tips span:before, .time-tips span:after{
	height: 0!important;
}
.zi2{
	z-index: 2;	
}
.doc-name {
	font-size: 15px;
}
/*#contain{position: absolute; width: 95%; top:45px; bottom: 52px; overflow-y: auto;}*/
@media only screen and (max-width: 640px) {
	.doc-name {
		font-size: 13px; 
	}
}
.chat-right.checkbox:after, .chat-left.checkbox:before{
	display: block;
	content: '√';
	line-height: 24px;
	width: 22px;
	height: 22px;
	border: 1px solid #ccc;
	border-radius: 50%;
	margin-right: 10px;
	color: #f3f3f3;
	text-align: center;
	font-size: 16px;
	box-sizing: border-box;
}
.chat-right.checked:after, .chat-left.checked:before{
	background: #17b3ec;
	border: none;
}
.log-oper{
	position: absolute;
	background: rgba(20, 20, 20, .8);
	border-radius: 8px;
	color: #fff;
	z-index: 10000;
	display: -webkit-box;
	display: none;
}
.log-oper li{
	margin: 8px 0px;
	padding: 0px 8px;
	font-size: 14px;
	border-left: 1px solid #fff;
}
.log-oper li:first-child{
	border-left:none ;
}
.log-oper div{
	position: absolute;
	/*width: 10px;
	height: 10px;
	background: transparent;*/
	/*-webkit-transform: rotate(45deg);*/
	top: 37px;
	
	border-left: 8px solid transparent;
	border-right: 8px solid transparent;
	border-top: 8px solid rgba(20, 20, 20, .8);
	border-bottom: 8px solid transparent;
}
.footer-bar{
	z-index: 2;
	bottom: 0;
	left: 0;
	width: 100%;
	position: fixed;
	border-top-width: 1px;
	border-color: #e1e1e1;
	border-style: solid;
	background-color: #fff;
	display: -webkit-box;
}
.c-hide{
	display: none;	
}
.footer-bar li{
	margin: 10px 0px;
	-webkit-box-flex: 1;
	text-align: center;
	line-height: 27px;
	font-size: 16px;
	color: #333;
}
.footer-bar li:first-child{
	border-right: 1px solid #e1e1e1;	
}
.footer-bar li > img{
	width: 22px;
	margin-right: 10px;
}
.header-group{
	line-height: 20px;
}
.btn-cancel{
	color: #fff;
	font-size: 16px;
	display: none;
}
.tw-add{
	width: 50px;
	margin: 3px 5px 3px 0;
}
.input-group input{
	margin-bottom: 0;
}
.c-main .c-btn{
	padding-top: 5px;
	padding-bottom: 5px;
}
.chat-right  .wb-img{
	padding: 2px;
}
.wb-img img{
	position: relative;
	z-index: 2;
	border-radius: 6px;
}
.xt-xiaoxi{
	background: #888;
    color: #fff!important;
    padding: 4px 10px!important;
    border-radius: 8px!important;
}
.yy-hold{
	background: #ccc;
}
.rprogress {
	position: absolute;
	left: 50%;
	top: 50%;
	width: 140px;
	height: 140px;
	margin-left: -70px;
	margin-top: -70px;
	background-repeat: no-repeat;
	background-position: center center;
	background-size: 30px 30px;
	background-color: rgba(0, 0, 0, 0.7);
	border-radius: 5px;
	display: none;
	-webkit-transition: .15s;
	z-index: 100;
}
.rschedule {
	background: url("../images/yuying_icon5.png");
	background-repeat: no-repeat;
	background-position: center center;
	background-size: 30px 50px;
	width: 46px;
	height: 50px;
	position: absolute;
	left: 30px;
	top: 40px;
}
.r-sigh{
	display: none;
	border-radius: 50px;
	box-shadow: 0 0 15px #2187e7;
	width: 46px;
	height: 46px;
	position: absolute;
	left: 50%;
	top: 50%;
	margin-left: -23px;
	margin-top: -23px;
	text-align: center;
	line-height: 46px;
	font-size: 40px;
	font-weight: bold;
	color: #2187e7;
}
.rprogress-sigh{
	background-image: none !important;
}
.rprogress-sigh .rschedule{
	display: none !important;
}
.rprogress-sigh .r-sigh{
	display: block !important;
}
.rsalert {
	font-size: 12px;
	color: #bbb;
	text-align: center;
	position: absolute;
	border-radius: 5px;
	width: 130px;
	margin: 5px 5px;
	padding: 5px;
	left: 0px;
	bottom: 0px;
}
.chat-right .audio{
	padding-right: 30px;
	background: url("../images/yuyin4_icon.png") no-repeat -20px 0 #17b3ec;
	background-size: 18px;
	-webkit-background-size: 18px;
	-moz-background-size: 18px;
	-o-background-size: 18px;
	background-position:  90% 50%;
}
.chat-right .audio.active{
	background: url("../images/yuyin3.gif") no-repeat -20px 0 #17b3ec;
	background-size: 18px;
	-webkit-background-size: 18px;
	-moz-background-size: 18px;
	-o-background-size: 18px;
	background-position:  90% 50%;
}
.chat-right .soundWav{
	height: 20px;display: -webkit-box;-webkit-box-direction: normal;
}
.chat-right .soundWavT{
	display: block;margin-left: 10px;
}
.chat-right .soundWav img{
	position: relative;
	width: 40px;
	height: 30px;
	top: -5px;
}
.chat-left .audio{
	padding-left: 30px;
	background: url("../images/yuyin_icon.png") no-repeat #fff;
	background-size: 18px;
	-webkit-background-size: 18px;
	-moz-background-size: 18px;
	-o-background-size: 18px;
	background-position:  10% 50%;
}
.chat-left .audio.active{
	background: url("../images/yuyin-2.gif") no-repeat #fff;
	background-size: 18px;
	-webkit-background-size: 18px;
	-moz-background-size: 18px;
	-o-background-size: 18px;
	background-position:  10% 50%;
}
.chat-left .soundWav{
	height: 20px;display: -webkit-box;-webkit-box-direction: reverse;
}
.chat-left .soundWavT{
	display: block;margin-right: 10px;
}
.chat-left .soundWav img{
	position: relative;
	width: 40px;
	height: 30px;
	top: -5px;
}
.volumn {
    display: inline-block;
    height: 30px;
    line-height: 40px;
    text-align: center;
    position: relative;
    vertical-align: bottom;
    left: 84px;
	top: 60px;
}
.volumn div {
    height: 3px;
    margin-bottom: 0;
    background-color: white;
    margin-right: -12px;
    margin-bottom: 6px;
}
.volumn .line1 {
	width: 10px;
    -webkit-animation: line1 2s infinite ease-in-out alternate;
}
.volumn .line2 {
	width: 14px;
    -webkit-animation: line2 2s infinite ease-in-out alternate;
}
.volumn .line3 {
	width: 18px;
    -webkit-animation: line3 2s infinite ease-in-out alternate;
}
.volumn .line4 {
	width: 22px;
    /*-webkit-animation: line 0.6s infinite 1.8s ease-in-out alternate;*/
    /*-webkit-animation-delay: 3.6s;*/
}
@-webkit-keyframes line1 {
    0% {
         opacity: 0;
    }
    41%{
    	 opacity: 0;
    }
    42%{
    	 opacity: 1;
    }
    55% {
         opacity: 1;
    }
    56% {
         opacity: 0;
    }
    100% {
         opacity: 0;
    }
}
@-webkit-keyframes line2 {
    0% {
         opacity: 0;
    }
    27%{
    	 opacity: 0;
    }
    28%{
    	 opacity: 1;
    }
    73% {
         opacity: 1;
    }
    74% {
         opacity: 0;
    }
    100% {
         opacity: 0;
    }
}
@-webkit-keyframes line3 {
    0% {
         opacity: 0;
    }
    13%{
    	 opacity: 0;
    }
    14%{
    	 opacity: 1;
    }
    84% {
         opacity: 1;
    }
    85% {
         opacity: 0;
    }
    100% {
         opacity: 0;
    }
}
.input-msg{
    min-height: 32px;
    width: 100%;
    line-height: 22px;
    overflow-x: hidden;
    overflow-y: auto;
    /*_overflow-y: visible;
    _height: 32px;*/
    max-height: 120px;
    background-color: #fff;
    background-image: none;
    border: 1px solid #e1e1e1;
    padding: 5px 10px;
    font-size: 14px;
    border-radius: 4px;
    -webkit-user-select: auto;
    user-modify: read-write-plaintext-only;
    -webkit-user-modify: read-write-plaintext-only
}
.preview-video{padding: 6px 0px;max-height: 100px;position: relative;}
.preview-video .video-img-right{width: 135px !important;height: 100px;border-radius: 15px;border-bottom-right-radius: 0px;border-top-right-radius: 0px;}
.preview-video .video-img-left{width: 135px !important;height: 100px;border-radius: 15px;border-bottom-left-radius: 0px;border-top-left-radius: 0px;}
.preview-video .bofang-icon-right{position: absolute;right: 65px;bottom: 50%;width: 25px !important;height: 25px;margin-right: -12px;top: 40px;z-index: 100;}
.preview-video .bofang-icon-left{position: absolute;left: 65px;bottom: 50%;width: 25px !important;height: 25px;margin-right: -12px;top: 40px;z-index: 100;}
.preview-video .shichang-time-right{position: absolute;right: 27px;bottom: 50%;width: auto;height: 18px;margin-right: -12px;top: 82px;font-size: 12px;color: #fff;}
.preview-video .shichang-time-left{position: absolute;left: 5px;bottom: 50%;width: auto;height: 18px;margin-left: 90px;top: 82px;font-size: 12px;color: #fff}
.preview-video .jianjiao-icon-right{top: 6px;z-index: 20;position: absolute;right: 12px;width: 20px !important;height: 100px;margin-right: -12px;}
.preview-video .jianjiao-icon-left{top: 6px;z-index: 20;position: absolute;left: 12px;width: 20px !important;height: 100px;margin-left: -12px;}
/*添加文章类消息显示样式*/
.chat-left .word-article{
    width: 82%;
    max-width: 82%;
    text-align: left;
}
.chat-left .word-article:after{background: #fff;}
.chat-left .article-content{
    -webkit-box-direction: reverse;
    display: -webkit-box;
    height: 80px;
    padding: 5px 0px;
    overflow: hidden;
}
.chat-left .article-content>img{
    width: 60px !important;
    height: 60px;
    margin-top: 3px;
}
.chat-left .article-content>div{
    -webkit-box-flex: 1;
    overflow: hidden;
    padding: 1px 0px 0px 5px;
}
.xzzx{
    position: fixed;
    bottom: 0;
    left:0;
    width: 100%;
    height: 60px;
    padding:10px;
    text-align: center;
}
.xzzx span{
    display: inline-block;
    color: #fff;
    font-size: 16px;
    background-color: #74bf00;
    width: 100%;
    border-radius: 5px;
    height: 40px;
    line-height: 40px;
}
.xzzx img{
    vertical-align: middle;
    margin-bottom: 3px;
    margin-right: 5px;
}

+ 468 - 0
html/yszx/css/consultation.css

@ -0,0 +1,468 @@
@charset "utf-8";
.vertical-line {
	top: 0;
	left: 21px;
	border-left: 1px solid #B9B9B9;
	position: absolute;
	height: 100%;
}
.s-bc-12B7F5 {
	background-color: #12B7F5;
}
.s-bc-75BF00 {
	background-color: #75BF00;
}
.s-bc-FF9526 {
	background-color: #FF9526;
}
.f-fr {
	float: right;
}
.ul-consultation li,
.xf-ul-consultation li {
	padding-left: 34px;
	margin-top: 10px;
	margin-right: 10px;
	position: relative;
}
.ul-consultation .outer-circle,
.xf-ul-consultation .outer-circle {
	top: 4px;
	left: 10px;
	width: 20px;
	height: 20px;
	padding: 2px;
	background-color: #F0F0F0;
	position: absolute;
}
.ul-consultation .outer-circle .inner-circle,
.xf-ul-consultation .outer-circle .inner-circle {
	width: 100%;
	height: 100%;
	border-radius: 10px;
}
.ul-consultation .record-card,
.xf-ul-consultation .record-card {
	height: 110px;
	margin-left: 6px;
}
.ul-consultation .record-card .card-title,
.xf-ul-consultation .record-card .card-title {
	height: 20px;
	padding: 5px 10px;
	color: #FFF;
	border-top-left-radius: 5px;
	border-top-right-radius: 5px;
	font-size: 14px;
	line-height: 20px;
}
.span-date {
	font-size: 14px;
}
.f-fr {
	float: right;
}
.record-card p {
	display: -moz-box;
	display: -webkit-box;
	background-color: #FFF;
	height: 68px;
	font-size: 14px;
	padding-top: 8px;
	padding-left: 10px;
	overflow: hidden;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	color: #323232;
	word-break: break-all;
}
.div-beginning {
	top: 41px;
	right: 10px;
	width: 63px;
	height: 50px;
	position: absolute;
	background: url(../images/jinxingzhong_icon.png) 0 0 no-repeat;
	background-size: 63px 50px;
}
.div-ended {
	top: 41px;
	right: 10px;
	width: 63px;
	height: 50px;
	position: absolute;
	background: url(../images/yijieshu_icon.png) 0 0 no-repeat;
	background-size: 63px 50px;
}
.div-novalue {
	top: 41px;
	right: 10px;
	width: 63px;
	height: 50px;
	position: absolute;
	background: url(../images/icon_daipingjia.png) 0 0 no-repeat;
	background-size: 63px 50px;
}
.div-hasvalue {
	top: 41px;
	right: 10px;
	width: 63px;
	height: 50px;
	position: absolute;
	background: url(../images/icon_yipingjia.png) 0 0 no-repeat;
	background-size: 63px 50px;
}
.div-bottom {
	position: absolute;
	bottom: 0;
	text-align: center;
	z-index: 20;
	left: -webkit-calc((100% - 75px)/2)
}
.add-icon {
	width: 50px;
	height: 50px;
	background: url(../images/xuanfu_btn.png) no-repeat center top;
	background-size: 50px;
}
.f-mr10 {
	margin-right: 10px;
}
.f-ib {
	display: inline-block;
}
.f-vam,
.f-vama * {
	vertical-align: middle;
}
#footer {
	position: absolute;
	z-index: 4;
	bottom: 45px;
	right: 15px;
	width: 71px;
	height: 48px;
	padding: 0;
}
.modal-overlay {
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background: transparent;
	z-index: 3;
	visibility: hidden;
	opacity: 0;
	-webkit-transition-duration: 400ms;
	transition-duration: 400ms;
}
.modal-overlay.modal-overlay-visible {
	visibility: visible;
	opacity: 1;
}
.div-dialog-content {
	display: none;
	width: 250px;
	height: 250px;
	background: url(../images/tuoyuan.png) no-repeat center top;
	background-size: 250px;
	position: absolute;
	z-index: 4;
	left: 50%;
	top: 50%;
	margin-left: -125px;
	margin-top: -125px;
}
.mingyi-icon {
	width: 55px;
	height: 55px;
	background: url(../images/mingyizixun_icon.png) no-repeat center top;
	background-size: 55px;
	position: absolute;
	z-index: 4;
	top: 67%;
	margin-top: -80px;
	right: -2px;
}
.sanshi-icon {
	width: 55px;
	height: 55px;
	background: url(../images/manbingguanli_icon.png) no-repeat center top;
	background-size: 55px;
	position: absolute;
	z-index: 4;
	bottom: 104px;
	left: 50%;
	top: 50%;
	margin-left: -27px;
	margin-top: -118px;
}
.jiating-icon {
	width: 55px;
	height: 55px;
	background: url(../images/jiating_btn.png) no-repeat center top;
	background-size: 55px;
	position: absolute;
	z-index: 4;
	top: 67%;
	margin-top: -80px;
	left: 8px;
}
.sanshi-icon1 {
	width: 55px;
	height: 55px;
	background: url(../images/manbingguanli_icon.png) no-repeat center top;
	background-size: 55px;
	position: absolute;
	margin-left: 0;
	z-index: 4;
	top: 67%;
	margin-top: -80px;
	left: 8px;
}
.xufangsq-icon {
	width: 55px;
	height: 55px;
	background: url(../images/xufangshenqing_icon.png) no-repeat center top;
	background-size: 55px;
	position: absolute;
	z-index: 4;
	bottom: 104px;
	left: 50%;
	top: 50%;
	margin-left: -27px;
	margin-top: -118px;
}
.mingyi-icon.active {
	width: 55px;
	height: 55px;
	background: url(../images/mingyizixun_xuanzhong_icon.png) no-repeat center top;
	background-size: 55px;
	position: absolute;
	z-index: 4;
	top: 67%;
	margin-top: -80px;
	right: -2px;
}
.sanshi-icon.active {
	width: 55px;
	height: 55px;
	background: url(../images/manbingguanli_xuanzhong_icon.png) no-repeat center top;
	background-size: 55px;
	position: absolute;
	z-index: 4;
	bottom: 104px;
	left: 50%;
	top: 50%;
	margin-left: -27px;
	margin-top: -118px;
}
.jiating-icon.active {
	width: 55px;
	height: 55px;
	background: url(../images/jiating_pre.png) no-repeat center top;
	background-size: 55px;
	position: absolute;
	z-index: 4;
	top: 67%;
	margin-top: -80px;
	left: 8px;
}
.sanshi-icon1.active {
	width: 55px;
	height: 55px;
	background: url(../images/manbingguanli_xuanzhong_icon.png) no-repeat center top;
	background-size: 55px;
	position: absolute;
	margin-left: 0;
	z-index: 4;
	top: 67%;
	margin-top: -80px;
	left: 8px;
}
.xufangsq-icon.active {
	width: 55px;
	height: 55px;
	background: url(../images/manbingguanli_icon_pre.png) no-repeat center top;
	background-size: 55px;
	position: absolute;
	z-index: 4;
	bottom: 104px;
	left: 50%;
	top: 50%;
	margin-left: -27px;
	margin-top: -118px;
}
.quxiao {
	width: 55px;
	height: 55px;
	background: url(../images/quxiao_btn.png) no-repeat center top;
	background-size: 55px;
	position: absolute;
	z-index: 4;
	left: 50%;
	top: 50%;
	margin-left: -27px;
	margin-top: 60px;
}
.quxiao.active {
	width: 55px;
	height: 55px;
	background: url(../images/quxiao_pre.png) no-repeat center top;
	background-size: 55px;
	position: absolute;
	z-index: 4;
	left: 50%;
	top: 50%;
	margin-left: -27px;
	margin-top: 60px;
}
.f-dn {
	display: none;
}
em {
	color: #12B7F5
}
.div-img {
	width: 320px;
	height: 184px;
	background: url(../../../images/shujuweikong_img.png) no-repeat center top;
	background-size: 320px 184px;
	margin: 60px auto 0px;
}
.bottom-box {
	width: 180px;
	margin: auto;
	height: 44px;
}
#search_suggest_text,
#xf_search_suggest_text {
	position: absolute;
	top: 55px;
	left: 8px;
	color: #75BF00;
	font-size: 16px;
}
.searchbar-clear {
	position: absolute;
	width: 28px;
	height: 28px;
	right: 0;
	top: 8px;
	opacity: 0;
	pointer-events: none;
	background-position: center;
	background-repeat: no-repeat;
	background-image: url(../../../images/delete01_pre.png);
	-webkit-background-size: 20px 20px;
	background-size: 20px 20px;
	-webkit-transition-duration: 300ms;
	transition-duration: 300ms;
	cursor: pointer;
}
.c-lab-mor li.hit a {
	display: inline;
	padding: 4px 0;
	border-bottom: 3px solid #75BF00;
	color: #75bf00;
	border-left: 0;
}
.c-lab-mor li a {
	border-left: 0;
	color: #323232;
}
.c-lab-mor li.hit {
	border-bottom: 1px solid #e1e1e1;
}
.c-lab-mor li:first-child {
	border-left: 0;
}
.div-content-warp {
	height: 36px;
	padding-top: 8px;
	background-color: #FFF;
	font-size: 14px;
	padding-left: 10px;
}
.div-drug {
	width: 50%;
	display: inline-block;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.record-card p.div-xufang-disease {
	-webkit-line-clamp: 1;
	height: 20px;
}
.mui-slider .mui-segmented-control.mui-segmented-control-inverted .mui-control-item{
    color: #323232;
    display: inline-table;
    line-height: 43px;
}
.mui-slider .mui-segmented-control.mui-segmented-control-inverted .mui-control-item.mui-active{
    color: #75bf00;
    border-bottom: 2px solid #75bf00;
}
.mui-fullscreen .mui-segmented-control~.mui-slider-group{
    top: 45px;
}
.mui-slider .mui-slider-group .mui-slider-item img{
    width: auto;
}
.info-text{
    vertical-align: middle; 
    margin: 15px auto 30px;
    text-align: center;
}

+ 62 - 0
html/yszx/css/csx.css

@ -0,0 +1,62 @@
/* 个人中心 */
.addp-list .input-group-addon { min-width: 100%; width: 90px; text-align: right; }
.mem-top{ background-color: #fafafa; position:relative;}
.men-list li{ position:relative;}
.men-list .mltb1{ background:#34aadc;}
.men-list .mltb2{ background:#4fdb67;}
.men-list .mltb3{ background:#ff9501;}
.men-list .mltb4{ background:#017aff;}
.men-list .mltb5{ background:#49cc6d;}
.men-list .mltb6{ background:#ff6600;}
.men-list .mltb7{ background:#4579f0;}
.men-list .mltb8{ background:#ff9501;}
.men-list .mltb9{ background:#2caddf;}
.men-list .mltb10{ background:#f39800;}
.men-list li .c-avatar-s{ position:relative; overflow:inherit; vertical-align:middle; }
.men-list li .c-list-action{ top:0px;}
.mlnum{ position:absolute; top:-4px; right:-4px; width:12px; height:12px; background:#ec4300; text-align:center; line-height:12px; font-size:8px; color:#fff;}
.men-list li .iconfont{ font-size:18px; color:#fff;}
.men-list li .qytimes{ display:block; position:absolute; right:15px; top:50%; margin-top:-10px; font-size:12px; color:#fff;}
/*健康历程*/
.main{ height:100%;}
.health-course{position: relative;min-height:100%;padding:0 15px;z-index: 100;}
.health-course:after{ position: absolute;content:"";width:2px;height:100%;background: #4dcd70;top:0;left:36px;z-index: 101;}
.course-year{ position:relative; z-index:200; width:100%;-webkit-box-sizing: border-box;-moz-box-sizing: border-box;box-sizing: border-box; margin-top: 15px;}
.course-year i{ display: inline-block; width:46px; height:46px; line-height: 46px; font-size: 14px; text-align: center; color:#fff; border-radius: 50%; background:#4dcd70;}
.course-date-list{ padding-bottom: 10px;}
.course-date-list li{ position: relative; padding-left:40px; z-index: 200; margin-bottom:15px;}
.course-date-list li:after{ position: absolute;content:""; width:12px; height:12px; border-radius:50%; background: #4dcd70; top:30px; left:16px; z-index: 201; }
.coruse-date { height:20px; font-size:13px; color:#909090; padding-left:1em; }
.coruse-con{ position:relative; background:#fff; border:1px solid #e1e1e1; border-radius: 4px; padding:7px 10px; }
.coruse-con:after{ position: absolute; top:10px; left:-6px; content:""; width:10px; height:10px; border:1px solid #e1e1e1; border-width: 0 0 1px 1px; background: #fff;-webkit-transform: rotate(45deg);-moz-transform: rotate(45deg);-ms-transform: rotate(45deg);transform: rotate(45deg); }
.coruse-con p{font-size:13px; color:#5b5b5b; white-space: pre-wrap; word-wrap: break-word; word-wrap: break-all; padding: 3px 0;}
.coruse-con p span{ color:#333; padding-right:5px;}
/*门诊详情*/
.outp-details-top{ position: fixed; width:100%; top:0;left:0; background: #fff; height:72px; border-bottom: 1px solid #e1e1e1; color:#333; font-size: 14px; padding:8px 15px;-webkit-box-sizing: border-box;-moz-box-sizing: border-box; box-sizing: border-box; z-index: 100; }
.outp-details-top li{ width:50%; height:28px; line-height: 28px; float:left; padding-right:5px; overflow:hidden; white-space:nowrap; text-overflow:ellipsis;-webkit-box-sizing: border-box;-moz-box-sizing: border-box; box-sizing: border-box;}
.outp-details-top li span{ margin-right: 5px;}
.outp-details-top:before{ position: absolute; top:72px; left:0; content:""; width:100%; height:15px; background: #f3f3f3; border-bottom:1px solid #e1e1e1;}
.outp-details-top:after{ position: absolute; top:88px; left:0; content:""; width:100%; height:10px; background: #fff;}
.outp-details-box{ padding:0 15px 30px 15px; background: #fff; margin-top: 97px;}
.outp-details-con{ width:100%; }
.outp-details-con dl{ padding-bottom: 10px;}
.outp-details-con dl dt{ position: relative; color:#333; font-size:15px; padding-left: 15px;}
.outp-details-con dl dt:before{ position:absolute; content: ""; width:8px; height:8px; border-radius: 50%; background: #4dcd70; top:50%; left:0; margin-top: -4px;}
.outp-details-con dl dd{ color:#666; font-size:13px; white-space: pre-wrap; word-wrap: break-word; word-wrap: break-all; }
.outp-doctor-info{ color:#5b5b5b; font-size:14px; padding-top: 15px; margin-top:5px; border-top:1px dotted #e1e1e1;}
.outp-doctor-info span{ color:#333; margin-right: 10px;}
.outp-doctor-info .iconfont{ color:#007cd9; margin-right: 5px;}
/*我的圈子*/
.quanzi-top{ position: fixed; width:100%; top:0;left:0; background: #fff; height:75px; border-bottom: 1px solid #e1e1e1; color:#333; font-size: 14px; -webkit-box-sizing: border-box;-moz-box-sizing: border-box; box-sizing: border-box; z-index: 100; }
.quanzi-top li{ width:50%; height:75px; padding-top: 12px; text-align: center; font-size:15px; color:#5b5b5b; float:left; border-right:1px solid #e1e1e1; overflow:hidden; white-space:nowrap; text-overflow:ellipsis;-webkit-box-sizing: border-box;-moz-box-sizing: border-box; box-sizing: border-box;}
.quanzi-top li:last-child{border-right:none;}
.quanzi-top li .iconfont{ font-size:30px; line-height: 30px; color:#4dcd70;}
.quanzi-top li:last-child .iconfont{color:#37a6ec;}
.quanzi-top:before{ position: absolute; top:75px; left:0; content:""; width:100%; height:15px; background: #f3f3f3; border-bottom:1px solid #e1e1e1;}
.quanzi-box{background: #fff; margin-top: 90px;}
.quanzi-list .n-list-key{ padding:12px 20px 12px 0;}
.quanzi-list .n-avatar-m{border-radius: 50%; overflow: hidden;}
.quanzi-list .n-list-flex{ padding:12px 0;}
.quanzi-list .n-list-info{ padding-right:15px; }

+ 9 - 0
html/yszx/css/doctor-work-hours.css

@ -0,0 +1,9 @@
.c-btn-ffffff{border: 1px solid #E6BF90;color: #FF9526;}
.c-table td, .c-table th{border: 1px solid #E6BF90;}
 .c-table .td-title{background: #FF9526;color: #ffffff;font-size: 15px;font-weight: bold;}
 .p10{padding: 10px;}
 .c-table td{font-size: 12px;}
 p{height: 29px;margin-left: 10px;line-height: 29px;color: #909090;font-size: 13px;}
 .c-table{word-break: break-all;}
.health-table-blue {background: #E6BF90;}
.c-table tr{pointer-events: none;}

+ 388 - 0
html/yszx/css/jy-style.css

@ -0,0 +1,388 @@
@charset "utf-8";
body { font-size: 16px; color: #333; max-width: 640px; margin: 0 auto; background-color: #f3f3f3; }
input, textarea { -webkit-appearance: none; }
.w55 {width:55px;}
.w45 {width:45px;}
.ptb65 {padding-top:65px; padding-bottom:65px;}
.c-corner {width:18px; height:18px; line-height:18px; border-radius:50%; background-color:#ff3824; color:#fff; border:1px solid #fff; margin-left:-8px;}
.c-corner-min {width:14px; height:14px; line-height:14px; font-size:12px; margin-top:8px;}
.c-1cb4ec { color: #1cb4ec; }
.c-f11 { font-size: 11px; }
.header-contain { width: 68px; height: 59px; margin: 0 auto; }
.header-contain .pic { width: 53px; height: 53px; border-radius: 50%; overflow: hidden; margin: 0 auto; }
.header-contain img { width: 53px; height: 53px; }
.p-clcardna { width: 68px; height: 22px; background: url(../images/demo-linehead.png) no-repeat left top; position: absolute; left: 0; bottom: 0; background-size: cover; line-height: 30px; font-size: 11px; }
.c-blocks-2.c-loper li { box-sizing: border-box; }
.c-loper span.color-iconfont { width: 26px; display: inline-block; }
.c-loper .color-iconfont img { width: 100%; }
.lh30 { line-height: 30px; }
.cl-poewm{position:absolute;right:15px;top:10px;width:25px;height:25px;}
.cl-poewm i.icon-erweima{font-size:25px;color:#909090;}
.cl-poewm i.icon-qiehuan{color:#4dcd70;}
.bg-7ecef4 {background-color: #7ecef4;}
.lh22{line-height:22px;}
.bgc-cyanblue{ background: #5ec5b4;}
.bgc-orangered{ background: #ff8549;}
.bgc-dblue { background: #0171ee; }
.bgc-orange { background-color: #ff9600; }
.bgc-blue { background-color: #37a6ed; }
.bgc-green { background-color: #2ccd5d; }
.doc-avatar { width: 50px; height: 50px; border-radius: 50%; overflow: hidden; }
.doc-avatar img { width: 100%; height: 100%; }
/* 健康咨询 */
.pro-list-group .time {right:30px; top:12px; color:#909090; font-size:12px;}
/*选择社区*/
.shcom-list .c-avatar-m { border-radius: 5px; overflow: hidden; width: 50px; height: 50px; }
.sh-list .c-list-action { right: 15px; }
.sh-list .c-avatar-m { border-radius: 50%; overflow: hidden; width: 40px; height: 40px; }
.c-btn-48c3f0 { background: #48c3f0; }
/*二维码*/
.scan-code-img { position: relative; z-index: 10; width: 160px; height: 160px; padding: 10px; border: 2px solid #f1f1f1; margin: 20px auto 10px auto; }
.scan-code-img img { display: block; position: absolute; z-index: 12; width: 160px; height: 160px; top: 10px; left: 10px; }
.scan-code-img:before { position: absolute; top: -10px; left: 25px; z-index: 11; content: ""; width: 130px; height: 200px; background: #fff; }
.scan-code-img:after { position: absolute; top: 25px; left: -10px; z-index: 11; content: ""; width: 200px; height: 130px; background: #fff; }
.cl-ewmer{border-radius:5px;border:1px solid #e1e1e1;}
/** 基本信息 **/
.ring-blue, .ring-a,.ring-b,.ring-c{ display: inline-block; width:36px; height:36px; line-height: 36px; text-align: center; border-radius: 50%; border: 1px solid #17b3ec; font-size: 10px; color:#17b3ec;-webkit-box-sizing: border-box;box-sizing: border-box;}
.ring-a{ color: #333; border: 0;  background: url(../images/ring-a.png) no-repeat 0 0; background-size:100% 100%;}
.ring-b{ color: #333; border: 0;  background: url(../images/ring-b.png) no-repeat 0 0; background-size:100% 100%;}
.ring-c{ color: #333; border: 0;  background: url(../images/ring-c.png) no-repeat 0 0; background-size:100% 100%;}
/** 我的患者 **/
.header-link a.link .iconfont {font-size: 20px;}
.pb60{ padding-bottom: 60px;}
.ring-big-a,.ring-big-b,.ring-big-c{ position:relative; display: inline-block; width:88px; height:88px; text-align: center; border-radius: 50%; font-size: 10px; color:#17b3ec;-webkit-box-sizing: border-box;box-sizing: border-box; background:url(../images/ring-a.png) no-repeat 0 0; background-size:100% 100%; color: #4fcd6f;}
.ring-big-b{ background-image: url(../images/ring-b.png); color: #fbac01;}
.ring-big-c{ background-image: url(../images/ring-c.png); color: #f57364;}
.ring-txt{ position: absolute; width:60%; text-align: center; left: 20%; top:50%; -webkit-transform: translateY(-50%); transform: translateY(-50%); font-size: 10px;}
.ring-txt b{ font-size: 17px;}
.ring-big-a .ring-txt p:first-child{ border-bottom: 1px solid #4fcd6f;}
.ring-big-b .ring-txt p:first-child{ border-bottom: 1px solid #fbac01;}
.ring-big-c .ring-txt p:first-child{ border-bottom: 1px solid #f57364;}
.ring-txt p:last-child{ margin-top: 5px;}
.select-group div.ui-col-1 {width:0;}
/* 患者沟通 */
.talk-left, .talk-right { position: relative; min-height: 40px; padding: 10px 68px; }
.talk-left .leftpart, .talk-right .leftpart { position: absolute; width: 40px; height: 40px; left: 15px; top: 26px; text-align: center; border-radius: 50%; overflow: hidden; }
.talk-left .leftpart img, .talk-right .leftpart img { width: auto; height: 100%; }
.talk-left .rightpart, .talk-right .rightpart { background-color: #fff; border: 1px solid #e1e1e1; border-radius: 4px; padding: 10px; line-height: 20px; position: relative; word-break: break-all; min-width: 30px; float: left; }
.talk-right .leftpart { left: auto; right: 15px; }
.talk-right .rightpart { background-color: #bce0ff; border: 1px solid #95c8f9; float: right; }
.talk-time { width: 190px; line-height: 26px; margin-left: auto; margin-right: auto; font-size: 12px; color: #ccc; text-align: center; position: relative; }
.talk-time:before { content: ''; display: block; width: 50px; height: 13px; border-bottom: 1px solid #e6e4e1; position: absolute; left: 0; top: 0; }
.talk-time:after { content: ''; display: block; width: 50px; height: 13px; border-bottom: 1px solid #e6e4e1; position: absolute; right: 0; top: 0; }
.talk-refresh, .talk-home { position: absolute; right: 10px; bottom: 65px; z-index: 700; background: rgba(0,0,0,.4); border-radius: 50%; width: 26px; height: 26px; padding: 5px; line-height: 26px; }
.talk-refresh i, .talk-home i { font-size: 26px; color: #fff; }
.talk-refresh.light{ background: #a9cc84;}
.talk-home { bottom:110px; }
.talk-right .rightpart:after, .talk-left .rightpart:after { position: absolute; content: ""; width: 8px; height: 8px; background: #f00; top: 8px; right: -5px; -webkit-transform: rotate(45deg); -moz-transform: rotate(45deg); transform: rotate(45deg); background: #bce0ff; border: 1px solid #95c8f9; border-width: 1px 1px 0 0; }
.talk-left .rightpart:after { right: auto; left: -5px; background: #fff; border: 1px solid #e1e1e1; border-width: 0 0 1px 1px; }
.rightpart.highlight, .rightpart.highlight:after{ background: #fff; border-color: #3a9bef;}
.talk-tips { padding: 10px 10px 0 10px; }
.talk-tips p { font-size: 12px; color: #909090; background: #fffff3; padding: 5px 10px; border: 1px dashed #e7e7cd; }
.talk-view { text-align: right; border-top: 1px dotted #eaeaea; margin-top: 10px; color: #0066ff; font-size: 13px; }
.talk-right .talk-view { border-top: 1px dotted #0066ff; }
.talk-viewb{ text-align: right; font-size: 13px;}
.talk-view a, .talk-view a:link, .talk-viewb a, .talk-viewb a:link{ color: #0066ff; display: block; padding-top: 5px; }
.talk-view .iconfont { font-size: 14px;}
.talk-ms { font-size: 12px; color: #909090; line-height: 12px; padding-bottom: 5px; clear: both; }
.talk-right .talk-ms { text-align: right; }
.talk-img img{ max-width: 100px; height: auto;}
.talk-zt{ position: absolute; top:-1px; left:-1px; width:80px; height:100%; overflow: hidden; border-radius: 4px 0 0 0;}
.talk-zt i{ display: block;	width: 80px; font-size: 10px;height: 14px;line-height: 14px; padding-top: 30px;	vertical-align: middle;	text-align: center;	color: #fff;	position: absolute;	-webkit-transform: rotate(-45deg);	-moz-transform: rotate(-45deg);	transform: rotate(-45deg);top: -16px;left: -34px;overflow: hidden;background: #ff8100;}
.talk-left .talk-zt{ left: auto; right:-1px; border-radius:0 4px 0 0;}
.talk-left .talk-zt i{ display: block;	width: 80px; font-size: 10px;height: 14px;line-height: 14px; padding-top: 30px;	vertical-align: middle;	text-align: center;	color: #fff;	position: absolute;	-webkit-transform: rotate(45deg);	-moz-transform: rotate(45deg);	transform: rotate(45deg);top: -16px;left: auto; right:-34px;overflow: hidden;background: #ff8100;}
.talk-wq dt{ padding-bottom: 10px; border-bottom: 1px solid rgba(0,0,0,.1)}
.talk-wq dd{ padding-top: 10px; position: relative;}
.talk-wq dd a{ display: block;}
.talk-wq dd i{ position: absolute; top:10px; left:0; width:36px; height:36px; background: url(../images/ico-wq.png) no-repeat; background-size:100% 100%; border-radius: 50%;}
.talk-wq dd p{ padding-left: 46px; color: #666; min-height: 36px;}
.talk-right .talk-wq dd p{ color: #333;}
/* 病情交流输入框 */
.chat-bar { width: 100%; height: 104px; background: #fafafa; padding: 10px 10px 0 10px; position: relative; z-index: 1000; }
.omask{ position: fixed; background: transparent; top:0; left:0; width:100%; height:100%; z-index: 600;}
.chat-bar .chat-input { position: static; top: 0; border: 1px solid #e1e1e1; color: #bfbfbf; font-size: 15px; height: 34px; line-height: 34px;border-radius: 4px; background: #fff; padding: 0 10px; -webkit-box-sizing: border-box;box-sizing: border-box; }
.chat-more-opt{ position: absolute; display: block; width:52px; text-align: center; top:0; right:0; padding: 11px 0 0 0;}
.chat-more-opt .iconfont{font-size:32px; line-height: 1em; color: #bbb;}
.talk-send { box-flex: 0; -webkit-box-flex: 0; -moz-box-flex: 0; width: 60px; text-align: right; }
.talk-send a { display: inline-block; width: 50px; height: 30px; text-align: center; line-height: 30px; background-color: #5fa413; font-size: 15px; color: #fff; border-radius: 4px; }
.chat-input.disabled{ background: #e1e1e1;pointer-events: none;}
.chat-wrap{position:fixed;width:100%;height:100%; top:45px;left:0; background: #f3f3f3; z-index: 2000; -webkit-transform: translateY(100%);transform: translateY(100%); -webkit-transition: all ease .3s;transition: all ease .3s;}
.chat-show{ -webkit-transform: translateY(0);transform: translateY(0); }
.chat-textarea{ background: #fff;}
.chat-textarea textarea{ width:100%; height: 200px; font-size: 15px; resize: none; -webkit-box-sizing:border-box; box-sizing:border-box; padding: 10px; border: 0;  -webkit-user-modify: read-write-plaintext-only;}
@media only screen and (min-device-width : 320px) and (max-device-width : 480px) {
.chat-textarea textarea{ height: 100px;}
}
@media only screen and (min-device-width : 320px) and (max-device-width : 568px) {
.chat-textarea textarea{ height: 120px;}
}
@media screen and (min-width:360px){
.chat-textarea textarea{ height: 200px;}
}
@media screen and (min-width:400px){
.chat-textarea textarea{ height: 240px;}
}
.chat-btn-group{display: -webkit-box; display: box; box-pack: center; border-top:1px solid #e1e1e1; background: #fff; border-width: 1px 0 1px 0; border-style: solid; border-color: #f1f1f1;}
.chat-btn-group>li{display: -webkit-box; display: box; -webkit-box-orient: vertical;  box-orient: vertical; -webkit-box-pack: center; box-pack: center;-webkit-box-flex: 1; -moz-box-flex: 1; box-flex: 1; padding: 10px 0; text-align: center; border-right:1px solid #f1f1f1; }
.chat-btn-group>li:last-child{ border-right: none;}
.chat-btn-group>li.chat-btn-send{ color: #17b3ec; }
.chat-btn-group>li.disabled{color:#ccc; pointer-events: none;}
.hd-opt-list{display: -webkit-box; display: box; box-pack: center; height:60px; overflow: hidden;}
.hd-opt-list li{ display: -webkit-box; display: -moz-box; display: box; -webkit-box-orient: vertical; -moz-box-orient: vertical; box-orient: vertical; -webkit-box-pack: center; -moz-box-pack: center; box-pack: center; -webkit-box-flex: 1; -moz-box-flex: 1; box-flex: 1; }
.hd-opt-list li a{display: block; text-align: center;}
.hd-opt-list li a .iconfont{ display:inline-block; width:36px; height:36px; line-height: 34px; color: #fff; font-size: 22px; border-radius: 50%;}
.hd-opt-list li a p{ color: #666; font-size: 12px; padding-top: 5px;}
.hd-opt-list li a.disabled{pointer-events: none;}
.hd-opt-list li a.disabled .iconfont{background: #e1e1e1;}
.chat-bar-open .hd-opt-list{ overflow: auto; height: auto;}
.chart-over{ height: 30px; text-align: center;}
.chart-over a{ display: block; height:30px; line-height: 30px; color: #17b3ec; }
.hd-dr-item{ position: relative;}
.updown-arrow{ height: 28px; padding: 0 15px;}
.updown-arrow a{ display: block; height: 28px; position: relative; border-top:1px dotted #f1f1f1;}
.updown-arrow a.down:after{display:block; content: ""; position: absolute; top:50%; left: 50%; margin: -8px 0 0 -6px; width:8px; height:8px; border:2px solid #ccc; border-width: 2px 2px 0 0; -webkit-transform: rotate(135deg);transform: rotate(135deg);}
.hd-welcome{ text-align: center;}
.hd-welcome p{ display: inline-block; background: #cecece; color: #fff; border-radius: 4px;  padding: 2px 5px; font-size: 12px;}
/* 医生主页 */
.c-cacaca{ color:#cacaca;}
.sdoc-top .sdstate a.c-btn{padding:4px 12px !important;}
.pop-txt { width: 100%; border: 1px solid #ddd; border-radius: 6px; resize: none; box-sizing: border-box; -webkit-box-sizing: border-box; }
.ui-dialog-content { display: block; }
.sdoc-top{ height:180px; background:url(../images/banner1.jpg) no-repeat; background-size:100% 100%; -webkit-background-size:100% 100%; -moz-background-size:100% 100%; padding:20px 15px 0 15px; font-size:12px; color:#fff; text-shadow:0px 0px 2px rgba(0,0,0,0.6); line-height:23px; position:relative;}
.sdoc-top .sdimg{ display:block; margin:0 auto 10px auto; width:60px; height:60px; padding:1px; background-color:rgba(250,250,250,.75); border-radius:50%;}
.sdoc-top .sdtime{ position:absolute; background:rgba(0,0,0,.3); width:100%; height:45px; line-height:45px; left:0; bottom:0; text-align:left; padding:0 15px;}
.sdoc-top .sdstate{ position:absolute; background:rgba(255,255,255,1); width:100%; height:38px; line-height:38px; left:0; bottom:0; text-align:left; padding:0 15px; text-shadow:none; color:#888;}
.sdoc-top .sdstate.c-t-center { text-align: center;}
.sdoc-top.smil{padding:38px 15px 36px;height:100px;background:url(../images/p-bg-top.png) no-repeat;background-size: 100% 100%;}
.sdoc-top.smil.short{height:60px;}
.sdoc-top.smil .sdimg{margin:0;width:56px;height:56px;border-radius:56px;overflow:hidden;padding:0;background:rgb(250,250,250);}
.sdoc-top.smil .sdimg img{width:56px;height:56px;}
.sdoc-top.smil .sdslink{border:none;}
.img-circle .c-avatar-m{border-radius:50%;}
.folding-item-1 .c-list-info > p{font-size:12px;color:#666;}
.folding-item-1 > .c-list > .c-list-cover{margin-left:38px !important;padding-left:0 !important;}
.list-item-1 .c-list-cover{margin-left:10px !important;padding-left:5px !important;}
.bgc-3fcba9{background-color:#3fcba9;}
.bgc-52a5f1{background-color:#52a5f1;}
.bgc-f98d44{background-color:#f98d44;}
.bgc-67bfed{background-color:#67bfed;}
.bgc-91c66a{background-color:#91c66a;}
.bgc-f792b1{background-color:#f792b1;}
.bgc-fec157{background-color:#fec157;}
.bgc-78c8ed{background-color:#78c8ed;}
.bgc-fb8d7c{background-color:#fb8d7c;}
.logo-icon{display:inline-block;width:17px;height:17px;border-radius:50%;vertical-align:middle;text-align:center;line-height:17px;font-size:10px;color:#fff;margin:0 5px;}
.sever-list .c-avatar-m .iconfont{color:#fff;font-size:20px;vertical-align:middle;}
header.doc-info.smil { background: url(../images/bg01.jpg) no-repeat; background-size: 100% 100%;height: 125px; padding: 36px 10px 0; box-sizing: border-box;}
.tag-yellow { background: #ffbc2c; border-radius: 5px; padding: 5px 11px; font-size: 10px;}
.doc-info .person-info { display: -webkit-box; display: -ms-box; display: box;}
.doc-info.person-info .sdimg { -webkit-box-flex: 0; -ms-box-flex: 0; box-flex: 0;}
.doc-info .person-info .self-info { -webkit-box-flex: 1; -ms-box-felx: 1; box-felx: 1; -webkit-box-align: center; display: -webkit-box;}
.doc-info .tag-yellow { position: absolute; right: 10px;}
.link-time { font-size: 14px; width: 100%;height: 35px; line-height: 35px;}
.link-date { font-size: 14px; width: 100%; display: -webkit-box; display: box; display: -ms-box; height: 35px; line-height: 35px;-webkit-box-align: center;-webkit-box-pack: center; -webkit-box-align: center; -ms-box-align: center; box-align: center; -webkit-box-pack: justify; -ms-box-pack: justify; background:#fff;}
.mt12{margin-top:12px;}
.mt8{margin-top:8px;}
.dialog-look { text-align: left; }
.list-icon-des { background: #fff; display: -webkit-box; display: -ms-box; display: box; -webkit-box-align: center; -ms-box-align: center; box-align: center; -webkit-box-pack: center; -ms-box-align: center; box-align: center; border-top: 1px solid #e1e1e1; border-bottom: 1px solid #e1e1e1;}
.list-icon-des li {  -webkit-box-flex: 1; -ms-box-flex: 1; box-flex: 1; text-align: center;padding: 20px 0; width: 0;}
.list-icon-des li:last-child { border: none;}
.list-icon-des .bt-circle-40,.list-icon-des .bt-circle-60 { margin: 0 auto;}
.list-icon-des .des { margin-top: 8px;}
.bt-circle-60 { width: 60px; height: 60px; border-radius: 50%; text-align: center; line-height: 60px; color: #fff;}
.bt-circle-40 { width: 40px; height: 40px; border-radius: 50%; text-align: center; line-height: 40px; color: #fff;}
.bt-circle-60 .iconfont { font-size: 35px;}
.bt-circle-40 .iconfont { font-size: 25px;}
.bgc-green { background: #3fcaa9;}
.bgc-orange { background: #f68e45;}
.bgc-lightgreen { background: #91c66a;}
.bgc-yellow { background: #ffc446;}
.bgc-blue{ background: #32a7f9;}
h2.title { padding: 10px  15px; color: #5b5b5b;}
.mod-title-content { border-top: 1px solid #e1e1e1; border-bottom: 1px solid #e1e1e1; background: #fff;}
.mod-title-content > div { margin-left: 15px; padding: 12px 15px 12px 0; border-bottom: 1px solid #f1f1f1;}
.mod-title-content > div:last-child { border-bottom: none;}
.mod-title-content .hd { display: -webkit-box; display: -ms-box; display: box; -webkit-box-align: center; -ms-box-align: center; box-pack: center;}
.mod-title-content .hd a, .dialog-call .warn a ,.dialog-cancel .warn a { color: #007cd9;}
.mod-title-content .hd .title { -webkit-box-flex: 0; -ms-box-flex: 0; box-flex: 0;}
.mod-title-content .hd .operate { -webkit-box-flex: 1; -ms-box-flex: 1; box-flex: 1; text-align: right;}
.mod-title-content .bd p { margin-bottom: 3px;}
.mod-title-content .bd .key { width: 65px; display: inline-block; margin-right: 25px;}
.btn-xl { border-top: 1px solid #e1e1e1; border-bottom: 1px solid #e1e1e1; height: 45px; -webkit-box-align: center; -ms-box-align: center; box-align: center; -webkit-box-pack: center; -ms-box-pack: center; box-pack: center; display: -ms-box; display: -webkit-box; display: box; color: #007cd9;background: #fff;}
.dialog-call h2,.dialog-cancel h2 { font-size: 14px; color: #333;}
.dialog-call .warn ,.dialog-cancel .warn { color: #999; font-size: 12px;}
.signed { text-indent: 2em; color: #999;}
.mb70{margin-bottom:70px;}
.c-17b3ec{color:#17b3ec;}
.bottom-btn-box { position: fixed; bottom: 0; left: 0; width: 100%; box-sizing: border-box; padding: 8px 15px; background: #fff; z-index: 3000; }
.more-info{ padding-left:20px;}
/* 手工代签约 */
.edit-list li.n-list-cover { padding-top: 7px; padding-bottom: 7px; padding-left: 20px; }
.edit-list li.n-list-cover .n-list-key{ width:80px;}
.edit-list-file li.n-list-cover { padding-left: 20px; }
.edit-list .n-list-info .c-radio, .edit-list .n-list-info .c-check, .edit-list .n-list-info .c-select>select, .edit-list .n-list-info input { color: #5b5b5b; }
.upload-img{ overflow: hidden;}
.upload-img ul{ float: left;}
.upload-img ul li { position: relative; float: left; width: 70px; height: 70px; padding: 0 10px 10px 0; font-size: 0; }
.upload-img ul li img { width: 100%; height: 100%; font-size: 0; }
.upload-img .del-img { position: absolute; top: 0; right: 10px; text-align: center; width: 26px; height: 26px; line-height: 20px; z-index: 10; background: rgba(0, 0, 0, .5); border-radius: 0 0 0 90%; overflow: hidden; }
.upload-img .del-img .iconfont { color: #fff; font-size: 14px; line-height: 14px; margin-left: 4px; }
.add-btn { position: relative; display: block; width: 68px; height: 68px; font-size: 0; color: #b8b8b8; border: 1px solid #ccc; background: #fff; }
.add-btn:before { content: ""; display: block; position: absolute; top: 33px; left: 19px; width: 30px; height: 2px; background: #ccc; }
.add-btn:after { content: ""; display: block; position: absolute; top: 19px; left: 33px; width: 2px; height: 30px; background: #ccc; }
.add-btn input { display: block; width: 76px; height: 76px; background: #fff; border: none; position: absolute; z-index: 100; top: 0; left: 0; opacity: 0; }
.patient-face { width: 40px; height: 40px; margin: 12px 15px; position: relative; }
.patient-face img { width: 100%; height: 100%; border-radius: 50%; }
.patient-face em { position: absolute; display: inline-block; left: 32px; top: -4px; color: #fff; text-align: center; font-size: 12px; height: 16px; line-height: 14px; min-width: 16px; background: #f00; border-radius: 16px; border: 1px solid #fff; -webkit-box-sizing: border-box; box-sizing: border-box; padding: 0 3px; }
.patient-type span em { position: absolute; display: inline-block; color: #fff; text-align: center; height: 7px; width: 7px; background: #f00; border-radius: 50%; right: -4px; top: -5px; }
.patient-type { width: 100%; padding: 15px; background: #fff; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; display: box; display: -webkit-box; border-bottom: 1px solid #f1f1f1; }
.patient-type h3 { display: -webkit-box; display: box; -webkit-box-flex: 1; box-flex: 1; -webkit-box-orient: vertical; -webkit-box-pack: center; }
.patient-type span, .patient-type .arrow { display: -webkit-box; display: box; -webkit-box-orient: vertical; -webkit-box-pack: center; }
.patient-type .arrow { margin-right: 6px; transition: all 0.3s; -webkit-transition: all 0.3s; }
.patient-type .arrow .ui-arrow-r { border-left-color: #cdcdcd; }
.patient-type span { position: relative; font-size: 12px; color: #909090; }
.patient-list.current .patient-type .arrow { -webkit-transform: rotate(90deg); -moz-transform: rotate(90deg); transform: rotate(90deg); margin-top: 5px; transition: all 0.3s; -webkit-transition: all 0.3s; }
.patient-list .c-list { display: none; border-bottom: 1px solid #f1f1f1; }
.patient-list.current .c-list { display: block; }
.my-patients { color: #5b5b5b; font-size: 12px; height: 40px; line-height: 40px; vertical-align: middle; }
.my-patients span { color: #909090; padding-left: 5px; }
.my-work.c-ser-hold{  background:#fff;}
.my-work .c-ser-input,.my-work .c-ser-main{ background:#f2f2f2;}
.my-work .c-ser-input{ font-size:16px;}
.my-work-secflo .patient-type {position:relative; padding-left: 15px; }
.my-work-secflo ul.c-list li { padding-left: 15px !important; background: #f9f9f9; }
.my-work-secflo .patient-type .arrow{ position:absolute;right:5px; top:20px;}
.my-work-secflo .patient-face {margin: 12px 10px 12px 0px; position: relative; }
.my-work .c-ser-main i {top: 3px; }
.my-work .c-ser-btn a{ font-size: 12px;}
.my-work-secflo .patient-list.current .patient-type .arrow {top:10px;-webkit-transform: rotate(180deg); -moz-transform: rotate(180deg); transform: rotate(180deg); margin-top: 5px; transition: all 0.3s; -webkit-transition: all 0.3s; }
/*患者信息*/
.lih45 { line-height: 45px;}
.c-17b3ec { color: #17b3ec;}
.mod-patient-wrap {width: 100%; height: 92px;}
.mod-patient-info {display: -webkit-box; display: box; width:100%; height:100%; -webkit-box-align: center; box-align: center; background: #fff; position: relative;}
.mod-patient-info div {border-right: 1px solid #e1e1e1; width:33.33%; text-align: center;}
.mod-patient-info .swiper-wrapper div:last-child { border-right: 0;}
.mod-patient-info .value { font-size: 15px; color: #17b3ec; font-weight: bold;}
.mod-patient-info .key { color: #909090; margin-top: 8px;}
.mod-patient-info .swiper-button-next { content:"";display: block; width: 8px; height: 8px; border: solid #cdcdcd; border-width: 2px 2px 0 0; -webkit-transform: rotate(45deg); transform: rotate(45deg); position: absolute; right:  10px; top: 50%; margin-top: -4px; background:none;}
.week-select{display: -webkit-box; display: box; background: #fff;}
.week-select>a, .week-select>div{ position: relative; display: -webkit-box; display: box; -webkit-box-orient: vertical; box-orient: vertical; -webkit-box-pack: center; box-pack: center; }
.week-select>div{-webkit-box-flex: 1; box-flex: 1; text-align: center; border-left:1px solid #f2f2f2;border-right:1px solid #f2f2f2;}
.week-select>a.prev{padding: 10px 10px 10px 25px;}
.week-select>a.next{padding: 10px 25px 10px 10px;}
.week-select>a.prev:after, .week-select>a.next:after{position: absolute; top: 50%; left: 10px; margin-top: -6px; content: ""; display: block; width: 8px; height: 8px; border: solid #cdcdcd; border-width: 0 0 2px 2px; -webkit-transform: rotate(45deg); transform: rotate(45deg);}
.week-select>a.next:after{left:auto; right:10px; -webkit-transform: rotate(-135deg); transform: rotate(-135deg);}
.case-top{ position:relative; padding:12px 0;}
.case-top .cimg{ position:absolute; left:10px; top:50%; margin-top:-20px;}
.case-top .cimg img{ width:40px; height:40px;}
.case-top .cmess{ padding-left:60px; padding-right:45px; min-height:40px; display:box; display:-webkit-box; -webkit-box-orient:vertical; -webkit-box-pack:center; line-height:1.4;}
.case-top .zdgz{ right:-76px; top:-1px; height:20px; line-height:20px; background-color:#ccc; border-radius:3px; font-size:12px; color:#fff; padding:0 3px;}
.case-top .zdgz .icon-yonghu{ font-size:14px; margin-right:3px;}
.case-top .cmess .checked{ background-color:#ff8100;}
.case-top .arrow { position:absolute; right:10px; top:50%; margin-top:-5px; font-size:34px; color:#17b3ec;}
.case-list{ display:block;}
.case-list li{ padding:8px 10px 10px 30px; line-height:20px; position:relative;}
.case-list-img img{ width:79px; height:79px; margin:10px 10px 0 0;}
.case-bar{ position:absolute; left:17px; top:0; width:2px; height:100%; background:#d7e0df;}
.case-bar:before{ content:''; display:block; width:13px; height:13px; background:#fff; border:2px solid #d7e0df; position:absolute; left: -8px; top: 9px; border-radius: 50%;}
.case-bar:after{ content:''; display: block; width: 7px; height: 7px; background: #d7e0df; position: absolute; left: -3px; top: 14px; border-radius: 50%;}
.case-bar.no-line { height: 66%;}
.case-top .intact-info { position: absolute; top: 50%; margin-top: -11px; right: 25px; color: #909090; font-size: 12px;}
.fix-add { width: 50px; height: 50px; background: #17b3ec; border-radius: 50%; position: fixed; z-index:1111; right: 10px; bottom: 30px;}
.fix-add:after,.fix-add:before { content: ""; width: 50%; height: 2px; position: absolute; top: 50%; left: 50%; background: #fff;margin-left: -25%;}
.fix-add:before { -webkit-transform: rotate( 90deg);transform: rotate( 90deg);}
.zxjl-list{ width:100%; }
.zxjl-list p:first-child{position: relative; width:100%;}
.zxjl-list p .arrow{ position: absolute; top:5px; right:0;}
.zxjl-list p .arrow.arrow-down{ top:0;}
.ring-blue, .ring-a,.ring-b,.ring-c{ display: inline-block; width:36px; height:36px; line-height: 36px; text-align: center; border-radius: 50%; border: 1px solid #17b3ec; font-size: 10px; color:#17b3ec;-webkit-box-sizing: border-box;box-sizing: border-box;}
.ring-a{ color: #333; border: 0;  background: url(../images/ring-a.png) no-repeat 0 0; background-size:100% 100%;}
.ring-b{ color: #333; border: 0;  background: url(../images/ring-b.png) no-repeat 0 0; background-size:100% 100%;}
.ring-c{ color: #333; border: 0;  background: url(../images/ring-c.png) no-repeat 0 0; background-size:100% 100%;}
.height-echarts {height:320px; width:100%; overflow:hidden;}
.fix-add-dialog li {margin:0 0 25px !important;}
.fix-add-dialog li a {display:block; width:100%; height:60px; color:#333;}
.fix-add-dialog li a span {display:block;}
.fix-add-dialog li a i.iconfont {font-size:28px; color:#17b3ec}
.info-tabs-hd div {line-height:28px;}
.info-tabs-hd div.curr {background-color:#17b3ec; color:#fff;}
/*解约处理*/
.updown-arrow a.up:after{display:block; content: ""; position: absolute; top:50%; left: 50%; margin: -4px 0 0 -6px; width:8px; height:8px; border:2px solid #ccc; border-width: 2px 2px 0 0; -webkit-transform: rotate(-45deg);transform: rotate(-45deg);}
.qyjy-more{ position: relative; background: #fff;}
.qyjy-more ul{ padding:15px 0; margin: 0 15px; border-top:1px dotted #f1f1f1;}
.qyjy-more ul li{ width:50%; float: left; -webkit-box-sizing: border-box;box-sizing: border-box; padding-right: 5px;}
.qyjy-more p{ padding:10px 0; margin: 0 15px; border-top:1px dotted #f1f1f1;}
.textarea-noborder { padding: 0; margin: 0; border:0 none; resize:none;}
/* 签约 */
.c-17b3ec{ color:#17b3ec;}
.qystate-box{ background:#fff; padding:15px; text-align:center;}
.qystate-box .icon-shibai{ font-size:40px; color:#dd3b39;}
.qystate-box .icon-ok{ font-size:40px; color:#4dcd70;}
/* 体征预警 */
.setwarn-box{}
.setwarn-box .c-list{ background:none;}
.setwarn-box .c-list > li{ background:#fff; border-bottom:1px solid #e1e1e1; padding-top:5px; padding-bottom:5px;}
.setwarn-box .c-list > li:first-child{ border-bottom:1px solid #e1e1e1;}
.setwarn-box .c-list > li .sb-right{ display:box; display:-webkit-box; font-size:12px; padding:8px 0;}
.setwarn-box .sbr-title{ box-flex:0; -webkit-box-flex:0; width:90px;}
.setwarn-box .sbr-input{ box-flex:1; -webkit-box-flex:1; position:relative;}
.setwarn-box .sbr-input input{ display:block; width:100%; height:30px; border:1px solid #f2f2f2; box-sizing:border-box; -webkit-box-sizing:border-box; padding:2px 5px; border-radius:2px;}
.sbr-input .arrow-right{ position:absolute; right:10px; top:8px; transform: rotate(135deg); -webkit-transform: rotate(135deg);}
.setwarn-box .sbr-comp{ box-flex:0; -webkit-box-flex:0; width:60px; text-align:right;}
.setwarn-box .c-list > li .c-list-info{ border-top:none;}
.c-pack{ display: box; display: -webkit-box; -webkit-box-orient: vertical; -webkit-box-pack: center;}
.health-border-1 { border-color: #ff9806 }
.health-border-2 { border-color: #ff0606 }
.health-border-3 { border-color: #4dcd70 }
.health-border-9 { border-color: #00acee }
.health-border-4 { border-color: #ea68a2 }
.health-border-5 { border-color: #1dbdbf }
.health-border-6 { border-color: #37a6ed }
.health-border-7 { border-color: #ae5da1 }
/*签约消息*/
.cl-canbals{background:none;}
.cl-canbals li{border-radius:10px;overflow:hidden;background:#fff;margin-left:0 !important;padding-left:15px;}
.cl-canbals li.c-border{border:1px solid #e1e1e1 !important;}
.cl-canbals .c-avatar-m{border-radius:50%;overflow:hidden;}
/*邀请医生*/
.cl-poer-sinm.c-list .c-list-action{left:0;right:auto;}
.cl-poer-sinm.c-list .c-avatar-s{padding-left:34px;overflow:hidden;width:40px;height:40px;}
.cl-poer-sinm.c-list .c-avatar-s img{width:40px;height:40px;border-radius:50%;}
/* 体征指标 */
.sympt-list{ padding:0 10px 30px 10px;}
.sympt-list li{ background:#fff; border:1px solid #f2f2f2; border-radius:5px; overflow:hidden; padding:8px 8px 15px 8px; margin-top:10px; position:relative;}
.sympt-list li p{ padding:0 3px; line-height:1.7;}
.sympt-diag{ display:block; color:#4bbe4d; padding:8px 0; border-top:1px solid #f2f2f2; margin-top:8px;}
.sympt-list .ui-arrow-r{ border-width:23px; position:absolute; right:-23px; top:-23px; transform: rotate(-45deg); -webkit-transform: rotate(-45deg); z-index:50;}
.sympt-state{ position:absolute; right:0; top:0;}
.sympt-state span{ display:block; position:relative; z-index:100; color:#fff; font-size:13px; padding-right:2px;}
.sympt-state.r-high .ui-arrow-r{ border-color:#ff4c4c;}
.sympt-state.r-middle .ui-arrow-r{ border-color:#fea54b;}
.sympt-state.r-low .ui-arrow-r{ border-color:#4bbe4d;}
.sympt-list li.sympt-time{ background:none; border:none; text-align:center; padding:0; margin-top:12px;}
.sympt-list li.sympt-time label{ display:inline-block; height:20px; line-height:20px; color:#fefefe; background:#d9d9da; border-radius:4px; padding:0 10px; font-size:12px;}

+ 239 - 0
html/yszx/css/manyidu.css

@ -0,0 +1,239 @@
body{
	background-color: #f3f3f3;
}
.man-title{
	padding: 15px 0px;
	text-align: center;
	font-size: 14px;
	color: #909090;
}
.man-value-list .one{
	background-color: #fff;
	border-top: solid 1px #dcdcdc;
	border-bottom: solid 1px #dcdcdc;
	margin-bottom: 10px;
}
.man-value-list .one .up-sec{
	display: -webkit-box;
	display: box;
	border-bottom: solid 1px #dcdcdc;
	padding: 10px 15px;
	box-align: center;
	-webkit-box-align: center;
}
.man-value-list .up-sec .img{
	width: 40px;
	height: 40px;
	border-radius: 50%;
	overflow: hidden;
	margin-right: 15px;
}
.man-value-list .up-sec .img img{
	width: 100%;
	min-height: 100%;
}
.man-value-list .up-sec .name{
	font-size: 12px;
	color: #666;
}
.man-value-list .up-sec .name b{
	font-size: 16px;
	color: #323232;
}
.man-value-list .up-sec .name span{
	display: inline-block;
	vertical-align: bottom;
	font-size: 12px;
	color: #666;
}
.man-value-list .up-sec .name.marb{
	margin-bottom: 3px;
}
.bc-74bf00{
	background-color: #74bf00;
}
.ni-down .star-lists{
	display: -webkit-box;
	padding-left: 15px;
	padding-top: 10px;
	padding-bottom: 10px;
}
.ni-down .star-lists .label{
	font-size: 14px;
	color: #323232;
	margin-right: 60px;
}
.ni-down .star-lists .list{
	display: -webkit-box;
}
.ni-down .star-lists .list .one-star{
	width: 20px;
	height: 20px;
	background: url('../images/icon_wujiaoxing.png') no-repeat;
	background-size: contain;
	background-position: center;
	margin-right: 15px;
}
.ni-down .star-lists .list .one-star:last-child{
	margin-right: 0px;
}
.ni-down .star-lists .list .one-star.active{
	background: url('../images/icon_liangsewujiaoxing.png') no-repeat;
	background-size: contain;
	background-position: center;
}
.ni-down .tag-list{
	padding: 5px 15px 0px 15px;
}
.ni-down .tag-list li{
	display: inline-block;
	font-size: 14px;
	color: #323232;
	padding: 3px 10px;
	border-radius: 20px;
	border: solid 1px #dcdcdc;
	margin-right: 10px;
	margin-bottom: 15px;
}
.ni-down .tag-list li.active{
	background-color: #74bf00;
	color: #fff;
	border-color: #74bf00;
}
.ni-down .tag-list .notag{
	font-size: 14px;
	color: #323232;
	padding-bottom:15px;
}
.man-input{
	margin: 0px 15px 15px 15px;
	position: relative;
}
.man-input input{
	width: 100%;
	border: solid 1px #DCDCDC;
	border-radius: 8px;
	height: 38px;
	font-size: 14px;
	color: #323232;
	padding-left: 10px;
}
.man-input .input{
	position: absolute;
	top: 0px;
	left: 0px;
	right: 110px;
}
.man-input .bttn{
	width: 80px;
	border: solid 1px #DCDCDC;
	font-size: 14px;
	color: #74bf00;
	border-radius: 8px;
	height: 38px;
	line-height: 38px;
	text-align: center;
	float: right;
}
#yes_header{
	display: -webkit-box;
	-webkit-box-align: center;
	padding: 15px 0px;
	-webkit-box-pack: center;
}
#yes_header .word{
	font-size: 16px;
	color: #323232;
}
#yes_header .right{
	width: 20px;
	height: 20px;
	background: url('../images/icon_pingjiacheng.png') no-repeat;
	background-size: contain;
	background-position: center;
	margin-right: 10px;
}
.ni-footer{
	box-sizing: border-box;
	width: 100%;
	padding:15px 15px;
}
.text-input{
	box-sizing: border-box;
	margin: 10px 15px 5px 15px;
	border: solid 1px #dcdcdc;
	padding: 5px 8px 5px 8px;
}
.show-word{
	box-sizing: border-box;
	margin: 10px 15px 15px 15px;
	border: solid 1px #dcdcdc;
	padding: 5px 8px 5px 8px;
	min-height: 100px;
	font-size: 14px;
	color: #333;
}
.text-input textarea{
	width: 100%;
	box-sizing: border-box;
	border: none;
	font-size: 14px;
	color: #333;
	resize : none;
}
.icon-state{
	font-size: 14px;
	color: #909090;
	text-align: right;
	line-height: 1.4;
}
.text-input textarea::-webkit-input-placeholder{	
	font-size: 14px;
	color: #a8a8a8;
}
.ni-select{
	display: -webkit-box;
	-webkit-box-pack: center;
	-webkit-box-align: center;
	padding-top: 10px;
	padding-bottom: 5px;
}
.ni-select .img{
	width: 24px;
	height: 24px;
	background: url('../images/gouxuan_btn.png') no-repeat;
	background-size: contain;
	background-position: center;
}
.ni-select .name{
	font-size: 14px;
	color: #333;
	margin-left: 10px;
}
.ni-select.active .img{
	background: url('../images/gouxuan_btn_pre.png') no-repeat;
	background-size: contain;
	background-position: center;
}
.small-title{
	display: -webkit-box;
	-webkit-box-pack: center;
	-webkit-box-align: center;
	font-size: 14px;
	color: #909090;
	padding-top: 10px;
	padding-bottom: 10px;
}
.small-title.active .tit-icon{
	background: url('../images/btn_shangla.png') no-repeat;
	background-size: contain;
	background-position: center;
}
.small-title .tit-icon{
	width: 16px;
	height: 16px;
	background: url('../images/btn_xiala.png') no-repeat;
	background-size: contain;
	background-position: center;
	margin-left: 10px;
}

+ 234 - 0
html/yszx/css/mf-style.css

@ -0,0 +1,234 @@
@charset "utf-8";
html,body { height: 100%; }
body {font-size: 14px; color: #333; max-width: 640px; margin: 0 auto; background-color: #f2f4f6; }
.dh{ background: #fafafa;}
input, textarea, select { -webkit-appearance: none; resize: none; -webkit-box-shadow: none; box-shadow: none;}
a{color: #17b3ec;}
.ax-popup .ui-dialog-footer button { color: #17b3ec !important; }
.c-list > li, .c-list > .c-list-div { position: relative; display: -webkit-box; display: box; padding-right: 10px; margin-left: 10px; border-top: 1px solid #f1f1f1; }
.c-list-info.c-border-t, .c-list-key.c-border-t, .c-list-title.c-border-t { border-color: #f1f1f1; }
.c-list > li:first-child, .c-list > .c-list-div:first-child { border-top: none; }
.c-list > .c-list-link:active { padding-left: 10px; margin-left: 0; background: #f7f7f7; }
.c-list-a{display: -webkit-box; display: box; width:100%;}
.c-list > .c-list-cover { padding-left: 10px; margin-left: 0; }
.c-list > .list-arrow-r, .c-list > .list-arrow-u, .c-list > .list-arrow-d { padding-right:25px; }
.c-list > .list-arrow-r:after, .c-list > .list-arrow-u:after, .c-list > .list-arrow-d:after { position: absolute; top: 50%; right: 10px; margin-top: -6px; content: ""; display: block; width: 8px; height: 8px; border: solid #cdcdcd; border-width: 2px 2px 0 0; -webkit-transform: rotate(45deg); transform: rotate(45deg); }
.c-list > .list-arrow-u:after { right: 8px; margin-top: -2px; -webkit-transform: rotate(-45deg); transform: rotate(-45deg); }
.c-list > .list-arrow-d:after { right: 8px; margin-top: -8px; -webkit-transform: rotate(135deg); transform: rotate(135deg); }
.c-list-title { display: -webkit-box; display: box; -webkit-box-orient: vertical; box-orient: vertical; -webkit-box-pack: start; box-pack: start; }
.c-list-key, .c-list-info { display: -webkit-box; display: box; -webkit-box-orient: vertical; box-orient: vertical; -webkit-box-pack: center; box-pack: center; }
.c-list .c-list-key{margin-right: 0px;}
.c-list-info { -webkit-box-flex: 1; box-flex: 1; }
.c-list > .c-list-fun { border-top: none; padding-right: 0; }
.c-list > li:first-child, .c-list > .c-list-fun:first-child .c-list-info, .c-list > .c-list-fun:first-child .c-list-key, .c-list > .c-list-fun:first-child .c-list-title, .c-list-div:first-child { border: none; }
.c-list > .c-list-label { border-top: none; padding-right: 0; }
.required { position: relative; }
.required:before { content: "*"; position: absolute; color: #f00; font-size: 14px; height: 12px; line-height: 12px; vertical-align: middle; left: -8px; top: 50%; margin-top: -5px; }
.c-avatar-s { width: 30px; height: 30px; text-align: center; }
.c-avatar-m { width: 40px; height: 40px; text-align: center; }
.c-avatar-l { width: 50px; height: 50px; text-align: center; }
.c-avatar-s img, .c-avatar-m img, .c-avatar-l img { display:block; width: 100%; height: 100%; }
.img-round{ border-radius: 50%; overflow: hidden;}
.pt3{ padding-top:3px;}
.pt25{padding-top:25px;}
.ptb12 { padding-top: 12px; padding-bottom: 12px; }
.pl8 { padding-left: 8px; }
.pl25{ padding-left: 25px;}
.pb100 { padding-bottom: 100px; }
.mt2{margin-top:2px;}
.mt25{margin-top:25px;}
.mb60{ margin-bottom: 60px;}
.c-17b3ec { color: #17b3ec; } /* 兰 */
.c-4fb947{ color:#4fb947;}
.c-ccc{ color: #ccc;}
.c-f11{font-size:11px;}
.c-c00{ color:#c00;}
.bgc-17b3ec{ background: #17b3ec;}
.bgc-4fb947{ background: #4fb947;}
.alink{ display: block;}
.w3em { width: 3em; }
.w4em { width: 4em; }
.w5em { width: 5em; }
.w6em { width: 6em; }
.w7em { width: 7em; }
.w10em { width: 10em; }
.word-count{ color: #ccc; font-size: 12px;}
/* 表单样式 */
/*单选框和复选框*/
.c-radio, .c-check { display: block; box-sizing: border-box; -webkit-box-sizing: border-box; position: relative; padding: 2px 0; }
.c-radio .disc, .c-check .tick { display: block; position: relative; width: 22px; height: 22px; overflow: hidden; box-sizing: border-box; -webkit-box-sizing: border-box; border: 1px solid #e1e1e1; border-radius: 50%; background: #fff; top: 0; left: 0; z-index: 2; }
.c-check .tick { border-radius: 4px; }
.c-radio > input, .c-check > input { display: inline-block; vertical-align: baseline; position: absolute; z-index: 3; width: 22px; height: 22px; background: rgba(0, 0, 0, 0); -webkit-appearance: none; box-sizing: border-box; -webkit-box-sizing: border-box; margin: 0; padding: 0; outline: 0; }
.c-radio > input:checked + .disc:after, label.checked .disc:after { position: absolute; content: ""; width: 10px; height: 10px; border-radius: 50%; left: 5px; top: 5px; box-sizing: border-box; -webkit-box-sizing: border-box; }
.c-check > input:checked + .tick:after, label.checked .tick:after { position: absolute; content: ""; width: 10px; height: 5px; border-style: solid; border-width: 0 0 2px 2px; left: 4px; top: 5px; -webkit-transform: rotate(-45deg); }
.c-radio > input:disabled + .disc, .c-check > input:disabled + .tick { background: #ccc; border-color:#ccc; }
.c-radio > input:disabled + .disc:after{ background:#fff;}
.c-check > input:disabled + .tick:after, label.disabled .tick:after{ border-color: #fff;}
.c-radio > input:disabled, .c-check > input:disabled { cursor: auto; }
.c-check > input:disabled ~ .txt, .c-radio > input:disabled ~ .txt{ color:#aaa;}
.c-radio .txt, .c-check .txt { display: inline-block; position: absolute; height: 1em; line-height: 1em; top: 50%; left: 32px; -webkit-transform: translateY(-50%); transform: translateY(-50%); }
/*下拉选框*/
.c-select { display: block; position: relative; height: 30px; overflow: hidden; box-sizing: border-box; -webkit-box-sizing: border-box; border-radius: 2px; }
.c-select:after { position: absolute; content: ''; width: 8px; height: 8px; border: solid #ccc; border-width: 0 2px 2px 0; -webkit-transform: rotate(45deg); right: 8px; top: 50%; margin-top: -8px; }
.c-select > select { display: block; vertical-align: baseline; position: relative; z-index: 2; width: 100%; height: 28px; line-height: 28px; background: rgba(0, 0, 0, 0); border: none; -webkit-appearance: none; box-sizing: border-box; -webkit-box-sizing: border-box; margin: 0; left: -1px; padding: 0 20px 0 0; }
.c-select > select:focus { outline: 0; }
.c-select.c-border > select { padding: 0 22px 0 5px; left: 0; }
.c-input { height: 30px; }
.c-select select{color:#5b5b5b; }
/* 按钮样式 */
.c-btn { -webkit-box-sizing: border-box; -ms-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; }
.c-btn-a { color: #fff; background: #5fa413; border-radius: 3px; }
.c-btn-b { background: #fff; color: #909090; border: 1px solid #eaeaea; border-radius: 3px; }
.c-btn-b:hover { background: #e5e5e5; }
.c-btn-c { background: #fff; color: #5fa413; border-radius: 3px; }
.c-btn-c:hover { background: #f7f7f7; }
.c-btn.c-btn-full{ padding-left:0;  padding-right:0;}
.c-btn-d { background: #ddd; border-radius: 3px; }
.c-btn-d:hover { background: #ddd; }
.c-btn-macro{ padding:3px 10px;}
.vam{ vertical-align: middle;}
.word-bread { word-wrap: break-word; word-wrap: break-all; }
/* 无数据样式 */
.no-data { width: 40%; height: 0; padding-top: 40%; margin: 20% auto 0 auto; }
.coming { background: url(../images/coming.png) no-repeat 50% 50%; background-size: 100% 100%; }
.noting{ background:url(../images/no-data.png) no-repeat 50% 50%; border-radius:50%; background-size: 90% 90%; }
.no-data-title { text-align: center; padding: 0 10px; font-size: 16px; color: #5b5b5b; }
.no-data-box .noting{ margin-top:0;}
.title-line{ position: absolute; top:0; left:-10px; width:4px; height:100%; background: #17b3ec;}
.title-btn{ position: absolute; display: inline-block; width:40px; height:100%; right:0; top:0; text-align: center;}
.title-btn .iconfont{ position: absolute; font-size:20px; top:50%; left:50%; margin: -10px 0 0 -10px; line-height: 1em;}
.text-box{ border-radius: 4px; border: 1px solid #f2f2f2; -webkit-box-sizing: border-box;box-sizing: border-box; padding: 6px 10px;}
.text-box textarea{ padding: 0;border: 0; width:100%;}
.sf-reg{ background: #81d2f2; padding: 12px 10px; color: #fff;}
.sf-reg li{ -webkit-box-sizing: border-box;box-sizing: border-box; padding: 0 5px 3px 0;}
.sf-reg li span{ display: inline-block; width:5em;}
.sf-reg li b{ font-weight: normal;}
.sf-reg-txt{ min-height: 100px;}
.success-tip .iconfont{ font-size: 64px;}
.family-icon{ position: absolute; font-size: 20px;top:50%; left:0; margin-top: -10px; line-height: 1em;}
.yao-list-title{ position: relative; padding:8px 10px; background: #fff; border-bottom:1px solid #f2f2f2;}
.yao-list-title span{ position: relative; top:-2px;}
.yao-list-title .more{ position: absolute; right:15px; top:50%; -webkit-transform: translateY(-50%);transform: translateY(-50%);}
.yao-list-title .iconfont{font-size:20px;}
.yao-list-title .more .iconfont{font-size:18px; line-height: 1em;}
.yao-list-title .more .wcon, .yao-list-title .more .wcoff{ position: relative;top:0px;}
.yao-list li{ padding-top:10px; padding-bottom:10px; font-size: 13px; color:#5b5b5b; }
.yao-sel-list li{padding-top:5px; padding-bottom:5px; border-color: #fff; }
.yao-sel-list li.selected{ border-bottom: 1px solid #e1e1e1;}
.yao-sel-list li:last-child{ border-bottom: none;}
.yao-usage{ padding: 5px 0 5px 32px; display: none;}
.yao-sel-list li.selected .yao-usage{display: block;}
.yao-usage input { height:28px; line-height: 28px; width:20px; border-radius: 2px; padding: 0 5px;}
.yao-usage span{ position: relative; display:inline-block; height:30px; line-height: 30px; font-size: 13px; color:#909090; vertical-align: middle; padding-right: 10px;}
.yao-usage span:after{ position: absolute; right:0; top:50%; content:""; width:1px; height:20px; margin-top:-10px; background: #e0e0e0;}
.yao-usage .c-select{ width:80px;}
.fz-list li{ background: #fff; margin-top: 10px; border-bottom: 1px solid #f2f2f2;}
.fz-list li.no-btm-border{ border-bottom: none;}
.fz-list li.c-list-label, .fz-list li:first-child{ margin-top: 0;}
.fz-list li.c-list-label{ padding: 0 10px 15px 10px; margin-left: 0;}
.btn-list{ display: -webkit-box; display: box; }
.btn-list li{display: -webkit-box; display: box; -webkit-box-orient: vertical; box-orient: vertical; -webkit-box-pack: center; box-pack: center;-webkit-box-flex: 1; box-flex: 1; }
.btn-list li a{ display:block; text-align: center; padding: 7px 0; position: relative;}
.btn-list li a:after{ position: absolute; content: ""; width:1px; height:20px; background: #f2f2f2; top:50%; right:0; margin-top: -10px; z-index: 10;}
.btn-list li:last-child a:after{ display: none;}
.btn-list li a .iconfont{ font-size:20px; vertical-align: middle;}
.btn-list-ver li a{ padding: 10px 15px;}
.btn-list-ver li a .iconfont{ font-size:24px; line-height: 1.2em;}
.btn-list-ver li a span{ display: block; clear: both;}
.btn-list-big li div { width:40px; height:40px; margin: 0 auto; border-radius: 50%; line-height: 40px; vertical-align: middle; }
.btn-list-big li div .iconfont{ font-size: 24px; color: #fff; vertical-align: middle;}
.btn-list-big li a:after{ height: 40px; margin-top: -20px;}
.qy-btn-list li a{ color: #333;}
.qy-btn-list li a .iconfont{ color: #ccc;}
.qy-btn-list li a:hover, .qy-btn-list li a:hover .iconfont{color:#17b3ec;}
.week-select{display: -webkit-box; display: box; }
.week-select>a, .week-select>div{ position: relative; display: -webkit-box; display: box; -webkit-box-orient: vertical; box-orient: vertical; -webkit-box-pack: center; box-pack: center; }
.week-select>div{-webkit-box-flex: 1; box-flex: 1; text-align: center; border-left:1px solid #f2f2f2;border-right:1px solid #f2f2f2;}
.week-select>a.prev{padding: 10px 10px 10px 25px;}
.week-select>a.next{padding: 10px 25px 10px 10px;}
.week-select>a.prev:after, .week-select>a.next:after{position: absolute; top: 50%; left: 10px; margin-top: -6px; content: ""; display: block; width: 8px; height: 8px; border: solid #cdcdcd; border-width: 0 0 2px 2px; -webkit-transform: rotate(45deg); transform: rotate(45deg);}
.week-select>a.next:after{left:auto; right:10px; -webkit-transform: rotate(-135deg); transform: rotate(-135deg);}
.basic-info li{ padding:0; margin:0 !important; text-align: left;}
.basic-info .title-btn { position:relative; }
.basic-info .title-btn .iconfont{ margin: -5px 0 0 -10px; top:0;}
.dh-error{ text-align: center; padding: 20px 0;}
.dh-error .iconfont {font-size: 50px; color: #ccc;}
.dh-error dd{ color: #909090; font-size: 12px; padding: 0 30px;}
.start-end{ padding: 0 18px; background: #fff; font-size: 15px;}
.start-point, .end-point{ padding: 15px 25px; position: relative;}
.start-end li:first-child{ border-bottom: 1px solid #f2f2f2;}
.start-point:after, .end-point:after{ position: absolute; content: ""; top:50%; left:0; margin-top: -5px; width:8px; height:8px; border-radius: 50%; border:2px solid #62b211;}
.end-point:after{border-color:#f50;}
.start-endb{ width: 100%; -webkit-box-sizing: border-box; box-sizing: border-box;}
.start-endb li{ width:50%; padding: 15px 10px 15px 20px; float:left;-webkit-box-sizing: border-box;box-sizing: border-box;}
.start-endb li:first-child{ border-bottom: none;}
.error-tips{ position: absolute; right:0; top:50%; line-height: 1em; font-size: 24px; margin-top: -12px; color:#d7110c;}
.dh-select li a{ color: #333;}
.dh-select li a .iconfont{ color: #909090;}
.dh-select li.curr a, .dh-select li.curr a .iconfont{ color:#17b3ec;}
.dh-bus-line{ border: 1px solid #f2f2f2; background: #fff; padding: 8px; border-radius: 4px;}
.dh-bus-line dt{ font-size: 16px; padding-bottom: 5px; overflow:hidden; white-space:nowrap; text-overflow:ellipsis;}
.dh-bus-line dt b{ display: inline-block;}
.dh-bus-line dt i{ position: relative; top:-2px;display: inline-block; background: #67c395; font-size: 12px; color:#fff; line-height: 1em; padding: 4px; border-radius: 3px; vertical-align: middle; margin-right: 5px;}
.dh-bus-line dd{ color:#909090; font-size: 12px;}
.dh-bus-line dd span{ display: inline-block; padding: 0 10px; border-right: 1px solid #f2f2f2; }
.dh-bus-line dd span:first-child{ padding-left: 0;}
.dh-bus-line dd span:last-child{ border:none;}
.dh-swiper{height:84px; }
.dh-swiper .dh-bus-line{ border:none; padding: 15px 10px 10px 10px; border-radius: 0;}
.dh-swiper.swiper-container-horizontal>.swiper-pagination{ bottom: 5px;}
.dh-swiper.swiper-container-horizontal>.swiper-pagination .swiper-pagination-bullet { margin: 0 3px;}
.dh-line{ counter-reset:bh; border-top: 1px solid #f2f2f2;}
.dh-line li{ position: relative; border-bottom: 1px solid #f2f2f2; padding: 15px 10px 15px 38px; }
.dh-line li:before{ position: absolute; content: counter(bh); counter-increment:bh; top:50%; left:15px; font-size:14px; line-height: 1em; margin-top: -7px;}
.dh-line-box{ border-radius: 4px; border:1px solid #f2f2f2; background: #fff; padding:0 10px;}
.dh-line-box .start-point, .dh-line-box .end-point{ margin-left:15px;}
.dh-top-fixed{ position: fixed; top:0; left:0; width:100%; z-index: 9999;}
.dh-btm-fixed{ position: fixed; bottom:0; left:0; width:100%; z-index: 9999;}
.mapbox{ width:100%; overflow: hidden; padding: 44px 0 84px 0; -webkit-box-sizing: border-box; box-sizing: border-box;}
.view-more{ display: block; clear: both; text-align: center;}
.view-more:hover{background: #f1f1f1;}
/* 404 */
.error-box { width: 100%; height: 100%; position: fixed; z-index: 500; display: box; display: -webkit-box; -webkit-box-orient: vertical; -webkit-box-pack: center; }
.error-tb { display: inline-block; width: 111px; height: 90px; background: url(../images/quesheng_img.png) no-repeat; background-size: 100% 100%; -webkit-background-size: 100% 100%; -moz-background-size: 100% 100%; -ms-background-size: 100% 100%; }
.c-47a8ef{color: #47A8EF;}
/*css search*/
.c-ser-hold { width: 100%; height: 43px; background-color: #e8e8e8; padding: 6px 10px 0 10px; }
.c-ser-into { background: #fff; height: 28px; line-height: 28px; border: 1px solid #e1e1e1; border-radius: 5px; color: #8e8e93; padding:0 8px;}
.c-serdet { display: -webkit-box; display: box; padding: 7px 10px 0 10px; }
.ser-icon { position: relative; display: inline-block; width: 13px; height: 13px; font-size: 1px; background: none; top:1px;}
.ser-icon:before, .ser-icon:after { content: ""; position: absolute; left: 0; background: transparent; font-size: 1px; }
.ser-icon-search:before { left: 1px; top: 1px; width: 9px; height: 9px; border: 1px solid #8e8e93; border-radius: 50%; -webkit-border-radius: 50%; -moz-border-radius: 50%; -o-border-radius: 50%; }
.ser-icon-search:after { left: 9px; top: 11px; width: 5px; height: 1px; background: #8e8e93; transform: rotate(45deg); -webkit-transform: rotate(45deg); -moz-transform: rotate(45deg); -o-transform: rotate(45deg); -ms-transform: rotate(45deg); }
.c-ser-main { -webkit-box-flex: 1; box-flex: 1; background: #fff; height: 28px; line-height: 28px; border: 1px solid #e1e1e1; border-radius: 5px; font-size: 15px; color: #8e8e93; position: relative; padding-left: 25px; overflow: hidden; }
.c-ser-main i { position: absolute; left: 7px; top: 7px; }
.c-ser-input { width: 100%; background: #fff; height: 22px; line-height: 22px; border: none; color: #8e8e93; border-radius: 5px; padding: 3px 0; }
.c-ser-btn { margin-left: 10px; -webkit-box-flex: 0; box-flex: 0; }
.c-ser-btn a { display: block; height: 30px; line-height: 30px; padding: 0 10px; background: #3aa7ed; color: #fff; font-size: 14px; border-radius: 4px; }
.c-ser-canc { margin-left: 10px; -webkit-box-flex: 0; box-flex: 0; }
.c-ser-canc a { display: block; height: 30px; line-height: 30px; padding: 0 5px; }
.c-ser-main .input-clear { position: absolute; right: 6px; top: 6px; background: #7e7e7e; border-radius: 50%; width: 16px; height: 16px; text-align: center; }
.c-ser-main .input-clear .close { position: relative; display: inline-block; width: 10px; height: 10px; overflow: hidden; top: -7px; }
.c-ser-main .input-clear .close::before, .c-ser-main .input-clear .close::after { content: ''; position: absolute; height: 2px; width: 100%; top: 50%; left: 0px; margin-top: -1px; background: #fff; border-radius: 6px; }
.c-ser-main .input-clear .close::before { -webkit-transform: rotate(45deg); -moz-transform: rotate(45deg); -ms-transform: rotate(45deg); -o-transform: rotate(45deg); transform: rotate(45deg); }
.c-ser-main .input-clear .close::after { -webkit-transform: rotate(-45deg); -moz-transform: rotate(-45deg); -ms-transform: rotate(-45deg); -o-transform: rotate(-45deg); transform: rotate(-45deg); }
.c-ser-hold.bgc-f2f4f6{ background:#f2f4f6;}
.c-ser-info{ position: absolute;width:100%; top:40px; left:0px;z-index:1;}
.c-ser-main.c-ol-visible{ overflow:visible;}
.h40{height: 40px;}
.lh40{line-height: 40px;}
.option_panel{z-index:2;box-shadow: 1px 1px 5px rgba(0,0,0,0.3);}
.input-group input { margin-bottom: 0; }
.mui-input-group { display: none; position: absolute; width: 100%; z-index: 999; border-left: 1px solid #e1e1e1; border-right: 1px solid #e1e1e1; }
.sp-note{font-size: 12px;color: #909090;padding-left: 90px;}
.li-link{border-top:0px;}
.li-link a{text-decoration: underline;}
.q-note{font-size: 12px;color: #909090;padding: 10px 10px 0px 10px;}
#jkjy_dummy{text-align: right;width: 100%;}

+ 31 - 0
html/yszx/css/mingyi-homepage.css

@ -0,0 +1,31 @@
@charset "utf-8";
.sdoc-top.smil{padding: 25px 15px 25px;height: 78px;background: url(../images/yisheng_bg.png) no-repeat;}
.height-35{height: 35px;}
.c-323232{color:#323232;}
.c-666666{color:#666666;}
.c-FF6A56 {color:#FF6A56}
.f-dib{display: inline-block;}
.mt7{margin-top: 7px;}
.width-20{width:20%}
.width-40{width: 40%;}
.c-100 {width: 100%;}
.c-table td, .c-table th{border-right: 1px solid #dcdcdc;}
.c-btn-ffffff { background-color: #ffffff;color: #909090;border: #dcdcdc 1px solid;pointer-events: none;}
.c-bb0{border-bottom: 0;}
.c-table td, .c-table th{border-right: 1px solid #dcdcdc;}
.c-74bf00{color:#74BF00}
.c-list > li, .c-list > .c-list-div{margin-left: 0;}
#bang-btn.active{background-color: #74bf00;}
#footer { position: absolute; z-index: 4;bottom: 8px;height: 50px;background: #ffffff;width: 100%;}
#wrapper {position: absolute;z-index: 1;top: 0; bottom: 50px; left: 0; width: 100%;overflow: hidden;}
#wrapper2 {position: absolute;z-index: 1;top: 50px; bottom: 0px; left: 0; width: 100%;overflow: hidden;}
.c-list {background-color: #f3f3f3;}
.span-content{-webkit-box-flex:1;-moz-box-flex:1;box-flex:1;display:-moz-box;display:-webkit-box;font-size: 14px;overflow:hidden;-webkit-line-clamp: 2;max-height: 45px;-webkit-box-orient:vertical;color:#323232;word-break: break-all;}
.f-dn{display: none;}
em{color:#12B7F5}
.div-img{width: 320px; height: 184px;background: url(../../../images/shujuweikong_img.png) no-repeat center top; background-size: 320px 184px;margin: 60px auto 0px;}
#search_suggest_text { position: absolute; top: 55px; left: 8px; color: #75BF00; font-size: 18px;}
.searchbar-clear{position: absolute;width: 28px;height: 28px;right: 0;top:8px;opacity:0;pointer-events:none;background-position:center;background-repeat:no-repeat;background-image:url(../../../images/delete01_pre.png);-webkit-background-size:20px 20px;background-size:20px 20px;-webkit-transition-duration:300ms;transition-duration:300ms;cursor:pointer;}
.s-bc-DCDCDC{background-color:#dcdcdc;}
.n-avatar-l.img-round img, .n-avatar-m.img-round img{width:62px;height: 62px;}
.dr-item .n-list-li{margin-left: 5px;}

+ 92 - 0
html/yszx/css/prescription-consulting.css

@ -0,0 +1,92 @@
.div-top-content{
    position: fixed;
    width: 100%;
    z-index: 20;
    background: #FFFFFF;
}
.c-main{
    position: absolute;
    width: 100%;
    top: 75px;
    z-index: 10;
}
.h34{
    height: 34px;
}
.lh34{
    line-height: 34px;
}
.c-inline-block{
    display: inline-block;
}
.div-xf-status{
    /*width: 70px;*/
    height: 22px;
    /*line-height: 22px;*/
    padding: 0 10px;
    border:1px solid #74bf00;
    color:#74BF00;
    text-align: center;
    font-size: 12px;
    border-radius: 20px;
}
.chat-right .word-bread.sys-msg{
    background-color: #fff;
    
}
.chat-right .word-bread.sys-msg:after{
    background-color: #fff;
    border-color: #17b3ec;
}
.chat-left .word-bread.sys-msg{
    background-color: #fff;
    border-color: #17b3ec;
}
.chat-left .word-bread.sys-msg:after{
    background-color: #fff;
    border-color: #17b3ec;
}
.sys-header{
    display: inline-block;
    background-color: #17b3ec;
    height: 20px;
    line-height: 20px;
    padding: 0 10px;
    border-radius: 10px;
    color: #fff
}
.sys-header img{
    vertical-align: middle;
    margin-right: 5px;
}
a {
    color: #47A8EF;
}
a:active{
    color: #47A8EF;
}
.chat-right .word-bread.survey-msg{
    background-color: #e4e4e4;
}
.chat-right .word-bread.survey-msg:after{
    background-color: #e4e4e4;
    border-color: #dcdcdc;
}
.chat-left .word-bread.survey-msg{
    background-color: #e4e4e4;
    border-color: #dcdcdc;
}
.chat-left .word-bread.survey-msg:after{
    background-color: #e4e4e4;
    border-color: #dcdcdc;
}
.word-bread.survey-msg .msg-body{
	background-color: #fff;
	padding: 4px 5px;
	border-radius: 5px;
}
.chat-left .word-bread.survey-msg{
	padding: 4px 5px;
}
.survey-msg .j-btn{float: right;font-size: 14px;color:#47A8EF;padding: 3px 5px;border: solid 1px #17B3EC;border-radius: 5px;}
.xf-notice{font-size: 14px;color: #666;text-align: center;padding-top: 10px;position: relative;left: -27px;}

+ 200 - 0
html/yszx/css/prescription-selection.css

@ -0,0 +1,200 @@
@charset "utf-8";
*{
    -webkit-box-sizing: inherit;
    box-sizing: inherit;
}
.modal-overlay {
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background: #000;
	z-index: 10;
	visibility: visible;
	opacity: 0.5;
	-webkit-transition-duration: 400ms;
	transition-duration: 400ms;
	display: none;
}
.bgc-f2f4f6{
    background-color: #f2f4f6;
}
.modal-overlay.modal-overlay-visible {
	visibility: visible;
	opacity: 1;
}
.c-lab-mor li:first-child {
	border-right: 1px solid #ddd;
	border-left: none;
}
.c-lab-mor li span {
	font-size: 16px;
	color: #333;
}
.c-lab-mor li {
	height: 45px;
	-webkit-box-flex: 1;
    box-flex: 1;
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    -o-box-sizing: border-box;
    text-align: center;
    padding-top: 6px;
    border-bottom: 1px solid #e1e1e1;
}
.ul-consultation li {
	margin-top: 10px;
	background-color: #FFF;
	border-radius: 5px;
	position: relative;
}
.ul-consultation .card-title {
	height: 20px;
	padding: 5px 10px;
	color: #FFF;
	border-top-left-radius: 5px;
	border-top-right-radius: 5px;
	font-size: 14px;
	line-height: 20px;
}
.s-bc-FF9526 {
	background-color: #FF9526;
}
.div-shequ i {
	width: 12px;
	height: 12px;
	background: url(../images/yiyuanjianzhu_icon.png) no-repeat;
	background-size: 12px;
	display: inline-block;
	margin-right: 5px;
}
.div-shequ span {
	font-size: 12px;
	color: #909090;
}
.div-sqxf-btn {
	width: 70px;
	height: 22px;
	line-height: 22px;
	border: 1px solid #74BF00;
	border-radius: 20px;
	font-size: 12px;
	color: #74BF00;
	text-align: center;
	/*position: absolute;
	right: 10px;
	top: 40px;
	z-index: 10;*/
}
.c-lab-mor {
    display: -webkit-box;
    display: box;
    overflow: hidden;
    background: #fff;
	position: relative;
	z-index: 20;
}
.cb-fff {
	background: #fff;
}
.div-diagnosis,.div-dates{
	position: absolute;
    width: 100%;
    z-index: 20;
    top: 45px;
    display: none;
}
.div-diagnosis li,.div-dates li {
	height: 40px;
	line-height: 40px;
	padding-left: 10px;
	font-size: 14px;
	color: #333;
	border-bottom: 1px solid #ddd;
}
.div-diagnosis li.active,.div-dates li.active{
	color: #74bf00;
}
.div-diagnosis li.active i,.div-dates li.active i{
	width: 17px;
	height: 17px;
	background: url(../images/gouxuan002_icon.png) no-repeat;
	background-size: 17px;
	margin-right: 10px;
	float: right;
	margin-top: 10px;
}
.c-lab-mor i {
	width: 12px;
	height: 12px;
	background: url(../images/jiantou_xia_btn.png) no-repeat;
	background-size: 12px;
	display: inline-block;
	margin-left: 10px;
}
.c-lab-mor i.active {
	width: 12px;
	height: 12px;
	background: url(../images/jiantou_shang_btn.png) no-repeat;
	background-size: 12px;
	display: inline-block;
	margin-left: 10px;
}
.box{
    display: -webkit-box;
    display: box;
    background-color: #fff;
    padding-left: 10px;
    padding-right: 10px;
    -webkit-box-align: center;
}
.box-info{
    -webkit-box-flex: 1;
    box-flex: 1;
    display: box;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-box-pack: center;
}
.div-no-info{
    position: absolute;
    top: 50%;
    -webkit-transform: translateY(-50%);
    -o-transform: translateY(-50%);
    transform: translateY(-50%);
    text-align: center;
}
.div-no-info img{
    width: 100%;
}
.next-btn{
    height: 34px;
    line-height: 34px;
    background-color: #74bf00;
    border-radius: 5px;
    color: #fff;
    font-size: 14px;
    text-align: center;
}
.next-btn.disabled{
    background-color: #c0c0c0;
}

文件差异内容过多而无法显示
+ 121 - 0
html/yszx/css/search-bar.css


文件差异内容过多而无法显示
+ 457 - 0
html/yszx/css/sfdoc-style.css


文件差异内容过多而无法显示
+ 370 - 0
html/yszx/css/sfp-style.css


文件差异内容过多而无法显示
+ 5626 - 0
html/yszx/css/sq-style.css


+ 445 - 0
html/yszx/css/ss-style.css

@ -0,0 +1,445 @@
/*---------cross.ui-------------------------*/
/* buttons color
-----------------------------------------------------------------------------*/
.c-btn-087eff { background-color: #087eff; }
.c-btn-087eff:hover { background-color: #0771e5; }
.c-btn-588cd5 { background-color: #588cd5; }
.c-btn-588cd5:hover { background-color: #4680d0; }
.c-btn-37a6ec { background-color: #37a6ec; }
.c-btn-37a6ec:hover { background-color: #3195d4; }
.c-btn-4dcd70 { background-color: #4dcd70; }
.c-btn-4dcd70:hover { background-color: #45b865; }
.c-btn-4db944 { background-color: #4db944; }
.c-btn-4db944:hover { background-color: #45a63d; }
.c-btn-309765 { background-color: #309765; }
.c-btn-309765:hover { background-color: #2b885b; }
.c-btn-ff9600 { background-color: #ff9600; }
.c-btn-ff9600:hover { background-color: #e58700; }
.c-btn-ff8100 { background-color: #ff8100; }
.c-btn-ff8100:hover { background-color: #e57400; }
.c-btn-fc6155 { background-color: #fc6155; }
.c-btn-fc6155:hover { background-color: #e2574c; }
.c-btn-ff3b2f { background-color: #ff3b2f; }
.c-btn-ff3b2f:hover { background-color: #e5352a; }
.c-btn-f9f9f9 { background-color: #f9f9f9; color: #087eff; border: #c0c0bc 1px solid; }
.c-btn-f9f9f9:hover { background-color: #e0e0e0; }
.c-btn-ffffff { background-color: #ffffff; color: #4dcd70; border: #e1e1e1 1px solid; }
.c-btn-ffffff:hover { background-color: #e5e5e5; }
.c-btn-fff { background-color: #ffffff; color: #999999; border: #e1e1e1 1px solid; }
.c-btn-fff:hover { background-color: #e5e5e5; }
.c-btn-ff3 { background-color: #ffffff; color: #ff3b2d; border: #e1e1e1 1px solid; }
.c-btn-ff3:hover { background-color: #e5e5e5; }
/**************************************************/
.c-border, .c-border-t, .c-border-b, .c-border-l, .c-border-r, .c-border-tb { border-color: #e1e1e1; border-style: solid; }
.ui-grid { display: -webkit-box; display: box; }
.ui-col-0 { -webkit-box-flex: 0; box-flex: 0; }
.ui-col-1 { -webkit-box-flex: 1; box-flex: 1; }
.ui-arrow, .ui-arrow s { position: relative; display: block; font-size: 0; line-height: 0; width: 0; height: 0; border-color: transparent; border-style: dashed; border-width: 5px; }
.ui-arrow-r, .ui-arrow-r s { border-left-color: #aaa; border-left-style: solid; }
.ui-arrow-r s { border-left-color: #fff; position: absolute; left: -7px; top: -5px; }
.c-btn-4dcd70 { background-color: #4dcd70; }
.c-btn-4dcd70:hover { background-color: #45b865; }
.c-btn-fff { background-color: #ffffff; color: #999999; border: #e1e1e1 1px solid; }
.c-btn-fff:hover { background-color: #e5e5e5; }
body, html { width: 100%; height: 100%; background: #f3f3f3; }
/* 健康管理师 */
.sdoc-top { height: 180px; background: url(../images/banner1.jpg) no-repeat; background-size: 100% 100%; -webkit-background-size: 100% 100%; -moz-background-size: 100% 100%; text-align: center; padding: 20px 15px 0 15px; font-size: 12px; color: #fff; text-shadow: 0px 0px 2px rgba(0,0,0,0.6); line-height: 23px; position: relative; }
.sdoc-top .sdimg { display: block; margin: 0 auto 10px auto; width: 60px; height: 60px; padding: 1px; background-color: rgba(250,250,250,.75); border-radius: 50%; }
.sdoc-top.smil { padding: 38px 15px 36px; height: 100px; background: url(../images/p-bg-top.png) no-repeat; background-size: 100% 100%; }
.sdoc-top.smil.short { height: 60px; }
.sdoc-top.smil .sdimg { margin: 0; width: 56px; height: 56px; border-radius: 56px; overflow: hidden; padding: 0; background: rgb(250,250,250) }
.sdoc-top.smil .sdimg img { width: 56px; height: 56px; }
.ff6600 { color: #ff6600; }
.pb60 { padding-bottom: 60px; }
.slider-detail h2 { color: #333333; }
.slider-detail p { color: #888888; }
.slider-detail li { padding: 10px 0 12px 0; position: relative; border-bottom: 1px solid #e1e1e1; }
.slider-detail li:last-child { border: none; }
.slider-detail li span { position: absolute; bottom: 0px; right: 15px; }
.slider-detail p.show { display: -webkit-box; overflow: hidden; text-overflow: ellipsis; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.arrow-down, .arrow-up { display: inline-block; width: 8px; height: 8px; border: solid #cdcdcd; border-width: 2px 2px 0 0; cursor: pointer; -webkit-transform: rotate(135deg); -moz-transform: rotate(135deg); transform: rotate(135deg); }
.arrow-up { -webkit-transform: rotate(-45deg); -moz-transform: rotate(-45deg); transform: rotate(-45deg); }
.line-click { width: 100%; height: 15px; position: relative; }
.menu-boxer span { width: 60px; height: 60px; text-align: center; color: #fff; line-height: 60px; display: block; border-radius: 60px; margin: 15px auto 0; }
.menu-boxer span i { font-size: 40px; }
.menu-boxer p { color: #666666; font-size: 14px; text-align: center; padding-top: 5px; }
.menu-boxer span.green-bg { background: #38e4a5; }
.menu-boxer span.red-bg { background: #f2417f; }
.menu-boxer span.org-bg { background: #ffb30f; }
.menu-boxer span.blue-bg { background: #32a7f9; }
/*提交成功*/
.data-noticebox { padding-top: 15%; text-align: center; }
.data-noticebox i { color: #4dcd70; font-size: 80px; line-height: 80px; }
.data-noticebox p { padding-left: 48px; padding-right: 48px; }
.data-noticebox p span { color: #333333; }
.data-noticebox .bottom-box { padding: 30px 15px 0; }
.bottom-box a.c-btn { width: 45%; padding: 12px 30px; }
.bottom-box { box-sizing: border-box; }
.bottom-box a { box-sizing: border-box; }
.ts-boxer { max-width: 320px; width: 40%; margin: 0 auto; }
.ts-noti { background: url(../images/pingjia.png) no-repeat center center; height: 0; background-size: 100% auto; width: 100%; padding-bottom: 100%; display: block; }
/*评价*/
.evaluation-boxer { }
.evaluation-boxer .scoresr { padding: 6px 15px; color: #666666; line-height: 36px; }
.evaluation-boxer .scoresr i { font-size: 24px; color: #c5c3c3; }
.evaluation-boxer .scoresr li.checked i { color: #ff7200; }
.scoresr li { float: left; width: 31.4px; height: 24px; }
.words-box textarea { border: none; box-sizing: border-box; padding: 10px 15px; font-size: 14px; }
.com-bottom { padding: 0 15px; }
.ti-star { margin-top: 7px; background: url(../images/tip-star.png) no-repeat; text-align: left; width: 157px; height: 22px; background-size: cover; overflow: hidden; background-position: 0 -22px; }
.ti-star ul { background: url(../images/tip-star.png) no-repeat; width: 157px; height: 22px; background-size: cover; overflow: hidden; background-position: 0 -22px; }
.ti-star ul.one { background-position: -134px 0; }
.ti-star ul.two { background-position: -101px 0; }
.ti-star ul.three { background-position: -67px 0; }
.ti-star ul.four { background-position: -34px 0; }
.ti-star ul.five { background-position: 0 0; }
/*csx*/
.ptb12 { padding-top: 12px; padding-bottom: 12px; }
.n-list { background-color: #fff; }
.n-list > li, .n-list > .n-list-li { position: relative; display: -webkit-box; display: box; box-pack: center; padding-right: 15px; margin-left: 15px; border-top: 1px solid #f1f1f1; clear: both; }
.n-list > li:first-child, .n-list > .n-list-li:first-child { border-top: none; }
.n-list > .n-list-link:active { background-color: #f7f7f7; padding-left: 15px; margin-left: 0 }
.n-list > .n-list-cover { padding-left: 15px; margin-left: 0; }
.n-list > .list-arrow-r, .n-list > .list-arrow-d, .n-list > .list-arrow-u { padding-right: 30px }
.n-list > .list-arrow-r:after, .n-list > .list-arrow-d:after, .n-list > .list-arrow-u:after { position: absolute; top: 50%; right: 15px; margin-top: -5px; content: ""; display: block; width: 8px; height: 8px; border: solid #cdcdcd; border-width: 2px 2px 0 0; -webkit-transform: rotate(45deg); -moz-transform: rotate(45deg); -ms-transform: rotate(45deg); transform: rotate(45deg); }
.n-list > .list-arrow-d:after { right: 13px; margin-top: -8px; -webkit-transform: rotate(135deg); -moz-transform: rotate(135deg); -ms-transform: rotate(135deg); transform: rotate(135deg); }
.n-list > .list-arrow-u:after { right: 13px; margin-top: -2px; -webkit-transform: rotate(-45deg); -moz-transform: rotate(-45deg); -ms-transform: rotate(-45deg); transform: rotate(-45deg); }
.n-list-title { display: -webkit-box; display: -moz-box; display: box; -webkit-box-orient: vertical; -moz-box-orient: vertical; box-orient: vertical; -webkit-box-pack: start; -moz-box-pack: start; box-pack: start; }
.n-list-key, .n-list-info { display: -webkit-box; display: -moz-box; display: box; -webkit-box-orient: vertical; -moz-box-orient: vertical; box-orient: vertical; -webkit-box-pack: center; -moz-box-pack: center; box-pack: center; }
.n-list-info { display: -webkit-box; display: -moz-box; display: box; -webkit-box-flex: 1; -moz-box-flex: 1; box-flex: 1; }
.n-list-flex { display: -webkit-box; display: -moz-box; display: box; -webkit-box-flex: 1; -moz-box-flex: 1; box-flex: 1; }
.n-list > .n-list-function { border-top: none; padding-right: 0; }
.n-list > .n-list-function .n-list-flex { border-top: 1px solid #f1f1f1; }
.n-list > .n-list-function:first-child .n-list-flex { border-top: none; }
.n-list > li:first-child, .n-list > .n-list-function:first-child, .n-list > .n-list-function:first-child .n-list-info, .n-list > div:first-child { border: 0; }
.n-list > .n-list-label { border-top: none; padding-right: 0; }
.n-list .n-list-img { width: 100px; height: 68px; overflow: hidden; position: relative }
.n-list .n-list-img img { width: 100%; height: auto; }
.required { position: relative; }
.required:before { content: "*"; position: absolute; color: #f00; font-size: 14px; height: 12px; line-height: 12px; vertical-align: middle; left: -10px; top: 50%; margin-top: -5px; }
.n-avatar-s, .n-avatar-m, .n-avatar-l { width: 26px; height: 26px; display: -webkit-box; -webkit-box-pack: center; -webkit-box-align: center; }
.n-avatar-m { width: 43px; height: 43px; }
.n-avatar-l { width: 54px; height: 54px; }
.n-avatar-s img, .n-avatar-m img, .n-avatar-l img { width: 100%; height: 100%; }
/* 填写信息 */
.edit-info>li .n-list-key:first-child { width: 4em; color: #333; }
.edit-info>li .n-list-info { color: #5b5b5b; }
.add-member { color: #5b5b5b; line-height: 24px; vertical-align: middle; }
.add-member .iconfont { font-size: 24px; line-height: 24px; margin-left: 5px; }
.sel-sex li { display: inline-block; line-height: 24px; vertical-align: middle; margin-right: 30px; }
.sel-sex li i { font-family: "iconfont" !important; font-size: 24px; line-height: 24px; font-style: normal; -webkit-font-smoothing: antialiased; -webkit-text-stroke-width: 0.2px; -moz-osx-font-smoothing: grayscale; color: #dfdfdf; margin-right: 5px; }
.sel-sex li i.sex-male:before { content: "\d607"; }
.sel-sex li i.sex-female:before { content: "\d608"; }
.sel-sex li.selected i.sex-male:before { color: #4dcd70; content: "\d60a"; }
.sel-sex li.selected i.sex-female:before { color: #ee90ff; content: "\d60b"; }
.doc-avatar { width: 50px; height: 50px; border-radius: 50%; overflow: hidden; }
.doc-avatar img { width: 100%; height: 100%; }
/*投诉*/
.ts-box { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; width: 100%; padding: 0; border: none; }
.upload-img { overflow: hidden; display: inline-block; }
.upload-img ul li { position: relative; display: inline; float: left; width: 76px; height: 76px; padding: 0 10px 10px 0; }
.upload-img ul li img { width: 100%; height: 100%; }
.add-btn { position: relative; display: block; width: 74px; height: 74px; font-size: 0; color: #b8b8b8; border: 1px dashed #a0a0a0; background: #fff; }
.add-btn:before { content: ""; display: block; position: absolute; top: 34px; left: 22px; width: 30px; height: 2px; background: #a0a0a0; }
.add-btn:after { content: ""; display: block; position: absolute; top: 20px; left: 36px; width: 2px; height: 30px; background: #a0a0a0; }
.doc-tab li { width: 50%; }
.doc-tab li.hit { border-bottom: 3px solid #4dcd70; }
.doc-tab li.hit a { color: #4dcd70; }
.doc-list-sm { padding: 10px 15px; }
.doc-list-sm span { color: #666; }
.doc-list-sm b { color: #333; font-weight: normal; }
.delimgpop { position: fixed; width: 100%; height: 100%; left: 0; top: 0; background: #000; text-align: center; z-index: 2200; }
.del-img-box { width: 100%; height: 100%; display: table; }
.del-img-con { display: table-cell; vertical-align: middle; }
.del-img-con img { width: auto; height: auto; }
.del-img-con p { position: relative; display: inline-block; min-width: 100px; text-align: center; }
.del-img-box p:after { position: absolute; top: 0; left: 0; content: ""; background: rgba(255,255,255,.6); width: 100%; height: 40px; z-index: 10; }
.del-img-btn { display: inline-block; height: 40px; line-height: 40px; position: absolute; top: 0; right: 0; z-index: 20; padding: 0 15px; text-align: right; color: #000; }
.del-img-btn .iconfont { font-size: 20px; margin-right: 4px; }
/*2015.10.9*/
.w4em { width: 4em; }
.c-ff5bd3 { color: #ff5bd3; }
.c-images-cycle { border-radius: 50%; overflow: hidden; }
.word-bread { white-space: pre-wrap; word-wrap: break-word; word-wrap: break-all; }
/*健康指导*/
.histroy-title { padding: 8px 15px; color: #5b5b5b; font-size: 13px; }
.histroy-title .iconfont { color: #c5c5c5; }
.doctor-talk { padding: 6px 15px; font-size: 13px; }
.doctor-talk .iconfont { color: #37a6ed; font-size: 20px; }
/*已建档*/
.common-title { font-size: 13px; padding: 8px 15px; color: #5b5b5b; }
.tz-record-list .n-list-key { padding: 12px 20px 12px 0; }
.tz-record-list .n-avatar-m { font-size: 16px; border-radius: 50%; overflow: hidden; text-align: center; }
.tz-record-list .n-list-flex { padding: 12px 0; }
.tz-record-list .n-list-info { padding-right: 25px; }
.tz-record-list .n-list-info p { font-size: 13px; color: #909090; white-space: pre-wrap; word-wrap: break-word; }
.doctor-zd-list .n-list-key { padding: 12px 20px 12px 0; }
.doctor-zd-list .n-avatar-m { border-radius: 50%; overflow: hidden; }
.doctor-zd-list .n-list-flex { padding: 12px 0; }
.doctor-zd-list .n-list-info p { font-size: 13px; color: #909090; white-space: pre-wrap; word-wrap: break-word; }
.health-border-1 { border: 1px solid #ff9806; }
.health-border-2 { border: 1px solid #ff0606; }
.health-border-3 { border: 1px solid #4dcd70; }
.health-border-4 { border: 1px solid #ea68a2; }
.health-border-5 { border: 1px solid #1dbdbf; }
.health-border-6 { border: 1px solid #37a6ed; }
.health-border-7 { border: 1px solid #ae5da1; }
.dis-more-box { background: #fff; border-top: 1px solid #f1f1f1; }
.dis-more { display: block; padding: 10px 15px; }
.dis-more span { position: relative; color: #007cd9; font-size: 13px; display: inline-block; padding-right: 20px; }
.dis-more span:after { display: inline-block; position: absolute; right: 0; top: 2px; content: ""; width: 8px; height: 8px; border: solid #007cd9; border-width: 2px 2px 0 0; cursor: pointer; -webkit-transform: rotate(135deg); -moz-transform: rotate(135deg); transform: rotate(135deg); transition: all 0.5s; -webkit-transition: all 0.5s; }
.dis-more span.rotate:after { top: 8px; -webkit-transform: rotate(-45deg); -moz-transform: rotate(-45deg); transform: rotate(-45deg); transition: all 0.5s; -webkit-transition: all 0.5s; }
.no-data { width: 100%; font-size: 13px; color: #909090; text-align: center; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; }
.no-data-img { width: 40%; max-width: 320px; margin: 0 auto; }
.no-zhidao-icon { width: 100%; height: 0; padding-bottom: 100%; background: url(../images/no-zhidao.png) no-repeat 0 0; background-size: 100% auto; }
.no-data p { padding-top: 10px; }
/*曲线*/
.curve-tab { padding: 10px 7px; background: #f3f3f3; overflow: hidden; }
.curve-tab li { float: left; width: 25%; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; padding: 0 8px; }
.curve-tab li a { display: inline-block; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; width: 100%; height: 28px; line-height: 28px; font-size: 14px; border-radius: 3px; text-align: center; color: #333; border: 1px solid #e1e1e1; background: #fff; }
.curve-tab li.current a { background: #4dcd70; border: 1px solid #4dcd70; color: #fff; }
.curve-box { padding: 10px 0 0 5px; }
.curve-charts { width: 100%; height: 300px; }
.curve-box .swiper-container { padding-bottom: 30px; }
.chart-zt { text-align: right; padding: 10px 15px; }
.chart-zt li { display: inline-block; margin-left: 15px; }
.chart-zt li i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; }
.chart-title { text-align: center; padding: 10px 15px; }
.chart-title li { display: inline-block; margin-right: 15px; }
.chart-title li i { display: inline-block; width: 16px; height: 4px; margin-bottom: 3px; }
.bgc-0ad800 { background: #0ad800; }
.bgc-f00 { background: #f00; }
.bgc-0ad800 { background: #0ad800; }
.bgc-f00 { background: #f00; }
.bgc-b6a2de { background: #b6a2de; }
.bgc-5dd1d2 { background: #5dd1d2; }
/*健康头条*/
.news-list li { padding-top: 12px; padding-bottom: 12px; }
.news-pic { width: 60px; height: 60px; border-radius: 4px; overflow: hidden; }
.news-pic img { width: 100%; height: 100%; }
.pull-more { display: block; text-align: center; color: #5b5b5b; font-size: 14px; padding: 10px 0; }
.pull-more:active { background: rgba(0,0,0,.05); }
.art-detil { padding: 15px; }
.art-detil h1 { font-size: 18px; line-height: 30px; color: #333; }
.art-detil a { color: #137bf2; }
.art-detil img { max-width: 100%; display: block; margin: 10px auto; }
.art-con p { color: #666; font-size: 14px; line-height: 1.5em; padding: 5px 0; text-indent: 2em; white-space: pre-wrap; word-wrap: break-word; word-wrap: break-all; }
.art-con a { display: block; clear: both; color: #137bf2; }
/* 个人中心 */
.addp-list .input-group-addon { min-width: 100%; width: 90px; text-align: right; }
.mem-top { background-color: #fafafa; position: relative; }
.men-list li { position: relative; }
.men-list .mltb1 { background: #34aadc; }
.men-list .mltb2 { background: #4fdb67; }
.men-list .mltb3 { background: #ff9501; }
.men-list .mltb4 { background: #017aff; }
.men-list .mltb5 { background: #49cc6d; }
.men-list .mltb6 { background: #ff6600; }
.men-list .mltb7 { background: #4579f0; }
.men-list .mltb8 { background: #ff9501; }
.men-list .mltb9 { background: #2caddf; }
.men-list .mltb10 { background: #f39800; }
.men-list .mltb11 { background: #ed2100; }
.men-list li .c-avatar-s { position: relative; overflow: inherit; vertical-align: middle; }
.men-list li .c-list-action { top: 0px; }
.mlnum { position: absolute; top: -4px; right: -4px; width: 12px; height: 12px; background: #ec4300; text-align: center; line-height: 12px; font-size: 8px; color: #fff; }
.men-list li .iconfont { font-size: 18px; color: #fff; }
.men-list li .qytimes { display: block; position: absolute; right: 15px; top: 50%; margin-top: -10px; font-size: 12px; color: #fff; }
/*健康历程*/
.main {  }
.health-course { position: relative; min-height: 100%; padding: 0 15px; z-index: 100; }
.health-course:after { position: absolute; content: ""; width: 2px; height: 100%; background: #4dcd70; top: 0; left: 36px; z-index: 101; }
.course-year { position: relative; z-index: 200; width: 100%; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; margin-top: 15px; }
.course-year i { display: inline-block; width: 46px; height: 46px; line-height: 46px; font-size: 14px; text-align: center; color: #fff; border-radius: 50%; background: #4dcd70; }
.course-date-list { padding-bottom: 5px; }
.course-date-list li { position: relative; padding-left: 40px; z-index: 200; margin-bottom: 15px; }
.course-date-list li:after { position: absolute; content: ""; width: 12px; height: 12px; border-radius: 50%; background: #4dcd70; top: 30px; left: 16px; z-index: 201; }
.coruse-date { height: 20px; font-size: 13px; color: #909090; padding-left: 1em; }
.coruse-con { position: relative; background: #fff; border: 1px solid #e1e1e1; border-radius: 4px; padding: 7px 10px; }
.coruse-con:after { position: absolute; top: 10px; left: -6px; content: ""; width: 10px; height: 10px; border: 1px solid #e1e1e1; border-width: 0 0 1px 1px; background: #fff; -webkit-transform: rotate(45deg); -moz-transform: rotate(45deg); -ms-transform: rotate(45deg); transform: rotate(45deg); }
.coruse-con p { font-size: 13px; color: #5b5b5b; white-space: pre-wrap; word-wrap: break-word; word-wrap: break-all; padding: 3px 0; }
.coruse-con p span { color: #333; padding-right: 5px; }
/*门诊详情*/
.outp-details-top { position: fixed; width: 100%; top: 0; left: 0; background: #fff; height: 72px; border-bottom: 1px solid #e1e1e1; color: #333; font-size: 14px; padding: 8px 15px; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; z-index: 100; }
.outp-details-top li { width: 50%; height: 28px; line-height: 28px; float: left; padding-right: 5px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; }
.outp-details-top li span { margin-right: 5px; }
.outp-details-top:before { position: absolute; top: 72px; left: 0; content: ""; width: 100%; height: 15px; background: #f3f3f3; border-bottom: 1px solid #e1e1e1; }
.outp-details-top:after { position: absolute; top: 88px; left: 0; content: ""; width: 100%; height: 10px; background: #fff; }
.outp-details-box { padding: 0 15px 30px 15px; background: #fff; margin-top: 97px; }
.outp-details-con { width: 100%; }
.outp-details-con dl { padding-bottom: 10px; }
.outp-details-con dl dt { position: relative; color: #333; font-size: 15px; padding-left: 15px; }
.outp-details-con dl dt:before { position: absolute; content: ""; width: 8px; height: 8px; border-radius: 50%; background: #4dcd70; top: 50%; left: 0; margin-top: -4px; }
.outp-details-con dl dd { color: #666; font-size: 13px; white-space: pre-wrap; word-wrap: break-word; word-wrap: break-all; }
.outp-doctor-info { color: #5b5b5b; font-size: 14px; padding-top: 15px; margin-top: 5px; border-top: 1px dotted #e1e1e1; }
.outp-doctor-info span { color: #333; margin-right: 10px; }
.outp-doctor-info .iconfont { color: #007cd9; margin-right: 5px; }
/*我的圈子*/
.quanzi-top { position: fixed; width: 100%; top: 0; left: 0; background: #fff; height: 75px; border-bottom: 1px solid #e1e1e1; color: #333; font-size: 14px; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; z-index: 100; }
.quanzi-top li { width: 50%; height: 75px; padding-top: 12px; text-align: center; font-size: 15px; color: #5b5b5b; float: left; border-right: 1px solid #e1e1e1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; }
.quanzi-top li:last-child { border-right: none; }
.quanzi-top li .iconfont { font-size: 30px; line-height: 30px; color: #4dcd70; }
.quanzi-top li:last-child .iconfont { color: #37a6ec; }
.quanzi-top:before { position: absolute; top: 75px; left: 0; content: ""; width: 100%; height: 15px; background: #f3f3f3; border-bottom: 1px solid #e1e1e1; }
.quanzi-box { background: #fff; margin-top: 90px; }
.quanzi-list .n-list-key { padding: 12px 20px 12px 0; }
.quanzi-list .n-avatar-m { border-radius: 50%; overflow: hidden; }
.quanzi-list .n-list-flex { padding: 12px 0; }
.quanzi-list .n-list-info { padding-right: 15px; }
/*体重*/
ul.fosx-li .input-group .form-select-arrow { top: 17px; right: 0; }
ul.fosx-li .form-control { text-align: left; padding-right: 30px; }
.ptb8 { padding-top: 8px; padding-bottom: 8px; }
.input-group.bor-radius-tic .form-control { border-radius: 0; }
.no-border { border: none !important; }
.patient-list .form-control { font-size: 17px !important; }
.dwfl { min-width: 53.33px !important; }
.patient-list input { color: #5b5b5b !important; }
.wis-fix .c-list .c-list-value { min-width: 65px; }
.c5b { color: #5b5b5b; }
.c-table.pos td, .c-table.pos th { border-bottom: 1px solid #f1f1f1; border-right: 1px solid #f1f1f1; text-align: center; padding: 10px 5px; font-weight: normal; }
/*体重历史*/
.health-table-blue { background: #32aa6d; color: #fff; overflow: hidden; }
.bg-fff { background-color: #fff; }
.bg-32aa6d { background: #32aa6d; }
.c-333 { color: #333 !important; }
.ptb8 { padding-top: 8px; padding-bottom: 8px; }
/*选择医生*/
.c-ser-into { border: none; }
.hd85 { height: 85px; }
.sarea-box { width: 100%; height: 40px; line-height: 40px; background: #fff; position: fixed; left: 0; top: 0; padding: 0 15px; z-index: 800; }
.sarea-box i.icon-ditudingwei { font-size: 22px; vertical-align: middle; margin: 0 0 4px 0; color: #888; }
.sarea-box i.icon-dingwei { font-size: 22px; vertical-align: middle; margin: 0 0 4px 0; color: #007cd9; }
.sarea-box .list-icon { display: inline-block; vertical-align: middle; margin: 0 0 7px 5px; position: relative; left: 0; top: 0; -webkit-transform: rotate(135deg); -moz-transform: rotate(135deg); -ms-transform: rotate(135deg); -o-transform: rotate(135deg); transform: rotate(135deg); }
.sarea-box .arrow-right { border-color: #cbcbcb; }
.sseach-box { width: 100%; height: 45px; background: #fff; position: fixed; left: 0; top: 40px; padding: 0px 15px 0 15px; z-index: 800; }
.shcom-list ul li .c-list-img { width: 50px; height: 50px; border-radius: 50px; overflow: hidden; }
.shcom-list ul li .c-list-img img { width: 50px; height: 50px; }
.shcom-list ul li .c-list-info { padding-right: 30px; }
.r-15 { right: 15px; }
.c-ccc { color: #ccc; }
.pl25 { padding-left: 25px; }
.c888 { color: #888; }
.c-000 { color: #000; }
.list-icon { height: 8px; width: 8px; position: absolute; display: inline-block; margin-top: -4px; top: 50%; }
.serch-hold { width: 100%; height: 66px; background: #fff; position: fixed; left: 0; top: 0; z-index: 600; padding: 15px 15px 0 15px; display: box; display: -webkit-box; }
.ser-box { border: 1px solid #e1e1e1; border-radius: 4px; height: 36px; font-size: 13px; box-flex: 1; -webkit-box-flex: 1; -moz-box-flex: 1; padding: 0 10px; position: relative; }
.ser-box a.s-initial { display: block; line-height: 34px; /*color:#dfdfdf;*/ position: relative; }
.ser-box .ser-icon { position: absolute; /*right:15px;*/ top: 50%; margin-top: -8px; }
.ser-box .ser-icon:before { content: ""; position: absolute; background: transparent; font-size: 1px; left: 1px; top: 0px; width: 10px; height: 10px; border: 2px solid #ccc; border-radius: 50%; }
.ser-box .ser-icon:after { content: ""; position: absolute; background: transparent; font-size: 1px; left: 11px; top: 12px; width: 6px; height: 2px; background: #ccc; transform: rotate(45deg); -webkit-transform: rotate(45deg); -moz-transform: rotate(45deg); -o-transform: rotate(45deg); -ms-transform: rotate(45deg); }
.ser-box .input-clear { position: absolute; right: 6px; top: 9px; background: #7e7e7e; border-radius: 50%; width: 16px; height: 16px; text-align: center; }
.ser-box .input-clear .close { position: relative; display: inline-block; width: 10px; height: 10px; overflow: hidden; top: -2px; }
.ser-box .input-clear .close:before, .ser-box .input-clear .close:after { content: ''; position: absolute; height: 2px; width: 100%; top: 50%; left: 0px; margin-top: -1px; background: #fff; border-radius: 6px; }
.ser-box .input-clear .close:before { -webkit-transform: rotate(45deg); -moz-transform: rotate(45deg); -ms-transform: rotate(45deg); -o-transform: rotate(45deg); transform: rotate(45deg); }
.ser-box .input-clear .close:after { -webkit-transform: rotate(-45deg); -moz-transform: rotate(-45deg); -ms-transform: rotate(-45deg); -o-transform: rotate(-45deg); transform: rotate(-45deg); }
.ser-text { width: 100%; height: 34px; line-height: normal; }
.s-cancle { display: inline-block; box-flex: 0; -webkit-box-flex: 0; -moz-box-flex: 0; width: 40px; line-height: 40px; text-align: right; color: #007cd9; font-size: 14px; }
.disa-space { width: 100%; background: #eff1f3; height: 10px; position: fixed; left: 0; top: 66px; z-index: 500; }
.disea-div { width: 100%; height: 100%; position: fixed; left: 0; top: 0; padding-top: 76px; z-index: 10; }
.disea-first { width: 32%; height: 100%; background: #f5f5f5; border-top: 1px solid #e1e1e1; float: left; }
.disea-first li a { display: block; height: 50px; line-height: 50px; padding-left: 15px; color: #333; position: relative; font-size: 14px; }
.disea-first li a.hit { background: #fff; color: #4dcd70; }
.disea-first li a .arrow { position: absolute; display: block; font-size: 0; line-height: 0; width: 0; height: 0; border-color: transparent; border-style: dashed; border-width: 6px; right: 0; top: 50%; margin-top: -6px; border-right-color: #ebebeb; border-right-style: solid; }
.disea-first li a.hit .arrow { border-right-color: #fff; }
.disea-sec { width: 68%; height: 100%; background: #fff; border-top: 1px solid #e1e1e1; float: left; padding: 0 0 0 20px; }
.disea-sec li a { display: block; height: 43px; line-height: 43px; color: #666; box-sizing: border-box; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; -ms-box-sizing: border-box; border-bottom: 1px solid #f2f2f2; position: relative; font-size: 14px; }
.result-list { }
.result-list li { line-height: 40px; border-top: 1px solid #f2f2f2; background: #fff; padding: 0 15px; }
.result-list li:first-child { border-top: none; }
.result-list li a { display: block; color: #666; font-size: 14px; }
.no-serch { text-align: center; line-height: 23px; padding: 0 15px; }
.icon-noserch { display: inline-block; width: 110px; height: 110px; background: url(../images/noser.png) no-repeat; background-size: 100% 100%; -webkit-background-size: 100% 100%; -moz-background-size: 100% 100%; -ms-background-size: 100% 100%; margin: 40px 0 5px 0; }
.doc-choo .c-avatar-m { margin: 10px 10px 10px 0; }
/*2015.10.10*/
/*个人中心-选择联系人*/
.ql-boxer { position: fixed; top: 0; width: 100%; left: 0; }
.ql-boxer .c-serdet { padding: 7px 15px 0 15px; }
.choose-chat li i { display: block; width: 20px; height: 20px; }
.choose-chat li i.circ { border: 1px solid #d3d3d3; }
.choose-chat { padding-top: 43px; }
.choose-chat li { position: relative; }
.choose-chat li input { display: none; }
.choose-chat li .c-avatar-m { overflow: hidden; padding-left: 32px; }
.choose-chat li .c-avatar-m img { border-radius: 50%; overflow: hidden; }
.choose-chat li i { position: absolute; width: 20px; height: 20px; top: 18px; left: 15px; border-radius: 20px; }
.choose-chat li i.icon-dagou { text-align: center; color: #fff; background: #4dcd70; line-height: 22px; width: 22px; height: 22px; }
.ts-noda { background: url(../images/no-search.png) no-repeat center center; height: 0; background-size: 100% auto; width: 100%; padding-bottom: 100%; display: block; }
.c-dcdcdc { color: #dcdcdc; }
.choose-chat .search-li li .c-avatar-m { padding-left: 0 }
.c-888 { color: #888888; }
a.a-more { color: #007cd9; display: block; width: 100%; text-align: center; padding: 10px 0; color: #007cd9; font-size: 12px;/* border-top: 1px solid #f1f1f1; */ }
/* 对话 */
.my-team-top { width: 100%; height: 79px; background: #fff; border-bottom: 1px solid #e1e1e1; overflow-x: auto; overflow-y: hidden; }
.my-team-top ul { height: 79px; width: 100%; }
.my-team-top li { float: left; width: 33.33%; height: 70px; padding-top: 9px; text-align: center; color: #666; font-size: 13px; }
.my-team-top li img { width: 40px; height: 40px; border-radius: 50%; overflow: hidden; }
.advis-dialog-box { overflow-y: auto; }
.advis-dialog .ditime { text-align: center; font-size: 12px; color: #aeaeae; line-height: 18px; padding-bottom: 8px; }
.advis-dialog .ditime:before, .advis-dialog .ditime:after { content: ""; display: inline-block; width: 50px; height: 4px; background: transparent; margin: 0 10px; border-top: 1px solid #e6e4e1; }
.dial-left .dialog { padding: 0 0 0 55px; position: relative; overflow: hidden; }
.dial-left .dihead { width: 40px; height: 40px; position: absolute; left: 0; top: 5px; border-radius: 50%; overflow: hidden; }
.dial-left .dihead img { width: 100%; height: 100%; }
.dial-left .diname { display:block; font-size:12px; color:#909090; width:100%; height:20px;}
.dial-left .dicon { font-size: 13px; background: #fff; border: 1px solid #e1e1e1; padding: 10px; border-radius: 4px; -webkit-border-radius: 4px; -moz-border-radius: 4px; color: #333; float: left; word-break: break-all; }
.dial-left .dicon:before { position: absolute; content: ""; top: 30px; left: 50px; width: 10px; height: 10px; border: 1px solid #e1e1e1; border-width: 0 0 1px 1px; background: #fff; -webkit-transform: rotate(45deg); -moz-transform: rotate(45deg); -ms-transform: rotate(45deg); transform: rotate(45deg); }
.dial-right .dialog { padding: 0 55px 0 0; position: relative; overflow: hidden; }
.dial-right .dihead { width: 40px; height: 40px; position: absolute; right: 0; top: 5px; }
.dial-right .dihead img { width:100%; height:100%; }
.dial-right .diname { display:block; text-align:right; font-size:12px; color:#909090; width:100%; height:20px;}
.dial-right .dicon { font-size: 13px; background: #bce0ff; border: 1px solid #81bdf7; padding: 10px; border-radius: 4px; -webkit-border-radius: 4px; -moz-border-radius: 4px; color: #5b5b5b; float: right; word-break: break-all; }
.dial-right .dicon:before { position: absolute; content: ""; top: 30px; right: 50px; width: 10px; height: 10px; border: 1px solid #81bdf7; border-width: 1px 1px 0 0; background: #bce0ff; -webkit-transform: rotate(45deg); -moz-transform: rotate(45deg); -ms-transform: rotate(45deg); transform: rotate(45deg); }
.dicon img{ max-height:120px; max-width:120px;}
.advis-end { background: #e6eef9; line-height: 20px; text-align: center; }
.advis-end i { font-size: 18px; color: #ff8100; vertical-align: middle; margin: 0 5px 0 0; }
.advis-end a { font-size: 14px; color: #157efb; }
.advis-bot { width: 100%; height: 63px; background: #fff; position: fixed; left: 0; bottom: 0; padding: 14px 93px 0 15px; }
.advis-bot a { display: block; position: absolute; right: 15px; top: 14px; color: #333; font-size: 14px; padding: 0 18px; height: 33px; line-height: 33px !important; background: #f5f5f5; border: 1px solid #bebebe; border-radius: 5px; -webkit-border-radius: 5px; -moz-border-radius: 5px; }
.advis-bot .askbtn { width: 100%; height: 35px; line-height: normal; border: 1px solid #bebebe; border-radius: 5px; -webkit-border-radius: 5px; -moz-border-radius: 5px; padding: 5px 10px; appearance: none; -webkit-appearance: none; -moz-appearance: none; background: #fff; }
.chat-form { height: 45px; padding-left: 10px; padding-right: 10px; }
.nopos { position: relative; bottom: auto; left: auto; }
.chat-form .ui-col-0 { width: 44px; text-align: center; }
.chat-form .ui-col-0 a { display: inline-block; height: 30px; width: 30px; line-height: 30px; position: relative; top: 8px; color: #808080; }
.chat-form .ui-col-0 a .iconfont { font-size: 30px; line-height: 30px; }
.chat-input { height: 22px; font-size: 13px; line-height: 22px; border: 0; border-bottom: #4dcd70 1px solid; position: relative; top: 14px; }
.chat-pictures-wrap { height: 100%; z-index: 2323; top: 0; left: 0; display: none; }
.chat-pictures-bg { height: 100%; background-color: rgba(0, 0, 0, 0.7); }
.chat-pictures-btn { bottom: 10px; left: 0 }
.chat-pictures-a { overflow: hidden }
.chat-pictures-a a { height: 45px; line-height: 45px; display: block; font-size: 15px; color: #00a1d8; text-align: center; width: 100%; background-color: #fff; border-bottom: #e1e1e1 1px solid }
.chat-pictures-a a:last-child { border-bottom: 0 }
.chat-pictures-a a em { display: inline-block; border: #00a1d8 1px solid; border-radius: 50%; line-height: 12px; position: relative; top: -2px }
.chat-pictures-a a i.iconfont { font-size: 18px; margin-right: 5px; }
.chat-form .ui-col-0 a.chat-send { display: inline-block; width: 44px; height: 31px; line-height: 31px; background: #4dcd70; text-align: center; font-size: 13px; color: #fff; border: none; border-radius: 3px; float: left; }
.view-more { display: inline-block; width: 100%; text-align: center; color: #5b5b5b; padding: 15px 0 10px 0; }
.c-ser-main.onlytext { background-color: transparent; border: 1px solid transparent; color: #5b5b5b; padding-left: 0; }
.curve-box .swiper-container { width:100% !important;}
.curve-box .swiper-pagination{ clear:both;}
/* 暂无信息 */
.nomess{ text-align:center; line-height:30px; padding:120px 0 60px 0; color:#5b5b5b;}
.nomess i{ display:block; width:90px; height:90px; background-position:-1px -30px; margin:0 auto;}
.icon{ background:url(../images/icon.png) no-repeat; background-size:250px 250px; -webkit-background-size:250px 250px; -moz-background-size:250px 250px; -ms-background-size:250px 250px;}
/*2015.11.24*/
.edit-info.registered>li .n-list-key:first-child{width:5em;}
.fi-btnbox{bottom:0;left:0;width:100%;padding:5px 15px;box-sizing:border-box;background:#e1e1e1;}
.bottom-box.fi-btnbox a.c-btn{padding:12px 16px;}
.pb47{padding-bottom:47px;}
.getmore{ width:100%;}
.getmore a{ display:block; width:100%; line-height:40px; color:#5b5b5b; text-align:center; font-size:14px; background:#f3f3f3;}
/*2015.12.25*/
.sigl-up .n-list-key{width:6.5em !important;}
.sigl-up .n-list-key i.iconfont{color:#4dcd70;}
.c-btn-fff.c-333{color:#333;}
.doc-tab-les{ margin-left:10px; margin-right:10px; margin-top:10px; border:1px solid #4dcd70; border-radius:5px; background:#fff;}
.doc-tab-les li a{ color:#4dcd70;}
.doc-tab-les li.hit{ background:#4dcd70;}
.doc-tab-les li.hit a{ color:#fff;}
.doc-tab-les li{ border-left:1px solid #4dcd70;}

+ 3989 - 0
html/yszx/css/style.css

@ -0,0 +1,3989 @@
/*---------cross.ui-------------------------*/
.c-border,
.c-border-t,
.c-border-b,
.c-border-l,
.c-border-r,
.c-border-tb {
	border-color: #e1e1e1;
	border-style: solid;
}
.ui-grid {
	display: -webkit-box;
	display: box;
}
.ui-col-0 {
	-webkit-box-flex: 0;
	box-flex: 0;
}
.ui-col-1 {
	-webkit-box-flex: 1;
	box-flex: 1;
}
.ui-arrow,
.ui-arrow s {
	position: relative;
	display: block;
	font-size: 0;
	line-height: 0;
	width: 0;
	height: 0;
	border-color: transparent;
	border-style: dashed;
	border-width: 5px;
}
.ui-arrow-r,
.ui-arrow-r s {
	border-left-color: #aaa;
	border-left-style: solid;
}
.ui-arrow-r s {
	border-left-color: #fff;
	position: absolute;
	left: -7px;
	top: -5px;
}
.c-btn-4dcd70 {
	background-color: #4dcd70;
}
.c-btn-4dcd70:hover {
	background-color: #45b865;
}
.c-btn-fff {
	background-color: #ffffff;
	color: #999999;
	border: #e1e1e1 1px solid;
}
.c-btn-fff:hover {
	background-color: #e5e5e5;
}
/* ui-form
-----------------------------------------------------------------------------*/
.input-group,
.input-group *,
.input-group-checkbox,
.input-group-radio,
.input-group-checkbox *,
.input-group-radio * {
	box-sizing: border-box;
	-moz-box-sizing: border-box;
	-webkit-box-sizing: border-box;
}
.input-group {
	border-collapse: separate;
	display: table;
	position: relative;
}
.input-group label {
	display: block;
}
.input-group-addon {
	background-color: #fff;
	border: 1px solid #e1e1e1;
	border-radius: 4px;
	border-bottom-right-radius: 0;
	border-top-right-radius: 0;
	color: #333;
	font-size: 14px;
	font-weight: 400;
	line-height: 1;
	padding: 10px;
	text-align: center;
	display: table-cell;
	vertical-align: middle;
	white-space: nowrap;
	width: 1%;
}
.input-group-addon:first-child {
	border-right: 0;
}
.input-group-addon .iconfont {
	color: #b4b4b4;
	font-size: 18px;
}
.input-group-addon.focus .iconfont {
	color: #37a6ed;
}
.input-group-btn {
	position: absolute;
	right: 5px;
	top: 7px;
}
.input-group-btn .c-btn {
	padding: 5px;
	border: #ddd 1px solid;
}
.input-group .form-control,
.input-group .form-select,
.input-group .form-textarea {
	-webkit-appearance: none;
	appearance: none;
	background-color: #fff;
	background-image: none;
	border: 1px solid #e1e1e1;
	border-radius: 5px;
	color: #333;
	display: block;
	font-size: 14px;
	height: 45px;
	line-height: 1.42857;
	padding: 6px 12px;
	transition: border-color 0.15s ease-in-out 0s, box-shadow 0.15s ease-in-out 0s;
	outline: 0;
}
.input-group .form-select-arrow {
	display: block;
	width: 10px;
	height: 10px;
	border: solid #ccc;
	border-width: 2px 2px 0 0;
	-webkit-transform: rotate(135deg);
	-moz-transform: rotate(135deg);
	-ms-transform: rotate(135deg);
	-o-transform: rotate(135deg);
	transform: rotate(135deg);
	position: absolute;
	top: 15px;
	right: 15px;
}
.input-group .form-control {
	padding-right: 30px;
}
.input-group.input-border .form-control,
.input-group.input-border .form-select,
.input-group.input-border .form-textarea {
	border-radius: 0px;
	border-right: 0;
	font-size: 15px;
	height: 45px;
	line-height: 1.52857;
}
.input-group .form-control:focus,
.input-group .form-select:focus,
.input-group .form-textarea:focus {
	color: #333;
}
.input-group .form-control::-webkit-input-placeholder,
.input-group .form-textarea::-webkit-input-placeholder {
	color: #bfbfbf;
}
.input-group .form-control:-moz-placeholder,
.input-group .form-textarea:-moz-placeholder {
	color: #bfbfbf;
}
.input-group .form-control::-moz-placeholder,
.input-group .form-textarea::-moz-placeholder {
	color: #bfbfbf;
}
.input-group .form-control:-ms-input-placeholder,
.input-group .form-textarea:-ms-input-placeholder {
	color: #bfbfbf;
}
.input-group .form-textarea {
	height: auto;
	resize: none;
	margin: 0;
}
.input-group .form-control:nth-child(2),
.input-group .form-textarea:nth-child(2) {
	border-bottom-left-radius: 0;
	border-top-left-radius: 0;
	border-left: 0;
	padding-left: 0;
}
.input-group .form-control,
.input-group label .form-control,
.input-group label .form-select,
.input-group label .form-textarea {
	border-radius: 4px;
	padding-left: 12px;
	border-left: 1px #e1e1e1 solid;
}
.input-group .input-group-addon + .form-control,
.input-group .input-group-addon + .form-select {
	border-top-left-radius: 0px;
	border-bottom-left-radius: 0px;
	padding-left: 0px;
	border-left: 0px;
}
.input-group-text {
	font-size: 14px;
	color: #555;
}
.input-merge .input-group .input-group-addon,
.input-group.input-border .input-group-addon {
	border-bottom-left-radius: 0;
	border-top-left-radius: 0;
}
.input-group.input-border .input-group-addon {
	border-left: 0;
	font-size: 15px;
	color: #333;
	padding: 10px 20px;
}
.input-merge .input-group .form-control,
.input-merge .input-group .form-select,
.input-merge .input-group .form-textarea {
	border-bottom-right-radius: 0;
	border-top-right-radius: 0;
}
.input-merge .input-group:first-child .input-group-addon {
	border-top-left-radius: 4px;
}
.input-merge .input-group:first-child .form-control,
.input-merge .input-group:first-child .form-select,
.input-merge .input-group:first-child .form-textarea {
	border-top-right-radius: 4px;
}
.input-merge .input-group:last-child .form-control,
.input-merge .input-group:last-child .form-select,
.input-merge .input-group:last-child .form-textarea {
	border-bottom-right-radius: 4px;
}
.input-merge .input-group:last-child .input-group-addon {
	border-bottom-left-radius: 4px;
}
.input-merge .input-group.input-border .input-group-addon,
.input-merge .input-group.input-border .form-control,
.input-merge .input-group.input-border .form-select,
.input-merge .input-group.input-border .form-textarea,
.input-merge .input-group.input-border .form-control,
.input-merge .input-group.input-border .form-select,
.input-merge .input-group.input-border .form-textarea,
.input-merge .input-group.input-border .input-group-addon {
	border-radius: 0px;
}
.input-merge .input-group.input-border {
	padding-left: 20px;
}
.input-merge .input-group.input-border .input-group-addon {
	padding-left: 0
}
.input-merge .input-group .input-group-addon,
.input-merge .input-group .form-control,
.input-merge .input-group .form-select,
.input-merge .input-group .form-textarea {
	border-bottom: 0;
}
.input-merge .input-group:last-child .input-group-addon,
.input-merge .input-group:last-child .form-control,
.input-merge .input-group:last-child .form-select,
.input-merge .input-group:last-child .form-textarea {
	border-bottom: 1px solid #e1e1e1;
}
.input-merge.input-merge-border .input-group:first-child .input-group-addon,
.input-merge.input-merge-border .input-group:first-child .form-control,
.input-merge.input-merge-border .input-group:first-child .form-select,
.input-merge.input-merge-border .input-group:first-child .form-textarea {
	border-top: 0;
}
.input-merge.input-merge-border .input-group:last-child .input-group-addon,
.input-merge.input-merge-border .input-group:last-child .form-control,
.input-merge.input-merge-border .input-group:last-child .form-select,
.input-merge.input-merge-border .input-group:last-child .form-textarea {
	border-bottom: 0;
}
.input-merge.input-merge-border {
	border-top: 1px solid #e1e1e1;
	border-bottom: 1px solid #e1e1e1;
	background: #fff;
}
.input-group-addon-disabled,
.form-control[disabled],
.form-control:disabled,
.form-textarea[disabled],
.form-textarea:disabled,
.form-textarea[disabled],
.form-textarea:disabled,
.form-select[disabled],
.form-select:disabled {
	background-color: #f9f9f9;
}
.input-group .form-input {
	height: 45px;
	border-top: 1px solid #e1e1e1;
	position: relative;
	padding: 7px 0;
}
.input-group .form-input-text {
	color: #909090;
	font-size: 15px;
}
.input-group .form-select-box {
	display: inline-block;
	position: relative;
	margin-right: 10px;
}
.input-group .form-select-box .form-select {
	width: 100%;
}
.input-group .form-select-box .form-select-arrow {
	top: 7px;
	right: 12px
}
.input-group.input-border .form-input .form-control,
.input-group.input-border .form-input .form-select {
	height: 31px;
	border: #e1e1e1 1px solid !important;
	border-radius: 2px;
	display: inline-block;
	vertical-align: baseline;
	line-height: 1.2;
}
.input-group .input-clear {
	position: absolute;
	right: 8px;
	top: 8px;
	background: #ccc;
	border-radius: 50%;
	width: 26px;
	height: 26px;
	text-align: center;
}
.input-group .input-clear .close {
	position: relative;
	display: inline-block;
	width: 15px;
	height: 15px;
	overflow: hidden;
	top: 6px;
}
.input-group .input-clear .close::before,
.input-group .input-clear .close::after {
	content: '';
	position: absolute;
	height: 2px;
	width: 100%;
	top: 50%;
	left: 0px;
	margin-top: -1px;
	background: #fff;
	border-radius: 6px;
}
.input-group .input-clear .close::before {
	-webkit-transform: rotate(45deg);
	-moz-transform: rotate(45deg);
	-ms-transform: rotate(45deg);
	-o-transform: rotate(45deg);
	transform: rotate(45deg);
}
.input-group .input-clear .close::after {
	-webkit-transform: rotate(-45deg);
	-moz-transform: rotate(-45deg);
	-ms-transform: rotate(-45deg);
	-o-transform: rotate(-45deg);
	transform: rotate(-45deg);
}
.input-group-checkbox,
.input-group-radio {
	display: inline-block;
	position: relative;
	font-size: 14px;
	color: #909090;
}
.input-group-checkbox label {
	display: block;
	cursor: pointer;
}
.input-group-checkbox label input[type="checkbox"],
.input-group-radio label input[type="radio"] {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
}
.input-group-checkbox .input-group-pack,
.input-group-radio .input-group-pack {
	width: 20px;
	height: 20px;
	background-color: #ffffff;
	border: 1px #d3d3d3 solid;
	padding: 0;
	margin: 0 5px 0 0;
	position: relative;
	display: inline-block;
	vertical-align: middle;
	border-radius: 5px;
	overflow: hidden;
	top: -2px;
}
.input-group-radio .input-group-pack {
	border-radius: 50%;
}
.input-group-checkbox .input-group-pack.input-group-pack-disabled,
.input-group-radio .input-group-pack.input-group-pack-disabled {
	background-color: #f0f0f0;
}
.input-group-checkbox .input-group-pack .tick {
	display: block;
	width: 12px;
	height: 2px;
	background: #4dcd70;
	margin: 8px 0 0 6px;
	-webkit-transform: rotate(-45deg);
	-moz-transform: rotate(-45deg);
	-ms-transform: rotate(-45deg);
	-o-transform: rotate(-45deg);
	transform: rotate(-45deg);
	position: relative;
	top: 50px;
}
.input-group-checkbox .input-group-pack .tick:after {
	content: '';
	width: 8px;
	height: 2px;
	background: #4dcd70;
	position: absolute;
	top: -3px;
	left: -5px;
	-webkit-transform: rotate(90deg);
	-moz-transform: rotate(90deg);
	-ms-transform: rotate(90deg);
	-o-transform: rotate(90deg);
	transform: rotate(90deg);
}
.input-group-radio .input-group-pack .disc {
	display: block;
	content: "" !important;
	width: 0px;
	height: 0px;
	border-radius: 50%;
	background-color: #4dcd70;
	margin: 4px;
}
.input-group-checkbox input[type="checkbox"]:checked ~ .tick,
.input-group-checkbox .input-group-pack.checked .tick {
	top: 0px;
}
.input-group-radio input[type="radio"]:checked ~ .disc,
.input-group-radio .input-group-pack.checked .disc {
	width: 10px;
	height: 10px;
}
.input-group-switch {
	position: relative;
	font-size: 16px;
	width: 52px;
	height: 32px;
	line-height: 1em;
}
.input-group-switch input {
	width: 52px;
	height: 32px;
	position: absolute;
	z-index: 10;
	border: none;
	background: none;
	-webkit-appearance: none;
	outline: none;
}
.input-group-switch input:before {
	content: '';
	width: 50px;
	height: 30px;
	border: 1px solid #e5e5e5;
	background-color: #fff;
	border-radius: 20px;
	cursor: pointer;
	display: inline-block;
	position: relative;
	vertical-align: middle;
	-webkit-user-select: none;
	user-select: none;
	-webkit-box-sizing: content-box;
	box-sizing: content-box;
	border-color: #dfdfdf;
	-webkit-box-shadow: #dfdfdf 0px 0px 0px 0px inset;
	box-shadow: #dfdfdf 0px 0px 0px 0px inset;
	-webkit-transition: border 0.4s, -webkit-box-shadow 0.4s;
	transition: border 0.4s, box-shadow 0.4s;
	-webkit-background-clip: content-box;
	background-clip: content-box;
}
.input-group-switch input:checked:before {
	border-color: #4cd964;
	-webkit-box-shadow: #4cd964 0px 0px 0px 16px inset;
	box-shadow: #4cd964 0px 0px 0px 16px inset;
	background-color: #4cd964;
	transition: border 0.4s, box-shadow 0.4s, background-color 1.2s;
	-webkit-transition: border 0.4s, -webkit-box-shadow 0.4s, background-color 1.2s;
	background-color: #4cd964;
}
.input-group-switch input:checked:after {
	left: 21px;
}
.input-group-switch input:after {
	content: '';
	width: 30px;
	height: 30px;
	position: absolute;
	top: 1px;
	left: 0;
	border-radius: 100%;
	background-color: #fff;
	-webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
	-webkit-transition: left 0.2s;
	transition: left 0.2s;
}
.input-group-switch input.thread:before {
	content: '';
	width: 50px;
	height: 3px;
	border: 1px solid #e5e5e5;
	background-color: #e5e7ea;
	border-radius: 20px;
	cursor: pointer;
	display: inline-block;
	position: relative;
	vertical-align: middle;
	-webkit-user-select: none;
	user-select: none;
	-webkit-box-sizing: content-box;
	box-sizing: content-box;
	border-color: #dfdfdf;
	-webkit-box-shadow: #dfdfdf 0px 0px 0px 0px inset;
	box-shadow: #dfdfdf 0px 0px 0px 0px inset;
	-webkit-transition: border 0.4s, -webkit-box-shadow 0.4s;
	transition: border 0.4s, box-shadow 0.4s;
	-webkit-background-clip: content-box;
	background-clip: content-box;
}
.input-group-switch input.thread:checked:before {
	border-color: #4cd964;
	-webkit-box-shadow: #4cd964 0px 0px 0px 16px inset;
	box-shadow: #4cd964 0px 0px 0px 16px inset;
	background-color: #4cd964;
	transition: border 0.4s, box-shadow 0.4s, background-color 1.2s;
	-webkit-transition: border 0.4s, -webkit-box-shadow 0.4s, background-color 1.2s;
	background-color: #4cd964;
}
.input-group-switch input.thread:checked:after {
	left: 33px;
}
.input-group-switch input.thread:after {
	content: '';
	width: 20px;
	height: 20px;
	position: absolute;
	top: 3px;
	left: 0;
	border-radius: 100%;
	background-color: #fff;
	-webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
	-webkit-transition: left 0.2s;
	transition: left 0.2s;
}
/* css c-list
-----------------------------------------------------------------------------*/
.list-icon {
	height: 8px;
	width: 8px;
	position: absolute;
	display: inline-block;
	margin-top: -4px;
	top: 50%;
}
.arrow-right {
	display: block;
	width: 8px;
	height: 8px;
	border: solid #cdcdcd;
	border-width: 2px 2px 0 0;
	-webkit-transform: rotate(45deg);
	-moz-transform: rotate(45deg);
	-ms-transform: rotate(45deg);
	-o-transform: rotate(45deg);
	transform: rotate(45deg);
}
.c-list-group {}
.c-list-group h3 {
	padding: 6px 15px;
	background-color: #f9f9f9;
	font-size: 13px;
	color: #5b5b5b;
	margin: 0;
	vertical-align: middle;
}
.c-list {
	background-color: #fff;
}
.c-list > li,
.c-list > .c-list-div {
	font-size: 15px;
	color: #333;
	position: relative;
	display: -webkit-box;
	display: box;
	margin-left: 15px;
	border-top: 1px solid #f1f1f1;
}
.c-list > .c-list-text {
	line-height: 20px;
	padding-right: 15px;
	padding-left: 0;
}
.c-list > .c-list-text > h4,
.c-list > .c-list-text .c-list-key,
.c-list >.c-list-text .c-list-info,
.c-list > .c-list-text > .c-list-value {
	line-height: 20px;
	padding-top: 10px;
	padding-bottom: 10px;
}
.c-list > .c-list-text .c-list-title {
	padding-top: 10px;
}
.c-list > .c-list-function {
	border-top: none;
}
.c-list > .c-list-function .c-list-info {
	border-top: 1px solid #f1f1f1;
}
.c-list > li:first-child,
.c-list > .c-border-t:first-child,
.c-list >li:first-child .c-border-t,
.c-list > .c-list-function:first-child,
.c-list > .c-list-function:first-child .c-list-info,
.c-list > div:first-child .c-border-t,
.c-list > div:first-child {
	border: 0;
	background-image: none
}
.c-list > .c-list-cover {
	padding-left: 15px !important;
	margin-left: 0 !important;
}
.c-list .c-list-info {
	-webkit-box-flex: 1;
	box-flex: 1;
	padding-right: 15px;
	display: box;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-box-pack: center;
}
.c-list h4 {
	color: #333 !important;
}
.c-list .c-list-info > h4 {
	font-size: 15px;
	line-height: 20px
}
.c-list .c-list-info > p {
	font-size: 13px;
	line-height: 20px;
	color: #909090;
}
.c-list .c-list-label {
	font-size: 13px !important;
	color: #909090 !important;
	padding: 10px 15px 10px 0!important;
	border-top: 1px dashed #e1e1e1 !important;
}
.c-list .c-list-key {
	margin-right: 15px;
}
.c-list .c-list-img {
	width: 100px;
	height: 68px;
	margin: 10px 10px 10px 0;
	position: relative
}
.c-list .c-list-img img {
	width: auto;
	height: 68px;
}
.c-list > .c-list-link:active {
	background-color: #e5e6e7;
	padding-left: 15px;
	margin-left: 0
}
.c-list-link:active,
.c-list-link.c-border-t:active,
.c-list-link:active + .c-border-t,
.c-list-link:active + .c-border-t {
	background-image: none;
	border-top-color: #e5e6e7
}
.c-list .c-list-value {
	color: #909090;
	display: box;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-box-pack: center;
}
.c-list .c-list-link .c-list-value,
.c-list .c-list-link .c-list-title {
	padding-right: 20px;
}
.c-list .c-list-badge,
.c-list .c-list-action {
	font-size: 13px;
	color: #909090;
	position: absolute;
	height: 100%;
	right: 15px;
	display: box;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-box-pack: center;
	top: 0;
}
.c-list-link .c-list-badge,
.c-list-link .c-list-action {
	right: 35px
}
.c-list-link .list-icon {
	position: absolute;
	right: 15px;
	top: 50%;
	margin-top: -4px;
}
.c-list .c-avatar-s,
.c-list .c-avatar-m,
.c-list .c-avatar-l {
	margin: 10px 15px 10px 0;
	overflow: hidden;
	display: -webkit-box;
	-webkit-box-pack: center;
	-webkit-box-align: center;
}
.c-list-indent-s {
	padding-right: 70px !important;
}
.c-list-indent-m {
	padding-right: 110px !important;
}
.c-list-action .input-group-checkbox .input-group-pack,
.c-list-action .input-group-radio .input-group-pack {
	margin: 0 0 0 5px;
}
.c-avatar-s {
	width: 26px;
	height: 26px;
}
.c-avatar-m {
	width: 40px;
	height: 40px;
}
.c-avatar-l {
	width: 54px;
	height: 54px;
}
.c-avatar-s img,
.c-avatar-m img,
.c-avatar-l img {
	width: 100%;
	height: 100%;
}
.c-list-text .c-t-right {
	color: #909090 !important;
}
.c-list-text .c-t-right {
	padding-right: 0px;
	color: #909090;
}
.c-list-link .c-t-right {
	padding-right: 20px !important;
}
/* css search
-----------------------------------------------------------------------------*/
.c-ser-hold {
	width: 100%;
	height: 43px;
	background-color: #e8e8e8;
	padding: 6px 10px 0 10px;
}
.c-ser-into {
	background: #fff;
	height: 28px;
	line-height: 28px;
	/* border:1px solid #e1e1e1;*/
	border-radius: 5px;
	font-size: 15px;
	color: #8e8e93;
	text-align: center;
}
.c-serdet {
	display: -webkit-box;
	display: box;
	padding: 7px 10px 0 10px;
}
.ser-icon {
	position: relative;
	display: inline-block;
	width: 13px;
	height: 13px;
	font-size: 1px;
	background: none;
}
.ser-icon:before,
.ser-icon:after {
	content: "";
	position: absolute;
	left: 0;
	background: transparent;
	font-size: 1px;
}
.ser-icon-search:before {
	left: 10%;
	top: 25%;
	width: 55%;
	height: 55%;
	border: 1px solid #8e8e93;
	border-radius: 50%;
	-webkit-border-radius: 50%;
	-moz-border-radius: 50%;
	-o-border-radius: 50%;
}
.ser-icon-search:after {
	left: 65%;
	top: 95%;
	width: 50%;
	height: 8%;
	background: #8e8e93;
	transform: rotate(45deg);
	-webkit-transform: rotate(45deg);
	-moz-transform: rotate(45deg);
	-o-transform: rotate(45deg);
	-ms-transform: rotate(45deg);
}
.c-ser-back {
	width: 20px;
	-webkit-box-flex: 0;
	box-flex: 0;
	overflow: hidden;
}
.c-ser-back .si-right {
	display: block;
	width: 12px;
	height: 12px;
	border: solid #a3a3a7;
	border-width: 0 0 2px 2px;
	-webkit-transform: rotate(45deg);
	-moz-transform: rotate(45deg);
	-ms-transform: rotate(45deg);
	-o-transform: rotate(45deg);
	transform: rotate(45deg);
	margin: 7px 0 0 2px;
	float: left;
}
.c-ser-main {
	-webkit-box-flex: 1;
	box-flex: 1;
	background: #fff;
	height: 28px;
	line-height: 28px;
	border: 1px solid #e1e1e1;
	border-radius: 5px;
	font-size: 15px;
	color: #8e8e93;
	position: relative;
	padding-left: 25px;
	overflow: hidden;
}
.c-ser-main i {
	position: absolute;
	left: 7px;
	top: 7px;
}
.c-ser-input {
	width: 100%;
	background: #fff;
	height: 22px;
	line-height: normal;
	border: none;
	font-size: 15px;
	color: #8e8e93;
	border-radius: 5px;
	padding: 3px 0;
}
.c-ser-btn {
	margin-left: 10px;
	-webkit-box-flex: 0;
	box-flex: 0;
}
.c-ser-btn a {
	display: block;
	height: 30px;
	line-height: 30px;
	padding: 0 10px;
	background: #3aa7ed;
	color: #fff;
	font-size: 14px;
	border-radius: 4px;
}
.c-ser-main .input-clear {
	position: absolute;
	right: 6px;
	top: 6px;
	background: #7e7e7e;
	border-radius: 50%;
	width: 16px;
	height: 16px;
	text-align: center;
}
.c-ser-main .input-clear .close {
	position: relative;
	display: inline-block;
	width: 10px;
	height: 10px;
	overflow: hidden;
	top: -7px;
}
.c-ser-main .input-clear .close::before,
.c-ser-main .input-clear .close::after {
	content: '';
	position: absolute;
	height: 2px;
	width: 100%;
	top: 50%;
	left: 0px;
	margin-top: -1px;
	background: #fff;
	border-radius: 6px;
}
.c-ser-main .input-clear .close::before {
	-webkit-transform: rotate(45deg);
	-moz-transform: rotate(45deg);
	-ms-transform: rotate(45deg);
	-o-transform: rotate(45deg);
	transform: rotate(45deg);
}
.c-ser-main .input-clear .close::after {
	-webkit-transform: rotate(-45deg);
	-moz-transform: rotate(-45deg);
	-ms-transform: rotate(-45deg);
	-o-transform: rotate(-45deg);
	transform: rotate(-45deg);
}
/* assist
-----------------------------------------------------------------------------*/
.ui-nowrap-multi {
	display: -webkit-box;
	overflow: hidden;
	text-overflow: ellipsis;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2
}
.ui-nowrap-multh {
	display: -webkit-box;
	overflow: hidden;
	text-overflow: ellipsis;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3
}
i {
	font-style: normal;
}
.c888 {
	color: #888;
}
.cccc {
	color: #ccc;
}
.cf60 {
	color: #f60;
}
.c333 {
	color: #333;
}
.c5b5b5b {
	color: #5b5b5b;
}
.c4dcd70 {
	color: #4dcd70;
}
.ced5050 {
	color: #ed5050;
}
.ced4d4d {
	color: #ed4d4d;
}
.cc2c2c2 {
	color: #c2c2c2;
}
.ced5050 {
	color: #ed5050;
}
.c-f13 {
	font-size: 13px;
}
.lijt {
	position: absolute;
	right: 15px;
	top: 50%;
	margin-top: -5px;
}
.pr10 {
	padding-right: 10px;
}
.pr20 {
	padding-right: 20px;
}
.h63 {
	height: 63px;
}
body {
	background-color: #f3f3f3;
	color: #333;
	font-size: 14px;
}
.icon {
	background: url(../images/icon.png) no-repeat;
	background-size: 250px 250px;
	-webkit-background-size: 250px 250px;
	-moz-background-size: 250px 250px;
	-ms-background-size: 250px 250px;
}
.getmore {
	width: 100%;
}
.getmore a {
	display: block;
	width: 100%;
	line-height: 40px;
	color: #5b5b5b;
	text-align: center;
	font-size: 14px;
	background: #f3f3f3;
}
/* member */
.addp-list .input-group-addon {
	min-width: 100%;
	width: 90px;
	text-align: right;
}
.mem-top {
	background-color: #fafafa;
	position: relative;
}
.men-list li {
	position: relative;
}
.men-list .mltb1 {
	background: #34aadc;
}
.men-list .mltb2 {
	background: #4fdb67;
}
.men-list .mltb3 {
	background: #ff9501;
}
.men-list .mltb4 {
	background: #017aff;
}
.men-list .mltb5 {
	background: #49cc6d;
}
.men-list .mltb6 {
	background: #ff6600;
}
.men-list .mltb7 {
	background: #4dcd70;
}
.men-list .mltb8 {
	background: #ff6600;
}
.men-list .mltb9 {
	background: #2caddf;
}
.men-list .mltb10 {
	background: #f39800;
}
.men-list li .c-avatar-s {
	position: relative;
	overflow: inherit;
}
.men-list li .c-list-action {
	top: 0px;
}
.mlnum {
	width: 12px;
	height: 12px;
	background: #f60;
	text-align: center;
	line-height: 12px;
	font-size: 8px;
	color: #fff;
	position: absolute;
	top: -4px;
	right: -4px;
}
.mltb1 i,
.mltb2 i,
.mltb3 i,
.mltb4 i,
.mltb5 i,
.mltb6 i,
.mltb7 i,
.mltb8 i,
.mltb9 i,
.mltb10 i {
	color: #fff;
}
.mltb1 i {
	font-size: 19px;
}
.mltb2 i {
	font-size: 18px;
}
.mltb3 i {
	font-size: 18px;
}
.mltb4 i {
	font-size: 18px;
}
.mltb5 i {
	font-size: 15px;
}
.mltb6 i {
	font-size: 16px;
}
.mltb7 i {
	font-size: 15px;
}
.mltb8 i {
	font-size: 15px;
}
.mltb9 i {
	font-size: 19px;
}
.mltb10 i {
	font-size: 19px;
}
.men-list li .qytimes {
	display: block;
	position: absolute;
	right: 15px;
	top: 50%;
	margin-top: -10px;
	font-size: 12px;
	color: #bbb;
}
.sexchoo {
	line-height: 33px !important;
}
.sexchoo label {
	display: inline-block;
	margin-right: 30px;
}
.sexchoo label i {
	display: inline-block;
	width: 26px;
	height: 25px;
	background-position: -1px -1px;
	vertical-align: middle;
	margin: 0 5px 4px 0;
}
.sexchoo label.swom i {
	background-position: -30px -1px;
}
.sexchoo label i.checked {
	background-position: -59px -1px;
}
.sexchoo label.swom i.checked {
	background-position: -88px -1px;
}
/* 健康头条 */
.jnews-top {
	width: 100%;
	text-align: center;
	position: relative;
}
.jnews-top img {
	width: 100%;
	max-width: 640px;
	max-height: 200px;
}
.jnews-top .news-tit {
	display: block;
	width: 100%;
	background: rgba(0, 0, 0, .5);
	position: absolute;
	left: 0;
	bottom: 0;
	color: #fff;
	text-align: left;
	padding: 5px 15px;
	line-height: 20px;
}
.jnews-list .c-list-img {
	width: 60px;
	height: 60px;
	margin: 10px 10px 10px 0;
	position: relative
}
.jnews-list .c-list-img img {
	width: 60px;
	height: 60px;
}
.jnews-tip {
	line-height: 20px;
	padding: 10px 15px;
	background: #fafafa;
}
/* 社区简介 */
.jnews-con {
	line-height: 25px;
	color: #5b5b5b;
}
.jnews-con h1 {
	font-size: 18px;
	color: #333;
	line-height: 25px;
	padding: 15px 0 7px 0;
}
.jnews-con h6 {
	font-size: 12px;
	color: #888;
	line-height: 15px;
	margin-bottom: 15px;
}
.jnews-con img {
	display: block;
	max-width: 100%;
	margin: 0 auto;
}
.jnews-con p {
	margin-bottom: 10px;
	text-indent: 2em
}
.chd-btn {
	margin: 15px 0 20px 0;
}
.chd-btn .list-icon {
	display: inline-block;
	vertical-align: middle;
	margin: 0 0 0px 5px;
	position: inherit;
	left: 0;
	top: 0;
}
.chd-btn .arrow-right {
	border-color: #fff;
}
.jnews-con p.jnews-lc {
	color: #f60;
	text-indent: 0em;
}
.jnews-con p.jnews-lc i {
	display: inline-block;
	width: 20px;
	height: 20px;
	vertical-align: middle;
	margin: 0 5px 5px 0;
	font-size: 20px;
}
.jnmaxw {
	max-width: 320px;
}
.prejn {
	overflow: hidden;
	display: box;
	display: -webkit-box;
}
.prejn .jnimg {
	display: block;
	-webkit-box-flex: 0;
	box-flex: 0;
	width: 126px;
}
.prejn .jnimg img {
	margin: 0;
}
.prejn .jnword {
	display: block;
	-webkit-box-flex: 1;
	box-flex: 1;
	font-size: 12px;
	padding-top: 8px;
	color: #5b5b5b;
}
.prejn .jnword p {
	text-indent: 0em;
	margin-bottom: 8px;
	line-height: 20px;
}
.prebot {}
.prebot p {
	text-indent: 0em;
}
/* 账单明细 */
.h46 {
	height: 46px;
}
.bill-time {
	background: #fff;
	padding: 8px 15px;
	overflow: hidden;
	line-height: 30px;
	position: fixed;
	top: 0;
	left: 0;
	z-index: 600;
}
.bill-time .mhsel {
	display: block;
	float: left;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	width: 45%;
	height: 30px;
	padding: 0 10px 0 5px;
	border: 1px solid #e1e1e1;
	background: url(../images/seljt.png) no-repeat 94% center;
	background-size: 11px 6px;
	-webkit-background-size: 11px 6px;
}
.bill-time .mhto {
	display: block;
	float: left;
	width: 10%;
	text-align: center;
}
.bill-top {
	background: #fff;
	padding: 10px 15px;
}
.bill-top .iconhold {
	display: inline-block;
	width: 35px;
	height: 35px;
	line-height: 35px;
	text-align: center;
	background: #4cd964;
	color: #fff;
	vertical-align: middle;
	margin: 0 15px 1px 0;
}
.bill-top .iconhold i {
	font-size: 20px;
}
.bill-list li .c-list-badge {
	color: #333;
	font-size: 15px;
	font-weight: 700;
	font-family: Arial, Helvetica, sans-serif;
}
/* 咨询详细 */
.advis-list {
	padding-left: 15px;
	background: #fff;
}
.advis-list li {
	border-top: 1px solid #f1f1f1;
	display: -webkit-box;
	display: box;
	padding: 10px 15px 10px 0;
	line-height: 23px;
}
.advis-list li:first-child {
	border-top: none;
}
.advis-list li .altit {
	-webkit-box-flex: 0;
	box-flex: 0;
	width: 80px;
}
.advis-list li .alcon {
	-webkit-box-flex: 1;
	box-flex: 1;
}
.advis-list li .alw100 {
	width: 100%;
}
.advis-list li .alhelp {
	line-height: 20px;
	padding: 5px 0;
}
.advis-list li.adli-last {
	display: block;
}
.report-list {
	overflow: hidden;
	width: 100%;
}
.report-list li {
	display: block;
	width: 33%;
	float: left;
	text-align: center;
	color: #5b5b5b;
	font-size: 12px;
	padding: 0;
	margin: 5px 0 5px 0;
	border: none;
}
.report-list li .reptb {
	display: block;
	width: 56px;
	height: 56px;
	background: #fff;
	border: 1px solid #e1e1e1;
	margin: 0 auto 5px auto;
	font-size: 12px;
	color: #ff8100;
	line-height: 22px;
}
.report-list li .reptb i {
	display: block;
	width: 22px;
	height: 22px;
	margin: 10px auto 0 auto;
}
/* 对话 */
.advis-dialog {
	padding-bottom: 40px;
}
.advis-dialog .ditime {
	text-align: center;
	font-size: 12px;
	line-height: 18px;
	padding-bottom: 8px;
}
.dial-left .dialog {
	padding: 0 0 0 55px;
	position: relative;
	overflow: hidden;
}
.dial-left .dihead {
	width: 40px;
	height: 40px;
	position: absolute;
	left: 0;
	top: 0;
}
.dial-left .dihead img {
	width: 40px;
	height: 40px;
}
.dial-left .dicon {
	background: #a9e07d;
	padding: 10px;
	border-radius: 4px;
	-webkit-border-radius: 4px;
	-moz-border-radius: 4px;
	color: #333;
	float: left;
	word-break: break-all;
}
.dial-left .msg-box-arr {
	position: absolute;
	left: 43px;
	top: 15px;
	display: block;
	width: 0;
	height: 0;
	border-width: 6px;
	border-style: dashed solid dashed dashed;
	border-color: transparent #a9e07d transparent transparent;
}
.dial-left .msg-box-arr i {
	position: absolute;
	left: -6px;
	top: 0;
	margin-top: -7px;
	display: block;
	width: 0;
	height: 0;
	border-width: 6px;
	border-style: dashed solid dashed dashed;
	border-color: transparent #a9e07d transparent transparent;
}
.dial-right .dialog {
	padding: 0 55px 0 0;
	position: relative;
	overflow: hidden;
}
.dial-right .dihead {
	width: 40px;
	height: 40px;
	position: absolute;
	right: 0;
	top: 0;
}
.dial-right .dihead img {
	width: 40px;
	height: 40px;
}
.dial-right .dicon {
	background: #fff;
	padding: 10px;
	border-radius: 4px;
	-webkit-border-radius: 4px;
	-moz-border-radius: 4px;
	color: #5b5b5b;
	float: right;
	word-break: break-all;
}
.dial-right .msg-box-arr {
	position: absolute;
	right: 43px;
	top: 15px;
	display: block;
	width: 0;
	height: 0;
	border-width: 6px;
	border-style: dashed solid dashed dashed;
	border-color: transparent transparent transparent #f1f1f1;
}
.dial-right .msg-box-arr i {
	position: absolute;
	right: -6px;
	top: 0;
	margin-top: -7px;
	display: block;
	width: 0;
	height: 0;
	border-width: 6px;
	border-style: dashed solid dashed dashed;
	border-color: transparent transparent transparent #fff;
}
.advis-end {
	background: #e6eef9;
	line-height: 20px;
	text-align: center;
}
.advis-end i {
	font-size: 18px;
	color: #ff8100;
	vertical-align: middle;
	margin: 0 5px 0 0;
}
.advis-end a {
	font-size: 14px;
	color: #157efb;
}
.advis-bot {
	width: 100%;
	height: 63px;
	background: #fff;
	position: fixed;
	left: 0;
	bottom: 0;
	padding: 14px 93px 0 15px;
}
.advis-bot a {
	display: block;
	position: absolute;
	right: 15px;
	top: 14px;
	color: #333;
	font-size: 14px;
	padding: 0 18px;
	height: 33px;
	line-height: 33px !important;
	background: #f5f5f5;
	border: 1px solid #bebebe;
	border-radius: 5px;
	-webkit-border-radius: 5px;
	-moz-border-radius: 5px;
}
.advis-bot .askbtn {
	width: 100%;
	height: 35px;
	line-height: normal;
	border: 1px solid #bebebe;
	border-radius: 5px;
	-webkit-border-radius: 5px;
	-moz-border-radius: 5px;
	padding: 5px 10px;
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	background: #fff;
}
/* 查看详细 */
.sdoc-top {
	height: 180px;
	background: url(../images/banner1.jpg) no-repeat;
	background-size: 100% 100%;
	-webkit-background-size: 100% 100%;
	-moz-background-size: 100% 100%;
	text-align: center;
	padding: 20px 15px 0 15px;
	font-size: 12px;
	color: #fff;
	text-shadow: 0px 0px 2px rgba(0, 0, 0, 0.6);
	line-height: 23px;
	position: relative;
}
.sdoc-top .sdimg {
	display: block;
	margin: 0 auto 10px auto;
	width: 60px;
	height: 60px;
	padding: 1px;
	background-color: rgba(250, 250, 250, .75);
	border-radius: 50%;
}
.sdoc-top .sdtime {
	position: absolute;
	background: rgba(0, 0, 0, .3);
	width: 100%;
	height: 45px;
	line-height: 45px;
	left: 0;
	bottom: 0;
	text-align: left;
	padding: 0 15px;
}
.sdoc-top .sdstate {
	position: absolute;
	background: rgba(255, 255, 255, 1);
	width: 100%;
	height: 45px;
	line-height: 45px;
	left: 0;
	bottom: 0;
	text-align: left;
	padding: 0 15px;
	text-shadow: none;
	color: #888;
}
.sdslink {
	margin-left: 15px;
	padding-left: 20px;
	border-left: 1px solid #e1e1e1;
}
.sdoc-top .sdslink a {
	display: inline-block;
	height: 25px;
	line-height: 25px;
	padding: 0 10px;
	background: #fff;
	border: 1px solid #e1e1e1;
	border-radius: 5px;
	font-size: 12px;
	color: #333;
}
.sdoc-top .sdtime .list-icon {
	position: absolute;
	right: 15px;
	top: 50%;
	margin-top: -4px;
}
.sdoc-tit {
	line-height: 32px;
	background: #fafafa;
	padding-top: 3px;
}
.sdoc-tit i {
	display: inline-block;
	color: #aaaaaa;
	font-size: 20px;
	vertical-align: middle;
	margin: 0 5px 3px 0;
}
.sdoc-tit i.icon-jianjie {
	font-size: 24px;
}
.sdoc-con {
	background: #fff;
	padding: 10px 15px;
	line-height: 22px;
	color: #5b5b5b;
	overflow: hidden;
}
.sdoc-txt {
	overflow-y: auto;
	display: block;
	height: 66px;
}
/* 签约流程 */
.suppl-step {
	background: #fff;
	padding: 5px 15px 15px 15px;
	overflow: hidden;
}
.suppl-step li {
	display: block;
	width: 32%;
	float: left;
	border-bottom: 3px solid #e1e1e1;
	color: #888;
	font-size: 12px;
	margin-left: 1%;
	text-align: center;
	line-height: 30px;
}
.suppl-step li.sfin {
	border-bottom: 3px solid #4dcd70;
	color: #4dcd70;
}
.suppl-top {
	background: #fff;
	line-height: 25px;
}
.stp-tit {
	display: block;
	margin: 0 15px;
	border-bottom: 1px solid #f2f2f2;
	padding: 10px 0;
}
.stp-list {
	display: block;
	padding: 8px 0;
}
.stp-list li {
	position: relative;
	padding: 0 15px 0 90px;
	line-height: 22px;
}
.stp-list li h4 {
	position: absolute;
	left: 15px;
	top: 0;
}
.suppl-tit {
	background: #fafafa;
	line-height: 30px;
	padding: 10px 15px 0 15px;
}
.sw100 {
	width: 85px;
	text-align: left;
}
.areainput {
	height: 20px;
	line-height: normal;
	margin: 0;
	padding: 0;
	border: none;
	width: 100%;
}
.supp-area {
	display: box;
	display: -webkit-box;
	width: 230px;
	text-align: left;
	margin: 10px auto;
	line-height: 33px;
}
.supp-area .satit {
	-webkit-box-flex: 0;
	box-flex: 0;
	width: 70px;
}
.supp-area .sacon {
	-webkit-box-flex: 1;
	box-flex: 1;
	position: relative;
}
.supp-area .sacon .form-select-arrow {
	display: block;
	width: 10px;
	height: 10px;
	border: solid #cdcdcd;
	border-width: 2px 2px 0 0;
	-webkit-transform: rotate(135deg);
	-moz-transform: rotate(135deg);
	-ms-transform: rotate(135deg);
	-o-transform: rotate(135deg);
	transform: rotate(135deg);
	position: absolute;
	top: 8px;
	right: 8px;
}
.supp-area .sacon select {
	width: 100%;
	height: 33px;
	line-height: 30px;
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	border: 1px solid #e1e1e1;
	padding: 0 5px;
	border-radius: 3px;
	box-sizing: border-box;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	-ms-box-sizing: border-box;
}
.suppl-tip {
	height: 45px;
	line-height: 45px;
	background: #eee;
}
.suppl-tip a {
	color: #333;
}
.add-memb-list {
	padding-left: 15px;
	background: #fff;
}
.add-memb-list .input-merge-border {
	border-bottom: none;
	border-top: 1px solid #f2f2f2;
}
.add-memb-list .input-merge .input-group.input-border {
	padding-left: 0;
}
.add-memb-list .input-merge-border:first-child {
	border-top: none;
}
.add-memb-list .input-group-addon {
	width: 70px;
	text-align: left;
}
.add-memb-list .arrow-right {
	width: 10px;
	height: 10px;
	position: absolute;
	right: 15px;
	top: 50%;
	margin-top: -4px;
}
.add-memb-tip {
	text-align: center;
	font-size: 12px;
	color: #888;
	padding-bottom: 10px;
}
.add-memb-tip i {
	font-size: 18px;
	margin-right: 3px;
}
.add-memb-list input {
	color: #888 !important;
}
.lih45 {
	line-height: 45px;
	font-size: 15px;
}
.add-memb-top {
	line-height: 30px;
	color: #878787;
	padding: 0 15px;
}
.suppl-list {
	padding-left: 15px;
	background: #fff;
}
.suppl-list li {
	line-height: 20px;
	color: #666;
	position: relative;
	padding: 5px 30px 5px 0;
	border-bottom: 1px solid #f2f2f2;
}
.suppl-list li p {
	margin: 3px 0;
}
.suppl-list li .arrow-right {
	position: absolute;
	top: 50%;
	margin-top: -6px;
	right: 15px;
}
.suppl-list li .slt-tel {
	display: block;
	position: absolute;
	left: 50%;
	top: 8px;
}
.slt-add {
	display: block;
	line-height: 43px;
	text-align: center;
	color: #007cd9;
	padding-right: 15px;
}
.slt-add i {
	display: inline-block;
	font-size: 24px;
	font-family: Arial, Helvetica, sans-serif;
	vertical-align: middle;
	margin: 0 5px 4px 0;
}
.suppl-agree {
	line-height: 25px;
	padding: 0 20px;
}
.suppl-agree .input-group-checkbox {
	color: #888;
}
.suppl-agree .input-group-checkbox a {
	color: #007cd9;
}
/* 协议内容 */
.agree-box {
	line-height: 26px;
	padding: 10px 15px 30px 15px;
}
.agree-box h1 {
	font-size: 18px;
	text-align: center;
	padding-bottom: 10px;
}
.agree-box p {
	text-indent: 2em;
}
.agfin-top {
	text-align: center;
	background: #fff;
	padding: 15px 15px 20px 15px;
	font-size: 15px;
	line-height: 22px;
}
.agfin-top i {
	display: inline-block;
	width: 50px;
	height: 50px;
	line-height: 50px;
	font-size: 50px;
	margin-bottom: 10px;
}
.agfin-num {
	line-height: 40px;
	text-align: center;
	font-size: 12px;
	color: #888;
	background: #fafafa;
}
.agfin-num li {
	border-left: 1px solid #e1e1e1;
}
.agfin-num li:first-child {
	border-left: none;
}
.agfin-img {
	text-align: center;
	background: #fafafa;
	padding: 20px 0;
}
.agfin-btn {
	overflow: hidden;
}
.agfin-btn a {
	display: block;
	width: 46%;
	margin-left: 8%;
	float: left;
}
.agfin-btn a:first-child {
	margin-left: 0;
}
.agfiled-tip {
	font-size: 12px;
	color: #888;
	text-align: center;
	padding: 10px 0;
	line-height: 20px;
}
/* 选择社区 */
.hd85 {
	height: 85px;
}
.sarea-box {
	width: 100%;
	height: 40px;
	line-height: 40px;
	background: #fff;
	position: fixed;
	left: 0;
	top: 0;
	padding: 0 15px;
	z-index: 800;
}
.sarea-box i.icon-ditudingwei {
	font-size: 22px;
	vertical-align: middle;
	margin: 0 0 4px 0;
	color: #888;
}
.sarea-box i.icon-dingwei {
	font-size: 22px;
	vertical-align: middle;
	margin: 0 0 4px 0;
	color: #007cd9;
}
.sarea-box .list-icon {
	display: inline-block;
	vertical-align: middle;
	margin: 0 0 7px 5px;
	position: relative;
	left: 0;
	top: 0;
	-webkit-transform: rotate(135deg);
	-moz-transform: rotate(135deg);
	-ms-transform: rotate(135deg);
	-o-transform: rotate(135deg);
	transform: rotate(135deg);
}
.sarea-box .arrow-right {
	border-color: #cbcbcb;
}
.sseach-box {
	width: 100%;
	height: 45px;
	background: #fff;
	position: fixed;
	left: 0;
	top: 40px;
	padding: 0px 15px 0 15px;
	z-index: 800;
}
.shcom-list ul li .c-list-img {
	width: 50px;
	height: 50px;
}
.shcom-list ul li .c-list-img img {
	width: 50px;
	height: 50px;
}
.shcom-list ul li .c-list-info {
	padding-right: 30px;
}
.serch-hold {
	width: 100%;
	height: 66px;
	background: #fff;
	position: fixed;
	left: 0;
	top: 0;
	z-index: 600;
	padding: 15px 15px 0 15px;
	display: box;
	display: -webkit-box;
}
.ser-box {
	border: 1px solid #e1e1e1;
	border-radius: 4px;
	height: 36px;
	font-size: 13px;
	box-flex: 1;
	-webkit-box-flex: 1;
	-moz-box-flex: 1;
	padding: 0 10px;
	position: relative;
}
.ser-box a.s-initial {
	display: block;
	line-height: 34px;
	/*color:#dfdfdf;*/
	position: relative;
}
.ser-box .ser-icon {
	position: absolute;
	/*right:15px;*/
	top: 50%;
	margin-top: -8px;
}
.ser-box .ser-icon:before {
	content: "";
	position: absolute;
	background: transparent;
	font-size: 1px;
	left: 1px;
	top: 0px;
	width: 10px;
	height: 10px;
	border: 2px solid #ccc;
	border-radius: 50%;
}
.ser-box .ser-icon:after {
	content: "";
	position: absolute;
	background: transparent;
	font-size: 1px;
	left: 11px;
	top: 12px;
	width: 6px;
	height: 2px;
	background: #ccc;
	transform: rotate(45deg);
	-webkit-transform: rotate(45deg);
	-moz-transform: rotate(45deg);
	-o-transform: rotate(45deg);
	-ms-transform: rotate(45deg);
}
.ser-box .input-clear {
	position: absolute;
	right: 6px;
	top: 9px;
	background: #7e7e7e;
	border-radius: 50%;
	width: 16px;
	height: 16px;
	text-align: center;
}
.ser-box .input-clear .close {
	position: relative;
	display: inline-block;
	width: 10px;
	height: 10px;
	overflow: hidden;
	top: -2px;
}
.ser-box .input-clear .close:before,
.ser-box .input-clear .close:after {
	content: '';
	position: absolute;
	height: 2px;
	width: 100%;
	top: 50%;
	left: 0px;
	margin-top: -1px;
	background: #fff;
	border-radius: 6px;
}
.ser-box .input-clear .close:before {
	-webkit-transform: rotate(45deg);
	-moz-transform: rotate(45deg);
	-ms-transform: rotate(45deg);
	-o-transform: rotate(45deg);
	transform: rotate(45deg);
}
.ser-box .input-clear .close:after {
	-webkit-transform: rotate(-45deg);
	-moz-transform: rotate(-45deg);
	-ms-transform: rotate(-45deg);
	-o-transform: rotate(-45deg);
	transform: rotate(-45deg);
}
.ser-text {
	width: 100%;
	height: 34px;
	line-height: normal;
}
.s-cancle {
	display: inline-block;
	box-flex: 0;
	-webkit-box-flex: 0;
	-moz-box-flex: 0;
	width: 40px;
	line-height: 40px;
	text-align: right;
	color: #007cd9;
	font-size: 14px;
}
.disa-space {
	width: 100%;
	background: #eff1f3;
	height: 10px;
	position: fixed;
	left: 0;
	top: 66px;
	z-index: 500;
}
.disea-div {
	width: 100%;
	height: 100%;
	position: fixed;
	left: 0;
	top: 0;
	padding-top: 76px;
	z-index: 10;
}
.disea-first {
	width: 32%;
	height: 100%;
	background: #f5f5f5;
	border-top: 1px solid #e1e1e1;
	float: left;
}
.disea-first li a {
	display: block;
	height: 50px;
	line-height: 50px;
	padding-left: 15px;
	color: #333;
	position: relative;
	font-size: 14px;
}
.disea-first li a.hit {
	background: #fff;
	color: #4dcd70;
}
.disea-first li a .arrow {
	position: absolute;
	display: block;
	font-size: 0;
	line-height: 0;
	width: 0;
	height: 0;
	border-color: transparent;
	border-style: dashed;
	border-width: 6px;
	right: 0;
	top: 50%;
	margin-top: -6px;
	border-right-color: #ebebeb;
	border-right-style: solid;
}
.disea-first li a.hit .arrow {
	border-right-color: #fff;
}
.disea-sec {
	width: 68%;
	height: 100%;
	background: #fff;
	border-top: 1px solid #e1e1e1;
	float: left;
	padding: 0 0 0 20px;
}
.disea-sec li a {
	display: block;
	height: 43px;
	line-height: 43px;
	color: #666;
	box-sizing: border-box;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	-ms-box-sizing: border-box;
	border-bottom: 1px solid #f2f2f2;
	position: relative;
	font-size: 14px;
}
.result-list {}
.result-list li {
	line-height: 40px;
	border-top: 1px solid #f2f2f2;
	background: #fff;
	padding: 0 15px;
}
.result-list li:first-child {
	border-top: none;
}
.result-list li a {
	display: block;
	color: #666;
	font-size: 14px;
}
.no-serch {
	text-align: center;
	line-height: 23px;
	padding: 0 15px;
}
.icon-noserch {
	display: inline-block;
	width: 110px;
	height: 110px;
	background: url(../images/noser.png) no-repeat;
	background-size: 100% 100%;
	-webkit-background-size: 100% 100%;
	-moz-background-size: 100% 100%;
	-ms-background-size: 100% 100%;
	margin: 40px 0 5px 0;
}
.doc-choo .c-avatar-m {
	margin: 10px 10px 10px 0;
}
/* 暂无信息 */
.nomess {
	text-align: center;
	line-height: 30px;
	padding: 120px 0 60px 0;
	color: #5b5b5b;
}
.nomess i {
	display: block;
	width: 90px;
	height: 90px;
	background-position: -1px -30px;
	margin: 0 auto;
}
/* 随访 */
.list-tips {
	display: inline-block;
	width: auto;
	margin-top: 0;
	margin-left: 10px;
}
.list-tips .hd .ui-arrow {
	top: 12px;
	left: -10px;
	-webkit-transform: rotate(-90deg);
	transform: rotate(-90deg)
}
.list-tips .bd {
	padding: 0 3px;
	background: #ff6600;
	border: #ff6600 1px solid;
	color: #fff
}
.list-tips .ui-arrow-t,
.list-tips .ui-arrow-t s {
	border-bottom-color: #ff6600;
}
.follow-up .c-list-indent-m {
	padding-right: 50px !important
}
.follow-up .c-list-img,
.follow-up .c-list-img img {
	width: 70px;
	height: 70px;
}
.follow-ask {}
.follow-ask li {
	display: block;
	margin: 10px 5px;
	background: #fff;
	border-radius: 4px;
	padding: 0 10px;
}
.fpart1 {
	line-height: 40px;
	position: relative;
	color: #333;
}
.follow-ask li .list-icon {
	right: 0;
}
.iconhold {
	display: inline-block;
	width: 20px;
	height: 20px;
	line-height: 18px;
	text-align: center;
	color: #fff;
}
.fatb1 {
	background: #f39800;
	font-size: 16px;
}
.fatb2 {
	background: #3cca3f;
}
.fatb3 {
	background: #2caddf;
}
.fatb1 i {
	font-size: 17px;
}
.fatb2 i {
	font-size: 13px;
}
.fatb3 i {
	font-size: 18px;
}
.fpart2 {
	line-height: 20px;
	position: relative;
	color: #333;
	padding: 10px 0;
	border-top: 1px solid #f2f2f2;
	font-size: 12px;
}
.faname {
	display: inline-block;
	float: right;
	border-left: 1px solid #f2f2f2;
	padding-left: 10px;
}
.fpart3 {
	line-height: 20px;
	position: relative;
	color: #333;
	padding: 10px 0;
	border-top: 1px solid #f2f2f2;
	font-size: 12px;
}
/*随访*/
.q-form {
	background-color: #fff;
}
.q-form li:after {
	content: "";
	display: block;
	line-height: 0;
	font-size: 0;
	visibility: hidden;
	clear: both;
}
.q-form li {
	padding: 10px 10px 10px 0;
	margin-left: 15px;
	border-bottom: 1px solid #e1e1e1;
}
.q-form li:last-child {
	border-bottom: none;
}
.q-form .q-form-label {
	font-size: 15px;
}
.q-form .q-form-val {
	margin-left: 82px;
	line-height: 22.5px;
}
.q-form .q-form-val.mr65 {
	margin-right: 65px;
}
.q-form .q-form-inp {
	display: block;
	width: 100%;
	border: none;
	color: #5b5b5b;
}
.q-form .q-form-inp[disabled] {
	background-color: #fff;
}
.qa-form {
	background-color: #fff;
}
.qa-form li:after {
	content: "";
	display: block;
	line-height: 0;
	font-size: 0;
	visibility: hidden;
	clear: both;
}
.qa-form li {
	padding: 10px 10px 10px 0;
	margin-left: 15px;
	border-bottom: 1px solid #e1e1e1;
	position: relative
}
.qa-form li:last-child {
	border-bottom: none;
}
.qa-form .qa-form-label {
	font-size: 15px;
	color: #ff8100;
}
.qa-form .qa-form-val {
	margin-left: 37px;
	line-height: 22.5px;
}
.qa-form .qa-form-val.mr65 {
	margin-right: 65px;
}
.qa-form .qa-form-inp {
	width: 100%;
	border: none;
	color: #5b5b5b;
}
.qa-form .input-group {
	width: 100%;
	padding-right: 5px;
}
/* 我的签约服务 */
.my-servers-top {
	background: url(../images/banner1.jpg) 0 -50px no-repeat;
	background-size: 100% auto;
	-webkit-background-size: 100% auto;
	-moz-background-size: 100% auto;
	color: #fff;
	line-height: 21px;
	text-shadow: 0px 0px 2px rgba(0, 0, 0, 0.6);
	position: relative;
}
.my-servers-top .sdimg {
	display: block;
	margin: 0 auto 10px auto;
	width: 60px;
	height: 60px;
	padding: 1px;
	background-color: rgba(250, 250, 250, .75);
	border-radius: 50%;
}
.my-servers-time {
	line-height: 40px;
	background: #fafafa;
	color: #555;
	padding: 0 15px;
	text-align: center;
}
.my-servers-time i {
	color: #bbb;
	font-size: 18px;
	margin-right: 5px;
}
/* 家庭成员 */
.sw60 {
	width: 60px;
	text-align: left;
}
.add-memb-btn {
	width: 100%;
	height: 46px;
	line-height: 46px;
	background: #fff;
	text-align: center;
	position: absolute;
	left: 0;
	bottom: 0;
}
.add-memb-btn a {
	color: #333;
	font-size: 14px;
}
/* 签约记录 */
.record-list {}
.record-list li .c-avatar-m {
	width: 45px;
	height: 45px;
}
.record-list li .arrow-right {
	display: inline-block;
	width: 6px;
	height: 6px;
	border: solid #cdcdcd;
	border-width: 2px 2px 0 0;
	-webkit-transform: rotate(135deg);
	-moz-transform: rotate(135deg);
	-ms-transform: rotate(135deg);
	-o-transform: rotate(135deg);
	transform: rotate(135deg);
	vertical-align: middle;
	margin: 0 0 5px 5px;
	-webkit-transition: all .3s ease;
}
.record-list li .arshow {
	-webkit-transform: rotate(-45deg);
	-moz-transform: rotate(-45deg);
	-ms-transform: rotate(-45deg);
	-o-transform: rotate(-45deg);
	transform: rotate(-45deg);
	margin: 2px 0 0 5px;
}
.record-list li {
	position: relative;
	background: #fff;
	border-top: 1px solid #f2f2f2;
}
.record-list li:first-child {
	border-top: none;
}
.relimg {
	width: 45px;
	height: 45px;
	position: absolute;
	left: 15px;
	top: 10px;
	overflow: hidden;
}
.relimg img {
	width: 45px;
	height: 45px;
}
.relmess {
	padding: 13px 100px 8px 75px;
	min-height: 45px;
	font-size: 12px;
	color: #888;
	line-height: 18px;
}
.reltime {
	position: absolute;
	right: 15px;
	top: 13px;
	text-align: center;
	font-size: 12px;
	line-height: 18px;
}
.rel-filed {
	background: #eaedeb;
	padding: 10px 15px;
	color: #555;
	font-size: 12px;
	line-height: 20px;
	display: none;
}
.rel-filed .ref-top {
	display: block;
	color: #ed5050;
	padding-bottom: 8px;
	margin-bottom: 10px;
	border-bottom: 1px solid #d2d4d1;
}
/* 电话随访 */
.mstop-time {
	width: 100%;
	line-height: 25px;
	background: rgba(0, 0, 0, .3);
	position: absolute;
	left: 0;
	bottom: 0;
	overflow: hidden;
	padding: 7px 0;
}
.mstop-time .mtpart {
	display: block;
	width: 50%;
	float: left;
	text-align: center;
	font-size: 12px;
	color: #fff;
}
.mstop-time .mtpart:first-child {
	border-right: 1px solid #656578;
}
.mstop-time .mtpart i {
	font-size: 18px;
	margin: 0 3px;
}
.tel-ask-advice {
	margin: 10px 5px;
	padding: 8px;
	background: #fff;
	border: 1px solid #e1e1e1;
	border-radius: 4px;
	line-height: 30px;
	color: #5b5b5b;
}
.ask-text {
	border: none !important;
	padding: 0 !important;
}
/* 图文随访 */
.chat-form {
	bottom: 0;
	left: 0;
	height: 45px;
}
.nopos {
	position: relative;
	bottom: auto;
	left: auto;
}
.chat-form .ui-col-0 {
	width: 50px;
	text-align: center;
}
.chat-form .ui-col-0 a {
	display: inline-block;
	height: 30px;
	width: 30px;
	line-height: 30px;
	position: relative;
	top: 8px;
	border: 1px solid #808080;
	border-radius: 50%;
	color: #808080;
}
.chat-input {
	border: 0;
	border-bottom: #808080 1px solid;
	position: relative;
	top: 14px;
}
.chat-pictures-wrap {
	height: 100%;
	z-index: 2323;
	top: 0;
	left: 0;
	display: none;
}
.chat-pictures-bg {
	height: 100%;
	background-color: rgba(0, 0, 0, 0.7);
}
.chat-pictures-btn {
	bottom: 0;
	left: 0
}
.chat-pictures-a {
	overflow: hidden
}
.chat-pictures-a a {
	height: 45px;
	line-height: 45px;
	display: block;
	font-size: 15px;
	color: #00a1d8;
	text-align: center;
	width: 100%;
	background-color: #fff;
	border-bottom: #e1e1e1 1px solid
}
.chat-pictures-a a:last-child {
	border-bottom: 0
}
.chat-pictures-a a em {
	display: inline-block;
	width: 16px;
	height: 16px;
	border: #00a1d8 1px solid;
	border-radius: 50%;
	line-height: 12px;
	position: relative;
	top: -2px
}
.chat-pictures-a a em i.iconfont {
	font-size: 12px
}
.chat-form .ui-col-0 a.chat-send {
	display: inline-block;
	width: 40px;
	height: 31px;
	line-height: 31px;
	background: #4dcd70;
	text-align: center;
	font-size: 13px;
	color: #fff;
	border: none;
	border-radius: 3px;
	float: left;
}
/* 2015082703 CSX 新增 */
.bottom-btn-box {
	position: fixed;
	bottom: 0;
	left: 0;
	width: 100%;
	box-sizing: border-box;
	padding: 8px 15px;
	background: #fff;
	z-index: 3000;
}
.bp-temp-page {
	padding-bottom: 60px;
}
.bp-temp {
	padding: 5px 0 5px 15px;
}
.bp-temp h3 {
	font-size: 15px;
	color: #333;
	padding: 10px 0;
}
.bp-temp h3 em {
	color: #f58100;
	margin-right: 5px;
}
.bp-temp-con {
	font-size: 12px;
	color: #5b5b5b;
	padding: 10px 15px;
}
.zz-list {
	overflow: hidden;
}
.zz-list li {
	width: 33.3333%;
	float: left;
}
@media screen and (min-width:320px) and (max-width:360px) {
	.zz-list li:last-child {
		width: 50%;
		float: left;
	}
}
.zz-tab {
	width: 100%;
}
.zz-tab td,
.zz-tab th {
	vertical-align: middle;
	padding: 5px 0;
}
.zz-tab th {
	width: 9em;
}
.zz-tab2 th {
	width: 6em;
}
.zz-tab th em {
	color: #f58100;
}
.i-unit {
	display: inline-block;
	height: 36px;
	line-height: 36px;
	text-align: center;
	overflow: hidden;
	box-sizing: border-box;
	-webkit-box-sizing: border-box;
	padding: 0 4px;
}
.width-16 {
	width: 16%;
}
/*单选框和复选框*/
.c-radio,
.c-check {
	display: block;
	overflow: hidden;
	box-sizing: border-box;
	-webkit-box-sizing: border-box;
	position: relative;
	margin: 7px 0;
}
.c-radio .disc,
.c-check .tick {
	display: block;
	position: relative;
	width: 26px;
	height: 26px;
	overflow: hidden;
	box-sizing: border-box;
	-webkit-box-sizing: border-box;
	border: 1px solid #e1e1e1;
	border-radius: 50%;
	background: #fff;
	top: 0;
	left: 0;
	z-index: 2;
}
.c-check .tick {
	border-radius: 6px;
}
.c-radio > input,
.c-check > input {
	display: inline-block;
	vertical-align: baseline;
	position: absolute;
	z-index: 3;
	width: 26px;
	height: 26px;
	background: transparent;
	background: rgba(0, 0, 0, 0);
	-webkit-appearance: none;
	box-sizing: border-box;
	-webkit-box-sizing: border-box;
	margin: 0;
	padding: 0;
	outline: 0;
}
.c-radio > input:checked + .disc:after,
label.checked .disc:after {
	position: absolute;
	content: "";
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: #4dcd70;
	left: 6px;
	top: 6px;
	box-sizing: border-box;
	-webkit-box-sizing: border-box;
}
.c-check > input:checked + .tick:after,
label.checked .tick:after {
	position: absolute;
	content: "";
	width: 13px;
	height: 8px;
	border: solid #4dcd70;
	border-width: 0 0 2px 2px;
	left: 5px;
	top: 5px;
	-webkit-transform: rotate(-45deg);
}
.c-radio > input:disabled + .disc,
.c-check > input:disabled + .tick {
	background: #f0f0f0;
}
.c-radio > input:disabled,
.c-check > input:disabled {
	cursor: auto;
}
.c-radio .txt,
.c-check .txt {
	display: inline-block;
	position: absolute;
	height: 28px;
	line-height: 28px;
	vertical-align: middle;
	top: 0;
	left: 32px;
}
/*下拉选框*/
.c-select {
	display: block;
	position: relative;
	height: 36px;
	overflow: hidden;
	box-sizing: border-box;
	-webkit-box-sizing: border-box;
	border-radius: 4px;
}
.c-select:after {
	position: absolute;
	content: '';
	width: 8px;
	height: 8px;
	border: solid #e1e1e1;
	border-width: 0 2px 2px 0;
	-webkit-transform: rotate(45deg);
	right: 15px;
	top: 50%;
	margin-top: -7px;
}
.c-select > select {
	display: inline-block;
	vertical-align: baseline;
	position: relative;
	z-index: 2;
	width: 100%;
	height: 36px;
	color: #909090;
	background: transparent;
	background: rgba(0, 0, 0, 0);
	border: none;
	-webkit-appearance: none;
	box-sizing: border-box;
	-webkit-box-sizing: border-box;
	margin: 0;
	padding: 0 25px 0 10px;
}
.c-select > select:focus {
	color: #4d5a5e;
	outline: 0;
}
.c-input {
	position: relative;
	display: inline-block;
	min-width: 40px;
	height: 36px;
	overflow: hidden;
	box-sizing: border-box;
	-webkit-box-sizing: border-box;
	border-radius: 4px;
}
.c-input > input {
	display: inline-block;
	vertical-align: baseline;
	position: relative;
	z-index: 2;
	width: 100%;
	height: 36px;
	color: #80989f;
	background: transparent;
	background: rgba(0, 0, 0, 0);
	border: none;
	-webkit-appearance: none;
	box-sizing: border-box;
	-webkit-box-sizing: border-box;
	margin: 0;
	padding: 6px 12px;
}
.c-input > input:focus {
	color: #4d5a5e;
	outline: 0;
}
.c-textarea {
	position: relative;
	display: block;
	overflow: hidden;
	box-sizing: border-box;
	-webkit-box-sizing: border-box;
	border-radius: 4px;
}
.c-textarea > textarea {
	display: inline-block;
	vertical-align: baseline;
	position: relative;
	z-index: 2;
	width: 100%;
	color: #80989f;
	background: transparent;
	background: rgba(0, 0, 0, 0);
	border: none;
	-webkit-appearance: none;
	box-sizing: border-box;
	-webkit-box-sizing: border-box;
	margin: 0;
	padding: 6px 12px;
}
.c-textarea > textarea:focus {
	color: #4d5a5e;
	outline: 0;
}
/* 9.3 */
a.a-more {
	color: #007cd9;
	display: block;
	width: 100%;
	text-align: center;
	padding: 10px 0;
	color: #007cd9;
	font-size: 12px;
	/* border-top: 1px solid #f1f1f1; */
}
.bgc-7ecef4 {
	background-color: #7ecef4;
}
.c-list-text .c-t-left {
	color: #909090 !important;
}
.device-list .c-list-value {
	width: 100px;
}
.c-37a6ed {
	color: #37a6ed !important;
}
.c-333 {
	color: #333 !important;
}
i.icon-nan {
	color: #0073dd;
}
i.icon-nv {
	color: #ff6ca0;
}
/* css c-table two
-----------------------------------------------------------------------------*/
.c-table {
	width: 100%;
	border-collapse: collapse
}
.c-table th {
	font-weight: 700;
}
.c-table td,
.c-table th {
	border-bottom: 1px solid #f1f1f1;
	border-right: 1px solid #f1f1f1;
	text-align: center;
	padding: 10px 5px;
}
.c-table tr td:last-child,
.c-table tr th:last-child {
	border-right: 0
}
.c-table tr:last-child td {
	border-bottom: 0
}
.c-table th,
.c-table td {
	vertical-align: middle
}
.health-table-blue {
	background: #7ecef4;
	color: #fff;
	overflow: hidden
}
.health-table-blue span {
	display: block
}
.health-table-blue td {
	vertical-align: middle
}
.icon-zhidaobiaozhun.c-f24 {
	font-size: 24px;
	position: relative;
	top: 3px
}
.health-border-1 {
	border-color: #ff9806
}
.health-border-2 {
	border-color: #ff0606
}
.health-border-3 {
	border-color: #4dcd70
}
.health-border-4 {
	border-color: #ea68a2
}
.health-border-5 {
	border-color: #1dbdbf
}
.health-border-6 {
	border-color: #37a6ed
}
.health-border-7 {
	border-color: #ae5da1
}
.required {
	top: 50%;
	margin-top: -8px;
	left: 10px;
	color: #ff8100;
}
.add-equipment {
	background: #fff;
	padding: 10px 15px;
	line-height: 47px;
}
.add-btn {
	position: relative;
	display: block;
	width: 45px;
	height: 45px;
	color: #b8b8b8;
	border: 1px dotted #b8b8b8;
	background: #fff;
}
.add-btn:before {
	content: "";
	display: block;
	position: absolute;
	top: 22px;
	left: 8px;
	width: 30px;
	height: 2px;
	background: #b8b8b8;
}
.add-btn:after {
	content: "";
	display: block;
	position: absolute;
	top: 8px;
	left: 22px;
	width: 2px;
	height: 30px;
	background: #b8b8b8;
}
.input-group.input-border span.form-control {
	line-height: 33px;
	color: #8f8f8f;
}
.input-group .c-avatar-s,
.input-group .c-avatar-m,
.input-group .c-avatar-l {
	margin: 5px 15px 5px 0;
	overflow: hidden;
	display: -webkit-box;
	-webkit-box-pack: center;
	-webkit-box-align: center;
}
.health-input-merge .input-group-addon {
	min-width: 100%;
	width: 100px;
	text-align: left;
}
.unit-right {
	position: absolute;
	right: 15px;
	top: 13px;
}
.details-tips i.iconfont {
	color: #ffa119;
	font-size: 12px;
}
.historical-interfere i.iconfont {
	position: relative;
	top: -1px;
	font-size: 15px
}
.cod-list > li {
	position: relative;
	padding-left: 25px;
	margin-bottom: 30px;
}
.cod-list > li .cod-line {
	position: absolute;
	top: 10px;
	left: 6px;
	width: 2px;
	z-index: 5;
	background: #06bf04;
	height: 100%;
	height: -moz-calc(100% +30px);
	height: -webkit-calc(100% +30px);
	height: calc(100% + 30px);
}
.cod-list > li:last-child .cod-line {
	display: none;
}
.cod-list > li:first-child .cod-line {
	background: #ff8100;
}
.cod-list > li > i {
	position: absolute;
	top: 10px;
	left: 0;
	display: block;
	width: 14px;
	height: 14px;
	background: #06bf04;
	border-radius: 50%;
	z-index: 10;
}
.cod-list > li.current:after,
.cod-list > li.current > i {
	background: #ff8100;
}
.cod-con {
	background: #fff;
	border: 1px solid #e1e1e1;
	border-radius: 8px;
	position: relative;
	padding: 10px;
}
.cod-con em.arrow {
	position: absolute;
	top: 12px;
	left: -6px;
	display: block;
	width: 8px;
	height: 8px;
	background: #fff;
	border-color: #e1e1e1;
	border-style: solid;
	border-width: 1px 0 0 1px;
	-webkit-transform: rotate(-45deg);
	-moz-transform: rotate(-45deg);
	transform: rotate(-45deg);
}
.cod-con dd .upload-img ul li {
	margin-right: 5px;
}
.cod-con dd .upload-img ul li:last-child {
	margin-right: 0;
}
.add-manner {
	text-align: left;
}
.ui-popup .add-manner td {
	padding: 0 0 10px 0 !important;
}
.no-guide {
	width: 30%;
	height: 0;
	padding-bottom: 30%;
	background: url(../images/no_data.png) no-repeat;
	background-size: 100% 100%;
	margin: 0 auto;
}
.no-guide-tips {
	width: 70%;
	margin: 0 auto;
}
/*9.28-YY start*/
.sdoc-top.smil {
	padding: 38px 15px 36px;
	height: 100px;
	background: url(../images/p-bg-top.png) no-repeat;
}
.sdoc-top.smil.short {
	height: 60px;
}
.sdoc-top.smil .sdimg {
	margin: 0;
	width: 56px;
	height: 56px;
	border-radius: 56px;
	overflow: hidden;
	padding: 0;
	background: rgb(250, 250, 250)
}
.sdoc-top.smil .sdimg img {
	width: 56px;
	height: 56px;
}
.sdoc-top.smil .sdslink {
	border: none;
}
.ff6600 {
	color: #ff6600;
}
.pos-sist {
	padding: 23px 15px 18px;
	box-sizing: border-box;
	background: #fff;
}
.pos-sist img {
	width: 100%;
	height: auto;
}
.sdoc-top.smil .sdslink a {
	color: #007cd9;
	background: #f8f8f8;
	line-height: 27px;
}
.pb60 {
	padding-bottom: 60px;
}
.slider-detail h2 {
	color: #333333;
}
.slider-detail p {
	color: #888888;
}
.slider-detail li {
	padding: 10px 0 12px 0;
	position: relative;
}
.slider-detail li span {
	position: absolute;
	bottom: 0px;
	right: 15px;
}
.slider-detail p.show {
	display: -webkit-box;
	overflow: hidden;
	text-overflow: ellipsis;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}
.arrow-down,
.arrow-up {
	display: inline-block;
	width: 8px;
	height: 8px;
	border: solid #cdcdcd;
	border-width: 2px 2px 0 0;
	cursor: pointer;
	-webkit-transform: rotate(135deg);
	-moz-transform: rotate(135deg);
	transform: rotate(135deg);
}
.arrow-up {
	-webkit-transform: rotate(-45deg);
	-moz-transform: rotate(-45deg);
	transform: rotate(-45deg);
}
.line-click {
	width: 100%;
	height: 15px;
	position: relative;
}
/*9.28-YY end*/
/*=======================*/
.c-000 {
	color: #000
}
.c-ccc {
	color: #ccc
}
.r-15 {
	right: 15px;
}
.l-10 {
	left: 10px;
}
.pl25 {
	padding-left: 25px;
}
/* 9.28 */
/* -------签约成功提示 */
.nsucc-top {
	text-align: center;
	padding: 80px 0 20px 0;
}
.nsucc-top i {
	font-size: 50px;
}
.choo-qy div {
	padding: 6px 17px;
}
.goodstexa {
	display: block;
	width: 100%;
	height: 150px;
	border: 1px solid #e1e1e1;
	border-radius: 5px;
	background: #fff;
	appearance: none;
	-webkit-appearance: none;
	padding: 5px 10px;
	word-break: break-all;
}

文件差异内容过多而无法显示
+ 485 - 0
html/yszx/css/suifang.css


+ 3114 - 0
html/yszx/css/zx-style.css

@ -0,0 +1,3114 @@
body {
	background: #f9f9f9;
	font-size: 14px;
}
.c-btn-maincolor {
	background-color: #37a6ed;
	color: #fff;
}
/*蓝色按钮样式*/
.c-btn-maincolor:hover {
	background-color: #3099dd;
}
.c-37a6ec {
	color: #37a6ec;
}
.c-bfbfbf {
	color: #bfbfbf;
}
.c-fa383d {
	color: #fa383d;
}
.c-007dda {
	color: #007dda;
}
.c-ff8011 {
	color: #ff8011;
}
.c-087eff {
	color: #087eff;
}
.c-ff8100 {
	color: #ff8100;
}
.c-fff {
	color: #fff;
}
.c-ccc {
	color: #ccc;
}
.c-333 {
	color: #333;
}
.bgc-00c1a5 {
	background-color: #00c1a5;
}
.bgc-ebebeb {
	background-color: #ebebeb;
}
.bgc-087eff {
	background-color: #087eff;
}
.bgc-97caff {
	background-color: #97caff;
}
.c-tag {
	color: #fff;
	font-size: 16px;
	padding: 2px 10px;
	border-radius: 4px;
}
.c-tag-blue {
	background: #3da3ee;
}
.line-22 {
	line-height: 22px;
}
.line-40 {
	line-height: 40px;
}
.mr40 {
	margin-right: 40px;
}
.r-15 {
	right: 15px;
}
.pt1 {
	padding-top: 1px;
}
.add-model .title-word-limit {
	position: absolute;
	right: 15px;
	top: 12px;
}
.arrow-left {
	display: block;
	width: 8px;
	height: 8px;
	border: solid #fff;
	border-width: 0 0 2px 2px;
	-webkit-transform: rotate(45deg);
	-moz-transform: rotate(45deg);
	-ms-transform: rotate(45deg);
	-o-transform: rotate(45deg);
	transform: rotate(45deg);
}
/* css3-Grid
-----------------------------------------------------------------------------*/
.ui-grid {
	display: -webkit-box;
	display: box;
}
.ui-grid-middle {
	-webkit-box-pack: center;
	-webkit-box-align: center;
	box-pack: center;
	box-align: center;
}
.ui-grid-vertical {
	-webkit-box-orient: vertical;
	box-orient: vertical;
}
.ui-grid-label {
	-webkit-box-flex: 0;
	box-flex: 0;
	width: 100px;
	font-weight: 600;
}
.ui-col-0 {
	-webkit-box-flex: 0;
	box-flex: 0;
}
.ui-col-1 {
	-webkit-box-flex: 1;
	box-flex: 1;
}
/*n-list*/
.ptb12 {
	padding-top: 12px;
	padding-bottom: 12px;
}
.n-list {
	background-color: #fff;
}
.n-list > li,
.n-list > .n-list-li {
	position: relative;
	display: -webkit-box;
	display: box;
	box-pack: center;
	padding-right: 15px;
	margin-left: 15px;
	border-top: 1px solid #f1f1f1;
	clear: both;
}
.n-list > li:first-child,
.n-list > .n-list-li:first-child {
	border-top: none;
}
.n-list > .n-list-link:active {
	background-color: #f7f7f7;
	padding-left: 15px;
	margin-left: 0
}
.n-list > .n-list-cover {
	padding-left: 15px;
	margin-left: 0;
}
.n-list > .list-arrow-r,
.n-list > .list-arrow-d,
.n-list > .list-arrow-u {
	padding-right: 30px
}
.n-list > .list-arrow-r:after,
.n-list > .list-arrow-d:after,
.n-list > .list-arrow-u:after {
	position: absolute;
	top: 50%;
	right: 15px;
	margin-top: -5px;
	content: "";
	display: block;
	width: 8px;
	height: 8px;
	border: solid #cdcdcd;
	border-width: 2px 2px 0 0;
	-webkit-transform: rotate(45deg);
	-moz-transform: rotate(45deg);
	-ms-transform: rotate(45deg);
	transform: rotate(45deg);
}
.n-list > .list-arrow-d:after {
	right: 13px;
	margin-top: -8px;
	-webkit-transform: rotate(135deg);
	-moz-transform: rotate(135deg);
	-ms-transform: rotate(135deg);
	transform: rotate(135deg);
}
.n-list > .list-arrow-u:after {
	right: 13px;
	margin-top: -2px;
	-webkit-transform: rotate(-45deg);
	-moz-transform: rotate(-45deg);
	-ms-transform: rotate(-45deg);
	transform: rotate(-45deg);
}
.n-list-title {
	display: -webkit-box;
	display: -moz-box;
	display: box;
	-webkit-box-orient: vertical;
	-moz-box-orient: vertical;
	box-orient: vertical;
	-webkit-box-pack: start;
	-moz-box-pack: start;
	box-pack: start;
}
.n-list-key,
.n-list-info {
	display: -webkit-box;
	display: -moz-box;
	display: box;
	-webkit-box-orient: vertical;
	-moz-box-orient: vertical;
	box-orient: vertical;
	-webkit-box-pack: center;
	-moz-box-pack: center;
	box-pack: center;
}
.n-list-info {
	display: box;
	-webkit-box-flex: 1;
	-moz-box-flex: 1;
	box-flex: 1;
}
.n-list-flex {
	display: -webkit-box;
	display: -moz-box;
	display: box;
	-webkit-box-flex: 1;
	-moz-box-flex: 1;
	box-flex: 1;
}
.n-list > .n-list-function {
	border-top: none;
	padding-right: 0;
}
.n-list > .n-list-function .n-list-flex {
	border-top: 1px solid #f1f1f1;
}
.n-list > .n-list-function:first-child .n-list-flex {
	border-top: none;
}
.n-list > li:first-child,
.n-list > .n-list-function:first-child,
.n-list > .n-list-function:first-child .n-list-info,
.n-list > div:first-child {
	border: 0;
}
.n-list > .n-list-label {
	display: block;
	border-top: none;
	padding-right: 0;
}
.n-list .n-list-img {
	width: 100px;
	height: 68px;
	overflow: hidden;
	position: relative
}
.n-list .n-list-img img {
	width: 100%;
	height: auto;
}
.required {
	position: relative;
}
.required:before {
	content: "*";
	position: absolute;
	color: #f00;
	font-size: 14px;
	height: 12px;
	line-height: 12px;
	vertical-align: middle;
	left: -10px;
	top: 50%;
	margin-top: -5px;
}
.n-avatar-s,
.n-avatar-m,
.n-avatar-l {
	width: 26px;
	height: 26px;
	display: -webkit-box;
	-webkit-box-pack: center;
	-webkit-box-align: center;
}
.n-avatar-m {
	width: 40px;
	height: 40px;
}
.n-avatar-l {
	width: 54px;
	height: 54px;
}
.n-avatar-s img,
.n-avatar-m img,
.n-avatar-l img {
	width: 100%;
	height: 100%;
}
.word-bread {
	word-wrap: break-word;
}
/* 电话咨询 */
.doc-avatar {
	width: 50px;
	height: 50px;
	border-radius: 50%;
	text-align: center;
	overflow: hidden;
}
.doc-avatar img {
	width: auto;
	height: 100%;
}
.view-more {
	display: inline-block;
	width: 100%;
	text-align: center;
	padding: 15px 0;
}
.doc-detail .list-arrow-d:after {
	top: 15px;
	margin-top: 0;
}
.doc-detail .list-arrow-u:after {
	top: 20px;
	margin-top: 0;
}
.level,
.honor {
	display: inline-block;
	width: 20px;
	height: 20px;
}
.level img,
.honor img {
	width: 100%;
	height: 100%;
}
/* 指定咨询 */
.upload-img {
	overflow: hidden;
	display: inline-block;
}
.upload-img ul li {
	position: relative;
	display: inline;
	float: left;
	width: 76px;
	height: 76px;
	padding: 0 10px 10px 0;
}
.upload-img ul li img {
	width: 100%;
	height: 100%;
}
.upload-img .del-img {
	position: absolute;
	top: 0;
	right: 10px;
	text-align: center;
	width: 26px;
	height: 26px;
	line-height: 20px;
	z-index: 10;
	background: rgba(0, 0, 0, .5);
	border-radius: 0 0 0 90%;
	overflow: hidden;
}
.upload-img .del-img .iconfont {
	color: #fff;
	font-size: 14px;
	line-height: 14px;
	margin-left: 4px;
}
.add-btn {
	position: relative;
	display: block;
	width: 74px;
	height: 74px;
	font-size: 0;
	color: #b8b8b8;
	border: 1px dashed #a0a0a0;
	background: #fff;
}
.add-btn:before {
	content: "";
	display: block;
	position: absolute;
	top: 34px;
	left: 22px;
	width: 30px;
	height: 2px;
	background: #a0a0a0;
}
.add-btn:after {
	content: "";
	display: block;
	position: absolute;
	top: 20px;
	left: 36px;
	width: 2px;
	height: 30px;
	background: #a0a0a0;
}
.doc-tab li {
	width: 50%;
}
.doc-tab li.hit {
	border-bottom: 3px solid #4dcd70;
}
.doc-tab li.hit a {
	color: #4dcd70;
}
.doc-list-sm {
	padding: 10px 15px;
}
.doc-list-sm span {
	color: #666;
}
.doc-list-sm b {
	color: #333;
	font-weight: normal;
}
.delimgpop {
	position: fixed;
	width: 100%;
	height: 100%;
	left: 0;
	top: 0;
	background: rgba(0, 0, 0, .8);
	text-align: center;
	z-index: 2200;
}
.del-img-box {
	width: 100%;
	height: 100%;
	display: table;
}
.del-img-con {
	display: table-cell;
	vertical-align: middle;
}
.del-img-con img {
	width: auto;
	height: auto;
	border: 2px solid #000;
}
.del-img-con p {
	position: relative;
	display: inline-block !important;
	-webkit-animation: myfirst .3s ease;
}
.del-img-box p:after {
	font-family: "iconfont" !important;
	content: "\d605";
	position: absolute;
	display: block;
	top: 5px;
	right: 10px;
	width: 32px;
	height: 32px;
	z-index: 5000;
	color: #fff;
	font-size: 32px;
	font-style: normal;
	-webkit-font-smoothing: antialiased;
	-webkit-text-stroke-width: 0.2px;
	-moz-osx-font-smoothing: grayscale;
	-webkit-text-shadow: 0 0 1px #f00;
	text-shadow: 0 0 1px #000;
}
.del-img-btn {
	display: inline-block;
	height: 40px;
	line-height: 40px;
	position: absolute;
	top: 0;
	right: 0;
	z-index: 20;
	padding: 0 15px;
	text-align: right;
	color: #000;
}
.del-img-btn .iconfont {
	font-size: 20px;
	margin-right: 4px;
}
.r-input {
	width: 100%;
	text-align: right;
}
.r-textarea {
	width: 100%;
	border: 0;
	padding: 0;
	resize: none;
}
.over-lay,
.over-lay[id] {
	position: fixed;
	top: 0;
	left: 0;
	z-index: 3000;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, .7);
}
.ins-img-btn {
	position: fixed;
	width: 100%;
	bottom: 0;
	left: 0;
	z-index: 3100;
}
.ins-img-btn .c-btn {
	border-radius: 4px;
	border: none;
	color: #157efb;
	font-size: 20px;
}
.ins-img-btn .c-btn:first-child {
	border-radius: 4px 4px 0 0;
}
.ins-img-btn .c-btn:nth-child(2) {
	border-top: 1px solid #e1e1e1;
	border-radius: 0 0 4px 4px;
}
.zx-notes {
	text-align: left;
	color: #5b5b5b;
	font-size: 12px;
}
.ui-popup .zx-notes li {
	padding: 0 !important;
	margin: 0 !important;
}
/* 咨询信息 */
.talk-box {
	position: relative;
	width: 100%;
	padding: 10px;
	background: #fff;
	border-radius: 5px;
	border: 1px solid #e6bc5d;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
}
.talk-box:after {
	position: absolute;
	content: "";
	top: -6px;
	left: 30px;
	font-size: 13px;
	color: #5b5b5b;
	width: 10px;
	height: 10px;
	border: 1px solid #e6bc5d;
	border-width: 1px 1px 0 0;
	background: #fff;
	-webkit-transform: rotate(-45deg);
	-moz-transform: rotate(-45deg);
	-ms-transform: rotate(-45deg);
	-o-transform: rotate(-45deg);
	transform: rotate(-45deg);
}
.icon-round {
	display: inline-block;
	width: 24px;
	height: 24px;
	text-align: center;
	line-height: 24px;
	vertical-align: middle;
	color: #fff;
	font-size: 14px;
	border-radius: 50%;
	overflow: hidden;
}
.upload-img ul li.upload-btn-box {
	width: 240px;
	height: 76px;
}
.upload-img ul li.upload-btn-box p {
	width: 150px;
	font-size: 13px;
	color: #5b5b5b;
	display: block;
	padding: 18px 0 0 10px;
}
.pingjia {
	font-size: 13px;
	color: #ff8100;
}
.pingjia .iconfont {
	font-size: 20px;
	line-height: 20px;
	color: #ff8100;
}
.bottom-iconbtn {
	position: fixed;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 44px;
	border-top: 1px solid #e1e1e1;
	background: #fff;
	z-index: 1000;
}
.bottom-iconbtn a {
	display: inline-block;
	width: 49%;
	height: 44px;
	line-height: 44px;
	text-align: center;
	vertical-align: middle;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
	border-right: 1px solid #e1e1e1;
	overflow: hidden;
}
.bottom-iconbtn a:last-child {
	border: none;
}
.bottom-iconbtn a .iconfont {
	font-size: 18px;
	line-height: 18px;
	vertical-align: middle;
}
.sel-phiz {
	overflow: hidden;
	padding-right: 15px;
}
.sel-phiz li {
	width: 25%;
	float: left;
	text-align: center;
	color: #333;
	font-size: 15px;
}
.sel-phiz li:nth-child(2) {
	margin: 0 12.4%;
}
.sel-phiz li .iconfont {
	font-size: 40px;
	line-height: 40px;
	color: #ccc;
}
.sel-phiz li p {
	padding-top: 5px;
}
.sel-phiz li.selected .iconfont {
	color: #ff8100;
}
.padding-fixed {
	width: 100%;
	height: 70px;
}
.tel-zx-list>li .n-list-key {
	min-width: 6em;
}
/*爱心咨询*/
.common-title {
	font-size: 12px;
	padding: 10px 15px;
	color: #5b5b5b;
}
.ax-consultation li {
	position: relative;
}
.ax-consultation select,
.ax-consultation input {
	color: #909090 !important;
}
.ax-consultation li input.short {
	border: 1px solid #000;
	width: 50%;
	box-sizing: border-box;
}
.ax-consultation li .input-group .form-select {
	height: 30px;
	box-sizing: border-box;
	padding: 2px 13px 2px 5px;
}
.ax-consultation li .form-select-arrow {
	top: 9px;
	right: 7px;
}
.ax-consultation li .c-list-value h4 {
	min-width: 4em;
}
.ax-consultation li .input-group {
	position: relative;
}
.arrow-down {
	display: block;
	width: 8px;
	height: 8px;
	border: solid #cdcdcd;
	border-width: 2px 2px 0 0;
	-webkit-transform: rotate(135deg);
	-moz-transform: rotate(135deg);
	-ms-transform: rotate(135deg);
	-o-transform: rotate(135deg);
	transform: rotate(135deg);
}
.ax-consultation li .list-icon {
	position: absolute;
	right: 15px;
	top: 50%;
	margin-top: -4px;
}
.ax-consultation li .input-group .list-icon {
	position: absolute;
	right: 10px;
	top: 50%;
	margin-top: -4px;
}
.pl40 {
	padding-left: 40px;
}
.ml40 {
	margin-left: 40px;
}
.ax-consultation li .input-group-addon {
	padding: 0 10px;
}
.pm_age {
	display: inline-block;
	width: 138px;
	height: 30px;
	border: 1px solid #ddd;
	border-radius: 5px;
	-webkit-border-radius: 5px;
	vertical-align: middle;
	overflow: hidden;
	position: relative;
}
.ageinput {
	width: 65px;
	height: 30px;
	line-height: 30px;
	background: #fff;
	border: none;
	float: left;
	font-size: 15px;
	color: #333;
	border-right: 1px solid #ddd;
	padding-left: 10px;
	border-radius: 5px 0 0 5px;
}
.pm_age .agesel {
	width: 60px;
	height: 30px;
	line-height: 30px;
	float: left;
	font-size: 15px;
	color: #808080;
	border: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	font-family: "\5FAE\8F6F\96C5\9ED1", Helvetica;
	background: url(/images/point_d.png) 94% center no-repeat #fff;
	background-size: 13px 8px;
	-webkit-background-size: 13px 8px;
	padding: 0 0 0 10px;
}
.pt2 {
	padding-top: 2px;
}
/*问医生*/
.bg-9dcd82 {
	background: #9dcd82;
}
.bg-ff7aac {
	background: #ff7aac;
}
.bg-8ebcf8 {
	background: #8ebcf8;
}
.bg-ffbc16 {
	background: #ffbc16;
}
.ask-doctors-boxer .c-avatar-m i {
	width: 40px;
	height: 40px;
	border-radius: 40px;
	text-align: center;
	line-height: 40px;
	display: block;
	color: #fff;
	font-size: 24px;
}
.ask-doctors-boxer .tiper-words {
	width: 100%;
	box-sizing: border-box;
}
.ask-doctors-boxer .tiper-words img {
	width: 100%;
}
/*专家列表*/
.professor-listhead {
	height: 45px;
	background: #fff;
	width: 100%;
	z-index: 99;
	position: fixed;
	bottom: 0;
	left: 0;
}
.professor-listhead li {
	float: left;
	line-height: 45px;
	box-sizing: border-box;
	border-right: 1px solid #f2f2f2;
	text-align: center;
	color: #5b5b5b;
	font-size: 14px;
	height: 45px;
}
.professor-listhead li span {
	text-overflow: ellipsis;
	overflow: hidden;
	height: 45px;
	line-height: 45px;
	white-space: nowrap;
	max-width: 80%;
	display: inline-block;
	position: relative;
	padding: 0 15px 0 0;
	box-sizing: border-box;
}
.professor-listhead li:last-child {
	border: none;
}
.professor-listhead li em.cur {
	color: #37a6eb;
}
.professor-listhead li i {
	display: block;
	position: absolute;
	top: 20px;
	right: 0;
}
.professor-listhead li.cur i.s-arrow-down {
	width: 0;
	height: 0;
	border-left: 5px solid transparent;
	border-right: 5px solid transparent;
	border-bottom: 5px solid #b4b4b4;
	border-top: 0;
}
.s-arrow-down {
	width: 0;
	height: 0;
	border-left: 5px solid transparent;
	border-right: 5px solid transparent;
	border-bottom: 5px solid #b4b4b4;
	border-top: 0;
}
.professor-main .c-avatar-m {
	padding: 6px 0 6px;
}
.professor-main .c-avatar-m img {
	border-radius: 40px;
	overflow: hidden;
	width: 40px;
	height: 40px;
}
.professor-main .c-list-indent-s {
	padding-right: 15px !important;
}
.pt35 {
	padding-top: 35px;
}
.c-ff8100 {
	color: #ff8100;
}
.professor-main .c-5b5b5b {
	color: #5b5b5b !important;
}
.list-addmore {
	color: #007cd9;
	font-size: 13px;
	width: 100%;
	text-align: center;
	line-height: 34px;
}
.professor-main .c-list-info {
	padding: 6px 0 6px;
}
.professor-main li {
	padding-left: 15px !important;
	margin-left: 0 !important;
}
/*专家列表iscroll*/
.shadow-panel {
	position: fixed;
	top: 0;
	left: 0;
	bottom: 45px;
	width: 100%;
	z-index: 90;
	background-color: rgba(0, 0, 0, .35);
}
.scroll-fixed {
	position: fixed;
	bottom: 45px;
	left: 0;
	z-index: 98;
}
.scroll-citybox,
.scroll-hospbox {
	width: 100%;
	height: 352px;
	overflow: hidden;
}
.scroll-specbox {
	width: 100%;
	height: 352px;
	overflow: hidden;
}
.scroll-citybox li,
.scroll-hospbox li {
	text-overflow: ellipsis;
	white-space: nowrap;
	overflow: hidden;
}
.city-box-leftwrapper {
	width: 40%;
	background: #f5f5f5;
}
.city-box-rightwrapper {
	width: 60%;
	background: #ffffff;
}
.hosp-box-leftwrapper {
	width: 50%;
	background: #f5f5f5;
}
.hosp-box-rightwrapper {
	width: 50%;
	background: #ffffff;
}
.spec-box-leftwrapper {
	width: 100%;
	background: #ffffff;
	font-size: 14px;
}
.cc-lef li {
	padding: 11px 20px;
	color: #5b5b5b;
	font-size: 14px;
	border-right: 1px solid #e1e1e1;
	border-bottom: 1px solid #e1e1e1;
	width: 100%;
	box-sizing: border-box;
}
.cc-lef li:last-child {
	border-bottom: none;
}
.cc-lef li span {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	white-space: normal;
	overflow: hidden;
}
.cc-rig li {
	margin-left: 15px;
	border-bottom: 1px solid #e1e1e1;
	height: 43px;
	line-height: 43px;
	color: #5b5b5b;
	font-size: 14px;
}
.cc-rig li:last-child {
	border-bottom: none;
}
.cc-lef li.cur {
	background: #fff;
	border-right: 1px solid #fff;
}
.cc-rig li.cur {
	color: #37a6eb;
}
.city-box-leftwrapper,
.city-box-rightwrapper,
.hosp-box-leftwrapper,
.hosp-box-rightwrapper,
.spec-box-leftwrapper {
	float: left;
	position: relative;
	height: 352px;
	overflow: hidden;
	/* Prevent native touch events on Windows */
	-ms-touch-action: none;
	/* Prevent the callout on tap-hold and text selection */
	-webkit-touch-callout: none;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
	/* Prevent text resize on orientation change, useful for web-apps */
	-webkit-text-size-adjust: none;
	-moz-text-size-adjust: none;
	-ms-text-size-adjust: none;
	-o-text-size-adjust: none;
	text-size-adjust: none;
}
.city-leftscroller,
.city-rightscroller,
.hosp-leftscroller,
.hosp-rightscroller,
.spec-leftscroller {
	position: absolute;
	width: 100%;
	/* Prevent elements to be highlighted on tap */
	-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
	/* Put the scroller into the HW Compositing layer right from the start */
	-webkit-transform: translateZ(0);
	-moz-transform: translateZ(0);
	-ms-transform: translateZ(0);
	-o-transform: translateZ(0);
	transform: translateZ(0);
}
.shadow-panel {
	display: none;
}
.spec-leftscroller div.c-33 {
	color: #5b5b5b;
	float: left;
	box-sizing: border-box;
	border-right: 1px solid #e1e1e1;
	border-bottom: 1px solid #e1e1e1;
	text-align: center;
	text-overflow: ellipsis;
	white-space: nowrap;
	overflow: hidden;
	height: 36px;
	line-height: 36px;
	font-size: 14px;
}
.spec-leftscroller div.c-33.cur {
	color: #37a6eb;
}
.main-scrollboxer {
	-webkit-overflow-scrolling: touch;
}
/*医生列表搜索无数据*/
.search-nodata {
	width: 100%;
	font-size: 16px;
	color: #5b5b5b;
	text-align: center;
	padding: 100px 0 40px 0;
}
.search-nodata-img {
	width: 40%;
	max-width: 320px;
	margin: 0 auto;
}
.search-nodata-icon {
	background: url(../images/no-data.png) no-repeat 100% 0;
	width: 100%;
	height: 0;
	padding-bottom: 100%;
	background-size: 100% auto;
}
/*网络咨询详情页*/
.c-avatar-m {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	overflow: hidden;
}
.doctor_detail_intro {
	font-size: 15px;
	background: #fff;
	margin-top: 20px;
}
.doctor_detail_intro .tit {
	color: #909090;
	display: inline-block;
	float: left;
	width: 75px;
}
.doctor_detail_intro .tit2 {
	color: #909090;
	display: inline-block;
	float: left;
	width: auto;
}
.doctor_detail_intro .words {
	-webkit-box-flex: 1;
	box-flex: 1;
	display: box;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-box-pack: center;
	padding-right: 15px;
	box-sizing: border-box;
	color: #333;
	overflow: hidden;
}
.doctor_detail_intro .main_good_at,
.doctor_detail_intro .main_intro {
	margin-left: 15px;
	padding: 15px 0
}
.report-img,
.report-img img {
	width: 70px;
	height: 70px;
	float: left;
	margin-right: 10px;
}
.time-title {
	width: 22px;
	height: 22px;
	border-radius: 50%;
	line-height: 20px;
	text-align: center;
	display: inline-block;
	background-color: #4dcd70
}
.time-title i,
iconfont {
	font-size: 13px;
}
.review {
	width: 100%;
	margin-top: 10px;
}
.review .hd {
	height: 5px;
	position: relative;
}
.review .hd .ui-arrow {
	position: absolute;
	top: -5px;
	left: 10px;
	border-bottom-color: #ff8100;
}
.review .hd .ui-arrow s {
	top: -4px;
}
.review .bd {
	border: 1px solid #ff8100;
	padding: 10px;
	-webkit-border-radius: 5px;
	-moz-border-radius: 5px;
	border-radius: 5px;
}
/*电话咨询记录*/
.doctor_detail_intro .record-tit {
	color: #909090;
	display: inline-block;
	float: left;
	width: 85px;
}
.no-record {
	text-align: center;
	line-height: 23px;
	padding: 0 15px;
}
.icon-record {
	display: inline-block;
	width: 125px;
	height: 125px;
	background: url(../images/no-data.png) no-repeat;
	background-size: 100% 100%;
	-webkit-background-size: 100% 100%;
	-moz-background-size: 100% 100%;
	-ms-background-size: 100% 100%;
	margin: 60px 0 5px 0;
}
/*电话咨询-登记成功*/
.win-register {
	text-align: center;
}
.win-register i,
iconfont {
	font-size: 60px;
}
.b-height {
	height: 80px;
}
.s-height {
	height: 40px;
	line-height: 40px;
	text-align: center
}
.c-49 {
	width: 49%
}
/*确认就诊人信息*/
.demo-input-merge .input-group-addon {
	min-width: 90px;
	width: 90px;
	text-align: left;
}
.l-span {
	top: 17px;
	left: 0px;
	position: absolute;
	color: #f00
}
.words-box {
	padding-top: 8px;
	border-top: 1px solid #e1e1e1;
}
.words-box .form-textarea2 {
	height: 100px;
	border: 0px;
	resize: none
}
.input-merge .input-group.input-border .input-group-addon,
.input-merge .input-group.input-border .form-control,
.input-merge .input-group.input-border .form-select,
.input-merge .input-group.input-border .form-textarea,
.input-merge .input-group.input-border .form-control,
.input-merge .input-group.input-border .form-select,
.input-merge .input-group.input-border .form-textarea,
.input-merge .input-group.input-border .input-group-addon {
	border-radius: 0px;
}
.input-merge .input-group.input-border {
	padding-left: 15px;
}
.input-merge .input-group.input-border .input-group-addon {
	padding-left: 0
}
.t-14 {
	top: 14px;
}
.t-12 {
	top: 12px;
	position: absolute;
	color: #ff8100;
}
.words-box .form-textarea2::-webkit-input-placeholder,
.words-box .r-textarea::-webkit-input-placeholder {
	color: #bfbfbf;
}
.words-box .form-textarea2:-moz-placeholder,
.words-box .r-textarea:-moz-input-placeholder {
	color: #bfbfbf;
}
.words-box .form-textarea2:-ms-input-placeholder,
.words-box .r-textarea:-ms-input-placeholder {
	color: #bfbfbf;
}
.number-r-b {
	right: 15px;
	bottom: -15px;
	position: absolute;
}
/*网络咨询*/
.hz-header {
	height: 45px;
	background: #fff;
}
.hz-header li {
	font-size: 13px;
	color: #5b5b5b;
}
.hz-header li.cur {
	border-bottom: 2px solid #37a6ed;
}
.hz-header li.cur span {
	color: #007cd9;
}
.hz-header li span {
	margin: 12px 0;
	border-right: 1px solid #e1e1e1;
	text-align: center;
	display: block;
	box-sizing: border-box;
}
.visit-list {}
.visit-list li {
	border-top: 1px solid #e1e1e1;
	border-bottom: 1px solid #e1e1e1;
	background: #fff;
	padding-left: 15px;
	margin-top: 15px;
}
.visit-list li .vlname {
	line-height: 45px;
	border-bottom: 1px solid #f2f2f2;
	position: relative;
	padding-right: 15px;
}
.visit-list li .vlname .arrow-right {
	position: absolute;
	right: 15px;
	top: 50%;
	margin-top: -4px;
}
.visit-list li .vlcard {
	line-height: 40px;
	color: #bfbfbf;
	padding-right: 15px;
}
.c-btn-r,
.c-btn-full-r {
	display: inline-block;
	zoom: 1;
	*display: inline;
	vertical-align: baseline;
	outline: none;
	cursor: pointer;
	border: 0;
	background: none;
	text-align: center;
	text-decoration: none;
	padding: 5px 10px;
	color: #fff;
	position: relative;
	font: 14px/1 \5FAE\8F6F\96C5\9ED1, tahoma, arial, \5b8b\4f53;
	line-height: normal !important;
	background-color: #37a6ec;
	border-radius: 4px;
}
.r-w100 {
	width: 100px;
	text-align: right;
}
.bgc-fffae8 {
	background: #fffae8;
}
.pb3 {
	padding-bottom: 3px;
}
.pb2 {
	padding-bottom: 2px;
}
.c-ser-btn a {
	height: 28px;
	line-height: 28px;
	border: 1px solid #e8e8e8;
}
.c-avatar-s img,
.c-avatar-m img,
.c-avatar-l img {
	width: 100%;
	height: auto;
}
.test-boxer .c-avatar-m {
	text-align: center;
	padding: 0;
}
.test-boxer .c-avatar-m img {
	width: auto;
	height: 100%;
	border-radius: 0;
}
/*2015.11.9*/
.scroll-include {
	height: 260px;
	overflow: hidden;
}
@media (device-height:480px) and (-webkit-min-device-pixel-ratio:2) {
	/* 兼容iphone4/4s */
	.scroll-include {
		height: 200px;
	}
}
/*2015.11.18*/
.c-nowrap.c-f16 {
	font-size: 16px !important;
}
/*2.12专家列表*/
.c-ser-main i.left-42 {
	left: 42%;
}
.professor-listhead.professor-list-listhead {}
.professor-list-btn {
	height: 28px;
	line-height: 28px;
	border-radius: 4px;
	padding: 5px 10px;
	margin-left: 10px;
}
/*2.12编辑模板*/
.list-arrow-r.ml0 {
	margin-left: 0;
}
/*2.12回复模块*/
.icon-look {
	background: url(../images/icon-look.png) no-repeat 0 0;
	background-size: 100%;
	width: 22px;
	height: 23px;
	display: block;
	margin: 10px auto 0;
}
.talk-box.reply-talk-box {
	padding: 0;
	border-color: #e1e1e1;
}
.talk-box.reply-talk-box:after {
	border-color: #e1e1e1;
	left: 15px;
}
.talk-box.reply-talk-box.right:after {
	right: 15px;
	left: auto;
}
.reply-talk-box.n-list>li {
	padding-left: 15px;
	margin-left: 0;
	border-top: 0;
}
.reply-talk-box .look-report li {
	float: left;
	width: 57px;
	text-align: center;
}
.reply-talk-box .look-report li div {
	height: 56px;
	border: 1px solid #e3e3e3;
}
.icon-homan {
	display: block;
	background: #e1e1e1 url(../images/icon-homan.png) no-repeat 50% 50%;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background-size: 50%;
}
.btn-voice {
	background: url(../images/btn-voice.jpg) no-repeat 0 0;
	background-size: 100%;
	width: 85px;
	height: 34px;
	display: block;
}
.icon-reply {
	width: 15px;
	height: 15px;
	display: block;
	background: url(../images/icon-reply.jpg) no-repeat 0 0;
	background-size: 100%;
}
.icon-broadcast {
	background: url(../images/icon-broadcast.png) no-repeat 0 0;
	background-size: 100%;
	width: 12px;
	height: 16px;
}
.icon-border {
	width: 1px;
	height: 14px;
	margin: 5px 12px 0;
	background-color: #ddd;
}
.reply-title {
	position: relative;
	background: #97caff;
	color: #fff;
	font-size: 14px;
	padding: 10px 0;
	padding-left: 25px;
}
.reply-title:after {
	position: absolute;
	top: 50%;
	left: 15px;
	margin-top: -5px;
	content: "";
	display: block;
	width: 8px;
	height: 8px;
	border: 1px solid #fff;
	border-width: 0 0 2px 2px;
	-webkit-transform: rotate(45deg);
	-moz-transform: rotate(45deg);
	-ms-transform: rotate(45deg);
	transform: rotate(45deg);
}
.c-tag-blue.c-f13 {
	font-size: 13px;
}
/*2.12关注*/
.heed {
	background: url(../images/heed.png) no-repeat 0 0;
	background-size: 100%;
	width: 26px;
	height: 26px;
	display: block;
	margin: 0 auto 5px;
}
.heed-orange {
	background: url(../images/heed-orange.png) no-repeat 0 0;
	background-size: 100%;
	width: 26px;
	height: 26px;
	display: block;
	margin: 0 auto 5px;
}
#heed,
#heed-orange {
	width: 40px;
	text-align: center;
	padding-top: 12px;
}
.pm_age .agesel.w-70 {
	width: 70px;
}
/*2.12回复录音*/
.win-broadcast {
	position: fixed;
	outline: 0px;
	top: 50%;
	left: 50%;
	margin: -113px 0 0 -135px;
	width: 269px;
	height: 226px;
	border-radius: 5px;
	z-index: 100;
}
.win-broadcast .bg {
	background-color: #fff;
	width: 269px;
	height: 226px;
	border-radius: 5px;
	display: block;
}
.win-broadcast .broadcast {
	background: url(../images/broadcast.png) no-repeat 0 -2px;
	width: 85px;
	height: 85px;
	display: block;
	background-size: 100%;
	position: absolute;
	top: 67px;
	left: 34%;
	border-radius: 50%;
	z-index: 99;
}
.win-broadcast .word {
	position: absolute;
	bottom: 0;
	border-radius: 5px;
	border-top: 1px solid #e1e1e1;
	border-top-right-radius: 0;
	border-top-left-radius: 0;
	color: #666;
	background-color: #fff;
	height: 35px;
	width: 100%;
	line-height: 35px;
}
.win-broadcast .word.title {
	top: 0;
	border-top-left-radius: 5px;
	border-top-right-radius: 5px;
}
.delete {
	display: block;
	position: absolute;
	height: 12px;
	width: 12px;
	border-radius: 50%;
	background-color: #fff;
	right: 6px;
	top: 6px;
	z-index: 10;
	text-align: center;
	line-height: 9px;
	color: #919191;
	font-size: 12px;
}
.broadcast-shadow-panel {
	width: 100%;
	position: absolute;
	overflow: hidden;
	z-index: 10;
	top: 0;
	background-color: rgba(0, 0, 0, .35);
}
/*动画*/
.win-broadcast .broadcast {
	animation: broadcast 2s infinite;
	-webkit-animation: broadcast 2s infinite;
	/* Safari 和 Chrome */
}
/* Safari 和 Chrome */
@-webkit-keyframes broadcast
{
	0% {
		background-color: #ccf5ff;
		box-shadow: 0 0 0 0px #ccf5ff, 0 0 0 0 #c3e9f2, 0 0 0 0px #e9fffe, 0 0 0 0 #ddf5f4;
	}
	25% {
		background-color: #ccf5ff;
		box-shadow: 0 0 0 5px #ccf5ff, 0 0 0 1px #c3e9f2, 0 0 0 20px #e9fffe, 0 0 0 1px #ddf5f4;
	}
	50% {
		background-color: #ccf5ff;
		box-shadow: 0 0 0 10px #ccf5ff, 0 0 0 1px #c3e9f2, 0 0 0 25px #e9fffe, 0 0 0 1px #ddf5f4;
	}
	100% {
		background-color: #ccf5ff;
		box-shadow: 0 0 0 15px #ccf5ff, 0 0 0 1px #c3e9f2, 0 0 0 30px #e9fffe, 0 0 0 1px #ddf5f4;
	}
}
/* 12-18 */
.nxz-voice {
	line-height: 21px;
	text-align: right;
}
.nzx-tb {
	display: inline-block;
	width: 15px;
	height: 21px;
	background: url(../images/icon-broadcast.png) no-repeat;
	background-size: 100% auto;
	-webkit-background-size: 100% auto;
	-moz-background-size: 100% auto;
	-ms-background-size: 100% auto;
	vertical-align: middle;
}
.win-broadcast-mb {
	width: 100%;
	height: 100%;
	position: fixed;
	left: 0;
	top: 0;
	z-index: 10;
	background: rgba(0, 0, 0, .35);
	display: none;
}
.myorder li .vlname {
	line-height: 20px;
	border-bottom: 1px solid #f2f2f2;
	position: relative;
	padding-right: 15px;
	padding-top: 10px;
	padding-bottom: 10px;
}
/* 1-12 */
.myaks-top {}
.myaks-top li {
	background: #fff;
	border-top: 1px solid #e1e1e1;
	border-bottom: 1px solid #e1e1e1;
	margin-top: 10px;
}
.myaks-top li:first-child {
	margin-top: 0;
}
.mt-mess {
	margin-left: 10px;
	padding: 10px 0;
}
.mt-con {
	margin-left: 10px;
	padding: 10px 10px 10px 0;
	border-top: 1px solid #f2f2f2;
}
.mtime {
	line-height: 25px;
}
.mtime em {
	display: inline-block;
	width: 14px;
	height: 14px;
	background: url(../images/sex.png) no-repeat;
	background-size: 29px 14px;
	vertical-align: middle;
	margin: 0 5px 5px 0;
}
.mtime em.sex-male {
	background-position: 0 0;
}
.mtime em.sex-female {
	background-position: -15px 0;
}
.msympt {
	position: relative;
	padding-left: 40px;
	min-height: 20px;
}
.msympt h4 {
	display: block;
	position: absolute;
	left: 0;
	top: 0;
	color: #909090;
}
.mt-state {
	line-height: 40px;
	text-align: center;
	border-top: 1px solid #f2f2f2;
	color: #17b3ec;
}
.mreport-list .c-list-link .c-list-value {
	padding-right: 0;
}
.h35 {
	height: 35px;
}
.myask-lab {
	width: 100%;
	height: 35px;
	background: #fff;
}
.myask-lab li {
	display: block;
	width: 33.33%;
	float: left;
	font-size: 13px;
	color: #5b5b5b;
	line-height: 34px;
	text-align: center;
	position: relative;
	z-index: 600;
}
.labfixed {
	position: fixed;
	left: 0;
	top: 0;
	z-index: 600;
}
.myask-lab li.curr {
	border-bottom: 2px solid #17b3ec;
	color: #17b3ec;
}
.myask-lab:before {
	content: '';
	display: block;
	width: 33.33%;
	height: 22px;
	position: absolute;
	left: 33.33%;
	top: 6px;
	border-left: 1px solid #f2f2f2;
	border-right: 1px solid #f2f2f2;
	z-index: 500;
}
.myask-visit li {
	margin-top: 10px;
}
.myask-visit li:first-child {
	margin-top: 0;
}
/* 再次咨询弹窗 */
.botpop {
	position: fixed;
	left: 0;
	bottom: 0;
	width: 100%;
	z-index: 700;
	-webkit-animation: choopop .2s ease;
	animation: choopop .2s ease;
	display: none;
}
@-webkit-keyframes choopop {
	0% {
		bottom: -200px;
	}
	100% {
		bottom: 0px;
	}
}
@keyframes choopop {
	0% {
		bottom: -200px;
	}
	100% {
		bottom: 0px;
	}
}
.botpop li {
	line-height: 50px;
	background: #fff;
	border-top: 1px solid #f2f2f2;
	padding: 0 15px;
}
.botpop li.curr {
	color: #17b3ec;
}
.botpopmb {
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, .4);
	position: fixed;
	left: 0;
	top: 0;
	z-index: 650;
	display: none;
}
/* index */
.bgc-f3f3f3 {
	background-color: #f3f3f3;
}
.bor-f2-r {
	border-right: 1px solid #f2f2f2;
}
.bor-f2-b {
	border-bottom: 1px solid #f2f2f2;
}
.bor-f2-tb {
	border-top: 1px solid #f2f2f2;
	border-bottom: 1px solid #f2f2f2;
}
.lih43 {
	line-height: 43px;
}
.icon-mindex {
	display: inline-block;
	background: url(../images/icon-mindex.png) no-repeat;
	background-size: 250px 250px;
	vertical-align: text-top;
}
.icon-mpart1 {
	width: 91px;
	height: 100px;
	background-position: 0 0;
	margin-bottom: 5px;
}
.icon-mpart2 {
	width: 49px;
	height: 40px;
	background-position: -95px 0;
	margin-top: -21px;
}
.icon-mpart3 {
	width: 40px;
	height: 39px;
	background-position: -150px 0;
	margin-bottom: 2px;
}
.icon-mpart4 {
	width: 41px;
	height: 39px;
	background-position: -195px 0;
	margin-bottom: 2px;
}
.icon-msearch {
	width: 15px;
	height: 15px;
	background-position: 0 -155px;
	margin: 1px 5px 0 0;
}
.mindex-search {
	width: 100%;
	padding: 8px 7px;
	background-color: #fff;
}
.mindex-search div {
	height: 27px;
	line-height: 27px;
	background-color: #f2f2f2;
	border-radius: 3px;
}
.mindex-search div {
	position: relative;
	padding: 0 10px 0 30px;
}
.mindex-search .icon-msearch {
	position: absolute;
	left: 8px;
	top: 5px;
}
.mindex-search .search-text {
	display: block;
	width: 100%;
	height: 100%;
	background-color: #f2f2f2;
	appearance: none;
	-webkit-appearance: none;
	border-radius: 3px;
}
.mindex-top {
	background: #fff;
	line-height: 20px;
	height: 187px;
}
.mt-center {
	display: box;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-box-pack: center;
	text-align: center;
}
.mt-part1-1 {
	width: 47%;
	height: 100%;
	float: left;
}
.mt-part1-2 {
	width: 53%;
	height: 100%;
	float: left;
}
.mt-part2 {
	width: 100%;
	height: 50%;
}
.mt-part3 {
	width: 50%;
	height: 100%;
	float: left;
}
.mt-freeask {
	display: inline-block;
}
.mindex-img {
	position: relative;
}
.mindex-img .bd li {
	display: block;
	width: 100%;
	height: 61px;
}
.mindex-img .bd li img {
	width: 100%;
	height: 100%;
}
.mindex-img .hd {
	position: absolute;
	height: 7px;
	line-height: 7px;
	bottom: 5px;
	left: 50%;
	font-size: 1px;
	transform: translateX(-50%);
	-webkit-transform: translateX(-50%);
	-moz-transform: translateX(-50%);
	-ms-transform: translateX(-50%);
}
.mindex-img .hd li {
	display: inline-block;
	width: 7px;
	height: 7px;
	line-height: 7px;
	background: #cacaca;
	border-radius: 50%;
	margin: 0 5px;
	font-size: 0px;
	overflow: hidden;
	color: #cacaca;
}
.mindex-img .hd li.on {
	background: #17b3ec;
	color: #17b3ec;
}
.mindex-list {
	background-color: #fff;
}
.mindex-list li {
	display: block;
	width: 25%;
	height: 80px;
	float: left;
	box-sizing: border-box;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	-ms-box-sizing: border-box;
	display: box;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-box-pack: center;
	text-align: center;
	border-right: 1px solid #f2f2f2;
	border-top: 1px solid #f2f2f2;
	color: #909090;
}
.mindex-list li:nth-child(4n) {
	border-right: 0;
}
.mindex-list li i {
	width: 25px;
	height: 25px;
}
.icon-mlist3 {
	background-position: 0 -105px;
}
.icon-mlist4 {
	background-position: -25px -105px;
}
.icon-mlist5 {
	background-position: -50px -105px;
}
.icon-mlist80 {
	background-position: -75px -105px;
}
.icon-mlist10 {
	background-position: -100px -105px;
}
.icon-mlist11 {
	background-position: -125px -105px;
}
.icon-mlist12 {
	background-position: -150px -105px;
}
.icon-mlist19 {
	background-position: -175px -105px;
}
.icon-mlist13 {
	background-position: -200px -105px;
}
.icon-mlist50 {
	background-position: -225px -105px;
}
.icon-mlist16 {
	background-position: 0 -130px;
}
.icon-mlist54 {
	background-position: -25px -130px;
}
.icon-mlist27 {
	background-position: -50px -130px;
}
.icon-mlist14 {
	background-position: -75px -130px;
}
.icon-mlist21 {
	background-position: -100px -130px;
}
.icon-mlist52 {
	background-position: -125px -130px;
}
.icon-mlist15 {
	background-position: -150px -130px;
}
.icon-mlist81 {
	background-position: -175px -130px;
}
.icon-mlist78 {
	background-position: -200px -130px;
}
.mindex-recom {
	background-color: #fff;
	padding: 10px;
}
.mindex-recom .mrtit {
	line-height: 23px;
}
.mindex-recom ul {
	display: block;
}
.mindex-recom li {
	display: block;
	width: 25%;
	float: left;
	text-align: center;
	box-sizing: border-box;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	-ms-box-sizing: border-box;
	padding: 0 2px;
	margin-top: 10px;
	line-height: 1.4;
}
.mindex-recom li img {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	margin-bottom: 2px;
}
/*2.15专家列表*/
.cc-lef li.cur span {
	padding-left: 15px;
	background: url(../images/cs-jtright.png) no-repeat left center;
}
.spec-box-leftwrapper .c-100 {
	text-align: center;
	padding: 15px 15px;
	color: #5b5b5b;
	font-size: 14px;
	border-bottom: 1px solid #e1e1e1;
	box-sizing: border-box;
}
.spec-box-leftwrapper .c-100.cur {
	color: #37a6eb;
}
.scroll-itemchoscbox {
	width: 100%;
	height: 302px;
	overflow: hidden;
	background: #fff;
	font-size: 14px;
}
.itemchos-box-leftwrapper {
	position: relative;
	height: 302px;
	overflow: hidden;
	/* Prevent native touch events on Windows */
	-ms-touch-action: none;
	/* Prevent the callout on tap-hold and text selection */
	-webkit-touch-callout: none;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
	/* Prevent text resize on orientation change, useful for web-apps */
	-webkit-text-size-adjust: none;
	-moz-text-size-adjust: none;
	-ms-text-size-adjust: none;
	-o-text-size-adjust: none;
	text-size-adjust: none;
}
.itemchos-leftscroller {
	position: absolute;
	width: 100%;
	/* Prevent elements to be highlighted on tap */
	-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
	/* Put the scroller into the HW Compositing layer right from the start */
	-webkit-transform: translateZ(0);
	-moz-transform: translateZ(0);
	-ms-transform: translateZ(0);
	-o-transform: translateZ(0);
	transform: translateZ(0);
}
.itemch-tit h2 {
	line-height: 28px;
}
.itemchos-leftscroller .disp-tit-box {
	color: #5b5b5b;
}
.itemchos-leftscroller .disp-tit-box em {
	color: #37a6ec;
}
.itemchos-leftscroller .disp-mainbox {
	padding: 15px 0 10px;
}
.itemchos-leftscroller .disp-sloer .c-33 {
	border-radius: 3px;
	text-align: center;
	background: #f2f2f2;
	color: #333333;
	padding: 3px 0;
	margin-bottom: 15px;
}
.itemchos-leftscroller .disp-sloer .c-33.cur {
	background: #37a6ec;
	color: #fff;
}
.disp-sloer .c-row .c-33:last-child {
	margin-left: 0;
}
.disp-sloer .c-row .c-33.tipsl {
	margin-right: 3%;
}
.c-ffa800 {
	color: #ffa800;
}
.itemch-tit .c-btn-tiny {
	width: 65px;
}
.c-lab-mor li.doctor a {
	border-left: 1px solid #f2f2f2;
}
.test-boxer.second .c-avatar-m img {
	border-radius: 100%;
}
.second .cc-lef li.cur span {
	background: none;
}
/* 绿色风格皮肤样式  */
/*green*/
.wdz-green .c-btn-maincolor {
	background: #4dcd70;
}
/*微导诊按钮绿色*/
.wdz-green .c-btn-maincolor:hover {
	background-color: #4dc86f;
}
.wdz-green .c-btn-wordcolor {
	color: #4dcd70;
}
/*微导诊文字绿色*/
.wdz-green .professor-listhead li em.cur {
	color: #4dcd70;
}
.wdz-green .cc-rig li.cur {
	color: #4dcd70;
}
/*专家列表按城市文字绿色*/
.wdz-green .spec-leftscroller div.c-33.cur {
	color: #4dcd70;
}
/*专家列表按专科文字绿色*/
.wdz-green .c-37a6ed,
.wdz-green c-007cd9 {
	color: #4dcd70;
}
.wdz-green .c-lab-les {
	border: 1px solid #4dc86f;
}
.wdz-green .c-lab-les li {
	border-left: 1px solid #4dc86f;
}
.wdz-green .c-lab-les li a {
	color: #4dc86f;
}
.wdz-green .c-lab-les li.hit {
	background-color: #4dc86f;
}
.wdz-green .c-lab-les li.hit a {
	color: #fff;
}
.wdz-green .c-lab-mor li.hit {
	border-bottom: 3px solid #4dc86f;
}
.wdz-green .c-lab-mor li.hit a {
	color: #4dc86f;
}
.wdz-green .hz-header li.cur {
	border-bottom: 2px solid #4dc86f;
}
.wdz-green .hz-header li.cur span {
	color: #4dc86f;
}
.wdz-green .c-ser-btn a {
	background: #4dc86f;
}
.wdz-green .view-more a {
	color: #4dc86f;
}
.wdz-green .c-4dc86f {
	color: #4dc86f;
}
.wdz-green .spec-box-leftwrapper .c-100.cur {
	color: #4dc86f;
}
.wdz-green .scroll-itemchoscbox .c-btn-37a6ec {
	background: #4dcd70;
}
.wdz-green .itemchos-leftscroller .disp-sloer .c-33.cur {
	background: #4dcd70;
}
.wdz-green .itemchos-leftscroller .disp-tit-box em {
	color: #4dc86f;
}
.swiper-container {
	width: 100%;
	margin: 10px auto 0 auto !important;
}
.swiper-slide {
	text-align: center;
	font-size: 18px;
	background: #fff;
	display: -webkit-box;
	display: -ms-flexbox;
	display: -webkit-flex;
	display: flex;
	-webkit-box-pack: center;
	-ms-flex-pack: center;
	-webkit-justify-content: center;
	justify-content: center;
	-webkit-box-align: center;
	-ms-flex-align: center;
	-webkit-align-items: center;
	align-items: center;
}
.swiper-slide div {
	text-align: center;
}
.swiper-container .swiper-slide div img {
	width: 40px;
	height: 40px;
	border-radius: 50%;
}
/* 医患沟通开始 */
.c-chat-box {
	border: none;
	padding-left: 15px;
	padding-right: 15px;
}
.time-tips {
	margin: 10px 0 0 0;
	text-align: center;
	clear: both;
}
.time-tips span {
	position: relative;
	display: inline-block;
	padding: 0 60px;
	color: #aeaeae;
	font-size: 13px;
}
.time-tips span:before,
.time-tips span:after {
	position: absolute;
	content: "";
	display: block;
	width: 50px;
	height: 1px;
	background: #e6e4e1;
	top: 50%;
}
.time-tips span:before {
	left: 0;
}
.time-tips span:after {
	right: 0;
}
.chat-left,
.chat-right {
	clear: both;
	overflow: hidden;
	padding: 10px 0;
}
.chat-left > dt,
.chat-right > dt {
	width: 40px;
	height: 40px;
}
.chat-left > dt {
	float: left;
	margin-right: 15px;
}
.chat-right > dt {
	float: right;
	margin-left: 15px;
}
.chat-left > dt img,
.chat-right > dt img {
	width: 40px;
	height: 40px;
	border-radius: 50%;
}
.chat-left > dd,
.chat-right > dd {
	position: relative;
	min-height: 18px;
	font-size: 15px;
	display: inline-block;
	max-width: 60%;
	background: #fff;
	border: 1px solid #e1e1e1;
	border-radius: 6px;
	padding: 8px 15px;
	box-shadow: 1px 1px 1px rgba(0, 0, 0, .1);
}
.chat-left > dd {
	float: left;
	white-space: pre-wrap;
	word-wrap: break-word;
}
.chat-right > dd {
	float: right;
	background: #bce0ff;
	border: 1px solid #81bdf7;
	white-space: pre-wrap;
	word-wrap: break-word;
}
.chat-left > dd:after {
	content: "";
	position: absolute;
	top: 14px;
	left: -6px;
	display: block;
	width: 8px;
	height: 8px;
	background: #fff;
	border-color: #e1e1e1;
	border-style: solid;
	border-width: 1px 0 0 1px;
	-webkit-transform: rotate(-45deg);
	-moz-transform: rotate(-45deg);
	transform: rotate(-45deg);
}
.chat-right > dd:after {
	content: "";
	position: absolute;
	top: 14px;
	right: -6px;
	display: block;
	width: 8px;
	height: 8px;
	background: #bce0ff;
	border-color: #81bdf7;
	border-style: solid;
	border-width: 1px 0 0 1px;
	-webkit-transform: rotate(135deg);
	-moz-transform: rotate(135deg);
	transform: rotate(135deg);
}
.chat-left > dd p img,
.chat-right > dd p img {
	max-width: 150px;
	max-height: 150px;
	margin: 5px 0;
}
.pull-more {
	text-align: center;
	color: #5b5b5b;
	font-size: 14px;
	padding: 14px 0;
}
.chat-btm-box {
	position: fixed;
	bottom: 0;
	left: 0;
	z-index: 2100;
	width: 100%;
	background: #fafafa;
	border-top: 1px solid #e1e1e1;
}
.nopos {
	position: relative;
	bottom: auto;
	left: auto;
}
.chat-text {
	position: relative;
	padding: 5px 15px 10px 15px;
	width: 100%;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
}
.insert-more {
	position: absolute;
	display: block;
	width: 30px;
	height: 30px;
	top: 6px;
	right: 25px;
}
.insert-more i {
	font-size: 30px;
	line-height: 30px;
	color: #a9a9a9;
}
.send-text {
	position: absolute;
	width: 50px;
	padding: 8px 0;
	display: block;
	bottom: 10px;
	right: 15px;
	background: #37a6ec;
	border-radius: 4px;
}
.word-count {
	font-size: 12px;
	text-align: right;
	padding: 0 5px;
	color: #bfbfbf;
}
.insert-img {
	position: absolute;
	display: block;
	width: 30px;
	height: 30px;
	top: 6px;
	right: 15px;
	border: 1px solid #737373;
	border-radius: 50%;
}
.insert-img:before {
	position: absolute;
	content: "";
	width: 16px;
	height: 2px;
	background: #737373;
	top: 14px;
	left: 7px;
}
.insert-img:after {
	position: absolute;
	content: "";
	width: 2px;
	height: 16px;
	background: #737373;
	top: 7px;
	left: 14px;
}
.insert-img span {
	display: none;
}
.chat-text-inp {
	padding: 0 65px 0 0;
}
.chat-text-box {
	border: 1px solid #e1e1e1;
	background: #fff;
	border-radius: 4px;
}
.chat-txt-con {
	width: 100%;
	height: 70px;
	outline: 0;
	font-size: 15px !important;
	overflow-x: hidden;
	overflow-y: auto;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
	border: none;
	padding: 2px 5px 0 5px;
	white-space: pre-wrap;
	word-wrap: break-word;
	word-wrap: break-all;
}
.ins-img-btn {
	position: fixed;
	width: 100%;
	bottom: 0;
	left: 0;
	z-index: 3100;
}
.ins-img-btn .c-btn {
	border-radius: 4px;
	border: none;
	color: #157efb;
	font-size: 20px;
}
.ins-img-btn .c-btn:first-child {
	border-radius: 4px 4px 0 0;
}
.ins-img-btn .c-btn:nth-child(2) {
	border-top: 1px solid #e1e1e1;
	border-radius: 0 0 4px 4px;
}
.pull-more {
	text-align: center;
	color: #5b5b5b;
	font-size: 14px;
	padding: 14px 0;
}
.bgc-f7f5f2 {
	background: #f7f5f2;
}
.more-opt {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: #fafafa;
	z-index: 2200;
}
.m-close {
	position: absolute;
	top: 8px;
	right: 8px;
	display: block;
	width: 20px;
	height: 20px;
}
.m-close i.ico-close {
	position: static;
	width: 20px;
	height: 20px;
	background-color: #afafaf;
}
i.ico-close:before {
	width: 12px;
	height: 2px;
	left: 4px;
	top: 9px;
}
i.ico-close:after {
	width: 2px;
	height: 12px;
	left: 9px;
	top: 4px;
}
.more-opt-list {
	clear: both;
	padding: 58px 30px 0 30px;
	text-align: center;
	overflow: hidden;
}
.more-opt-list.normal {
	clear: both;
	padding: 7px 30px 0 30px;
	text-align: center;
	overflow: hidden;
}
.bor-t-f2 {
	border-top: 1px solid #f2f2f2;
}

+ 143 - 0
html/yszx/html/add-consult.html

@ -0,0 +1,143 @@
<!doctype html>
<html>
	<head>
	    <meta charset="utf-8">
	    <title>新增名医咨询</title>
	    <meta name="format-detection" content="telephone=no"/>
	    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0"/>
	    <meta name="apple-mobile-web-app-capable" content="yes"/>
	    <meta name="apple-mobile-web-app-status-bar-style" content="black"/>
	    <link rel="stylesheet" href="../../../css/cross.css" type="text/css"/>
	    <link rel="stylesheet" href="../../../css/cross.ui.css" type="text/css"/>
	    <link rel="stylesheet" type="text/css" href="../../../iconfont/iconfont.css" />
	    <link rel="stylesheet" type="text/css" href="../../../css/ss-style.css">
	    <link rel="stylesheet" type="text/css" href="../css/zx-style.css">
	    <script src="http://res.wx.qq.com/open/js/jweixin-1.2.0.js"></script>
	    <script src="../../../js/jquery/2.1.3/jquery.js"></script>
	    <script src="../../../widget/mobiscroll/2.15.1/js/mobiscroll.js"></script>
	    <link rel="stylesheet" href="../../../widget/mobiscroll/2.15.1/css/mobiscroll.css"/>
	    <script src="../../../js/app.js"></script>
	    <script src="../../../js/common_http.js"></script>
	    <script type="text/javascript" src="../../../js/weixin_common.js" ></script>
	    <link rel="stylesheet" type="text/css" href="../../../widget/artDialog/6.0.5/css/ui-dialog.min.css">
	    <script src="../../../widget/artDialog/6.0.5/js/dialog-plus.min.js"></script>
	    <script type="text/javascript" src="../../../js/commit_validate.js" ></script>
	    <script src="../js/sanshitijiao.js?v=1.3.4" type="text/javascript" charset="utf-8"></script>	    	    
	<style>
		.c-333333{color:#333333}
		.s-bc-DCDCDC{background-color:#dcdcdc;}
		#commit.active{background-color:#74bf00;}
	</style>
	</head>
	<body>
		<div class="main">
			 <ul class="n-list c-border-tb mt10 doc-detail">
				<li class="ptb12">
					<div class="n-list-key pr15 c-f16">咨询类型</div>
					<div class="n-list-info c-t-right">
							<span class="c-f14 c-909090 span-type">名医咨询</span>
						<input id="txtTypeCode" style="display: none;"/>
					</div>
				</li>
			</ul>
			<ul class="n-list c-border-tb mt10 doc-detail">
				<li class="ptb12">
					<div class="n-list-key pr15 c-f16">咨询人员</div>
					<div class="n-list-info c-t-right">
						<label id="lbl_patient" class="c-f14 c-909090"></label>
					</div>
				</li>
			</ul>
			<ul class="n-list c-border-tb mt10 doc-detail">
				<li class="ptb12">
					<div class="n-list-key pr15 c-f16">咨询医生</div>
					<div class="n-list-info c-t-right">
						<label id="lbl_doctor" class="c-f14 c-909090"></label>
					</div>
				</li>
			</ul>
		    <ul class="n-list c-border-tb mt10 doc-detail">
				<li class="ptb12">
					<div class="n-list-key pr15 c-f16"></i>咨询问题</div>
				</li>
				<li class="n-list-cover ptb12">
					<div class="n-list-info">
						<textarea id="txtContent" class="r-textarea c-f14" rows="4" placeholder="请尽可能详细描述您的问题,疾病和身体状况,以便医生更好的提供意见(请至少输入10个字)。"></textarea>
					</div>
				</li>
			</ul>
		    <div class="mod mod-record mt15">
		    	<!--新增图片上传-->
				<ul class="n-list">
					<li class="ptb12">
						<div class="n-list-key pr15 c-f16">上传病历、检查报告等资料</div>
						<div class="n-list-info c-t-right">
							<p class="c-ccc c-f12 c-t-right img-count" id="image_tips">0/9</p>
						</div>
					</li>
					<li class="n-list-cover ptb12">
						<div class="upload-img mt10">
							<ul id="img_ul">
								<li id="add_img_li">
									<a href="javascript:;" class="add-btn" onclick="chooseImage()"></a>
								</li>
							</ul>
						</div>
					</li>
				</ul>
		        <div class="bd" style="display: none;">
		            <div class="broadcast mt5">
		                <span class="broadcast-icon">
		                    <i class="iconfont icon-yuyin1" onClick="voicePop();"></i>
		                </span>
		                <span class="bg"></span>
		            </div>
		        </div>
		    </div>
		</div>
	    <div class="readed-explain mt50" style="display: none;">
	        <div class="input-group-checkbox">
	            <label>
	                <div class="input-group-pack checked" data-checked="true">
	                    <input type="checkbox" checked="checked">
	                    <span class="tick"></span>
	                </div>
	            </label>
	        </div>
	        <span>我已阅读<a href="javascript:;">咨询说明</a></span>
	    </div>
	    <div id="info" style="display:none;color: red;text-align: center"></div>
	    <div id="info2" style="display:none;color: green;text-align: center"></div>
	    <div class="mtb20 mlr15">
	        <a id="commit" href="javascript:;" class="c-btn s-bc-DCDCDC active c-btn-full c-btn-radius c-f18">提交咨询</a>
	    </div>
	    <br />
	    <![endif]-->
	    <!--上传图片-->
		<div class="over-lay" style="display:none;"></div>
		<div class="ins-img-btn" style="display:none;">
			<div class="mlr10"> 
				<a href="javascript:void(0);" onclick="galleryImgs();" class="c-btn c-btn-fff c-btn-full c-btn-large">从相册中选择</a>
				<a href="javascript:void(0);" onclick="appendByCamera();" class="c-btn c-btn-fff c-btn-full c-btn-large">立即拍照</a> 
				<a href="javascript:void(0);" class="c-btn c-btn-fff c-btn-full c-btn-large mt10 mb10" data-btn="cancelOver">取消</a> 
			</div>
		</div>  
	    <!-- 录音 -->
		<div class="win-broadcast c-hide">
			<span class="bg"></span>
			<p class="c-666 c-f14 c-t-center title word">倾听中</p>
			<div>
				<i class="broadcast"></i>
			</div>
			<ul class="c-666 c-f14 c-t-center mt5 stop word">
				<li class="width-50 fl c-border-r c-boxs win-finish" id="voice-finish">说完了<span class="c-ff8011">(60秒)</span></li>
				<li class="width-50 fl win-cancle" onClick="voicePopClose();">取消</li>
			</ul>
		</div>
		<div class="win-broadcast-mb"></div>  
		<script>
			var d = dialog({contentType:'load', skin:'bk-popup'});
			var dd = dialog({contentType:'load', skin:'bk-popup', content:'提交中...'});
		</script>
	</body>
</html>

+ 208 - 0
html/yszx/html/add-prescription-consult.html

@ -0,0 +1,208 @@
<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8">
        <title>新增续方咨询</title>
        <meta name="format-detection" content="telephone=no"/>
        <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0"/>
        <meta name="apple-mobile-web-app-capable" content="yes"/>
        <meta name="apple-mobile-web-app-status-bar-style" content="black"/>
        <link rel="stylesheet" href="../../../css/mui.min.css">
        <link rel="stylesheet" href="../../../css/cross.css" type="text/css"/>
        <link rel="stylesheet" href="../../../css/cross.ui.css" type="text/css"/>
        <link rel="stylesheet" type="text/css" href="../css/add-prescription-consult.css"/>
        <link rel="stylesheet" type="text/css" href="../css/prescription-selection.css" />    
    </head>
    <body class="bgc-f2f4f6">
        <body class="mui-fullscreen">
        <!--页面主结构开始-->
        <div id="app" class="mui-views">
            <div class="mui-view">
                <div class="mui-pages">
                </div>
            </div>
        </div>
        <!--页面主结构结束-->
        <!--单页面开始-->
        <div id="main" class="mui-page">
            <!--页面标题栏开始-->
            <div class="mui-page-content ">
                <div class="h40 lh40 c-border-b box">
                    <div class="c-f16 c-333">咨询类型</div>
                    <div class="box-info c-t-right pr20 c-position-r">
                        <input type="text" readonly="readonly" data-type="" class="c-f14 c-909090 c-t-right" id="consultType" placeholder="请选择咨询类型">
                        <span class="arrow-d"></span>
                    </div>
                </div>
                <div class="h40 lh40 c-border-tb mt10 box">
                    <div class="c-f16 c-333">咨询人员</div>
                    <div class="box-info c-t-right pr20">
                        <span class="c-f14 c-909090" id="patientName"></span>
                    </div>
                </div>
                <div class="h40 lh40 c-border-tb mt10 box">
                    <div class="c-f16 c-333">咨询医生</div>
                    <div class="box-info c-t-right pr20">
                        <span class="c-f14 c-909090" id="docName"></span>
                    </div>
                </div>
                <div class="h40 lh40 c-border-tb mt10 box c-position-r">
                    <div class="c-f16 c-333">处方信息</div>
                    <div class="box-info ml10">
                        <a href="#list">
                        <p class="c-f14 c-909090 c-t-right pr20 c-nowrap" id="preInfo">请选择需要续方的处方记录</p>
                        <span class="arrow-r"></span>
                        </a>
                    </div>
                </div>
                <div class="mt10 bgc-fff c-border-tb">
                    <div class="h40 lh40 c-border-b plr10">
                        <img src="../images/xunfangxinxi_icon.png" width="20" class="header-icon mr10">
                        <span class="c-f16 c-333">续方信息</span>
                    </div>
                    <ul class="c-list plr10">
                        <li class="ptb10 ml0">
                            <div class="c-list-key c-f14 c-333">审核医生:</div>
                            <div class="c-list-info c-f14 c-333" id="checkDocName"></div>
                        </li>
                        <li class="ptb10 ml0">
                            <div class="c-list-key c-f14 c-333">审核机构:</div>
                            <div class="c-list-info c-f14 c-333 word-wrap" id="dept"></div>
                        </li>
                        <li class="ml0">
                            <div class="c-list-key c-f14 c-333 ptb10">续方说明:</div>
                            <div class="c-list-info ptb5 pr0 c-position-r">
                                <textarea clss="c-f14 c-a8a8a8" maxlength="200" placeholder="请填写您的续方原因..."></textarea>
                                <div class="num-box"><span class="c-f12 c-909090" id="count">0</span><span class="c-f12 c-909090">/200</span></div>
                            </div>
                        </li>
                    </ul>
                    <div class="mtb10 plr10" style="overflow: hidden;" id="explain">
                    </div>
                </div>
                <div class="mtb20 mlr15">
                    <a id="commit" href="javascript:;" class="c-btn s-bc-DCDCDC active c-btn-full c-btn-radius c-f16">提交咨询</a>
                </div>
            </div>
        </div>
        
        <div id="list" class="mui-page">
            <div class="mui-page-content">
                <ul class="c-lab-mor pt-tab c-f16">
                    <li>
                        <span>所有诊断</span>
                        <i></i>
                    </li>
                    <li>
                        <span>全部时间</span>
                        <i></i>
                    </li>
                </ul>
                <!--所有诊断的数据-->
                <ul class="cb-fff div-diagnosis">
                    <li class="active" data-val="0">
                        <label>所有诊断</label>
                        <i></i>
                    </li>
                    <li data-val="1">
                        <label>高血压</label>
                        <i></i>
                    </li>
                    <li data-val="2">
                        <label>糖尿病</label>
                        <i></i>
                    </li>
                </ul>
                <!--全部时间的数据-->
                <ul class="cb-fff div-dates">
                    <li class="active" data-val="all">
                        <label>全部</label>
                        <i></i>
                    </li>
                    <li data-val="week">
                        <label>近一周</label>
                        <i></i>
                    </li>
                    <li data-val="month">
                        <label>近一月</label>
                        <i></i>
                    </li>
                    <li data-val="half-year">
                        <label>近两月</label>
                        <i></i>
                    </li>
                </ul>
        
                <!--可申请续方人处方记录-->
                <div class="mui-scroll-wrapper" style="top:45px;">
                    <div class="mui-scroll">
                        <ul class="ul-consultation plr15" id="prescriptionList">
                        </ul>
                        <!--<div class="mtb10 mlr10 next-btn" id="next">下一条记录</div>-->
                    </div>
                </div>
                
                <div class="div-no-info c-hide">
                    <img src="../../../images/shujuweikong_img.png" alt="无数据" style="width: 100%;">
                    <div class="info-text c-f14">暂无近2个月内诊断为糖尿病或高血压的处方记录</div>
                </div>
                
                <div class="modal-overlay"></div>
            </div>
        </div>
        <script type="text/html" id="explain_tmp">
            {{each list as it}}
            <div class="text-tag">{{it}}</div>
            {{/each}}
        </script>
        <script type="text/html" id="prescription_tmp">
        {{each list as it}}
            <li data-code="{{it.code}}" data-json="{{it.jsonStr}}">
                <div class="card-title s-bc-FF9526">
                    <span class="c-f14 c-fff">{{it.prescriptionType}}</span>
                </div>
                <div class="box plr10 pt10 pb5">
                    <div class="box-info c-f16 c-323232">
                        {{each it.prescriptionDt as dt}}
                        {{dt.healthProblemName}} 
                        {{/each}}
                    </div>
                    {{if it.canXF == true}}
                    {{if it.reviewedState == 1}}
                    <div class="div-sqxf-btn appy-btn">申请续方</div>
                    {{else}}
                    <div class="div-sqxf-btn checking-btn">续方审核中</div>
                    {{/if}}
                    {{/if}}
                </div>
                <div class="plr10 ptb5 c-row">
                    {{each it.prescriptionInfo as drug index}}
                    {{if index <= 1}}
                    <div class="c-50 c-f14 c-323232 c-nowrap">{{drug.drugName}}</div>
                    {{/if}}
                    {{/each}}
                </div>
                <div class="plr10 div-shequ pb10">
                    <i></i>
                    <span>{{it.hospitalName}}</span>
                </div>
            </li>
        {{/each}}
        </script>
    </body>
    <script src="../../../js/jquery/2.1.3/jquery.js"></script>
    <script src="../../../js/mui.min.js "></script>
    <script src="../../../js/mui.view.js "></script>
    <script src="http://res.wx.qq.com/open/js/jweixin-1.2.0.js"></script>
    <link rel="stylesheet" href="../../../widget/mobiscroll/2.15.1/css/mobiscroll.css"/>
    <script src="../../../widget/mobiscroll/2.15.1/js/mobiscroll.js"></script>
    <script src="../../../js/common_http.js"></script>
    <script type="text/javascript" src="../../../js/weixin_common.js" ></script>
    <link rel="stylesheet" type="text/css" href="../../../widget/artDialog/6.0.5/css/ui-dialog.min.css">
    <script src="../../../widget/artDialog/6.0.5/js/dialog-plus.min.js"></script>
    <script src="../../../js/template.js" type="text/javascript" charset="utf-8"></script>
    <script type="text/javascript" src="../../../js/commit_validate.js" ></script>
    <script src="../../../js/underscore.js" type="text/javascript" charset="utf-8"></script>
    <script src="../js/add-prescription-consult.js" type="text/javascript" charset="utf-8"></script>
    <script src="../js/prescription-selection.js" type="text/javascript" charset="utf-8"></script>
</html>

+ 130 - 0
html/yszx/html/consulting-doctor.html

@ -0,0 +1,130 @@
<!doctype html>
<html>
	<head>
		<meta charset="utf-8" />
		<meta name="author" content="yihu.com" />
		<meta name="format-detection" content="telephone=no" />
		<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
		<meta name="apple-mobile-web-app-capable" content="yes" />
		<meta name="apple-mobile-web-app-status-bar-style" content="black" />
		<title>咨询医生</title>
		<link rel="stylesheet" type="text/css" href="../../../css/mui.min.css" />
		<link rel="stylesheet" href="../../../css/cross.css" type="text/css" />
		<link rel="stylesheet" href="../../../iconfont/iconfont.css" type="text/css" />
		<link rel="stylesheet" href="../css/sfdoc-style.css" type="text/css" />
	    <link rel="stylesheet" type="text/css" href="../../../css/cross.ui.css">
	    <link rel="stylesheet" type="text/css" href="../../../css/ss-style.css" />
	    <link rel="stylesheet" type="text/css" href="../css/chatRoom.css" />
	</head>
	<body class="bgc-f7f5f2">
		<div id='sound-alert' class="rprogress">
			<div class="rschedule"></div>
			<div class="volumn">
		        <div class="line1"></div>
		        <div class="line2"></div>
		        <div class="line3"></div>
		        <div class="line4"></div>
		    </div>
			<div class="r-sigh">!</div>
			<div id="audio_tips" class="rsalert">手指上滑,取消发送</div>
		</div>
		<audio src="" id="audio" onended="playSoundEnd()" onerror="playError()"></audio>
		<div class="c-main">
			
			<div class="labcon">
				<div id='finish_list' style="text-align: center;display: none;">
					<a href="javascript:;" class="view-more c-37a6ed" style="color: #37A6ED;font-size: 14px;" onclick="finish()">
						<span style="font-size: 14px;color: #323232; pointer-events: none;">医生首次回复24小时后将自动关闭咨询&ensp;</span>结束咨询</a>
				</div>
				
				<div class="c-position-r" id="talkwrap">
					<div class="pull-iscroll-wrap">
						<div class="pull-iscroll-box">
							<div class="talk-box pt10 plr10">
							</div>
						</div>
					</div>
				</div>				
			</div>
			
			<div id="input_div" class="bgc-fff c-border-t c-position-f width-100 chat-msg-box zi2" >
				<div class="ui-grid ptb10" style="-webkit-box-orient:horizontal; -webkit-box-align: end;">
					
					<div class="ui-col-0 mlr5 yy-add">
						<img src="../images/yuying_icon.png" width="25" height="25"  />
						<img style="display: none;" src="../images/jianpang_icon.png" width="25" height="25"  />
					</div>
					
					<div class="ui-col-1 mr5 ml10">
						<div class="input-group width-100 ">
							<!--<input id="input_content" type="text" class="form-control width-100" placeholder="" value="">-->
							<div id="input_content" type="text" class="input-msg width-100" ></div>
							<div id="msg-sound" style="display: none; line-height: 32px;text-align: center;border: 1px solid #e1e1e1;border-radius: 6px;">
								按住说话
							</div>
						</div>
					</div>
					
					<div class="ui-col-0 tw-add"><img src="../images/tw-add.png" width="25"></div>
					
					<div id="reply" class="ui-col-0 mr5 c-hide">
						<a href="javascript:;" class="c-btn c-btn-588cd5 c-btn-tiny c-btn-radius c-f15">发送</a>
					</div>
				</div>
				
				<div class="tw-add-detail clearfix c-hide" id="other_div">
					<ul>
						<li><img src="../images/tupian_icon.png" width="43" onclick="chooseImageWx()">
							<p class="c-f15">发送图片</p>
						</li>
						<li><img src="../images/xiaoshiping_icon.png" class="lz-video-img" width="43" onclick="upload_input.click()">
							<p class="c-f15">短视频</p>
							<input id='upload_input' class="c-hide"  onchange="videoFileChange(this);" type="file" accept="video/*" capture='camera' />
						</li>
					</ul>
				</div>
			</div>			
		</div>
		
		<div id="sheet1" class="mui-popover mui-popover-bottom mui-popover-action ">
            <!-- 可选择菜单 -->
            <ul class="mui-table-view">
            	<li class="mui-table-view-cell mui-table-view-cell1" style="font-size: 14px;color: #666666;" id="mui-content">
               
              </li>
              <li class="mui-table-view-cell mui-table-view-cell1" id="lijifasong" style="font-size: 16px;color: #47A8EF;">
                <a href="javascript:;">立即发送</a>
              </li>
              <li class="mui-table-view-cell mui-table-view-cell1" id="buzaitixing" style="font-size: 16px;color: #47A8EF;">
                <a href="javascript:;">不再提醒</a>
              </li>
            </ul>
            <!-- 取消菜单 -->
            <ul class="mui-table-view">
              <li class="mui-table-view-cell mui-table-view-cell1" style="font-size: 16px;color: #47A8EF;">
                <a href="#sheet1">取消发送</a>
              </li>
            </ul>
        </div>
        
        <div class="c-hide" id="valFoot" style="position: absolute;bottom: 45px;right: 25px;z-index: 5;width: 50px;height: 50px;">
        	<img id="noval" class="c-hide" width="100%" src="../images/btn_pingjiayisheng.png" alt="" />
        	<img id="hasval" class="c-hide" width="100%" src="../images/btn_pingjiaxiangqing.png" alt="" />
        </div>
        
		<script type="text/javascript" src="../../../js/jquery/2.1.3/jquery.js"></script>
		<link rel="stylesheet" type="text/css" href="../../../widget/iscroll2/5.1.3/css/iscroll.css" />
		<script type="text/javascript" src="../../../widget/iscroll2/5.1.3/js/iscroll.js"></script>
		<script type="text/javascript" src="../../../js/mui.min.js"></script>
		<script type="text/javascript" src="../../../js/app.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/artDialog/6.0.5/css/ui-dialog.min.css">
	    <script src="../../../widget/artDialog/6.0.5/js/dialog-plus.min.js"></script>
	    <script type="text/javascript" src="../../../js/commit_validate.js" ></script>
	    <script type="text/javascript" src="http://res.wx.qq.com/open/js/jweixin-1.2.0.js"></script>
		<script type="text/javascript" src="../js/consulting-doctor.js?v=1.3.4" ></script>
	</body>
</html>

+ 199 - 0
html/yszx/html/doctor-consultation.html

@ -0,0 +1,199 @@
<!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/mui.min.css"/>
        <link rel="stylesheet" type="text/css" href="../../../iconfont/iconfont.css" />
        <link rel="stylesheet" type="text/css" href="../../../css/cross.css" />
        <link rel="stylesheet" type="text/css" href="../css/sq-style.css" />    
        <link rel="stylesheet" type="text/css" href="../css/sfp-style.css" />
        <link rel="stylesheet" type="text/css" href="../css/consultation.css" />    
        <link rel="stylesheet" href="../css/search-bar.css" type="text/css"/>
        <link rel="stylesheet" type="text/css" href="../../../widget/artDialog/6.0.5/css/ui-dialog.min.css">
        <style type="text/css">
            #memberContainer{
                position: relative;
                height: 90px;
            }
            *{
                -webkit-box-sizing: inherit;
                box-sizing: inherit; 
            }
        </style>
    </head>
    <body>
        <div id="memberContainer"></div>
        <div class="mui-content">
            <div id="slider" class="mui-slider mui-fullscreen">
                <div class="mui-slider-indicator mui-segmented-control mui-segmented-control-inverted">
                    <div class="c-row bgc-fff">
                        <div class="c-50 c-t-center" id="healthTab">
                            <a class="c-f16 mui-control-item mui-active" href="#item1">家庭医生咨询</a>
                        </div>
                        <div class="c-50 c-t-center c-hide" id="preTab">
                            <a class="c-f16 mui-control-item" href="#item2">续方咨询</a>
                        </div>
                    </div>
                </div>
                <div class="mui-slider-group">
                    <div id="item1" class="mui-slider-item mui-control-content mui-active">
                        <div class="searchbar searchbar-init" style="z-index:9">
                            <div class="searchbar-input">
                                <input type="search" placeholder="搜索咨询问题关键字" class="inp-search" data-val="1"><a href="javascript:void(0);" class="searchbar-clear"></a>
                            </div>
                        </div>
                        <div id="search_suggest_text" class="f-dn"></div>
                        <div class="mui-scroll-wrapper" id="healthConsulationPanel"  style="top: 50px">
                            <div class="mui-scroll">
                                <div class="f-pa f-hh vertical-line"></div>
                                <!--家庭医生咨询记录-->
                                <ul class="ul-consultation" id="ul_jiating_consultation"></ul>
                                <div class="div-no-search-info f-dn">
                                    <div id="nozixunimg" class="div-img"></div>
                                    <div class="info-text c-f14">无相关健康咨询记录</div>
                                </div>
                                <div class="div-no-info f-dn">
                                    <div id="fazixunimg" class="div-img"></div>
                                    <div class="info-text c-f14">很荣幸能够成为您的家庭医生,<br/>欢迎与我分享您的健康问题,<br/>我将及时为您消除疑虑。</div>
                                    <div class="bottom-box clearfix">
                                        <a href="javascript:;" id="launch-btn" class="c-btn-full s-bc-75BF00 c-btn-radius c-f16" style="line-height: 44px !important;padding:0px !important;">发起咨询</a>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div id="item2" class="mui-slider-item mui-control-content">
                        <div class="searchbar searchbar-init" style="z-index:9">
                            <div class="searchbar-input">
                                <input type="search" placeholder="搜索咨询问题关键字" class="inp-search" data-val='2' ><a href="javascript:void(0);" class="searchbar-clear"></a>
                            </div>
                        </div>
                        <div id="xf_search_suggest_text" class="f-dn"></div>
                        <div class="mui-scroll-wrapper" id="re-prescriptionConsulationPanel" style="top: 50px">
                            <div class="mui-scroll">
                                <div id="xf_vertical_line" class="f-pa f-hh vertical-line"></div>
                                <ul class="xf-ul-consultation" id="ul_xufang_consultation"></ul>
                                <div class="div-no-search-info f-dn">
                                    <div id="nozixunimg" class="div-img"></div>
                                    <div class="info-text c-f14">无相关续方咨询记录</div>
                                </div>
                                <div class="div-no-info f-dn">
                                    <div id="fazixunimg" class="div-img"></div>
                                    <div class="info-text c-f14">暂无续方咨询记录</div>
                                    <div class="bottom-box clearfix">
                                        <a href="javascript:;" id="launch-btn2" class="c-btn-full s-bc-75BF00 c-btn-radius c-f16" style="line-height: 44px !important;padding:0px !important;">发起咨询</a>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div id="footer">
                <div class="f-vam f-mr10 add-icon f-ib div-add-btn"></div>
            </div>
        </div>
        <div class="div-signing f-dn">
            <div id="signingimg" class="div-img"></div>
            <div class="info-text c-f14">您的家庭医生签约申请还未通过审<br>核哦,暂时还不能发起咨询。<br>通过审核后我们将第一时间通知您,<br>还请耐心等待。</div>
            <div class="bottom-box clearfix">
                <a href="javascript:;" id="signing-btn" class="c-btn-full s-bc-75BF00 c-btn-radius c-f16" style="line-height: 44px!important;padding:0px!important;">查看签约</a>
            </div>
        </div>
        <div class="div-no-sign f-dn">
            <div id="nodoctor" class="div-img"></div>
            <div class="info-text c-f14">您还没有签约家庭医生哦,<br/>快去寻找属于您的家庭医生吧~</div>
            <div class="bottom-box clearfix">
                <a href="javascript:;" id="goToSign" class="c-btn-full s-bc-75BF00 c-btn-radius c-f16" style="line-height: 44px!important;padding:0px!important;">前往签约</a>
            </div>
        </div>
        <!--弹框请求选择咨询类型-->
        <div class="div-dialog-content">
            <div class="f-vam f-mr10 jiating-icon f-ib"></div>
            <!--<div class="f-vam f-mr10 sanshi-icon f-ib"></div>-->
            <div class="f-vam f-mr10 xufangsq-icon f-ib"></div>
            <div class="f-vam f-mr10 mingyi-icon f-ib"></div>
            <div class="f-vam f-mr10 quxiao f-ib"></div>
        </div>
        <div class="modal-overlay"></div>
        
        <!--健康咨询列表模板-->
        <script type="text/html" id="healthConsulation_tmp">
            {{each list as it}}
            <li data-json="{{it.jsonStr}}">
                <div class="outer-circle">
                	{{if it.type=='6'}}
                	<div class="inner-circle s-bc-FF9526"></div>
                    {{else}}
                    <div class="inner-circle s-bc-12B7F5"></div>
                    {{/if}}
                </div>
                <div class="{{it.statusClass}}"></div>
                <div class="record-card">
                	{{if it.type=='6'}}
                    <div class="card-title s-bc-FF9526">
                    {{else}}
                    <div class="card-title s-bc-12B7F5">
                    {{/if}}
                        <span class="span-date">{{it.czrq}}</span>
                        <span class="f-fr">
                            {{if it.type == '1'}}慢病管理咨询
                            {{else if it.type == '2'}}家庭医生咨询
                            {{else if it.type == '6'}}名医咨询
                            {{/if}}
                        </span>
                    </div>
                    <p class="c-content-warp">
                        <span class="c-323232 c-f14 ">问题:</span>
                        <span class="c-dest-content c-f14 j-text-ellipsis">{{#it.symptoms}}</span>
                    </p>
                </div>
            </li>
            {{/each}}
        </script>
        <!-- 续方咨询列表模板 -->
        <script type="text/html" id="re-prescriptionConsulation_tmp">
            {{each list as it}}
            <li data-json="{{it.jsonStr}}">
                <div class="outer-circle">
                    <div class="inner-circle s-bc-12B7F5"></div>
                </div>
                <div class="{{it.statusClass}}"></div>
                <div class="record-card bgc-fff c-border-radius">
                    <div class="card-title s-bc-12B7F5">
                        <span class="span-date">{{it.czrq}}</span>
                        <span class="f-fr">续方咨询</span>
                    </div>
                    <p class="c-content-warp div-xufang-disease">
                        <span class="c-dest-content c-f16 j-text-ellipsis" data-text="">
                            {{each it.prescriptionDt as des}}
                            {{des.name}} 
                            {{/each}}
                        </span>
                    </p>
                    <div class="c-row plr10 mt10">
                        {{each it.prescriptionInfo as drug index}}
                        {{if index <= 1}}
                        <div class="c-50 c-f14 c-nowrap">{{drug.drugName}} {{drug.num}}{{drug.drugNumUnitName}}</div>
                        {{/if}}
                        {{/each}}
                    </div>
                </div>
            </li>
            {{/each}}
        </script>
    </body>
    <script src="../../../js/jquery/2.1.3/jquery.js"></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 type="text/javascript" src="../../../js/common_http.js" ></script>
    <script type="text/javascript" src="../../../js/weixin_common.js" ></script>
    <script src="../../../js/underscore.js"></script>
    <script src="../../../js/es6-promise.js"></script>
    <script src="../../../js/family-members.js"></script>
    <script src="../../../js/template.js" type="text/javascript" charset="utf-8"></script>
    <script src="http://res.wx.qq.com/open/js/jweixin-1.2.0.js"></script>
    <script src="../js/doctor-consultation_new.js"></script>
</html>

+ 332 - 0
html/yszx/html/doctor-work-hours.html

@ -0,0 +1,332 @@
<!doctype html>
<html>
	<head>
	    <meta charset="utf-8">
	    <title>医生工作时间</title>
	    <meta name="format-detection" content="telephone=no"/>
	    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0"/>
	    <meta name="apple-mobile-web-app-capable" content="yes"/>
	    <meta name="apple-mobile-web-app-status-bar-style" content="black"/>
	    <link rel="stylesheet" href="../../../css/cross.css" type="text/css"/>
	    <link rel="stylesheet" href="../../../css/cross.ui.css" type="text/css"/>
	    <link rel="stylesheet" type="text/css" href="../../../iconfont/iconfont.css" />
	    <link rel="stylesheet" type="text/css" href="../../../css/ss-style.css">
	    <link rel="stylesheet" type="text/css" href="../css/zx-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/iscroll.css" />	
	    <link rel="stylesheet" type="text/css" href="../../../widget/mobiscroll/2.15.1/css/mobiscroll.css">
	    <link rel="stylesheet" type="text/css" href="../css/doctor-work-hours.css">    
	    <script src="../../../js/jquery/2.1.3/jquery.js"></script>
	    <script src="../../../widget/artDialog/6.0.5/js/dialog-plus.min.js"></script>
	    <script src="../../../widget/mobiscroll/2.15.1/js/mobiscroll.js"></script>
	    <script src="../../../js/iscroll-probe.js"></script>
	    <script src="../../../js/app.js"></script>
	    <script src="../../../js/common_http.js"></script>
	    <script type="text/javascript" src="../../../js/weixin_common.js" ></script>
	    <style>
	    		.mb-head {
			    color: #333;
			    font-size: 12px;
			    text-align: center;
			    margin-bottom: 10px;
			    }
		    .mb-tag {
			    display: -webkit-box;
			    width: 80%;
			    margin: 0 auto;
			    background-color: #fff;
			    border:1px solid #FF9526;
			    border-radius: 3px;
			    }
			.mb-tag li {
			    width: 50%;
			    position: relative;
			    padding: 10px 0px 10px 0px;
			    color:#FF9526;
			    }
		    .mb-tag li.active {
			    background: #FF9526;
			    color:#FFFFFF;
			}
			.c-table td{
				width: 25%;
			}
			.c-table td:first-child{
				width: 16%;
			}
	    </style>
	</head>
	<body>
		<div class="main p10">
			<!--<div class="h45">
		        <div class="demo-comtop">
		            <a class="mui-action-back"></a>
		            <h1>医生工作时间</h1>
		        </div>
		    </div>-->
		    
		    <p>非工作时间的咨询,将统一在下一工作通知医生</p>
		    <div class="mui-scroll">
				<div class="mb-head">
					<ul id="jc-Type" class="mb-tag">
						<li class="active" data-type='1'>
							<div>全科医生工作时间</div>
						</li>
						<li data-type='2'>
							<div>健管师工作时间</div>
						</li>
					</ul>
				</div>
				<ul id="xt-ul" class="fa-contain">
					<table class="c-table health-table-blue">
				   		<thead class="c-fff" style="background: #FF9526;font-size: 15px;font-weight: bold;border-right: 1px solid #E6BF90;">
				   			<tr>
								<td class="width-15">&emsp;&emsp;</td>
								<td class="width-28">上午</td>
								<td class="width-28">下午</td>
								<td class="width-28">晚上</td>
							</tr>
				   		</thead>
						<tbody>
							<tr class="c-btn-ffffff c-color">
								<td class="width-15 td-title">周一</td>
								<td class="width-28" id='zhouyi1'></td>
								<td class="width-28" id='zhouyi2'></td>
								<td class="width-28" id='zhouyi3'></td>
							</tr>
							<tr class="c-btn-ffffff c-color">
								<td class="width-15 td-title">周二</td>
								<td class="width-28" id='zhouer1'></td>
								<td class="width-28" id='zhouer2'></td>
								<td class="width-28" id='zhouer3'></td>
							</tr>
							<tr class="c-btn-ffffff c-color">
								<td class="width-15 td-title">周三</td>
								<td class="width-28" id='zhousan1'></td>
								<td class="width-28" id='zhousan2'></td>
								<td class="width-28" id='zhousan3'></td>
							</tr>
							<tr class="c-btn-ffffff c-color">
								<td class="width-15 td-title">周四</td>
								<td class="width-28" id='zhousi1'></td>
								<td id='zhousi2' class="width-28"></td>
								<td id='zhousi3' class="width-28"></td>
							</tr>
							<tr class="c-btn-ffffff c-color">
								<td class="width-15 td-title">周五</td>
								<td id='zhouwu1' class="width-28"></td>
								<td id='zhouwu2' class="width-28"></td>
								<td id='zhouwu3' class="width-28"></td>
							</tr>
							<tr class="c-btn-ffffff c-color">
								<td class="width-15 td-title">周六</td>
								<td class="width-28" id='zhouliu1' ></td>
								<td class="width-28" id='zhouliu2' ></td>
								<td class="width-28" id='zhouliu3'></td>
							</tr>
							<tr class="c-btn-ffffff c-color">
								<td class="width-15 td-title">周日</td>
								<td class="width-28" id='zhouri1'></td>
								<td class="width-28" id='zhouri2'></td>
								<td class="width-28" id='zhouri3'></td>
							</tr>
						</tbody>
					</table>
				</ul>
				<ul id="xy-ul" class="fa-contain c-hide">
					<table class="c-table health-table-blue">
				   		<thead class="c-fff" style="background: #FF9526;font-size: 15px;font-weight: bold;border-right: 1px solid #E6BF90;">
				   			<tr>
								<td class="width-15">&emsp;&emsp;</td>
								<td class="width-28">上午</td>
								<td class="width-28">下午</td>
								<td class="width-28">晚上</td>
							</tr>
				   		</thead>
						<tbody>
							<tr class="c-btn-ffffff c-color">
								<td class="width-15 td-title">周一</td>
								<td class="width-28" id='jgzhouyi1'></td>
								<td class="width-28" id='jgzhouyi2'></td>
								<td class="width-28" id='jgzhouyi3'></td>
							</tr>
							<tr class="c-btn-ffffff c-color">
								<td class="width-15 td-title">周二</td>
								<td class="width-28" id='jgzhouer1'></td>
								<td class="width-28" id='jgzhouer2'></td>
								<td class="width-28" id='jgzhouer3'></td>
							</tr>
							<tr class="c-btn-ffffff c-color">
								<td class="width-15 td-title">周三</td>
								<td class="width-28" id='jgzhousan1'></td>
								<td class="width-28" id='jgzhousan2'></td>
								<td class="width-28" id='jgzhousan3'></td>
							</tr>
							<tr class="c-btn-ffffff c-color">
								<td class="width-15 td-title">周四</td>
								<td class="width-28" id='jgzhousi1'></td>
								<td id='jgzhousi2' class="width-28"></td>
								<td id='jgzhousi3' class="width-28"></td>
							</tr>
							<tr class="c-btn-ffffff c-color">
								<td class="width-15 td-title">周五</td>
								<td id='jgzhouwu1' class="width-28"></td>
								<td id='jgzhouwu2' class="width-28"></td>
								<td id='jgzhouwu3' class="width-28"></td>
							</tr>
							<tr class="c-btn-ffffff c-color">
								<td class="width-15 td-title">周六</td>
								<td class="width-28" id='jgzhouliu1' ></td>
								<td class="width-28" id='jgzhouliu2' ></td>
								<td class="width-28" id='jgzhouliu3'></td>
							</tr>
							<tr class="c-btn-ffffff c-color">
								<td class="width-15 td-title">周日</td>
								<td class="width-28" id='jgzhouri1'></td>
								<td class="width-28" id='jgzhouri2'></td>
								<td class="width-28" id='jgzhouri3'></td>
							</tr>
						</tbody>
					</table>
				</ul>
			</div>
		
		  
			 <p id='nowDate'></p>
		 </div>
		 
					
		<script>
		var $xtUl = $('#xt-ul'),
			$xyUl = $('#xy-ul'),
			$scroll = $('#iScroll');
		var d = dialog({contentType:'load', skin:'bk-popup', content:'工作时间获取中!'});			
		$(function(){
			bindEvents();
			queryList(1);
			$("#nowDate").html("当前时间:"+getNowFormatDate());	
		})	
		function queryList(type){
			Request = GetRequest();
			if(type==1){
				var ids=[{morning:"zhouyi1",afternoon:"zhouyi2",night:"zhouyi3"},
					 {morning:"zhouer1",afternoon:"zhouer2",night:"zhouer3"},
					 {morning:"zhousan1",afternoon:"zhousan2",night:"zhousan3"},
					 {morning:"zhousi1",afternoon:"zhousi2",night:"zhousi3"},
					 {morning:"zhouwu1",afternoon:"zhouwu2",night:"zhouwu3"},
					 {morning:"zhouliu1",afternoon:"zhouliu2",night:"zhouliu3"},
					 {morning:"zhouri1",afternoon:"zhouri2",night:"zhouri3"},
					 ];
				var doctor = Request["doctor"];
			}else{
				var ids=[{morning:"jgzhouyi1",afternoon:"jgzhouyi2",night:"jgzhouyi3"},
					 {morning:"jgzhouer1",afternoon:"jgzhouer2",night:"jgzhouer3"},
					 {morning:"jgzhousan1",afternoon:"jgzhousan2",night:"jgzhousan3"},
					 {morning:"jgzhousi1",afternoon:"jgzhousi2",night:"jgzhousi3"},
					 {morning:"jgzhouwu1",afternoon:"jgzhouwu2",night:"jgzhouwu3"},
					 {morning:"jgzhouliu1",afternoon:"jgzhouliu2",night:"jgzhouliu3"},
					 {morning:"jgzhouri1",afternoon:"jgzhouri2",night:"jgzhouri3"},
					 ];
				var doctor = Request["healthDoctor"];
			}
			sendPost('/patient/consult/doctor_worktime', {doctor:doctor}, 'json', 'post', queryFailed, function(res){
				if(res.status==200){		
					var workWeek = res.data.workWeeks;
					var worktime = res.data.workTime;
					if(workWeek&&workWeek.length>0){
						for(var i = 0 ;i<workWeek.length;i++){
							var weekInfo = workWeek[i];
							if(weekInfo.morning==1){
								$("#"+ids[weekInfo.week-1].morning).html(worktime.morningBegin+"~"+worktime.morningEnd);
							}
							if(weekInfo.afternoon==1){
								$("#"+ids[weekInfo.week-1].afternoon).html(worktime.afternoonBegin+"~"+worktime.afternoonEnd);
							}
							if(weekInfo.night==1){	
								$("#"+ids[weekInfo.week-1].night).html(worktime.nightBegin+"~"+worktime.nightEnd);				
							}		
						}
					}
				}else{
					queryFailed(res);
				}		
			});	
		}
		function queryFailed(res) {
			d.close();
			if (res && res.msg) {
				dialog({contentType:'tipsbox',bottom:true, skin:'bk-popup' , content:res.msg}).show();      
			} else {
				dialog({contentType:'tipsbox',bottom:true, skin:'bk-popup' , content:'工作时间获取失败'}).show(); 
			}
		}
		
		function getNowFormatDate() {
		    var date = new Date();
		    var seperator1 = "-";
		    var seperator2 = ":";
		    var month = date.getMonth() + 1;
		    var strDate = date.getDate();
		    if (month >= 1 && month <= 9) {
		        month = "0" + month;
		    }
		    if (strDate >= 0 && strDate <= 9) {
		        strDate = "0" + strDate;
		    }
		    var currentdate = date.getFullYear() + seperator1 + month + seperator1 + strDate
		            + " " + date.getHours() + seperator2 + date.getMinutes();
		    return currentdate;
		}
		
		
		Date.prototype.Format = function(formatStr)   
{   
    var str = formatStr;   
    var Week = ['日','一','二','三','四','五','六'];  
  
    str=str.replace(/yyyy|YYYY/,this.getFullYear());   
    str=str.replace(/yy|YY/,(this.getYear() % 100)>9?(this.getYear() % 100).toString():'0' + (this.getYear() % 100));   
  
    str=str.replace(/MM/,this.getMonth()>9?this.getMonth().toString():'0' + this.getMonth());   
    str=str.replace(/M/g,this.getMonth());   
  
    str=str.replace(/w|W/g,Week[this.getDay()]);   
  
    str=str.replace(/dd|DD/,this.getDate()>9?this.getDate().toString():'0' + this.getDate());   
    str=str.replace(/d|D/g,this.getDate());   
  
    str=str.replace(/hh|HH/,this.getHours()>9?this.getHours().toString():'0' + this.getHours());   
    str=str.replace(/h|H/g,this.getHours());   
    str=str.replace(/mm/,this.getMinutes()>9?this.getMinutes().toString():'0' + this.getMinutes());   
    str=str.replace(/m/g,this.getMinutes());   
  
    str=str.replace(/ss|SS/,this.getSeconds()>9?this.getSeconds().toString():'0' + this.getSeconds());   
    str=str.replace(/s|S/g,this.getSeconds());   
  
    return str;   
}  
function bindEvents(){
	//切换类型
$('#jc-Type').on('click','li',function(){
		var $this = $(this);
		var type = $this.attr('data-type');
		if(!$this.hasClass('active')){
			$this.addClass('active').siblings().removeClass('active');
			if(type == 1){
				$xyUl.hide();
				$xtUl.show();
				queryList($this.attr('data-type'));
			}else{
				$xyUl.show();
				$xtUl.hide();
				queryList($this.attr('data-type'));
			}
		}
	})
}
		</script>
	</body>
</html>

+ 122 - 0
html/yszx/html/manyidu.html

@ -0,0 +1,122 @@
<!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="../../../widget/artDialog/6.0.5/css/ui-dialog.min.css">
		<link rel="stylesheet" type="text/css" href="../css/manyidu.css?v=1.3.5" />
	</head>
	<body>
		<div id="yes_header" style="display: none;">
			<div class="right"></div>
			<div class="word">评价成功</div>
		</div>
		<div id="again_header" class="man-title c-hide">修改本次咨询服务评价</div>
		<div id="no_header" class="man-title c-hide">请您对本次咨询服务做出评价</div>
		<ul class="man-value-list" id="manValueList">			
			
		</ul>
		<div id="show_text" class="c-hide">
			<div class="ni-select">
				<div class="img j-niming"></div>
				<div class="name j-niming">匿名评价</div>
			</div>
		    <div class="ni-footer">
		        <a id="commit" href="javascript:;" class="c-btn bc-74bf00 c-btn-full c-btn-radius c-f18">提交</a>
		        <a id="revise" href="javascript:;" class="c-btn bc-74bf00 c-btn-full c-btn-radius c-f18" style="display: none;">修改评价</a>
		   	</div>
		</div>
		<script type="text/html" id="star_list_temp">
	   		{{each data as v i}}
	   		<li class="one j-section">
				<div class="up-sec">
					<div class="img"><img src="{{v.avatar | getPhoto}}" alt="" /></div>
					<div>
						<div class="name marb"><b>{{v.name}}</b>&#x3000;<span>({{v.levelName}})</span></div>
						<div class="name">家庭签约</div>
					</div>
				</div>
				<div class="down-sec" data-code="{{v.id}}">
					<div class="ni-down" style="padding-top: 10px;">
						<div class="star-lists">
							<div class="label">专业能力</div>
							<ul class="list">
								<li class="one-star"></li>
								<li class="one-star"></li>
								<li class="one-star"></li>
								<li class="one-star"></li>
								<li class="one-star"></li>
							</ul>
						</div>
						<div class="star-lists">
							<div class="label">服务态度</div>
							<ul class="list">
								<li class="one-star"></li>
								<li class="one-star"></li>
								<li class="one-star"></li>
								<li class="one-star"></li>
								<li class="one-star"></li>
							</ul>
						</div>
						<div class="star-lists">
							<div class="label">回复速度</div>
							<ul class="list">
								<li class="one-star"></li>
								<li class="one-star"></li>
								<li class="one-star"></li>
								<li class="one-star"></li>
								<li class="one-star"></li>
							</ul>
						</div>
						
						<div class="text-input">
				            <textarea placeholder="对医生服务是否满意?说说对医生的意见吧!" rows="4" maxlength="200"></textarea>
				            <div class="icon-state"><span class="text_count">0</span>/200</div>
				        </div>
				        <div class="show-word c-hide"></div>
				        
						<div class="j-nosel">
							<div class="small-title">
								<div class="tit">给医生贴标签</div>
								<div class="tit-icon"></div>
							</div>
							<div class="j-tag-detail c-hide">
								<ul class="tag-list">
									<li>很专业</li>
									<li>态度好</li>
									<li>负责任</li>
									<li>答非所问</li>
									<li>不错</li>
									<li>回复不及时</li>
								</ul>
								<div class="man-input clearfix">
									<div class="input">
										<input class="j-taginput" type="text" />
									</div>
									<div class="bttn j-submit">贴上</div>
								</div>
							</div>
						</div>
						<div class="j-hassel c-hide">
							<div class="small-title">给医生贴标签</div>
							<ul class="tag-list"></ul>
						</div>
					</div>
				</div>
			</li>
			{{/each}}
	   	</script>
		<script src="../../../js/jquery/2.1.3/jquery.js"></script>
		<script src="../../../js/underscore.js"></script>
		<script src="../../../js/es6-promise.js"></script>
		<script src="http://res.wx.qq.com/open/js/jweixin-1.2.0.js"></script>
		<script src="../../../js/app.js" type="text/javascript" charset="utf-8"></script>
		<script type="text/javascript" src="../../../js/common_http.js" ></script>
		<script type="text/javascript" src="../../../js/weixin_common.js" ></script>
		<script src="../../../js/template.js" type="text/javascript" charset="utf-8"></script>
		<script src="../../../widget/artDialog/6.0.5/js/dialog-plus.min.js"></script>
		<script src="../js/manyidu.js" type="text/javascript" charset="utf-8"></script>
	</body>
</html>

+ 127 - 0
html/yszx/html/mingyi-homepage.html

@ -0,0 +1,127 @@
<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="utf-8">
        <title>名医主页</title>
        <meta name="format-detection" content="telephone=no"/>
        <meta name="viewport"
              content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0"/>
        <meta name="apple-mobile-web-app-capable" content="yes"/>
        <meta name="apple-mobile-web-app-status-bar-style" content="black"/>
        <link rel="stylesheet" href="../../../css/cross.css" type="text/css"/>
        <link rel="stylesheet" href="../../../css/cross.ui.css" type="text/css"/>
        <link rel="stylesheet" type="text/css" href="../../../iconfont/iconfont.css" />
        <!--<link rel="stylesheet" type="text/css" href="../../../css/ss-style.css">-->
        <link rel="stylesheet" type="text/css" href="../../../css/iscroll.css" /> 
        <link rel="stylesheet" type="text/css" href="../../../widget/artDialog/6.0.5/css/ui-dialog.min.css">
	    <link rel="stylesheet" href="../css/sq-style.css" type="text/css"/>
	    <link rel="stylesheet" href="../css/sfp-style.css" type="text/css"/>
	     <link rel="stylesheet" href="../css/sfdoc-style.css" type="text/css"/>
	     <link rel="stylesheet" href="../css/mingyi-homepage.css" type="text/css"/>
       	<link rel="stylesheet" type="text/css" href="../../../widget/mobiscroll/2.15.1/css/mobiscroll.css">
    </head>
    <body>
   <div class="main">
   		<div id="wrapper">
			<div class="iScroller">
				
  		<div class="sdoc-top smil clearfix">
			<span class="sdimg fl">
				<img id="photo" class="c-images-cycle">
			</span>
			<p class="c-t-left">
				<span id="name" class="c-f16 mr10 ml10"></span>
				<label id="jobName" class="c-f14"></label>
			</p>
			<p class="c-t-left c-f14 c-toe mt10">
				<span id="deptName" class="c-f12 mr10 ml10"></span>
				<label id="hospitalName" class="c-f12"></label>
			</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 class="mt10 c-btn-ffffff height-35 c-bb0">
			<img src="../images/zixunjihua_icon.png" style="width: 22px;height: 22px;background-size: 22px;line-height: 22px; margin:5px 5px 0px">
		    <p id="deptName" class="c-f14 mr10 mt7 c-323232 f-dib">居民免费咨询计划</p>
		</div>
		<div class="pl10 pr10 c-btn-ffffff pt10 pb20">
			<table class="c-table health-table-blue">
		   		<thead class="c-fff" style=" color: #909090;background: #F2F3F5;font-size: 16px;font-weight: bold;border: 1px solid #DCDCDC;">
		   			<tr>
						<td class="width-20">&emsp;&emsp;</td>
						<td class="width-40 c-f16">咨询时间段</td>
						<td class="width-40 c-f16">咨询次数</td>
					</tr>
		   		</thead>
				<tbody>
					<tr class="c-btn-ffffff c-color c-f14">
						<td class="width-20 td-title c-f16">周一</td>
						<td class="width-40" id='zhouyi1'></td>
						<td class="width-40 c-74bf00" id='zhouyi2'></td>
					</tr>
					<tr class="c-btn-ffffff c-color c-f14">
						<td class="width-20 td-title c-f16">周二</td>
						<td class="width-40" id='zhouer1'></td>
						<td class="width-40 c-74bf00" id='zhouer2'></td>
					</tr>
					<tr class="c-btn-ffffff c-color c-f14">
						<td class="width-20 td-title c-f16">周三</td>
						<td class="width-40" id='zhousan1'></td>
						<td class="width-40 c-74bf00" id='zhousan2'></td>
					</tr>
					<tr class="c-btn-ffffff c-color c-f14">
						<td class="width-20 td-title c-f16">周四</td>
						<td class="width-40" id='zhousi1'></td>
						<td id='zhousi2' class="width-40 c-74bf00"></td>
					</tr>
					<tr class="c-btn-ffffff c-color c-f14">
						<td class="width-15 td-title c-f16">周五</td>
						<td id='zhouwu1' class="width-40"></td>
						<td id='zhouwu2' class="width-40 c-74bf00"></td>
					</tr>
					<tr class="c-btn-ffffff c-color c-f14">
						<td class="width-20 td-title c-f16">周六</td>
						<td class="width-40" id='zhouliu1' ></td>
						<td class="width-40 c-74bf00" id='zhouliu2' ></td>
					</tr>
					<tr class="c-btn-ffffff c-color c-f14">
						<td class="width-20 td-title c-f16">周日</td>
						<td class="width-40" id='zhouri1'></td>
						<td class="width-40 c-74bf00" id='zhouri2'></td>
					</tr>
				</tbody>
			</table>
		</div>
 	
			</div>
		</div>
	 </div>
 	
	<div id="footer">
		<div class="mlr10">
			<a href="javascript:;" id="bang-btn" class="c-btn-full s-bc-DCDCDC c-btn-radius fl c-f16" style="height: 40px; margin-top: 5px;">立即咨询</a>
		</div>
	</div>
		
		<script src="../../../js/jquery/2.1.3/jquery.js"></script> 
    	<script src="../../../widget/artDialog/6.0.5/js/dialog-plus.min.js"></script>    
        <script type="text/javascript" src="../../../js/weixin_common.js" ></script>
        <script type="text/javascript" src="../../../js/common_http.js" ></script>
        <script type="text/javascript" src="../../../js/app.js" ></script>
        <script src="../../../widget/mobiscroll/2.15.1/js/mobiscroll.js"></script>
        <script src="../../../js/iscroll-probe.js"></script>
		<script src="../../../js/iscroll-pull-up-down.js"></script>
		<script src="http://res.wx.qq.com/open/js/jweixin-1.2.0.js"></script>
        <script src="../js/mingyi-homepage.js?v=1.3.4"></script>
    </body>
</html>

+ 153 - 0
html/yszx/html/prescription-consulting.html

@ -0,0 +1,153 @@
<!doctype html>
<html>
    <head>
        <meta charset="utf-8" />
        <meta name="author" content="yihu.com" />
        <meta name="format-detection" content="telephone=no" />
        <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
        <meta name="apple-mobile-web-app-capable" content="yes" />
        <meta name="apple-mobile-web-app-status-bar-style" content="black" />
        <title>续方咨询详情</title>
        <link rel="stylesheet" type="text/css" href="../../../css/mui.min.css" />
        <link rel="stylesheet" href="../../../css/cross.css" type="text/css" />
        <link rel="stylesheet" href="../../../iconfont/iconfont.css" type="text/css" />
        <link rel="stylesheet" type="text/css" href="../../../css/cross.ui.css">
        <link rel="stylesheet" type="text/css" href="../../../css/ss-style.css" />
        <link rel="stylesheet" type="text/css" href="../css/chatRoom.css" />
        <link rel="stylesheet" type="text/css" href="../css/prescription-consulting.css"/>
    </head>
    <body>
        <div id='sound-alert' class="rprogress">
            <div class="rschedule"></div>
            <div class="volumn">
                <div class="line1"></div>
                <div class="line2"></div>
                <div class="line3"></div>
                <div class="line4"></div>
            </div>
            <div class="r-sigh">!</div>
            <div id="audio_tips" class="rsalert">手指上滑,取消发送</div>
        </div>
        <audio id="audio" onended="playSoundEnd()" onerror="playError()"></audio>
         
        <div class="div-top-content c-border-b">
            <div id="finish_list" class="c-t-center bgc-f3f3f3 h34 lh34 c-border-b">
                <a href="javascript:;" class="c-37a6ed c-f14"onclick="finish()">
                <span style="font-size: 14px;color: #323232; pointer-events: none;">审核完成24小时后将自动关闭咨询&ensp;</span>结束咨询
                </a>
            </div>
            <div id="prescriptionInfo" data-code="">
            </div>
            
        </div>
        <div class="c-main">
            <div class="labcon">
                <div class="c-position-r" id="talkwrap">
                    <div class="pull-iscroll-wrap">
                        <div class="pull-iscroll-box">
                            <div class="talk-box pt10 plr10">
                                
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            
            <div id="input_div" class="bgc-fff c-border-t c-position-f width-100 chat-msg-box zi2" >
                <div class="ui-grid ptb10" style="-webkit-box-orient:horizontal; -webkit-box-align: end;">
                    
                    <div class="ui-col-0 mlr5 yy-add">
                        <img src="../images/yuying_icon.png" width="25" height="25"  />
                        <img style="display: none;" src="../images/jianpang_icon.png" width="25" height="25"  />
                    </div>
                    
                    <div class="ui-col-1 mr5 ml10">
                        <div class="input-group width-100 ">
                            <!--<input id="input_content" type="text" class="form-control width-100" placeholder="" value="">-->
                            <div id="input_content" type="text" class="input-msg width-100" ></div>
                            <div id="msg-sound" style="display: none; line-height: 32px;text-align: center;border: 1px solid #e1e1e1;border-radius: 6px;">
                                按住说话
                            </div>
                        </div>
                    </div>
                    
                    <div class="ui-col-0 tw-add"><img src="../images/tw-add.png" width="25"></div>
                    
                    <div id="reply" class="ui-col-0 mr5 c-hide">
                        <a href="javascript:;" class="c-btn c-btn-588cd5 c-btn-tiny c-btn-radius c-f15">发送</a>
                    </div>
                </div>
                
                <div class="tw-add-detail clearfix c-hide" id="other_div">
                    <ul>
                        <li><img src="../images/tupian_icon.png" width="43" onclick="chooseImageWx()">
                            <p class="c-f15">发送图片</p>
                        </li>
                        <li><img src="../images/xiaoshiping_icon.png" class="lz-video-img" width="43" onclick="upload_input.click()">
                            <p class="c-f15">短视频</p>
                            <input id="upload_input" class="c-hide"  onchange="videoFileChange(this);" type="file" accept="video/*" capture='camera' />
                        </li>
                    </ul>
                </div>
            </div>
        </div>
        
        <div id="sheet1" class="mui-popover mui-popover-bottom mui-popover-action ">
            <!-- 可选择菜单 -->
            <ul class="mui-table-view">
                <li class="mui-table-view-cell mui-table-view-cell1" style="font-size: 14px;color: #666666;" id="mui-content">
               
              </li>
              <li class="mui-table-view-cell mui-table-view-cell1" id="lijifasong" style="font-size: 16px;color: #47A8EF;">
                <a href="javascript:;">立即发送</a>
              </li>
              <li class="mui-table-view-cell mui-table-view-cell1" id="buzaitixing" style="font-size: 16px;color: #47A8EF;">
                <a href="javascript:;">不再提醒</a>
              </li>
            </ul>
            <!-- 取消菜单 -->
            <ul class="mui-table-view">
              <li class="mui-table-view-cell mui-table-view-cell1" style="font-size: 16px;color: #47A8EF;">
                <a href="#sheet1">取消发送</a>
              </li>
            </ul>
        </div>
        
        <div class="c-hide" id="valFoot" style="position: absolute;bottom: 45px;right: 25px;z-index: 11;width: 50px;height: 50px;">
            <img id="noval" class="c-hide" width="100%" src="../images/btn_pingjiayisheng.png" alt="" />
            <img id="hasval" class="c-hide" width="100%" src="../images/btn_pingjiaxiangqing.png" alt="" />
        </div>
        
        <script type="text/html" id="prescription_tmp">
            <div class="ui-grid plr10 ui-grid-middle">
                <div class="c-f16 c-323232 ui-col-1 ptb10">{{symptoms}}</div>
                {{if statusName}}
                <div class="ui-col-0 div-xf-status">{{statusName}}</div>
                {{/if}}
            </div>
            <div class="c-row plr10 pb10">
                {{each prescriptionInfo as drug index}}
                {{if index <= 1}}
                    <div class="c-50 c-nowrap c-f14 c-323232">{{drug.drugName}} {{drug.num}}</div>
                {{/if}}
                {{/each}}
            </div>
        </script>
        <script type="text/javascript" src="../../../js/jquery/2.1.3/jquery.js"></script>
        <link rel="stylesheet" type="text/css" href="../../../widget/iscroll2/5.1.3/css/iscroll.css" />
        <script type="text/javascript" src="../../../widget/iscroll2/5.1.3/js/iscroll.js"></script>
        <script type="text/javascript" src="../../../js/mui.min.js"></script>
        <script type="text/javascript" src="../../../js/common_http.js" ></script>
        <script type="text/javascript" src="../../../js/weixin_common.js" ></script>
        <script src="../../../js/template.js" type="text/javascript" charset="utf-8"></script>
        <link rel="stylesheet" type="text/css" href="../../../widget/artDialog/6.0.5/css/ui-dialog.min.css">
        <script src="../../../widget/artDialog/6.0.5/js/dialog-plus.min.js"></script>
        <script type="text/javascript" src="../../../js/commit_validate.js" ></script>
        <script type="text/javascript" src="http://res.wx.qq.com/open/js/jweixin-1.2.0.js"></script>
        <script type="text/javascript" src="../../../js/isRepresented.js"></script>
        <script src="../../prescription/js/getPrescriptionStatus.js" type="text/javascript" charset="utf-8"></script>
        <script type="text/javascript" src="../js/prescription-consulting.js" ></script>
    </body>
</html>

+ 179 - 0
html/yszx/html/questionaires.html

@ -0,0 +1,179 @@
<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<meta name="format-detection" content="telephone=no" />
        <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0" />
        <meta name="apple-mobile-web-app-capable" content="yes" />
        <meta name="apple-mobile-web-app-status-bar-style" content="black" />
        <link rel="stylesheet" href="../../../css/cross.css" type="text/css"/>
        <link rel="stylesheet" href="../../../css/cross.ui.css" type="text/css"/>
        <link rel="stylesheet" type="text/css" href="../css/mf-style.css"/>
	</head>
	<body>
        <form id="question_form" method="post">
            
        </form>
        
        <script type="text/html" id="item">
            <!--type 1-文本输入,2-radio选择,3-checkbox, 4 - textarea-->
            {{each data as it key}}
            <ul class="c-list bgc-fff mt10 c-border-tb c-f15">
                {{if it.type == 1}}
                <li class="ptb10 c-list-cover {{if it.textType == 'date' || it.textType == 'select'}}list-arrow-d{{/if}}">
                    <div class="c-list-key width-40">
                    	{{if it.required == true}}
                    	<i class="required"></i>
                    	{{/if}}
                    	{{it.label}}{{if it.unit}}({{it.unit}}){{/if}}
                    </div>
                    <div class="c-list-info">
                        {{if it.textType == 'string'}}
                        <input type="text" name="{{key}}" value="{{it.value}}" {{if it.readonly}}readonly="{{it.readonly}}"{{/if}}class="width-100 c-t-right" placeholder="请输入"/>
                        {{/if}}
                        {{if it.textType == 'number'}}
                        <input type="number" name="{{key}}" value="{{it.value}}" class="width-100 c-t-right"  placeholder="请输入"/>
                        {{/if}}
                        {{if it.textType == 'date'}}
                        <input type="text" readonly="readonly" data-val="date" name="{{key}}" value="{{it.value}}" class="width-100 c-t-right" placeholder="请选择"/>
                        {{/if}}
                        {{if it.textType == 'select'}}
                        <select id="jkjy" name="" class="c-hide" data-id="" data-name=""></select>
                        {{/if}}
                    </div>
                </li>
                {{/if}}
                {{if it.type == 2}}
                <li class="ptb10">
                    <div class="c-list-info">
                    	{{if it.required == true}}
                    	<i class="required"></i>
                    	{{/if}}
                    	{{it.label}}
                    </div>
                </li>
	                {{each it.items as op id}}
	                <li class="ptb10">
	                    <div class="c-list-info">
	                        <label class="c-radio">
	                            <input type="radio" name="{{key}}" value="{{id}}" {{if it.value == id}}checked="checked"{{/if}}>
	                            <span class="disc"></span>
	                            <span class="txt">{{op}}</span>
	                        </label>
	                    </div>
	                </li>
	                {{/each}}
                {{/if}}
                
                {{if it.type == 3}}
                <li class="ptb10 j-li">
                    <div class="c-list-info">
                        <label class="c-check" has-hide="{{it.hide && it.hide.type}}">
                            <input type="checkbox" name="{{key}}" {{if it.value}}checked="checked" value="{{it.value}}"{{else}}value="0"{{/if}} >
                            <span class="tick"></span>
                            <span class="txt">{{it.label}}</span>
                        </label>
                    </div>
                </li>
                {{/if}}
                
                {{if it.type == 4}}
                <li class="ptb10 c-list-cover no-btm-border">
                    <div class="c-list-key w10em">
                        {{if it.required == true}}
                    	<i class="required"></i>
                    	{{/if}}
                    	{{it.label}}
                    	{{if it.unit}}({{it.unit}}){{/if}}
                    </div>                  
                </li>
                <li class="c-list-cover ptb10">
                    <div class="c-list-info" style="clear: both; padding:0;">
                        <div class="text-box">
                            <textarea name="{{key}}" rows="{{it.row}}" cols="" class="" maxlength="{{it.maxLength}}">{{it.value}}</textarea>
                            <p class="word-count c-t-right c-f12 c-909090"><span class="other-count">{{it.valueLength||0}}</span>/{{it.maxLength}}</p>
                        </div>
                    </div>
                </li>       
                {{/if}}
                
                {{if it.type == 5}}
                <li class="ptb10">
                    <div class="c-list-info">
                    	{{if it.required == true}}
                    	<i class="required"></i>
                    	{{/if}}
                    	{{it.label}}
                    	{{if it.unit}}({{it.unit}}){{/if}}
                    </div>
                </li>
	                {{each it.items as op id}}
	                <li class="ptb10">
	                    <div class="c-list-info">
	                        <label class="c-radio">
	                            <input type="radio" value="{{id}}" name="{{key}}_f" {{if it.value>0 && id>0}}checked="checked"{{/if}} {{if it.value=="0" && id==0}}checked="checked"{{/if}}>
	                            <span class="disc"></span>
	                            <span class="txt">{{op}}</span>
	                        </label>
	                    </div>
	                    {{if id>0}}
	                    <div class="c-list-info" style="width:50%;">
	                        <input type="number" name="{{key}}" value="{{it.value}}" class="width-100 c-t-right {{if it.value<=0}}c-hide{{/if}}"  placeholder="请输入"/>
	                    </div>
	                    {{/if}}
	                </li>
	                {{/each}}
                {{/if}}
                <!--处理超链接-->
                {{if it.link}}
                <li class="ptb10 plr10 li-link">
                    <a href="javascript:;" data-href="{{it.link.url}}" data-type="{{it.link.type}}" onclick="openNewPage(this)">{{it.link.text}}</a>
                </li>
                {{/if}}
                {{if it.hide}}
                	{{if it.hide.type == "4"}}
                	<li class="c-list-cover ptb10" {{if !it.value}}style="display: none;"{{/if}}>
	                    <div class="c-list-info" style="clear: both; padding:0;">
	                        <div class="text-box">
	                            <textarea name="{{key}}" rows="{{it.row}}" cols="" class="" maxlength="{{it.maxLength}}">{{it.value}}</textarea>
	                            <p class="word-count c-t-right c-f12 c-909090"><span class="other-count">{{it.valueLength||0}}</span>/{{it.maxLength}}</p>
	                        </div>
	                    </div>
	                </li> 
                	{{/if}}
                {{/if}}
            </ul>
            {{/each}}
            <p class="c-f12 c-999 mtb10 plr10">温馨提示:您填写的信息将作为医生审核续方的参考数据,请按实际填写,如遇未知信息,可放空不填</p>
            <div class="plr10 pb15 c-hide" id="btn_group">
	            <!-- 不可点击时的按钮样式 -->
	            <a id="disable_save" href="javascript:;" class="c-btn c-btn-d c-btn-full c-f15">保存</a>              
	            <!-- 正常按钮样式 -->
	            <a id="active_save" href="javascript:;" class="c-btn c-btn-a c-btn-full c-f15" style="display: none;">保存</a> 
	        </div>
        </script>
        
        <script type="text/html" id="option_tmp">
            <div class="bgc-fff c-t-center width-100 c-position-a c-border-b option_panel" id="{{id}}">
                {{each list as it}}
                <div class="h40 lh40 c-f16 c-333 option" data-val="{{it.value}}" data-json="{{it.jsonStr}}">{{it.time}}<span class="ml20">{{it.text}}</span></div>
                {{/each}}
                <div class="c-17b3ec c-border-t c-f16 h40 lh40 getmore" data-type="{{type}}">您可从居民{{title}}记录中获取</div>
            </div>
        </script>
        <script src="../../../js/jquery/2.1.3/jquery.js"></script>
        <script src="../../../js/mui.min.js" type="text/javascript" charset="utf-8"></script>
        <script src="../../../js/template.js" type="text/javascript" charset="utf-8"></script>
        <script src="../../../js/common_http.js"></script>
    	<script type="text/javascript" src="../../../js/weixin_common.js" ></script>
        <link rel="stylesheet" type="text/css" href="../../../widget/artDialog/6.0.5/css/ui-dialog.min.css">
        <script src="../../../widget/artDialog/6.0.5/js/dialog-plus.min.js" type="text/javascript" charset="utf-8"></script>
	    <link rel="stylesheet" type="text/css" href="../../../widget/mobiscroll/2.17.1/css/mobiscroll.css"/>
	    <link rel="stylesheet" type="text/css" href="../../../css/mobiscroll_numpad.css"/>
	    <script src="../../../js/mobiscroll-2.17.1.js" type="text/javascript" charset="utf-8"></script>
	    <script src="../../../js/underscore.js"></script>
	    <script src="../js/template_gxy.js" type="text/javascript" charset="utf-8"></script>
	    <script src="../js/questionaires.js" type="text/javascript" charset="utf-8"></script>
	</body>
</html>

+ 116 - 0
html/yszx/html/select-consult-doctor.html

@ -0,0 +1,116 @@
<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="utf-8">
        <title>名医咨询_选择咨询医生</title>
        <meta name="format-detection" content="telephone=no"/>
        <meta name="viewport"
              content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0"/>
        <meta name="apple-mobile-web-app-capable" content="yes"/>
        <meta name="apple-mobile-web-app-status-bar-style" content="black"/>
        <link rel="stylesheet" href="../../../css/cross.css" type="text/css"/>
        <link rel="stylesheet" href="../../../css/cross.ui.css" type="text/css"/>
        <link rel="stylesheet" type="text/css" href="../../../iconfont/iconfont.css" />
        <link rel="stylesheet" type="text/css" href="../../../css/ss-style.css">
        <link rel="stylesheet" type="text/css" href="../../../css/iscroll.css" /> 
        <link rel="stylesheet" type="text/css" href="../../../widget/artDialog/6.0.5/css/ui-dialog.min.css">
	    <link rel="stylesheet" href="../css/sq-style.css" type="text/css"/>
	    <link rel="stylesheet" href="../css/sfp-style.css" type="text/css"/>
	     <link rel="stylesheet" href="../css/sfdoc-style.css" type="text/css"/>
	     <link rel="stylesheet" href="../css/search-bar.css" type="text/css"/>
	     <link rel="stylesheet" href="../css/mingyi-homepage.css" type="text/css"/>
       	<link rel="stylesheet" type="text/css" href="../../../widget/mobiscroll/2.15.1/css/mobiscroll.css">
    </head>
    <body>
   <div class="main">
   	<div class="searchbar searchbar-init">
				<div class="searchbar-input">
					<input type="search" placeholder="搜索医生" class="inp-search" ><a href="javascript:void(0);" class="searchbar-clear"></a>
				</div>
				<a class="searchbar-cancel" >取消</a>
			</div>
			<div id="search_suggest_text" class="f-dn"></div>
   		<div id="wrapper2" class="div-content">
			<div class="iScroller">
				<ul class="c-list mlr10">
					<!--<li class="mt10">
					      <div class="n-list dr-item c-border">
								<div class="n-list-li pl10">
									<div class="n-list-key">
										<div class="n-avatar-l img-round">
											<img src="../../../images/d-default.png">
										</div>
									</div>
									<div class="pl15">
										<div>
											  <span class="c-f16 c-bold c-323232">张三</span>
											  <span class="c-f14 c-666666 pl10">(主任医师)</span>
											  <span class="c-f14 c-74bf00 pl10" style="position: absolute;right: 10px;">剩余次数:3</span>
										  </div>
										  <div class="c-f14 c-323232 pt5">
  												<span class="c-f14 c-323232 pr5">骨科</span>
												<span class="c-f14 c-323232">莲前第一社区医疗服务中心</span>
										</div>
									</div>
								</div>
								<div class="c-f12 c-666666 mb10 pr10 pl10">
									<span class="span-content">
										擅长:高血压、冠心病、心律失常等疾病的诊治擅长高血压、冠心病、心律失常等疾病的诊治擅长高血压、冠心病、心律失常等疾病的诊治擅长高血压、冠心病、心律失常等疾病的诊治擅长高血压、冠心病、心律失常等疾病的诊治擅长高血压、冠心病、心律失常等疾病的诊治擅长高血压、冠心病、心
									</span>
								</div>
							</div>
					  </li>
					  <li class="mt10">
					      <div class="n-list dr-item c-border">
								<div class="n-list-li pl10">
									<div class="n-list-key">
										<div class="n-avatar-l img-round">
											<img src="../../../images/d-default.png">
										</div>
									</div>
									<div class="pl15">
										<div>
											  <span class="c-f16 c-bold c-323232">张三</span>
											  <span class="c-f14 c-666666 pl10">(主任医师)</span>
											  <span class="c-f14 c-FF6A56 pl10" style="position: absolute;right: 10px;">剩余次数:0</span>
										  </div>
										  <div class="c-f14 c-323232 pt5">
  												<span class="c-f14 c-323232 pr5">骨科</span>
												<span class="c-f14 c-323232">莲前第一社区医疗服务中心</span>
										</div>
									</div>
								</div>
								<div class="c-f12 c-666666 mb10 pr10 pl10">
									<span class="span-content">
										擅长:高血压、冠心病、心律失常等疾病的诊治擅长高血压、冠心病、心律失常等疾病的诊治擅长高血压、冠心病、心律失常等疾病的诊治擅长高血压、冠心病、心律失常等疾病的诊治擅长高血压、冠心病、心律失常等疾病的诊治擅长高血压、冠心病、心律失常等疾病的诊治擅长高血压、冠心病、心
									</span>
								</div>
							</div>
					  </li>-->
					  
				</ul>
  		
 	
			</div>
		</div>
	 </div>
		<div class="div-no-search-info f-dn">
			<div class="div-img"></div>
			<div class="div-search-content" style=" vertical-align: middle; margin: 15px auto 30px;text-align: center;">
				今天无名医坐诊哦,请改天再来~</div>
		</div>
		
		<script src="../../../js/jquery/2.1.3/jquery.js"></script> 
    	<script src="../../../widget/artDialog/6.0.5/js/dialog-plus.min.js"></script>    
        <script type="text/javascript" src="../../../js/weixin_common.js" ></script>
        <script type="text/javascript" src="../../../js/common_http.js" ></script>
        <script type="text/javascript" src="../../../js/app.js" ></script>
        <script src="../../../widget/mobiscroll/2.15.1/js/mobiscroll.js"></script>
        <script src="../../../js/iscroll-probe.js"></script>
		<script src="../../../js/iscroll-pull-up-down.js"></script>
		<script src="../../../js/underscore.js"></script>
		<script src="../../../js/es6-promise.js"></script>
        <script src="../js/select-consult-doctor.js?v=1.3.4"></script>
    </body>
</html>

+ 170 - 0
html/yszx/html/suifangdiaocha.html

@ -0,0 +1,170 @@
<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8">
        <title>随访调查</title>
        <meta name="format-detection" content="telephone=no"/>
        <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0"/>
        <meta name="apple-mobile-web-app-capable" content="yes"/>
        <meta name="apple-mobile-web-app-status-bar-style" content="black"/>
        <link rel="stylesheet" href="../../../css/mui.min.css">
        <link rel="stylesheet" href="../../../css/cross.css" type="text/css"/>
        <link rel="stylesheet" href="../../../css/cross.ui.css" type="text/css"/>
        <link rel="stylesheet" type="text/css" href="../css/add-prescription-consult.css"/>
    </head>
    <body class="bgc-f3f3f3">
        <div class="mui-page-content ">
            <div class="mt10 bgc-fff c-border-tb">
                <div class="h40 lh40 c-border-b plr10">
                    <img src="../images/xunfangxinxi_icon.png" width="20" class="header-icon mr10">
                    <span class="c-f16 c-333">随访调查</span>
                </div>
                <ul class="c-list plr10">
                    <li class="ptb10 ml0">
                        <div class="c-list-key c-f15 c-333">近期血压</div>
                        <div class="box-info c-t-right pr20 c-position-r">
                            <input type="text" id="add_xy" readonly="readonly" class="c-f15 c-909090 c-t-right" placeholder="请上传近期测量的血压体征">
                        	<span class="arrow-r"></span>
                        </div>
                    </li>
                    <li class="ptb10 ml0">
                        <div class="c-list-key c-f15 c-333">近期血糖</div>
                        <div class="box-info c-t-right pr20 c-position-r">
                            <input type="text" id="add_xt" readonly="readonly" class="c-f15 c-909090 c-t-right" placeholder="请上传近期测量的血糖体征">
                        	<span class="arrow-r"></span>
                        </div>
                    </li>
                    <li class="ptb10 ml0">
                        <div class="c-list-key c-f15 c-333">症状</div>
                        <div class="box-info c-t-right pr20 c-position-r">
                            <input type="text" id="add_zz" readonly="readonly" class="c-f15 c-909090 c-t-right" placeholder="未填写">
                        	<span class="arrow-r"></span>
                        </div>
                    </li>
                    <li class="ptb10 ml0">
                        <div class="c-list-key c-f15 c-333">体征及生活方式问卷</div>
                        <div class="box-info c-t-right pr20 c-position-r">
                            <input type="text" id="add_wj" readonly="readonly" class="c-f15 c-909090 c-t-right" placeholder="未填写">
                        	<span class="arrow-r"></span>
                        </div>
                    </li>
                </ul>
            </div>
            <p class="c-f12 c-ccc mt5 plr10">温馨提示:随访调查也可在提交咨询后在医生帮助下填写,您填写的信息将作为医生审核续方的参考数据,请尽量提前填写哟~</p>
            <div class="mtb20 mlr15">
                <a id="commit" href="javascript:;" class="c-btn s-bc-DCDCDC active c-btn-full c-btn-radius c-f16">进入咨询</a>
            </div>
        </div>
    </body>
    <script src="../../../js/jquery/2.1.3/jquery.js"></script>
    <script src="../../../js/mui.min.js "></script>
    <script src="../../../js/common_http.js"></script>
    <script type="text/javascript" src="../../../js/weixin_common.js" ></script>
    <link rel="stylesheet" type="text/css" href="../../../widget/artDialog/6.0.5/css/ui-dialog.min.css">
    <script src="../../../widget/artDialog/6.0.5/js/dialog-plus.min.js"></script>
    <script>
    	var d = dialog({contentType:'load', skin:'bk-popup'});
		var Request = GetRequest();
		var consult = Request['consult'];
		var prescriptionCode = Request['prescriptionCode'];
		function toast(msg){
			dialog({contentType:'tipsbox',bottom:true, skin:'bk-popup' , content:msg}).show()
		}
		function add0(data){
			return data<10?'0'+data:data
		}
		function isNull(arr){
			for(var i=0;i<arr.length;i++){
				if(!!arr[i]){ return arr[i]}
			}
		}
		
    	$(function(){
    		var $xt = $('#add_xt'),
    			$xy = $('#add_xy');
    		var now = new Date()
    		var endTime = now.getTime()*1-29*24*3600*1000
    		var endDay = new Date(endTime)
    		var params = {
    			type:1,
				start:endDay.getFullYear()+'-'+add0(endDay.getMonth()+1)+'-'+add0(endDay.getDate())+' 00:00:00',
				end:now.getFullYear()+'-'+add0(now.getMonth()+1)+'-'+add0(now.getDate())+' 23:59:59',
				page:1,
				pagesize:10
    		}
    		var params2 = {
    			type:2,
				start:endDay.getFullYear()+'-'+add0(endDay.getMonth()+1)+'-'+add0(endDay.getDate())+' 00:00:00',
				end:now.getFullYear()+'-'+add0(now.getMonth()+1)+'-'+add0(now.getDate())+' 23:59:59',
				page:1,
				pagesize:10
    		}
    		d.show();
    		sendPost('patient/health_index/list', params, 'json', 'post', queryFailed, function(res){
		    	if(res.status == 200){
		        	var list = res.list[0]
	        		var data = isNull([list.value1,list.value2,list.value3,list.value4,list.value5,list.value6,list.value7])
	        		$xt.val(data+' mmol/L')
		        }
		    })
    		sendPost('patient/health_index/list', params2, 'json', 'post', queryFailed, function(res){
		        if(res.status == 200){
		        	var high = res.list[0].value2;
		        	var low = res.list[0].value1;
		        	$xy.val(low+'-'+high+' mmHg')
		        }
		    })
    		//症状
    		var params3 = {
    			prescriptioncode:prescriptionCode,
    			followupProject:'1'
    		}
    		sendPost('patient/prescription/followupcontent/getinfo', params3, 'json', 'get', queryFailed, function(res){
    			d.close()
		        if(res.status == 200){
		        	if(! $.isEmptyObject(res.data)){
		        		$('#add_zz').val('已填写')
		        	}
		        }
		    })
    		//体征
    		var params4 = {
    			prescriptioncode:prescriptionCode,
    			followupProject:'2,4'
    		}
    		sendPost('patient/prescription/followupcontent/getinfo', params4, 'json', 'get', queryFailed, function(res){
    			d.close()
		        if(res.status == 200){
		        	if(! $.isEmptyObject(res.data)){
		        		$('#add_wj').val('已填写')
		        	}
		        }
		    })
    		bindEvent()
    	})
    	
    	function queryFailed(){
    		d.close()
    		toast('请求失败')
    	}
    	
    	function bindEvent(){
    		$("#add_xt").on('tap',function(){
    			window.location.href = "../../jkjl/html/health-index-add-bloodsugar.html?origin=suifang"
    		})
    		$("#add_xy").on('tap',function(){
    			window.location.href = "../../jkjl/html/health-index-add-bloodpressure.html?origin=suifang"
    		})
    		$("#add_zz").on('tap',function(){ 
    			window.location.href = "questionaires.html?pro_id=1&prescriptionCode="+prescriptionCode;
    		})
    		$("#add_wj").on('tap',function(){
    			window.location.href = "questionaires.html?pro_id=2&prescriptionCode="+prescriptionCode;
    		})
    		$("#commit").on('click',function(){
    			window.location.href = "prescription-consulting.html?consult="+consult;
    		})
    	}
    </script>
</html>

二进制
html/yszx/images/backspace.png


二进制
html/yszx/images/bofang_icon.png


二进制
html/yszx/images/btn_pingjiaxiangqing.png


二进制
html/yszx/images/btn_pingjiayisheng.png


二进制
html/yszx/images/btn_shangla.png


二进制
html/yszx/images/btn_xiala.png


二进制
html/yszx/images/gouxuan002_icon.png


二进制
html/yszx/images/gouxuan_btn.png


二进制
html/yszx/images/gouxuan_btn_pre.png


二进制
html/yszx/images/guanbi_btn.png


二进制
html/yszx/images/icon_daipingjia.png


二进制
html/yszx/images/icon_liangsewujiaoxing.png


二进制
html/yszx/images/icon_pingjiacheng.png


二进制
html/yszx/images/icon_shiming.png


二进制
html/yszx/images/icon_wujiaoxing.png


二进制
html/yszx/images/icon_yipingjia.png


二进制
html/yszx/images/jianpang_icon.png


二进制
html/yszx/images/jiantou_shang_btn.png


二进制
html/yszx/images/jiantou_xia_btn.png


二进制
html/yszx/images/jiating_btn.png


二进制
html/yszx/images/jiating_pre.png


二进制
html/yszx/images/jinxingzhong_icon.png


二进制
html/yszx/images/manbing_btn.png


二进制
html/yszx/images/manbing_pre.png


二进制
html/yszx/images/manbingguanli_icon.png


二进制
html/yszx/images/manbingguanli_icon_pre.png


二进制
html/yszx/images/manbingguanli_xuanzhong_icon.png


二进制
html/yszx/images/mingyizixun_icon.png


二进制
html/yszx/images/mingyizixun_xuanzhong_icon.png


二进制
html/yszx/images/more-tb1.png


二进制
html/yszx/images/quxiao_btn.png


二进制
html/yszx/images/quxiao_pre.png


二进制
html/yszx/images/sanshi_btn.png


二进制
html/yszx/images/sanshi_pre.png


二进制
html/yszx/images/tuoyuan.png


二进制
html/yszx/images/tupian_icon.png


二进制
html/yszx/images/tw-add.png


二进制
html/yszx/images/wuneirong_icon.png


二进制
html/yszx/images/xiaoshiping_icon.png


二进制
html/yszx/images/xitongtixing_im_icon.png


二进制
html/yszx/images/xuanfu_btn.png


二进制
html/yszx/images/xuanfuguanbi_icon.png


二进制
html/yszx/images/xuanfutianjia_icon.png


二进制
html/yszx/images/xufangshenqing_icon.png


二进制
html/yszx/images/xunfangxinxi_icon.png


二进制
html/yszx/images/yijieshu_icon.png


二进制
html/yszx/images/yisheng_bg.png


二进制
html/yszx/images/yiyuanjianzhu_icon.png


二进制
html/yszx/images/youshanjiao_bg.png


二进制
html/yszx/images/yuyin-2.gif


二进制
html/yszx/images/yuyin.gif


二进制
html/yszx/images/yuyin2_icon.png


二进制
html/yszx/images/yuyin3.gif


二进制
html/yszx/images/yuyin4_icon.png


二进制
html/yszx/images/yuyin_icon.png


二进制
html/yszx/images/yuying_icon.png


二进制
html/yszx/images/yuying_icon5.png


二进制
html/yszx/images/zixunjihua_icon.png


二进制
html/yszx/images/zuoshanjiao_bg.png


+ 259 - 0
html/yszx/js/add-prescription-consult.js

@ -0,0 +1,259 @@
var d = dialog({contentType:'load', skin:'bk-popup'});
var d2 = dialog({contentType:'load', skin:'bk-popup'});
var dd = dialog({contentType:'load', skin:'bk-popup', content:'提交中...'});
var request = GetRequest();
var patientCode = request['patient'],
    patientName = decodeURI(request['name']),
    prescriptionCode = request['prescriptionCode']; //处方的code
var jw_code = request['jw_code']
var baseInfo = {};
mui.init();
//初始化单页view
var viewApi = mui('#app').view({
    defaultPage: '#main'
});
var view = viewApi.view;
(function($) {
    //处理view的后退与webview后退
    var oldBack = $.back;
    $.back = function() {
        if (viewApi.canBack()) { //如果view可以后退,则执行view的后退
            viewApi.back();
        } else { //执行webview后退
            oldBack();
        }
    };
    //监听页面切换事件方案1,通过view元素监听所有页面切换事件,目前提供pageBeforeShow|pageShow|pageBeforeBack|pageBack四种事件(before事件为动画开始前触发)
    //第一个参数为事件名称,第二个参数为事件回调,其中e.detail.page为当前页面的html对象
    view.addEventListener('pageBeforeShow', function(e) {
        console.log(e.detail.page.id + ' beforeShow');
        if(e.detail.page.id == "list"){
            //显示处方列表页面
//          reloadListImage();
            var list = listPage();
            list.initPage();
        }else if(e.detail.page.id == "main"){
            console.log("back to main");
            prescriptionCode = window.localStorage.getItem("prescriptionCode");
            window.localStorage.removeItem("prescriptionCode");
            getPrescriptionDetail(prescriptionCode);
        }
    });
    view.addEventListener('pageShow', function(e) {
//      console.log(e.detail.page.id + ' show');
    });
    view.addEventListener('pageBeforeBack', function(e) {
//      console.log(e.detail.page.id + ' beforeBack');
    });
    view.addEventListener('pageBack', function(e) {
//      console.log(e.detail.page.id + ' back');
    });
})(mui);
$(function(){
    //判断是否可以续方咨询,并且获得咨询对象的信息
    isPrescriptionConsult();
    if(jw_code){
        //获得处方信息
        getPrescriptionDetail(jw_code);
    }else if(prescriptionCode){
        //获得处方信息
        getPrescriptionDetail(prescriptionCode);
    }
    bindEvents();
});
//判断是否可以续方咨询,并且获得咨询对象的信息
function isPrescriptionConsult(){
    d2.show();
    var url = '/patient/consult/isPrescriptionConsult',
        params = {patient: patientCode};
    sendPost(url, params, 'json', 'get', queryFailed, function(res){
        if(res.status == 200){
        	d2.close()
            baseInfo = res.data;
            $("#patientName").text(patientName);
            $("#docName").text(baseInfo.doctorName);
            $("#checkDocName").text(baseInfo.doctorName);
            $("#dept").text(baseInfo.hospitalName);
            //增加续方说明选择文本
            var html = template('explain_tmp', {list: res.data.prescriptionExplain});
            $("#explain").empty().append(html);
        }else{
            queryFailed(res);
        }
    });
}
//获得处方信息
function getPrescriptionDetail(code){
    //TODO 
    d.showModal();
    var url = '/patient/prescriptionInfo/getPrescription',
        params = {code: code};
    sendPost(url, params, 'json', 'get', queryFailed, function(res){
        if(res.status == 200){
            d.close();
            var str = "";
            for(i=0; i<res.data.prescriptionDt.length; i++){
                str += res.data.prescriptionDt[i].healthProblemName+" ";
            }
            for(j=0; j<res.data.prescriptionInfo.length; j++){
                if(j < 2){
                    var item = res.data.prescriptionInfo[j];
                    str += item.drugName + ' ' + item.num+item.drugNumUnitName+' ';
                }
            }
            $("#preInfo").text(str);
        }else{
            queryFailed(res);
        }
    });
}
function bindEvents(){
    $("#consultType").mobiscroll({
        theme: 'ios',
        lang: 'zh',
        customWheels: true,
        wheels: [
            [{
                keys: [1,2,3],
                values: ['高血压-续方咨询', '糖尿病-续方咨询','高&糖-续方咨询']
            }]
        ],
        onSelect: function(valueText, inst){
            var dd = eval("[" + valueText + "]"),
                k = dd[0].keys,
                v = dd[0].values;
            $("#consultType").val(v);
            $("#consultType").attr("data-type", k);
        }
    });
    
    
//  $("#preInfo").on('click', function(){
//      //跳转去处方选择页面时,缓存textarea内的信息
//      var text = $("textarea").val().trim();
//      if(text.length > 0){
//          window.localStorage.setItem("precontent", text);
//      }
//      window.location.href = "prescription-selection.html";
//  });
    
    $("textarea").on("input", function(){
        var text = $(this).val().trim(),
            len = text.length;
        $("#count").text(len);
    });
    
    //选择续方说明文本,直接将内容添加到textarea中
    $("#explain").on('click', '.text-tag', function(){
        var $this = $(this),
            text = $this.text(),
            tatext = $("textarea").val();
        if($this.hasClass("active")){
            $this.removeClass("active");
            var a = tatext.split(text);
            tatext = a.join("");
            $("textarea").val(tatext);
            $("#count").text(tatext.length);
        }else{
            $this.addClass("active");
            tatext += text;
            $("textarea").val(tatext);
            $("#count").text(tatext.length);
        }
    });
    
    var count = 0;
    $("#commit").on('click', function(){
        count ++;
        if(count > 1){
            return false;
        }
        //判断是否选择了咨询类型
        var consultType = $("#consultType").val();
        if(!consultType){
            dialog({
                contentType: 'tipsbox',
                content: '请选择咨询类型',
                skin:'bk-popup',
                closeTime: 2000
            }).showModal();
            count = 0;
            return false;
        }
        
        //判断是否存在处方信息
        if(!jw_code && !prescriptionCode){
            dialog({
                contentType: 'tipsbox',
                content: '请选择需要续方的处方记录',
                skin: 'bk-popup',
                closeTime: 2000
            }).showModal();
            count = 0;
            return false;
        }
        
        d.showModal();
        var url = "/patient/consult/addPrescriptionConsult",
            params = {
                jwCode: prescriptionCode || jw_code, //处方的code
                doctor: baseInfo.doctor,
                adminTeamId: baseInfo.adminTeamId,
                reason: $("textarea").val().trim(),
                type: $("#consultType").attr("data-type")
            };
        sendPost(url, params, 'json', 'post', queryFailed, function(res){
            count = 0;
            d.close()
            if(res.status == 200){
            	dialog({
			        content: '已提交咨询,是否填写随访调查,作为医生审核续方的参考数据',
			        okValue:'是',
			        cancelValue: '否',
					cancel: function () {
						window.location.href = "prescription-consulting.html?consult="+res.data.consult+"&toUser="+patientCode;
					},
			        ok: function (){				            		
			        	window.location.href = "suifangdiaocha.html?consult="+res.data.consult+"&prescriptionCode="+res.data.relationCode;
			        }
				}).showModal()
            }else{
                queryFailed(res)
            }
        })
    })
    
//  window.onpageshow = function(){
//      var isReload = window.localStorage.getItem('reload');
//      if(isReload){
//          window.localStorage.removeItem('reload');
//          var ua = navigator.userAgent;
//          if(ua.toLowerCase().indexOf('iphone') > -1){
//              window.location.reload();
//          }
//      }
//  }
}
function queryFailed(res, message){
    d.close();
    if(message){
        dialog({contentType:'tipsbox',bottom:true, skin:'bk-popup' , content: message}).show();
    }else{
        if (res && res.msg) {
            dialog({contentType:'tipsbox',bottom:true, skin:'bk-popup' , content:res.msg}).show();
        } else {
            dialog({contentType:'tipsbox',bottom:true, skin:'bk-popup' , content:'加载失败'}).show();
        }
    }
    
}

+ 1317 - 0
html/yszx/js/consulting-doctor.js

@ -0,0 +1,1317 @@
var d = dialog({contentType:'load', skin:'bk-popup'});
var dd = dialog({contentType:'load', skin:'bk-popup', content:'发送中...'});
var dialroll;			
var doctorInfo;
var content = "";	
var timeStr = "";
var id = 1;
var pagesize = 500;
var Request = new Object();
Request = GetRequest(); 
var consult = Request["consult"];
var status = Request["status"];
var doctorType  = Request["type"];
var doctor = Request['doctor'];
var toUser = Request["toUser"];
var toName = decodeURIComponent(Request["toName"]);
var openid = Request["openid"];
var represented = Request["represented"];
//var evaluate = localStorage.getItem("evaluate");//1为有评价 0为无评价
var evaluate = 0;
var docMsg = 0;	
var patientcode = "";	
var pagetype=24;
var networkStatus = "";
var userAgent = window.localStorage.getItem(agentName);
var userInfo = '';
$(function() {
	if(!userAgent) {
		localStorage.setItem("toUser",toUser);
		localStorage.setItem("consultCode",consult);
        window.location.href = "../../home/html/zhmm-login.html?openid=" + openid+"&type="+pagetype;
		return false;	
	}
	
	var newUaObj = JSON.parse(window.localStorage.getItem(agentName))
	
	patientcode = newUaObj.represented?newUaObj.represented:newUaObj.uid;
	
	//判断关系
	function hasFamilyRelation(a,b){
		return new Promise(function(resolve, reject) {
			var data={
				patient:a,
				familyMember:b
			}
			sendPost("patient/family/is_authorize", data, "json", "get", function(res){
				dialog({contentType:'tipsbox',bottom:true, skin:'bk-popup' , content:'请求家庭成员关系失败'}).show(); 
			}, function(res){
				if(res.status == 200) {
					window.localStorage.setItem('nowPatientName',res.data.name);
					resolve(res)
				}else if(res.status == 100) {
					dialog({
						content:'对不起,'+res.data.name+'未授权给您,如需查看,请切换'+res.data.name+'账号登录',
						okValue:'切换账号',
						ok: function() {
							window.localStorage.setItem(pageName, JSON.stringify({pageurl: location.href}))
							window.location.href = "../../grzx/html/change-login.html?type=0&openid="+ Request["openid"];
						},
						cancelValue: '我不看了',
						cancel: function () {
							wx.closeWindow();
			            }
					}).showModal();
				}else{
					relogin();
				}
				
			})
		})
	}
	//重新登录操作
	function relogin(){
		dialog({
			content:'对不起,该消息是发给'+toName+',如需查看,请切换'+toName+'账号登录',
			okValue:'切换账号',
			ok: function() {
				window.localStorage.setItem(pageName, JSON.stringify({pageurl: location.href}))
				window.location.href = "../../grzx/html/change-login.html?type=0&openid="+ Request["openid"];
			},
			cancelValue: '我不看了',
			cancel: function () {
				wx.closeWindow();
            }
		}).showModal();
	}
	//保存信息
	function saveUserInfo(a,b){
		Promise.all([hasFamilyRelation(a,b)]).then(function () {
			newUaObj.represented = represented;
			window.localStorage.setItem(agentName,JSON.stringify(newUaObj));
			userInfo = JSON.parse(window.localStorage.getItem(agentName));
			bindEvents();
			checkStatus();
		})
	}
	
	function initFamilyData () {
		//从微信模板消息进入
		if(represented && userAgent && toUser){
			if(toUser == represented){
				saveUserInfo(represented,newUaObj.uid)
			}else if(toUser != represented && represented == newUaObj.uid){
				//本人代理
				saveUserInfo(represented,newUaObj.uid)
			}else if(toUser != represented && toUser == newUaObj.uid){
				//需要判定关系 200有授权 100家人 1无关系	
				saveUserInfo(represented,newUaObj.uid)
			}else{
				//重新登录	
				relogin();
			}
		}else{
			userInfo = JSON.parse(window.localStorage.getItem(agentName));
			bindEvents();
			checkStatus();
		}		
	}
	initFamilyData();
	
	//点击内容区域输入框失焦
	$('#talkwrap').click(function(){
		$("#input_content").blur();
	    return false;
    });
	//发送以后定位至最底部
	$("#reply a").click(function() {
		send();
	});	
	//从后台那边获取签名等信息
	var params = {};
	var url1 = window.location.href;
	params.pageUrl = url1;
	$.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({
				    appId: appId, // 必填,公众号的唯一标识
				    timestamp: t, // 必填,生成签名的时间戳
				    nonceStr: noncestr, // 必填,生成签名的随机串
				    signature: signature,// 必填,签名,见附录1
				    jsApiList: [
				    	'chooseImage',
				        'uploadImage',
				        'startRecord',
				        'stopRecord',
				        'onVoiceRecordEnd',
				        'playVoice',
				        'pauseVoice',
				        'stopVoice',
				        'onVoicePlayEnd',
				        'uploadVoice',
				        'getNetworkType'
				    ] // 必填,需要使用的JS接口列表,所有JS接口列表见附录2
				});
				
				// config信息验证后会执行ready方法,所有接口调用都必须在config接口获得结果之后,config是一个客户端的异步操作,所以如果需要在页面加载时就调用相关接口,则须把相关接口放在ready函数中调用来确保正确执行。对于用户触发时才调用的接口,则可以直接调用,不需要放在ready函数中。
				wx.ready(function(){
					wx.getNetworkType({
						success: function (res) {
							 networkStatus = res.networkType; // 返回网络类型2g,3g,4g,wifi
						}
					});
				});
			} 
		}
	});
	
	//获取sessionId
	sendPost('/patient/consult/getTopic', {consult:consult}, 'json', 'GET', queryFailed2, function(res){
		if(res.status==200){
			var sessionId = JSON.parse(res.msg)[0].session_id;
			//加载socket组件
			jQuery.getScript(imurl+"/socket.io/socket.io.js").done(function() {
				var socket = io.connect(imurl);
				var userInfo = JSON.parse(window.localStorage.getItem(agentName));	
		    	socket.emit('login', {userId: userInfo.represented?userInfo.represented:userInfo.uid, password: userInfo.represented?userInfo.represented:userInfo.uid,sessionId:sessionId,clientType:"patient"});
		    	socket.on('message', function (data) {
//		    		console.log(data)
		    		if((data.type == 1) ||(data.type == 2) || (data.type == 6) || (data.type == 12)){
		        	addReply(1, data.content, new Date(data.timestamp).Format('yyyy-MM-dd HH:mm:ss'), data.type, data.name,data.sender_img);    	
		        	setTimeout(function(){
						dialroll.refresh();
		    			dialroll.scrollTo(0, dialroll.maxScrollY);
					},300)
		        	}
		   		});
		
		    	socket.on('error', function (data) {
//		        	console.log(data);
		    	});
		
		    	socket.on('ack', function (data) {
//		        	console.log(data);
		    	});	
		    	function getLocalTime(nS) {     
		   			return new Date(parseInt(nS) * 1000).toLocaleString().replace(/:\d{1,2}$/,' ');     
				}    
		 	})
		 	.fail(function() {
		 		dialog({contentType:'tipsbox', skin:'bk-popup' ,bottom:true, content:"医生实时对话连接失败!"}).show();     
			});
	
		}
	});
	
	
});
//控制“发送”按钮的变化
function sendBtn() {
	var tval = $(".talk-input input").val();
	if (tval != "") {
		$(".talk-send a").removeClass("disab");
	} else {
		$(".talk-send a").addClass("disab");
	}
}
//控制页面高度
function winSize(h) {
	var totH = $(window).height();
	$("#talkwrap").height(totH - h);
}
function getDoctorWork(){
	if(doctorType=="6") {
		checkDoctorInWork(doctor);
	} else {
		sendPost('patient/sign_doctors', {patientCode:patientcode}, 'json', 'post', queryFailed, function(res){	
			if(res.status==200){
				var doctorArray = res.familyDoctors;//家庭
				if(doctorType==1){//三师
					doctorArray = res.teamDoctors
				}
				if(doctorArray){
					var doctorInfo ="";
					for(var j in doctorArray){
						if(doctorArray[j].level=="3"){
							doctorInfo = doctorArray[j];//取出健康管理师
							break;
						}
					}
				if(doctorInfo!=""){
					  checkDoctorInWork(doctorInfo.code);
					}
			    }
			}else{
				queryFailed(res);
			}
		})	
	}
	
}
function checkDoctorInWork(doctor){
	sendPost('patient/consult/is_doctor_working', {doctor:doctor}, 'json', 'post', queryFailed, function(res){
		if(res.status==200){
			if(res.data!=1){
				addReply(7, "医生不在工作时间,无法及时回复您的消息。<br/><a class='workhours' href='#'>查看工作时间!</a>", getNowFormatDate(),1, "系统消息");
				
				$(".workhours").on("click",function(){
					location.href='doctor-work-hours.html?doctor='+doctor;	
				});
				
				setTimeout(function(){
					dialroll.refresh();
					dialroll.scrollTo(0, dialroll.maxScrollY);
				},20);
			}
		}else{
			queryFailed(res);
		}		
	});
}
//判断记录的状态 
function checkStatus(){
	d.show();
	if(status == 0 || status == 1){
		if(status == 0){
			$("#divBottom").show();
			$("#finish_list").show();
		    winSize(102);
		}else{
			$("#divBottom").hide();
			$("#finish_list").hide();
		    winSize(0);
		}
		//页面初始化查询
		queryList();
		var pulldownAction = function() {
			getPage(this);
		};
		dialroll = iscrollAssist.newVerScrollForPull($('.pull-iscroll-wrap'), pulldownAction, null);
		dialroll.refresh();
		dialroll.scrollTo(0, dialroll.maxScrollY);
		$(window).resize(function() {
			if(status == 0){
				winSize(102);
			}
			else{
				winSize(0);
			}
		});
	}else{
		var data = {};
		data.consult = consult;
		sendPost('patient/consult/status', data, 'json', 'get', queryFailed, querySuccess);				
	}
}	
function queryFailed(res) {
	d.close();
	if (res && res.msg) {
		dialog({contentType:'tipsbox', skin:'bk-popup' ,bottom:true, content:res.msg}).show();      
	} else {
		dialog({contentType:'tipsbox', skin:'bk-popup' , bottom:true,content:'获取咨询记录状态失败'}).show(); 
	}
}
function querySuccess(res) {
	if (res.status == 200) {
		if(res.data == 0){
	        if(Request.type == "6" || Request.type == "1"){ //名医咨询和三师咨询均使用旧的页面
                $("#divBottom").show();
                $("#finish_list").show();
                $("#input_div").show();
                winSize(102);
            }else{
                //进行中的咨询跳转去签约管理页面的咨询tab显示
                //获取teamcode
                var url = "patient/sign_status",
                    params = {};
                sendPost(url, params, "json", "post", queryFailed, function(res1){
                    var teamCode = res1["teamCode_2"];
                    var signCode = res1["signCode_2"];
                    localStorage.setItem("signInfo_tab", "1");
                    if(doctor){
                        window.location.href = "../../qygl/html/sign_info.html?code="+signCode+"&teamCode="+teamCode+"&type=2&doctor="+doctor+"&consult="+consult;
                    }else{
                        var url2 = "/patient/consult/getConsult";
                        sendPost(url2, {consult: consult}, "json", "post", queryFailed, function(res2){
                            if(res2.status == 200){
                                var doctor = res2.data.doctor;
                                window.location.href = "../../qygl/html/sign_info.html?code="+signCode+"&teamCode="+teamCode+"&type=2&doctor="+doctor+"&consult="+consult;
                            }
                        })
                    }
                });
            }
		}else{
			$("#divBottom").hide();
			$("#finish_list").hide();	
			$("#input_div").hide();
			winSize(0);
			//新增评价状态  1、已评价 0、未评价
			var data = {};
			data.consult = consult;
			sendPost('patient/consult/evaluateStatus', data, 'json', 'get', queryFailed, function(res){
				if (res.status == 200) {
					evaluate = res.data;
					//显示评价按钮
		            if(evaluate == 0 && doctorType==2 ){
					    	$('#valFoot').show();
					    	$('#noval').show();
					    	$('#hasval').hide();
				    }else if(evaluate == 1 && doctorType==2){
					    	$('#valFoot').show();
					    	$('#noval').hide();
					    	$('#hasval').show();
				    }
				}else{
					queryFailed(res);
				}
			});
			
		}
		status = res.data;
		//聊天记录填充
	    queryList();
		var pulldownAction = function() {
			getPage(this);
		};
		dialroll = iscrollAssist.newVerScrollForPull($('.pull-iscroll-wrap'), pulldownAction, null);
		dialroll.refresh();
		dialroll.scrollTo(0, dialroll.maxScrollY);
		$(window).resize(function() {
			if(res.data == 0){
				winSize(102);
			}
			else{
				winSize(0);
			}
		});
		d.close();
	} 
	else{
		queryFailed(res);
	}
}
//页面初始化
function queryList(){				
	var data = {};
	data.consult = consult;
	data.page = id;
	data.pagesize = pagesize;
	sendPost('patient/consult/loglist', data, 'json', 'GET', queryFailed2, querySuccess2);
}
function queryMsg(logId,msgType){
	var data={};
	data.consult = consult;
	data.logId = logId;
	data.msgType=msgType;
	sendPost('patient/consult/oneLog', data, 'json', 'GET', queryFailed2, function(res){
		if(res.status==200){
			var reply = res.consult;
			if((reply.msgType == 1) || (reply.msgType == 2) || (reply.msgType == 6)){
			addReply(reply.type, reply.content, reply.time, reply.msgType, reply.doctorName, reply.photo);	
			setTimeout(function(){
				dialroll.refresh();
    			dialroll.scrollTo(0, dialroll.maxScrollY);
			},300)
			}
		
		}
		d.close();
	});
	
	
}
function queryFailed2(res) {
	d.close();
	if (res && res.msg) {
		dialog({contentType:'tipsbox', skin:'bk-popup' ,bottom:true, content:res.msg}).show();      
	} else {
		dialog({contentType:'tipsbox', skin:'bk-popup' ,bottom:true, content:'加载失败'}).show(); 
	}
}
function querySuccess2(res) {
	if (res.status == 200) {	
		id++;
		res = res.list;
		var doctorPar = [];//储存参与咨询的医生
			for(var k in res.users){
				if(res.users[k].is_patient == 0 && res.users[k].id==doctor){
					doctorPar.push(res.users[k])
				}else if(res.users[k].is_patient == 0 && res.users[k].id!=doctor){
					doctorPar.unshift(res.users[k])
				}
			}
			doctorPar=JSON.stringify(doctorPar)
			window.localStorage.setItem('doctorPar',doctorPar);
		
		var list = res.list;
		if (list && list.length > 0) {			
			docMsg = list[list.length - 1].content_type;
			var doctor = "";
			for (var j = list.length-1; j >=0; j--) {								
				var reply = JSON.parse(list[j]);
				//type为1时,医生发的
				if((reply.content_type == 3) || (reply.content_type == 1) || (reply.content_type == 2) || (reply.content_type == 6) || (reply.content_type == 12)){
					var date = new Date();
					date.setTime(reply.timestamp);
					var time = date.format('yyyy-MM-dd hh:mm:ss');
					var p;
					
					for(var k in res.users){
						if(res.users[k].id==reply.sender_id){
							p = res.users[k].avatar;
						}
					}
					addReply(reply.sender_id==patientcode? 2 : 1, reply.content, time, reply.content_type, reply.sender_name, p);
				}
			}
			if(status==0){
				getDoctorWork();
			}
			dialroll.refresh();
			dialroll.scrollTo(0, dialroll.maxScrollY);
		}
		d.close();
	} 
	else{
		queryFailed2(res);
	}
}
function getNowFormatDate() {
    var date = new Date();
    var seperator1 = "-";
    var seperator2 = ":";
    var month = date.getMonth() + 1;
    var strDate = date.getDate();
    if (month >= 1 && month <= 9) {
        month = "0" + month;
    }
    if (strDate >= 0 && strDate <= 9) {
        strDate = "0" + strDate;
    }
    var currentdate = date.getFullYear() + seperator1 + month + seperator1 + strDate
            + " " + date.getHours() + seperator2 + date.getMinutes()
            + seperator2 + date.getSeconds();
    return currentdate;
} 
//点击发送按钮
function send(){
	content = $("#input_content").text().replace(/\s+/g,"");
	if (content && content != null && content != "") {
		var now = new Date();
		timeStr = "";
		if(now.getMonth()<9){
			//补0
			timeStr = now.getFullYear() + "-0"+ (now.getMonth()+1) + "-" +now.getDate() +' '
			+ now.getHours() + ":" +now.getMinutes() + ":" +now.getSeconds();
		}else{
			timeStr = now.getFullYear() + "-"+ (now.getMonth()+1) + "-" +now.getDate() +' '
			+ now.getHours() + ":" +now.getMinutes() + ":" +now.getSeconds();
		}
		$("#input_content").blur();
		dialroll.refresh();
	    dialroll.scrollTo(0, dialroll.maxScrollY);
//		dd.showModal();
		var data = {};
		data.consult = consult;
		data.content = utf16toEntities(content);
		data.type = 1;
		sendPost('patient/consult/append', data, 'json', 'post', submitFailed, submitSuccess);
	} else {
		return;
	}
}
function submitFailed(res) {
	dd.close();
	if (res && res.msg) {
		dialog({contentType:'tipsbox', skin:'bk-popup' ,bottom:true, content:res.msg}).show();      
	} else {
		dialog({contentType:'tipsbox', skin:'bk-popup' ,bottom:true, content:'发送失败'}).show();
	}
}
function submitSuccess(res) {
	if (res.status == 200) {
		//置空
		$("#input_content").text("");
		$(".talk-send a").addClass("disab");
		addReply(2, content, timeStr, 1, "");
		dialroll.refresh();
		dialroll.scrollTo(0, dialroll.maxScrollY);
		showSendBtn(false);
		dd.close();
	} else {
		submitFailed(res);
	}
}
//回复单条内容填写
var defaultPhoto = "../../../images/p-default.png";
var doctorDefaultPhoto = "../../../images/d-default.png";
function addReply(type, content, time, msgType, doctorName,photo,prepend) {
	//time = time.substr(10);
	var doctorPhoto = photo ? getImgUrl(photo) : doctorDefaultPhoto;
	var $div = $("<dl></dl>");
	
	if(type == 7){
		if(prepend){
			$(".talk-box").prepend('<div class="time-tips"><span class="xt-xiaoxi">' + content + '</span></div>');
		} else
			$(".talk-box").append('<div class="time-tips"><span class="xt-xiaoxi">' + content + '</span></div>');
		return;
	} 
		
	if (type == 1) {
		$div.addClass('chat-left');
		img = doctorPhoto;
		name = doctorName;
	} else {
		$div.addClass('chat-right');
		img = photo?getImgUrl(photo):defaultPhoto;
		defaultPhoto = img;
		name = window.localStorage.getItem("nowPatientName");
	}
	
	var temp = 	'<dt style="height: auto; text-align: center;"><a><img src="' + img + '" class="c-images-cycle" /></a></dt>' +
				'<div class="c-content"><span class="c-f12 name">' + name + '</span>'
	
	switch(parseInt(msgType)) {
		case 1://信息
		case 6://咨询问题
			temp += '<dd class="word-bread"><span>' + content + '</span></dd></dl>';
			break;
		case 2://图片
			temp += '<dd class="word-bread wb-img"><img width="100" height="100" src="'+ getImgUrl(content) +'" /></dd></dl>';
			break;
		case 3://语音
			var rec = JSON.parse(content);
			temp += "<div class='c-msg'><dd class='word-bread audio' data-type='3' data-audio='" + getImgUrl(content) + "'>"+
						"<div class='soundWav'>" +
	   						"<span class='soundWavT'>"+(rec? rec.times: "") +"\'\'</span>"+
						"</div>"+
					"</dd></div>";
			break;
		case 12://视频
			var videoInfo = content.split(",");
			var shichang = formatSeconds(videoInfo[2]);//时长
			if(type == 1){
				temp += '<dd class="preview-video" data-video="'+getImgUrl(videoInfo[1])+'">'+
						'<img class="video-img-left" src="'+getImgUrl(videoInfo[0])+'">'+
						'<img class="bofang-icon-left" src="../images/bofang_icon.png">'+
						'<img class="jianjiao-icon-left" src="../images/zuoshanjiao_bg.png">'+
						'<span class="shichang-time-left">'+shichang+'</span>'+
					'</dd>';
			}else{
				temp += '<dd class="preview-video" data-video="'+getImgUrl(videoInfo[1])+'">'+
						'<img class="video-img-right" src="'+getImgUrl(videoInfo[0])+'">'+
						'<img class="bofang-icon-right" src="../images/bofang_icon.png">'+
						'<img class="jianjiao-icon-right" src="../images/youshanjiao_bg.png">'+
						'<span class="shichang-time-right">'+shichang+'</span>'+
					'</dd>';
			}
			
		   break;
	}
	
	if(prepend){
		$(".talk-box").prepend($div.append(temp)).prepend('<div class="time-tips"><span>' + time + '</span></div>');
	} else
		$(".talk-box").append('<div class="time-tips"><span>' + time + '</span></div>').append($div.append(temp));
	
	if(type != null && type != 1) {
		$(".tw-add-detail").hide(200);
	}
}
//毫秒转换成时分秒
function formatSeconds(value) {
    var theTime = parseInt(value/1000);// 秒
    var theTime1 = 0;// 分
    var theTime2 = 0;// 小时
    if(theTime > 60) {
        theTime1 = parseInt(theTime/60);
        theTime = parseInt(theTime%60);
            if(theTime1 > 60) {
	            theTime2 = parseInt(theTime1/60);
	            theTime1 = parseInt(theTime1%60);
            }
    }
    var result = ""+parseInt(theTime);//秒
    if(parseInt(theTime)<=9){
    	result = "0"+parseInt(theTime);//秒
    }
    if(theTime1 > 0) {//分
    	if(parseInt(theTime1)>9){
    		result = ""+parseInt(theTime1)+":"+result;
    	}else{
    		result = "0"+parseInt(theTime1)+":"+result;
    	}
    }
    if(theTime2 > 0) {//小时
    	if(parseInt(theTime2)>9){
    		result = ""+parseInt(theTime2)+":"+result;
    	}else{
    		result = "0"+parseInt(theTime2)+":"+result;
    	}
    }
    var resResult = "";
    if(result.split(":").length==1){//秒
    	resResult = "00:"+result;
    }else if(result.split(":").length==2){//分
    	resResult = "00:"+result;
    }else{//时
    	resResult = result;
    }
    return resResult;
}
//向上拉取更多
function addReplyBefore(type, content, time, msgType, doctorName) {
	//time = time.substr(10);
	var doctorPhoto = doctorDefaultPhoto;
	var patientPhoto = defaultPhoto;
	var $div = $("<div></div>");
	if (type == 1) {
		if(msgType == 2){
			$div.addClass('talk-left');
			$div.addClass('clearfix');
			$div.html('<div class="leftpart"><img src="'+doctorPhoto+'" /><p style="font-size: 13px; text-align: center;max-width: 40px;">'+ doctorName + '</p></div> '
	                 +'<span class="talktime" style="width: 100%; left: 70px; top:-10px;">' + time+'</span>'
					 +'<div class="rightpart">'										
					 +'	<s class="rightjt jt-left"><s></s></s><img style="height: 150px; width: 100px;" src="'+getImgUrl(content)+'" onclick="viewImg(this)"/>'
					 +'</div>');
		}
		else{
			$div.addClass('talk-left');
			$div.addClass('clearfix');
			$div.html('<div class="leftpart"><img src="'+doctorPhoto+'" /><p style="font-size: 13px; text-align: center;max-width: 40px;">'+ doctorName + '</p></div> '
			         +'<span class="talktime" style="width: 100%; left: 70px; top:-10px;">' + time+'</span>'
					 +'<div class="rightpart">'
					 +'	<s class="rightjt jt-left"><s></s></s>'+content
					 +'</div>');
		}
						
	} else {
		if(msgType == 2){
			$div.addClass('talk-right');
			$div.addClass('clearfix');
			$div.html('<div class="leftpart"><img src="'+patientPhoto+'" /></div> '
			         +'<span class="talktime" style="width: 100%; position:absolute; right:-45%; top:-10px; float: right;">'+time+'</span>'
				     +'<div class="rightpart">'										
				     +'	<img style="height: 150px; width: 100px;" src="'+getImgUrl(content)+'" onclick="viewImg(this)"/>'
					 +'</div>');
		}
		else{
			$div.addClass('talk-right');
			$div.addClass('clearfix');
			$div.html ('<div class="leftpart"><img src="' + patientPhoto + '" /></div>'
			         + '<span class="talktime" style="width: 100%; position:absolute; right:-45%; top:-10px; float: right;">' + time + '</span>'
					 + '<div class="rightpart">' +  content + '</div>');
		}				
	}
	$(".talk-box").prepend($div);
}
//页面初始化
function getPage(t){
//	$(".talk-box").html("");
	var data = {};
	data.consult = consult;
	data.page = id;
	data.pagesize = pagesize;
	$.ajax(server + "patient/consult/loglist", {
		data: data,
		type: 'POST',
		dataType: 'json',
		beforeSend: function(request) {
            request.setRequestHeader("userAgent", userAgent);
        },
		error: function(res) {
			if(res.status == 999 || res.status == 998 || res.status == 997){
				loginUrl(res.status);
				return;
			}
			dialog({contentType:'tipsbox', skin:'bk-popup' ,bottom:true, content:"加载失败"}).show(); 
		},
		success: function(res) {
			if(res.status == 999 || res.status == 998 || res.status == 997){
				loginUrl(res.status);
			}
			else if (res.status == 200) {
				id++;
				var list = res.list;
				if (list && list.length > 0) {
					id = list[list.length - 1].id;								
					for (var j = 0; j < list.length; j++) {									
						var reply = list[j];
						//type为1时,医生发的
						if((reply.msgType == 1)|| (reply.msgType == 3) || (reply.msgType == 2) || (reply.msgType == 6)){
						addReply(reply.type, reply.content, reply.time, reply.msgType, reply.doctorName, reply.photo, true);
					    }
					}
				}
				t.refresh();
			} else {
				dialog({contentType:'tipsbox', skin:'bk-popup' ,bottom:true, content:res.msg}).show(); 
			}					
		}
	});	
}
//结束咨询
function finish(){
	dialog({
        content:'是否确认结束该次咨询?结束后医生将无法回复',
        ok: function (){
	        var params = {}
	        params.code = consult;		        		        
			//发送ajax请求, 查询设备列表信息
			sendPost("patient/consult/finish", params, "json", "post", submitFailed3,finish_Successs);
			function finish_Successs(res){
				if (res.status == 200) {
					location.reload();
//					window.location.href = "doctor-consultation.html";
				}
				else{
					submitFailed3(res);
				}
			}					
        },
        cancel: function () {
			return;
        }
	}).showModal();
}			
function submitFailed3(res) {
	if (res && res.msg) {
		dialog({contentType:'tipsbox', skin:'bk-popup' ,bottom:true, content:res.msg}).show();      
	} else {
		dialog({contentType:'tipsbox', skin:'bk-popup' ,bottom:true, content:'操作失败'}).show();
	}
}
//查看图片
function viewImg(dom) {
	var $img = $(dom);
	var thissrc = $img.attr("src");
	var mWid = $(window).width();
	var mHei = $(window).height();
	var nHtml = '<div class="delimgpop"><div class="del-img-box"><div class="del-img-con"><img class="del-pop-img" src="' + thissrc + '" style="max-width:' + mWid + 'px; max-height:' + mHei + 'px;"></div></div></div>';
	$("body").append(nHtml);
	$(".delimgpop").click(function() {
		$(this).remove()
	});
}
//微信上传图片
var serverId = "";
var images = [];
function chooseImageWx(){
	wx.chooseImage({
		count: 3,
        success: function (res) {
	        for (var i in res.localIds) {
	        	images.push(res.localIds[i]);
			} 
			dd.showModal();
			uploadImage();
        }
    });
}
function uploadImage(){
	if (images.length == 0) {
		dd.close();
        return;
   }
    var i = 0, length = images.length;
    serverId = "";
    var faillength = 0 ;
    function upload() {
	     wx.uploadImage({
	        localId: images[i],
	        isShowProgressTips: 0,
	        success: function (res) {
	        	faillength= 0;
	        	dd.close();
		        i++;
		        if(serverId.length == 0){
		        	serverId = res.serverId;
		        }
		        else{
		        	serverId =serverId + "," + res.serverId;
		        }          
		        if (i < length) {
		        	upload();
		        }
		        if(i == images.length){
		        	sendImages();
		        }          
	        },
	        fail: function (res) {
	          dd.close();
	          faillength+=1;
	          if(faillength<=5){
	          //失败从传
	          	upload();
	          }else{
	          	dialog({contentType:'tipsbox', skin:'bk-popup' ,bottom:true, content:"图片上传失败,请控制发送频率"}).show();
	          }
	        }
	    });
    }
    upload();
}
//保存图片
function sendImages(){
	var now = new Date();
	timeStr = "";
	if(now.getMonth()<9){
		//补0
		timeStr = now.getFullYear() + "-0"+ (now.getMonth()+1) + "-" +now.getDate() +' '
		+ now.getHours() + ":" +now.getMinutes() + ":" +now.getSeconds();
	}else{
		timeStr = now.getFullYear() + "-"+ (now.getMonth()+1) + "-" +now.getDate() +' '
		+ now.getHours() + ":" +now.getMinutes() + ":" +now.getSeconds();
	}	
	var data = {};
	data.consult = consult;
	data.content = "";
	data.mediaIds = serverId;
	data.type = 2;
	data.times = 0;
	sendPost('patient/consult/append', data, 'json', 'post', submitFailed, submitImageSuccess);
}
function submitImageSuccess(res) {
	if (res.status == 200) {
		var data= JSON.parse(res.data)
		dd.close();
		addReply(2, data.content, timeStr, 2, "");
		dialroll.refresh();
		dialroll.scrollTo(0, dialroll.maxScrollY);		
	} else {
		submitFailed(res);
	}
}
var aud = document.getElementById('audio');
var $playingDom;
function playSoundEnd(){
	$playingDom.removeClass('active');
	$playingDom = null;
}
function playError(){
	var src = $('#audio').attr('src');
	if(!$.trim(src)) {
		return ;
	}
	dialog({contentType:'tipsbox', skin:'bk-popup' ,bottom:true, content:"播放语音失败"}).show();
	$playingDom.removeClass('active');
	$playingDom = null;
}
$('.talk-box').on('click', '.word-bread img', function(){
	if(!$(this).closest(".word-bread").hasClass("preview-video")){
		var urls = [];
		$.each($('.word-bread img'), function(i, v) {
			urls.push($(v).attr('src'));
		});
		wx.previewImage({
		    current: $(this).attr('src'), // 当前显示图片的http链接
		    urls: urls // 需要预览的图片http链接列表
		});
	}
})
.on('touchstart', '.audio', function(){
	if($playingDom){
		aud.pause();
		//aud.stop();
		$playingDom.removeClass('active');
		if($playingDom[0] == this){
			$playingDom = null;
			return;
		}
	}
	$playingDom = $(this);
	$playingDom.addClass('active');
	var ser = JSON.parse($(this).attr('data-audio'));
	aud.src = getImgUrl(ser.path);
	aud.load();
	aud.play();
})
.on('click','.preview-video',function() {
		$(document.body).find('video').remove();
		var url = $(this).attr('data-video');
		var html = '<video style="display: none;"  controls preload="auto" width="1" height="1" src="'+url+'" ></video>';
		$(document.body).append(html);
		var video = $(document.body).find('video')[0];
		video.play();
});
var valLen = 0;
var $ipt_content = $('#input_content');
function showSendBtn(isShow){
	if(isShow){
		$('.tw-add').hide();
		$('#reply').fadeIn('fast', 'swing');
	} else if(valLen == 1 || isShow==false){
		$('#reply').fadeOut('fast', 'swing', function(){
			$('.tw-add').show();
		});
	}
	valLen = isShow ? isShow.length : 0;
}
/**
 * 显示发送按钮的事件
 */
$ipt_content.on('input', function(e){
	showSendBtn($(this).text())
})
.on('tap', function(){
	$(".tw-add-detail").hide();
	$ipt_content.focus();
})
/*
 * 附加功能
 */
$(".tw-add").click(function() {
	$(".tw-add-detail").toggle(200);
});
$('body')
//隐藏打开的附加功能
.on('tap', '#talkwrap', function(){
	$('.tw-add-detail').hide();
	$ipt_content.blur();
})
$(".yy-add").click(function() {
	if($('#msg-sound:visible').length){
		$ipt_content.show();
		ui.boxMsgSound.style.display = 'none';
		$(this).find('img:eq(0)').show().next().hide();
	} else {
		$ipt_content.hide();
		ui.boxMsgSound.style.display = 'block';
		$(this).find('img:eq(0)').hide().next().show();
	}
});
mui.init({
	gestureConfig:{
   		hold:true,//默认为false,不监听
		release:true//默认为false,不监听
	}
});
var recordCancel = false;
var recorder = null;
var audio_tips = document.getElementById("audio_tips");
var startTimestamp = null;
var stopTimestamp = null;
var stopTimer = null;
var MIN_SOUND_TIME = 500;
var ui = {
	body: document.querySelector('body'),
	btnMsgType: document.querySelector('#msg-type'),
	boxMsgText: document.querySelector('#msg-text'),
	boxMsgSound: document.querySelector('#msg-sound'),
	btnMsgImage: document.querySelector('#msg-image'),
	areaMsgList: document.querySelector('#msg-list'),
	boxSoundAlert: document.querySelector('#sound-alert')
};
var recordTimer = null;
var realStartTime = 0;
ui.boxMsgSound.addEventListener("touchstart", function(e) {
	e.preventDefault();
    event.preventDefault();
    $(this).addClass('yy-hold');
    if(stopTimer)clearTimeout(stopTimer);
    recordCancel = false;
    audio_tips.innerHTML = "手指上划,取消发送";
	ui.boxSoundAlert.classList.remove('rprogress-sigh');
	setSoundAlertVisable(true);
    startTimestamp = new Date().getTime();
    recordTimer = setTimeout(function(){
        wx.startRecord({
        	success: function(){
        		realStartTime = new Date().getTime();
			},
            fail: recordErr
        });
        wx.onVoiceRecordEnd({
		    // 录音时间超过一分钟没有停止的时候会执行 complete 回调
		    complete: function (res) {
		        serverId = res.localId;
		        sendSounds(60);
		    }, 
		    fail: recordErr
	    });
    },MIN_SOUND_TIME);
}, false);
ui.boxMsgSound.addEventListener("touchend", function(e){
	e.preventDefault();
    event.preventDefault();
	$(this).removeClass('yy-hold');
	if (audio_tips.classList.contains("cancel")) {
		audio_tips.classList.remove("cancel");
		audio_tips.innerHTML = "手指上划,取消发送";
	}
    var endTimestamp = new Date().getTime();
    
    var times = endTimestamp - startTimestamp;
    var realTimes = endTimestamp - realStartTime;
    if(times < MIN_SOUND_TIME || realTimes < MIN_SOUND_TIME){
      	audio_tips.innerHTML = "录音时间太短";
		ui.boxSoundAlert.classList.add('rprogress-sigh');
		recordCancel = true;
		stopTimer=setTimeout(function(){
			setSoundAlertVisable(false);
		},500);
        startTimestamp = 0;
        realStartTime = 0;
        //小于300ms,不录音
        clearTimeout(recordTimer);
        wx.stopRecord({
          success: function (res) {
          },
          fail: function(){}
        });
    }else{
    	setSoundAlertVisable(false);
        wx.stopRecord({
          success: function (res) {
          	if(!recordCancel) {
	    	    serverId = res.localId;
	            sendSounds(Math.round(times/1000));
	        }
          },
          fail: recordErr
        });
    }
}, false)
					
ui.body.addEventListener('drag', function(event) {
	if (Math.abs(event.detail.deltaY) > 50) {
		if (!recordCancel) {
			recordCancel = true;
			if (!audio_tips.classList.contains("cancel")) {
				audio_tips.classList.add("cancel");
			}
			audio_tips.innerHTML = "松开手指,取消发送";
		}
	} else {
		if (recordCancel) {
			recordCancel = false;
			if (audio_tips.classList.contains("cancel")) {
				audio_tips.classList.remove("cancel");
			}
			audio_tips.innerHTML = "手指上划,取消发送";
		}
	}
}, false);
var setSoundAlertVisable=function(show){
	if(show){
		ui.boxSoundAlert.style.display = 'block';
		ui.boxSoundAlert.style.opacity = 1;
	}else{
		ui.boxSoundAlert.style.opacity = 0;
		//fadeOut 完成再真正隐藏
		setTimeout(function(){
			ui.boxSoundAlert.style.display = 'none';
		},200);
	}
};
function recordErr(res){
	if(res && res.errMsg == "stopRecord:tooshort") {
	    audio_tips.innerHTML = "录音时间太短";
		ui.boxSoundAlert.classList.add('rprogress-sigh');
		recordCancel = true;
		stopTimer=setTimeout(function(){
			setSoundAlertVisable(false);
		},500);
        startTimestamp = 0;
        //小于300ms,不录音
        if(recordTimer)clearTimeout(recordTimer);
        return;
	}
	if(!recordCancel){
		dialog({
			content:'录音失败,请重试',
			okValue:'我知道了',
			ok: function() {}
		}).showModal();
	}
}
//保存图片
function sendSounds(times){
	var now = new Date();
	timeStr = "";
	if(now.getMonth()<9){
		//补0
		timeStr = now.getFullYear() + "-0"+ (now.getMonth()+1) + "-" +now.getDate() +' '
		+ now.getHours() + ":" +now.getMinutes() + ":" +now.getSeconds();
	}else{
		timeStr = now.getFullYear() + "-"+ (now.getMonth()+1) + "-" +now.getDate() +' '
		+ now.getHours() + ":" +now.getMinutes() + ":" +now.getSeconds();
	}	
	var data = {};
	data.consult = consult;
	data.content = "";
	data.type = 3;
	data.times = times;
	wx.uploadVoice({
	    localId: serverId,
	    success: function (res) {
	    	data.voices = res.serverId;
	        sendPost('patient/consult/append', data, 'json', 'post', submitFailed, 
				function submitSoundSuccess(res) {
					if (res.status == 200) {
						dd.close();
						var data = JSON.parse(res.data[0]);
						addReply(2, data.content, timeStr, 3, "");
						dialroll.refresh();
						dialroll.scrollTo(0, dialroll.maxScrollY);		
					} else {
						submitFailed(res);
					}
				});
	    }
	});
}
function bindEvents(){
	//录制视频
	/*$(".lz-video-img").click(function(){
		$("#upload_input").click();
		//dialog({contentType:'tipsbox',bottom:true, skin:'bk-popup' , content:'请录制10秒左右的短视频,以防录制完成后无法发送'}).show();
		return false;
	})*/
	
	//立即发送
	$("#lijifasong").on("tap", function(){
	    uploadVideo();
	    mui('#sheet1').popover('toggle');
	    return false;
	 });
	 //不再提醒
	 $("#buzaitixing").on("tap", function(){
	    window.localStorage.setItem("isTiXingVideoFaSong","1");
	    uploadVideo();
	    mui('#sheet1').popover('toggle');
	    return false;
	 });
//	 window.localStorage.removeItem("isTiXingVideoFaSong");//测试
	//点击评价
	$('body').on('tap','#noval',function(){
		window.location.href = "manyidu.html?consult=" +consult;
	})
	$('body').on('tap','#hasval',function(){
		window.location.href = "manyidu.html?consult=" +consult;
	})
}
//录制视频回调
function videoFileChange(target) {
	var fileSize = (target.files[0].size/1024/1024).toFixed(2);//字节转换成M
	if(parseInt(fileSize)>30){
		dialog({
			content:'对不起,视频超过30Mb,无法发送,请录制10秒左右的短视频',
			okValue:'我知道了',
			ok: function() {
				return;
			}
		}).showModal();
	}else{
		if(networkStatus=="wifi" || window.localStorage.getItem("isTiXingVideoFaSong")=="1"){//wifi环境或用户点击移动网络弹框中的”不再提醒“按钮
			uploadVideo();
		}else{
			$("#mui-content").html('您正在使用移动网络,继续发送将消耗'+fileSize+'Mb流量,是否继续发送?');
			 mui('#sheet1').popover('toggle');
		}
	}
	
}
//上传视频
function uploadVideo(){
	dd.showModal();
	var fd=new FormData();
    fd.append('file',document.getElementById("upload_input").files[0]);
    $.ajax(server+"/upload/chat?type=4", {
            data: fd,
            contentType: false,
            cache: false,
            processData: false,
            type: 'post',
            success: function(resData) {
            	if(resData.status==200){
            		var data = {consult:consult,content:resData.urls,type:12};
					sendPost('patient/consult/append', data, 'json', 'post', submitFailed, 
						function submitSoundSuccess(res) {
							if (res.status == 200) {
								dd.close();
								var data = JSON.parse(res.data[0]);
								addReply(2, data.content,  new Date(data.timestamp).Format('yyyy-MM-dd HH:mm:ss'), 12, "");
								dialroll.refresh();
								dialroll.scrollTo(0, dialroll.maxScrollY);		
							} else {
								submitFailed(res);
							}
						});
            		
            	}else{
            		dd.close();
            	}
            	
            },
            error:function (XMLHttpRequest, textStatus, errorThrown) {
            	console.log(XMLHttpRequest.status);
                console.log(XMLHttpRequest.readyState);
                console.log(textStatus)
            }
	});
}
Date.prototype.format = function(fmt) { //author: meizz 
	var o = {
		"M+": this.getMonth() + 1, //月份 
		"d+": this.getDate(), //日 
		"h+": this.getHours(), //小时 
		"m+": this.getMinutes(), //分 
		"s+": this.getSeconds(), //秒 
		"q+": Math.floor((this.getMonth() + 3) / 3), //季度 
		"S": this.getMilliseconds() //毫秒 
	};
	if (/(y+)/.test(fmt))
		fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
	for (var k in o)
		if (new RegExp("(" + k + ")").test(fmt))
			fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
	return fmt;
}

+ 1077 - 0
html/yszx/js/doctor-consultation.js

@ -0,0 +1,1077 @@
//家庭医生咨询分页参数
var id = 0;
var pageSize = 15;
//续方咨询分页参数
var xfId = 0;
var xfPageSize = 15;
var d = dialog({contentType:'load', skin:'bk-popup'});	
var patientcode ="";
var isSearch = false;
var userAgent = window.localStorage.getItem(agentName);
var scroller1 = null;
var pagetype=1;
var chooseType;	
//页面初始化
$(function(){
	initData();
})
//初始化数据
var initData = function(){
	initScroller();
	checkUserAgent();
	bindEvents();
},
//初始化滚动条
initScroller = function(){
	scroller1 = new IScrollPullUpDown('wrapper5',{
		probeType:2,
		bounceTime: 250,
		bounceEasing: 'quadratic',
		mouseWheel:false,
		scrollbars:true,
		click:true,
		fadeScrollbars:true,
		interactiveScrollbars:false
	},pullDownAction,pullUpAction);
},
//绑定事件
bindEvents = function(){
	//新增按钮事件
	$(".div-add-btn").on("click",function(){
		$(this).hide();
		var data={};
		sendPost('patient/baseinfo', data, 'json', 'post', queryFailed, queryNewSuccess);
	});
	
	//点击遮罩事件
	$(".modal-overlay").on("click",function(){
		$(".modal-overlay").removeClass("modal-overlay-visible");
		$(".div-dialog-content").hide();
		$(".div-add-btn").removeClass("active");
		$(".div-add-btn").show();
   });
   
	//点击三师共管事件
   $(".sanshi-icon").on("click",function(){
   		$(this).addClass("active");
   		querySignType(1);
//		checkInWork(1);
//		isunfinished(1);
   	});
   	
   	//点击家庭医生事件
   $(".jiating-icon").on("click",function(){
   		$(this).addClass("active");
   		querySignType(2);
//		checkInWork(2);
//		isunfinished(2);
   	});
   	
   	//点击名医咨询事件
   $(".mingyi-icon").on("click",function(){
   		$(this).addClass("active");
   		checkInWork(6);
//		isunfinished(6);
   	});
   	
   	//查看签约
   	$('#signing-btn').on('click',function(){
		window.location.href = "../../qygl/html/signing_management.html";
	})
   	
   	//取消事件
   	$(".quxiao").on("click",function(){
   		$(".modal-overlay").trigger("click");
   	 });
	   	
   	//点击发起咨询事件
   $("#launch-btn").on("click",function(){
   		$(".div-add-btn").trigger("click");	
   });	
   
   //点击续方申请事件
   $(".xufangsq-icon").on("click",function(){
   		$(this).addClass("active");
   		//TODO 事件处理
   		
   	});
   	
   	$(".c-lab-mor li").click(function() {
   		var index = $(this).index();
		$(".c-lab-mor li").removeClass("hit");
		$(this).addClass("hit");
		if(index==0){//家庭医生咨询
			$(".div-jiating-consultation").show();
			$(".div-xufang-consultation").hide();
		}else{//续方咨询
			$(".div-jiating-consultation").hide();
			$(".div-xufang-consultation").show();
		}
	});
   	
   document.addEventListener('touchmove', function (e) { e.preventDefault(); }, false);
},
//重写判断用户是否登录
checkUserAgent = function(){
	if(!userAgent){
		var agentOpenid = window.localStorage.getItem(OpenidAgent);
		if(!agentOpenid){
			var Request = new Object();
			Request = GetRequest();
			var code = Request["code"];
			if(code == "" || code == null || code == undefined){
				d.close();
				dialog({contentType:'tipsbox',bottom:true, skin:'bk-popup' , content:'授权失败'}).show();
			}
			else{
				d.show();
				var data = {};
				data.code = code;
				sendPost('weixin/getOpenidByCode', data, 'json', 'post', openidFailed, openidSuccess);
			}
		}
		else{
			var jsonstr = $.parseJSON(agentOpenid);
			var openid = jsonstr.openid;
			window.location.href = server + "wx/html/home/html/zhmm-login.html?type=" + pagetype + "&openid=" + openid;
		}
	}
	else{
		appendFamilyMember($('#memberContainer'),function(){
			if($(".c-lab-mor li.hit").index()==0){//家庭医生咨询
				$("#ul_jiating_consultation").empty();
				id=0;
				$(".div-no-search-info").hide();
				$(".div-no-info").hide();
				$(".div-signing").hide();
				$(".div-no-sign").hide();
				$(".div-jiating-consultation").find('.inp-search').val('');
			}else if($(".c-lab-mor li.hit").index()==1){//续方咨询
				$("#ul_xufang_consultation").empty();
				xfId=0;
				$(".div-no-xf-search-info").hide();
				$(".div-xufang-consultation").find('.inp-search').val('');
			}
			pageInit();
		},function(){
			//判断有授权家人,修改样式
			if($('#memberContainer').is(':hidden')){
				$('#wrapper5').css('top','0px');
			}else{
				$('#wrapper5').css('top','90px');
				$('#nozixunimg').css('margin-top','230px');
				$('#fazixunimg').css('margin-top','190px');
				$('#nodoctor').css('margin-top','190px');
				$('#signingimg').css('margin-top','180px');
			}
		});
		pageInit();
	}
},
pageInit = function(){
	Request = GetRequest();
	$(".main").hide();
	$(".div-no-sign").hide();
	$(".div-no-info").hide();
	var openid = Request["openid"];
	var userInfo = null;
	var userAgent = window.localStorage.getItem(agentName);
	if(userAgent){
		userInfo= JSON.parse(userAgent);
		patientcode = userInfo.represented?userInfo.represented:userInfo.uid;
	}
	query();
	checkSignDoctor();	
	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
				});
			} 
		}
	});
},
//查询家庭医生咨询记录
consultRecord = function(){
	var data = {};
		data.id = id;
		data.pagesize = pageSize;
		data.title = $(".div-jiating-consultation").find(".inp-search").val();
		sendPost('patient/consult/records', data, 'json', 'get', queryFailed, queryRecordSuccess);
},
//查询家庭医生咨询记录成功处理
queryRecordSuccess = function(res){
	if (res.status == 200) {
		$(".main").show();
		$(".div-no-info").hide();
		if (res.list.length > 0) {
			var list = res.list;
			var $list = $("#ul_jiating_consultation");
			var $liList = "";
			$('#vertical_line').show();
			var searchText = $(".div-jiating-consultation").find(".inp-search").val().trim();
			for (var i = 0; i < list.length; i++) {
				if(list[i].type==1){
					 appendSsDoc(list[i],$list);
				}else if(list[i].type==2){
					 appendHomeDoc(list[i],$list);
				}else if(list[i].type==6){
					appendMingyiDoc(list[i],$list);
				}
				id =  list[i].id;
			}			
			$("#ul_jiating_consultation li").on("tap",function(){
				var code = this.getAttribute("data-code");
				var type = this.getAttribute("data-type");
				var doctor = this.getAttribute("data-doctor");
				var evaluate = this.getAttribute("data-evaluate");
				var userInfo = JSON.parse(userAgent);
				var jsonData = JSON.parse(this.getAttribute("data-json"));
				if(jsonData.type == 2 && jsonData.status == 0){
				    var url = "patient/sign_status",
                        params = {};
                    d.show();
                    sendPost(url, params, "json", "post", queryFailed, function(res){
                        d.close();
                        var teamCode = res["teamCode_2"];
                        var signCode = res["signCode_2"];
                        localStorage.setItem("signInfo_tab", "1");
                        window.location.href = "../../qygl/html/sign_info.html?code="+signCode+"&consult="+code+"&teamCode="+jsonData.teamCode+"&type="+jsonData.type+"&doctor="+jsonData.doctorCode;
                    });
				}else{
					localStorage.setItem("evaluate",evaluate);
				    window.location.href = "consulting-doctor.html?consult=" + code+"&type="+type+"&toUser="+userInfo.uid+"&doctor="+doctor;
				}
			})
			
			ellipsisText($(".ul-consultation").find('.c-content-warp'),searchText);
			scroller1.myScroll.refresh();
			
		} else {
			$('#vertical_line').hide();
			if(isSearch){//查询无结果
				$(".main").show();
				$('#ul_jiating_consultation').show();
				$(".div-no-search-info").show();
				isSearch = false;
			}else if(id==0){//id为0的时候证明是第一次加载,第一次加载无数据,显示无数据界面
				$(".main").hide();
				$(".div-no-info").show();
			}else {
				dialog({contentType:'tipsbox',bottom:true, skin:'bk-popup' , content:'无更多数据'}).show(); 		
			}
		}		
		d.close();
		$(".pullUp").hide();
	} else {
		queryFailed(res);
	}
},
//查询续方咨询记录
xfConsultRecord = function(){
	var data = {};
		data.id = xfId;
		data.pagesize = xfPageSize;
		data.title = $(".div-xufang-consultation").find(".inp-search").val();
		sendPost('patient/consult/records', data, 'json', 'get', queryFailed, xfQueryRecordSuccess);
},
//查询家庭医生咨询记录成功处理
xfQueryRecordSuccess = function(res){
	if (res.status == 200) {
		$(".main").show();
		$(".div-no-info").hide();
		if (res.list.length > 0) {
			var list = res.list;
			var $list = $("#ul_xufang_consultation");
			var $liList = "";
			$('#xf_vertical_line').show();
			var searchText = $(".div-xufang-consultation").find(".inp-search").val().trim();
			for (var i = 0; i < list.length; i++) {
				appendXuFangDoc(list[i],$list);
				xfId =  list[i].id;
			}			
			$("#ul_xufang_consultation li").on("tap",function(){
				var code = this.getAttribute("data-code");
				var type = this.getAttribute("data-type");
				var doctor = this.getAttribute("data-doctor");
				var evaluate = this.getAttribute("data-evaluate");
				var userInfo = JSON.parse(userAgent);
				var jsonData = JSON.parse(this.getAttribute("data-json"));
				if(jsonData.type == 2 && jsonData.status == 0){
				    var url = "patient/sign_status",
                        params = {};
                    d.show();
                    sendPost(url, params, "json", "post", queryFailed, function(res){
                        d.close();
                        var teamCode = res["teamCode_2"];
                        var signCode = res["signCode_2"];
                        localStorage.setItem("signInfo_tab", "1");
                        window.location.href = "../../qygl/html/sign_info.html?code="+signCode+"&consult="+code+"&teamCode="+jsonData.teamCode+"&type="+jsonData.type+"&doctor="+jsonData.doctorCode;
                    });
				}else{
					localStorage.setItem("evaluate",evaluate);
				    window.location.href = "prescription-consulting.html?consult=" + code+"&type="+type+"&toUser="+userInfo.uid+"&doctor="+doctor;
				}
			})
			
			ellipsisText($(".xf-ul-consultation").find('.c-content-warp'),searchText);
			scroller1.myScroll.refresh();
			
		} else {
			$('#xf_vertical_line').hide();
			if(isSearch){//查询无结果
				$(".main").show();
				$('#ul_xufang_consultation').show();
				$(".div-no-xf-search-info").show();
				isSearch = false;
			}else if(xfId==0){//xfId为0的时候证明是第一次加载,第一次加载无数据,显示无数据界面
				$(".main").hide();
				$(".div-no-info").show();
			}else {
				dialog({contentType:'tipsbox',bottom:true, skin:'bk-popup' , content:'无更多数据'}).show(); 		
			}
		}		
		d.close();
		$(".pullUp").hide();
	} else {
		queryFailed(res);
	}
},
//拼接家庭咨询
appendHomeDoc = function(rowData,$list){
	//默认咨询结束状态div-ended//待评价div-novalue
	var divStatus = "";
	if(rowData.status==0){
		//咨询中
		divStatus = "div-beginning";
	}else if(rowData.evaluate ==1){
		divStatus = "div-hasvalue";//是否有评价 0无 1有
	}else{
		divStatus = "div-novalue";
	}
	
	var $li = document.createElement("li");
	$li.setAttribute('data-code', rowData.code);
	$li.setAttribute('data-type', rowData.type);
	$li.setAttribute('data-evaluate', rowData.evaluate ? rowData.evaluate :0);
	$li.setAttribute('data-doctor', rowData.doctorCode);
    $li.setAttribute('data-json', JSON.stringify(rowData));
	var content = '<div class="outer-circle">'+
					'<div class="inner-circle s-bc-12B7F5"></div>'+
				'</div>'+
				'<div class="'+divStatus+'"></div>'+
				'<div class="record-card">'+
	            	'<div class="card-title s-bc-12B7F5">'+
	            		'<span class="span-date">'+rowData.czrq+'</span>'+
	            	    '<span class="f-fr">家庭医生咨询</span>'+
	            	'</div>'+
            		'<p class="c-content-warp">'+
						'<span class="c-323232 c-f14 ">问题:</span><span class="c-dest-content c-f14 j-text-ellipsis" data-text="'+rowData.symptoms+'"></span>'+
            		'</p>'+
	           '</div>';
	    $li.innerHTML=content;
    	$list.append($li);	
},
//拼接续方咨询
appendXuFangDoc = function(rowData,$list){
	//默认咨询结束状态div-ended//待评价div-novalue
	var divStatus = "";
	if(rowData.status==0){
		//咨询中
		divStatus = "div-beginning";
	}else if(rowData.evaluate ==1){
		divStatus = "div-hasvalue";//是否有评价 0无 1有
	}else{
		divStatus = "div-novalue";
	}
	
	var $li = document.createElement("li");
	$li.setAttribute('data-code', rowData.code);
	$li.setAttribute('data-type', rowData.type);
	$li.setAttribute('data-evaluate', rowData.evaluate ? rowData.evaluate :0);
	$li.setAttribute('data-doctor', rowData.doctorCode);
    $li.setAttribute('data-json', JSON.stringify(rowData));
	var content = '<div class="outer-circle">'+
					'<div class="inner-circle s-bc-12B7F5"></div>'+
				'</div>'+
				'<div class="'+divStatus+'"></div>'+
				'<div class="record-card">'+
	            	'<div class="card-title s-bc-12B7F5">'+
	            		'<span class="span-date">'+rowData.czrq+'</span>'+
	            	    '<span class="f-fr">续方咨询</span>'+
	            	'</div>'+
	            	'<p class="c-content-warp div-xufang-disease">'+
	            		'<span class="c-dest-content c-f14 j-text-ellipsis" data-text="'+rowData.symptoms+'"></span>'+
	            	'</p>'+
            		'<div class="div-content-warp">'+
						'<div class="div-drug">'+
						'药品1   数量'+
						'</div>'+
						'<div class="div-drug">'+
						'药品2   数量'+
						'</div>'+
					'</div>'+	
	           '</div>';
	    $li.innerHTML=content;
    	$list.append($li);	
},
//拼接三师咨询
appendSsDoc = function(rowData,$list){
	//默认咨询结束状态
	var divStatus = "div-ended";
	if(rowData.status==0){
		//咨询中
		divStatus = "div-beginning";
	}	
	var $li = document.createElement("li");
	$li.setAttribute('data-code', rowData.code);
	$li.setAttribute('data-type', rowData.type);
	$li.setAttribute('data-doctor', rowData.doctorCode);
	$li.setAttribute('data-json', JSON.stringify(rowData));
	var content = '<div class="outer-circle">'+
					'<div class="inner-circle s-bc-75BF00"></div>'+
				'</div>'+
				'<div class="'+divStatus+'"></div>'+
				'<div class="record-card">'+
            	'<div class="card-title s-bc-75BF00">'+
            		'<span class="span-date">'+rowData.czrq+'</span>'+
            		'<span class="f-fr">慢病管理咨询</span>'+
            	'</div>'+
            	'<p class="c-content-warp">'+
						'<span class="c-323232 c-f14 ">问题:</span><span class="c-dest-content c-f14 j-text-ellipsis" data-text="'+rowData.symptoms+'"></span>'+
            	'</p>'+
	    		'</div>';
	 $li.innerHTML=content;
     $list.append($li);	
},
//拼接名医咨询
appendMingyiDoc = function(rowData,$list){
	//默认咨询结束状态
	var divStatus = "div-ended";
	if(rowData.status==0){
		//咨询中
		divStatus = "div-beginning";
	}
	var $li = document.createElement("li");
	
	$li.setAttribute('data-doctor', rowData.doctorCode);
	$li.setAttribute('data-code', rowData.code);
	$li.setAttribute('data-type', rowData.type);
	$li.setAttribute('data-json', JSON.stringify(rowData));
	var content = '<div class="outer-circle">'+
					'<div class="inner-circle s-bc-FF9526"></div>'+
				'</div>'+
				'<div class="'+divStatus+'"></div>'+
				'<div class="record-card">'+
	            	'<div class="card-title s-bc-FF9526">'+
	            		'<span class="span-date">'+rowData.czrq+'</span>'+
	            	    '<span class="f-fr">名医咨询</span>'+
	            	'</div>'+
            		'<p class="c-content-warp">'+
						'<span class="c-323232 c-f14 ">问题:</span><span class="c-dest-content c-f14 j-text-ellipsis" data-text="'+rowData.symptoms+'"></span>'+
            		'</p>'+
	           '</div>';
	    $li.innerHTML=content;
    	$list.append($li);
},
//下拉刷新
pullDownAction = function(theScrollerTemp){
	//	setTimeout(function () {
//		$("#ul_jiating_consultation").html("");	
//		id=0;
//		consultRecord();	
//	}, 1000);
}
//上拉加载数据
pullUpAction = function(theScrollerTemp){
	$(".pullUp").show();
	setTimeout(function () {
		if($(".c-lab-mor li.hit").index()==0){//家庭医生咨询
			consultRecord();	
		}else if($(".c-lab-mor li.hit").index()==1){//续方咨询
			xfConsultRecord();
		}
	}, 1000);
}
//查询用户信息
query = function(){
	d.show();
	var data={};
	sendPost('patient/baseinfo', data, 'json', 'post', queryUserFailed, querySuccess);
},
//校验手机是否签约
checkSignDoctor = function(){
	d.show();
	var userAgent = window.localStorage.getItem(agentName);
	if(userAgent){
		var data = {};
		$.ajax(server + "patient/is_sign", {
			data: data,
			type: 'POST',
			dataType: 'json',
			beforeSend: function(request) {
			    request.setRequestHeader("userAgent", userAgent);
			},
			error: function(res) {
				$(".pullUp").hide();
				d.close();
				if(res.status == 999 || res.status == 998 || res.status == 997){
					loginUrl(res.status);
					return;
				}
				dialog({contentType:'tipsbox',bottom:true, skin:'bk-popup' , content:'校验失败'}).show();
			},
			success: function(res) {
				d.close();
				if(res.status == 999 || res.status == 998 || res.status == 997){
					loginUrl(res.status);
				}
				else if (res.status == 200) {					
					var is_sign = res.data;//0未签约,1已签约
					if(is_sign==1 || is_sign <= -1){//1已经签约的  -1签约已到期或未签约
						consultRecord();
						xfConsultRecord();
					}else if(is_sign==0){
						//签约未完成
						$('.div-signing').show();
				}
			}
				else {
					//不为200
					$(".pullUp").hide();
					dialog({contentType:'tipsbox',bottom:true, skin:'bk-popup' , content:res.msg}).show();
				}
			}
		})
	}
	else{
		$(".pullUp").hide();
		dialog({contentType:'tipsbox',bottom:true, skin:'bk-popup' , content:'用户信息错误'}).show();
	}
},
//查询用户成功
querySuccess = function(res){
	if (res.status == 200) {
			var data = res.data;
			var ssc = data.ssc;
			if(!ssc) ssc = "";
			if(!ssc || ssc==""){
				//用户未办理医保卡
				dialog({
					content: '对不起,尚未办理医保卡或在16年6月份之后办理医保卡的用户暂不支持签约~',
					cancelValue: '我知道了',
					cancel: function () {
						wx.closeWindow();
					}
				}).showModal();
			}else{
				return;
			}
		} else {
			queryFailed(res);
		}
},
//查询用户失败
queryUserFailed = function(res){
	dialog({
		content: '获取用户信息失败!',
		cancelValue: '我知道了',
		cancel: function () {
			wx.closeWindow();
		}
	}).showModal();
},
//查询失败提示
queryFailed = function(res){
	d.close();
	if (res && res.msg) {
		dialog({contentType:'tipsbox',bottom:true, skin:'bk-popup' , content:res.msg}).show();      
	} else {
		dialog({contentType:'tipsbox',bottom:true, skin:'bk-popup' , content:'加载失败'}).show(); 
	}
},
//查询患者基本信息成功处理
queryNewSuccess = function(res){
	if(res.status == 200){
		var data = res.data;
		if(data.sign ==0){//未签约一般不会发生进来咨询意见校验
			dialog({
			    content: '您还没有签约家庭医生哦,<br/>快去寻找属于您的家庭医生吧~',
			    okValue:'前往签约',
			    ok: function (){				            		
			        window.location.href = "../../qygl/html/signing_management.html";
			    },
			    cancelValue: '我知道了',
			    cancel: function () {
			    	$(".div-add-btn").show();
//								wx.closeWindow();
			    }
			}).showModal();
		}
		else if(data.sign ==1 || data.sign ==2 || data.sign ==3){//1三师签约	2家庭签约  3三师+家庭
			$(this).hide();
			$(".div-dialog-content").show();
			$(".modal-overlay").addClass("modal-overlay-visible");	
			if(data.sign ==1){//1三师签约
				$(".jiating-icon").hide();
				$(".sanshi-icon").addClass("sanshi-icon1");
			}else if(data.sign ==2){//家庭签约
				$(".sanshi-icon").hide();
			}
		}else{
			queryFailed(res);
		}
	}
}
//获取签约医生
checkInWork = function(type){
	if(type==6){//名医咨询
		window.location.href = "select-consult-doctor.html";
	} else {
		sendPost('/patient/sign_doctors', {patientCode:patientcode}, 'json', 'post', queryFailed, function(res){	
			if(res.status==200){
				var doctorArray = res.familyDoctors;//家庭
				if(type==1&&doctorArray.length==0){//三师
					doctorArray = res.teamDoctors
					
				}
				if(doctorArray.length==0){
					doctorArray = res.teamDoctors
				}
				if(doctorArray){
					var doctorInfo ="",
					    qkDoctor="";
					for(var j in doctorArray){
						var dataTemp  = doctorArray[j];
						if(dataTemp.level=="3" || dataTemp.teamlevel=="3"){
							doctorInfo = dataTemp;//取出健康管理师
						}
						if(dataTemp.level == "2" || dataTemp.teamlevel=="2"){
						    qkDoctor = dataTemp; //取出全科医生
						}
					}
					if(!doctorInfo){
					    doctorInfo = qkDoctor;
					}
					if(doctorInfo!=""){
						checkDocInWork(type,doctorInfo);
					}else{
						//三师咨询或家庭签约咨询,跳转到新增咨询页面
						window.location.href = "add-consult.html?type="+type;
					}
				}
			}else{
				queryFailed(res);
			}
		})
	}
}
//判断医生是否在工作时间内
checkDocInWork = function(type,doctor){
	sendPost('patient/consult/is_doctor_working', {doctor:doctor.code}, 'json', 'get', queryFailed, function(res){
		if(res.status==200){
			if(res.data==2){
				dialog({
				    content: '您好,由于您的签约医生工作繁忙,设置了每日回复咨询的时间段,所以,在该时间段外的时间,您的咨询将不会马上获得医生的回复。',
				    okValue:'查看医生工作时间',
				    ok: function (){				            		
				      	window.location.href = "doctor-work-hours.html?doctor=" + doctor.code;
				    },
				    cancelValue: '继续新增咨询',
				    cancel: function () {
						window.location.href = "add-consult.html?type=" +type+"&doctorCode="+doctor.code;
				    }
		   		 }).showModal();
			}
			/* 解决bug2825,家庭医生咨询不做是否接受咨询的判断
			else if(res.data==0){//医生不接受咨询
				dialog({
				    content: '对不起,该医生暂时关闭了咨询功能,<br/>暂时无法咨询该医生',
				    cancelValue: '我知道了',
				    cancel: function () {
						wx.closeWindow();
				    }
				}).showModal();
			}*/
			else{
				//三师咨询或家庭签约咨询,跳转到新增咨询页面
				window.location.href = "add-consult.html?type="+type+"&doctorCode="+doctor.code;
			}
		}else{
			queryFailed(res);
		}			
	})
},
//判断咨询是否结束
isunfinished = function(type){
	sendPost('/patient/consult/unfinished', {}, 'json', 'get', queryFailed, function(res){	
		if(res.status===200){
			if(res.data.length<=0){//无咨询记录
				checkInWork(type);
			}else{
				var isMax = false;
				var consult = null;
					for(var j in res.data){
						if(type == res.data[j].type){
							consult = res.data[j].consult;
							isMax = true;
						}
				}
				if(isMax){//三师咨询或家庭签约咨询或名医咨询			
					dialog({
						    content: '十分抱歉,您的上一次咨询<br/>还未结束,所以不能再发起新的咨询哦',
						    okValue:'前往查看',
						    ok: function (){
						    	var rep = userInfo.represented?userInfo.represented:userInfo.uid;
						      	window.location.href = "consulting-doctor.html?consult=" + consult+"&toUser="+rep;
						    },
						    cancelValue: '我知道了',
						    cancel: function () {
						    	$(".modal-overlay").trigger("click");
						    	$(".sanshi-icon").removeClass("active");
						    	$(".jiating-icon").removeClass("active");  
						    	$(".mingyi-icon").removeClass("active");  
								return;
						    }
				   	}).showModal();
				}else{
					if(type==6){//名医咨询
						window.location.href = "select-consult-doctor.html";
					}else{//三师咨询或家庭签约咨询,跳转到新增咨询页面
						alert(2)
						window.location.href = "add-consult.html?type="+type;
					}
				}
				
			}
		}else{
			queryFailed(res);
		}
	
	});	
},
//查询签约类型
querySignType = function(type){
	chooseType = type;
	d.show();
	sendPost('patient/sign_doctors', {}, 'json', 'post', querySignTypeFailed, querySignTypeSuccess);
},
//查询签约类型失败处理
querySignTypeFailed = function(res){
	d.close();
	if (res && res.msg) {
		dialog({contentType:'tipsbox',bottom:true, skin:'bk-popup' , content:res.msg}).show();      
	} else {
		dialog({contentType:'tipsbox',bottom:true, skin:'bk-popup' , content:'获取咨询类型失败'}).show(); 
	}
},
//查询签约类型成功处理
querySignTypeSuccess = function(data){
	if (data.status == 200) {
		var doctors = "";
		switch(Number(chooseType)) {
			case 1:	doctors = data.teamDoctors; break;
			case 2: doctors = data.familyDoctors; break;
			default: break;
		}
		
		var docInfo,docQkInfo;
		$.each(doctors, function(i, v) {
			if(v.teamlevel){
				if(v.teamlevel == 3){
					docInfo = v;
				}
				if(v.teamlevel == 2){
					docQkInfo = v;
				}
			}else{
				if(v.level == 3){
					docInfo = v;
				}
				if(v.level == 2){
					docQkInfo = v;
				}
			}
		});
		
		if(!docInfo){
			docInfo = docQkInfo;
		}
		
		sendPost('patient/consult/is_consult_unfinished', {doctor: docInfo ? docInfo.code : docQkInfo.code}, 'json', 'post', 
			function(res){
				d.close();
				if (res && res.msg) {
					dialog({contentType:'tipsbox',bottom:true, skin:'bk-popup' , content:res.msg}).show();      
				} else {
					dialog({contentType:'tipsbox',bottom:true, skin:'bk-popup' , content:'获取是否存在咨询失败'}).show(); 
				}
			}, function(res){
				d.close();
				if(res.status == 200){
					if(res.data == ""){
						//不存在
						checkInWork(chooseType);
					} else {
						dialog({
							    content: '十分抱歉,您与'+ docInfo.name +'医生还有<br/>未结束咨询,无法发起新的咨询',
							    okValue:'前往查看',
							    ok: function (){	
							    	var userInfo = JSON.parse(userAgent);
							    	var rep = userInfo.represented?userInfo.represented:userInfo.uid;
							      	window.location.href = "consulting-doctor.html?consult=" + res.data +"&toUser="+rep;
							    },
							    cancelValue: '我知道了',
							    cancel: function () {
							    	$(".modal-overlay").trigger("click");
							    	$(".sanshi-icon").removeClass("active");
							    	$(".jiating-icon").removeClass("active");  
							    	$(".mingyi-icon").removeClass("active");  
									return;
							    }
					   	}).showModal();
					}
				} else {
					dialog({contentType:'tipsbox',bottom:true, skin:'bk-popup' , content:res.msg}).show();
				}
			}
		);
	} else {
		querySignTypeFailed(res);
	}
};
	// 搜索框 
	var $searchbar = $('.searchbar'),
		// 搜索输入框
		$searchbarInput = $('.searchbar input'),
		// 搜索取消按钮
		$searchCancelBtn = $('.searchbar-cancel'),
		// 家庭医生咨询-搜索框下面悬浮的搜索提示
		$searchSuggest = $('#search_suggest_text');
		// 续方咨询-搜索框下面悬浮的搜索提示
		$xfSearchSuggest = $('#xf_search_suggest_text');
		// 搜索框初始化
		$searchbar.addClass("searchbar-active");			
			
	// 控制搜索关键字悬浮提示的显示
	var getReqPromise = function(url, data) {
		return new Promise(function(resolve, reject) {
			sendPost(url, data, "json", "post",
			  	function queryFailed (req) {
					dialog({contentType:'tipsbox',bottom:true, skin:'bk-popup' , content:'加载失败'}).show();
					//  开启示例数据
					//resolve({});
				}
		  		, function success(req) {
					resolve(req);
		  	});
		});
	},
	 showSearchSuggest = function(text) {
		var suggestText = '搜索“'+text+'”';
		// 如果text不为空,则显示;否则隐藏
		if(text&&text.trim().length) {
			if($(".c-lab-mor li.hit").index()==0){//家庭医生咨询
				$searchSuggest.text(suggestText);
				$searchSuggest.show();
			}else if($(".c-lab-mor li.hit").index()==1){//续方咨询
				$xfSearchSuggest.text(suggestText);
				$xfSearchSuggest.show();
			}
		} else {
			if($(".c-lab-mor li.hit").index()==0){//家庭医生咨询
				$searchSuggest.text('');
				$searchSuggest.hide();
			}else if($(".c-lab-mor li.hit").index()==1){//续方咨询
				$xfSearchSuggest.text('');
				$xfSearchSuggest.hide();
			}
		}
	},
	getRowProps = function ($el) {
		var $textEllipsis = $el.find('.j-text-ellipsis'),
			$text = $textEllipsis.eq(0),
			$chart = $text.text('a'),
			enWidth = $chart.width(),
			$chart = $text.text('中'),
			zhWidth = $chart.width(),
			lineHeight = parseFloat($chart.css("lineHeight"), 10),
			rowHeight = $chart.height();
		$chart.text('');
		return {
			chartWidth: {
				zh: zhWidth,
				en: enWidth
			},
			rowHeight: Math.max(rowHeight, lineHeight),
			rowWidth: $el.width()
		};
	},
	replaceAll = function (text, arr) {
		var html = text;
		_.each(arr,function(kw) {
			var reg = new RegExp(kw+"(?!>)","gi");
			html = html.replace(reg,'<em>'+kw+'</em>');
		});
		return html;
	},
	highlineKeyword = function ($el,searchText) {
		var props = getRowProps($el),
			chartWidth = props.chartWidth,
			rowHeight = props.rowHeight,
			rowWidth = props.rowWidth,
			// 每行显示字符数(以中文字符为标准计算)
			chartNum = Math.floor(rowWidth / chartWidth.zh),
			// 排除“咨询问题:”字符及前后“...”所占宽度
			exceptNum = 5,
			// 行数
			rowNum = 3,
			// 预计显示总字符数
			expectedNum = chartNum * rowNum - exceptNum,
			$target = $el.find('.j-text-ellipsis'),
			// 目标文本
			text = $target.attr('data-text').trim(),
			length = text.length,
			// 关键字数组
			kws = searchText.trim().replace(/\s+/g," ").split(" ");
	
		var fidx = 0,preFidx,diff = 0;
		$target.html(replaceAll(text, kws));
		if(Math.floor($target.height() / rowHeight) <= rowNum) {
			return ;
		}
		if(text.length > expectedNum) {
			fidx = text.indexOf(kws[0])+kws[0].length-1;
			diff = fidx - expectedNum + 1;
			preFidx =  fidx;
			diff = (diff<0)?0:diff;
			var preChar = (diff>0)?"...":"";
			$target.html(preChar+replaceAll(text.slice(diff,preFidx+1), kws)+"...");
			while((Math.floor($target.height() / rowHeight) <= rowNum) && (preFidx < length)) {
				preFidx++;
				$target.html(preChar+replaceAll(text.slice(diff,preFidx+1), kws)+"...");
			}
			if(preFidx == length && (Math.floor($target.height() / rowHeight) <= rowNum)) {
				diff = diff>0?(diff - 1):0;
				$target.html(preChar+replaceAll(text.slice(diff,preFidx), kws));
			} else if((Math.floor($target.height() / rowHeight) > rowNum)) {
				$target.html(preChar+replaceAll(text.slice(diff,preFidx), kws)+"...");
			}
		}
	},
	ellipsisText = function ($elements, searchText) {
		//$el.ellipsis({ row: 2});
		_.each($elements,function(el) {
			highlineKeyword($(el),searchText)
		});
	},
	// 搜索框搜索执行方法
	search = function () {
		isSearch = true;
		d.show();
		if($(".c-lab-mor li.hit").index()==0){//家庭医生咨询
			$searchSuggest.text('');
			$searchSuggest.hide();
		}else if($(".c-lab-mor li.hit").index()==1){//续方咨询
			$xfSearchSuggest.text('');
			$xfSearchSuggest.hide();
		}
		$searchCancelBtn.hide();
		$searchCancelBtn.css("opacity","0");
		$(".c-lab-mor li.hit").index()==0?$("#ul_jiating_consultation").html(""):$("#ul_xufang_consultation").html("");	
		if($(".c-lab-mor li.hit").index()==0){//家庭医生咨询
			id=0;
			consultRecord();
		}else if($(".c-lab-mor li.hit").index()==1){//续方咨询
			xfId=0;
			xfConsultRecord();
		}
			
		$(".div-no-info").hide();
		$(".div-no-search-info").hide();
		$(".div-no-sign").hide();
		$(".c-lab-mor li.hit").index()==0?$('#ul_jiating_consultation').show():$('#ul_xufang_consultation').show();				
	},
	// 重置搜索结果的容器高度(为了让滚动条出现在容器内部,而不引起外部内容滚动)
	resetResultWrapHeight = function() {
		var winHeight = $(window).height(),
		diff = 45,
		$wrap = $('.div-content');
		$wrap.height(winHeight-diff);
	},
	// 监听窗口大小变化,重置所属区列表、社区列表列表容器高度
	resultWrapAutoAdapt = function() {
		resetResultWrapHeight();
		$(window).on('resize',function() {
			resetResultWrapHeight();
		});
	};		
			
	//取消事件
	$searchCancelBtn.on('click',function() {
		$(this).hide();
		$('.inp-search').val('');
		if($(".c-lab-mor li.hit").index()==0){//家庭医生咨询
			$searchSuggest.text('');
			$searchSuggest.hide();
		}else if($(".c-lab-mor li.hit").index()==1){//续方咨询
			$xfSearchSuggest.text('');
			$xfSearchSuggest.hide();
		}
		search();
	});
	
	$searchSuggest.on('click',function() {
		search();
	});
	$xfSearchSuggest.on('click',function() {
		search();
	});
	//搜索框事件
	$(".inp-search").on("input",function(){
		var text = $(this).val().trim();
		if($(".c-lab-mor li.hit").index()==0){//家庭医生咨询
			$('#ul_jiating_consultation').hide();
			$('#vertical_line').hide();
		}else if($(".c-lab-mor li.hit").index()==1){//续方咨询
			$('#ul_xufang_consultation').hide();
			$('#xf_vertical_line').hide();
		}
		
		showSearchSuggest(text);
		if(text){
			$searchCancelBtn.show();
			$searchCancelBtn.css("opacity","1");
		}else{
			$searchCancelBtn.hide();
			$searchCancelBtn.css("opacity","0");
			search();
		}
	}).on('keydown',function(e) {
		if (e.which === 13) {
		    search();
		}
	})
					

+ 832 - 0
html/yszx/js/doctor-consultation_new.js

@ -0,0 +1,832 @@
//家庭医生咨询分页参数
var id = 0;
var pageSize = 15;
//续方咨询分页参数
var xfId = 0;
var xfPageSize = 15;
var d = dialog({contentType:'load', skin:'bk-popup'});  
var patientcode ="",
    patientName = "";
var isHealthSearch = false,
    isPreSearch = false;
var userAgent = window.localStorage.getItem(agentName);
var pagetype = 1;
var chooseType; //记录选择的咨询类型
var loaded = [true, false]; //标记两个tab是否已经加载过
var chooseTab = 1; //默认选中的是家庭健康咨询
var expensesStatus ="";//'扣费状态 【""没有签约信息 "0"未扣费 "1"已扣费 "2"已退费】'
var is_sign;
//页面初始化
$(function(){
    checkUserAgent();
});
function queryInit(){
    initScroller();
    initFamilyData();
    initPageData();
    bindEvents();
    wxGetSign();
}
function initScroller(){
    //阻尼系数
    var deceleration = mui.os.ios?0.003:0.0009;
    mui('.mui-scroll-wrapper1').scroll({
        scrollY: false, //是否竖向滚动
        scrollX: true, //是否横向滚动
        startX: 0, //初始化时滚动至x
        startY: 0, //初始化时滚动至y
        bounce: false,
        indicators: true, //是否显示滚动条
        deceleration:deceleration
    });
    mui.ready(function() {
        //循环初始化所有下拉刷新,上拉加载。
        $.each(document.querySelectorAll('.mui-slider-group .mui-scroll-wrapper'), function(index, pullRefreshEl) {
            mui(pullRefreshEl).pullRefresh({
                up: {
                    callback: function() {
                        var self = this;
                        setTimeout(function() {
                            if(index == 0){
                                getHealthConsulationList();
                            }else{
                                getPreConsultList();
                            }
                            self.endPullupToRefresh();
                        }, 1000);
                    }
                }
            });
        });
    });
}
function initFamilyData(){
    appendFamilyMember($('#memberContainer'),function(){
        //切换家庭成员,默认选中健康咨询tab显示
        id = 0;
        xfId = 0;
        chooseType = 1;
        loaded = [true, false];
        $("#healthTab a").click();
        initPageData();
    },function(t){
        //判断有授权家人,修改样式,只在初始的时候执行一次
        var height = $('#memberContainer').height();
        $("#slider").css({
            'top': height,
            'height': 'calc(100% - '+height+'px)'
        });
    });
}
function initPageData(){
    var userInfo= JSON.parse(userAgent);
    patientcode = userInfo.represented?userInfo.represented:userInfo.uid;
    
    getPatientInfo();
}
//获得患者信息
function getPatientInfo(){
    d.show();
    var data={};
    sendPost('patient/baseinfo', data, 'json', 'post', queryFailed, function(res){
        if (res.status == 200) {
            var data = res.data,
                ssc = data.ssc;
            expensesStatus = res.data.expensesStatus;
            patientName = data.name;
            if(!ssc) ssc = "";
            if(!ssc || ssc==""){
                //用户未办理医保卡
                dialog({
                    content: '对不起,尚未办理医保卡的用户暂不支持签约~',
                    cancelValue: '我知道了',
                    cancel: function () {
                        wx.closeWindow();
                    }
                }).showModal();
            }
            if(data.prescription == 1){ //慢病人员,可以续方
                //如果患者在白名单中,则显示续方咨询tab的信息
                if(canPrescription){
                    $("#preTab").show();
                    $(".xufangsq-icon").show();
                    mui('#slider').slider().setStopped(false);
                }else{
                    $("#preTab").hide();
                    $(".xufangsq-icon").hide();
                    mui('#slider').slider().setStopped(true);
                }
            }else{
                mui('#slider').slider().gotoItem(0);
                $("#preTab").hide();
                $(".xufangsq-icon").hide();
                mui('#slider').slider().setStopped(true);
            }
            //判断签约状态
            checkIsSign();
        } else {
            queryFailed(res);
        }
    });
}
//判断是否已经签约
function checkIsSign(){
    var url = 'patient/is_sign',
        params = {};
    sendPost(url, params, 'json', 'post', queryFailed, function(res){
        if(res.status == 200){
            is_sign = res.data;//0未签约,1已签约
//          if(is_sign==1 || is_sign == -1){//1已经签约的  
            if(chooseTab == 1){
                mui('#healthConsulationPanel').pullRefresh().scrollTo(0, 0, 1000);
                getHealthConsulationList(); //获取健康咨询列表
            }else{
                mui('#re-prescriptionConsulationPanel').pullRefresh().scrollTo(0, 0, 1000);
                getPreConsultList(); //获取健康咨询列表
            }
//          }else 
//			if(is_sign==0){
//              d.close();
//              //签约未完成
//              $(".mui-content").hide();
//              $('.div-signing').show();
//          }	
            /*else if(is_sign == -1){//-1签约已到期或未签约
                d.close();
                $(".mui-content").hide();
                $(".div-no-sign").show();
            }*/
        }else{
            queryFailed(res);
        }
    });
}
//获取健康咨询列表
function getHealthConsulationList(){
    var url = 'patient/consult/records',
        params = {
            id: id,
            pagesize: pageSize,
            title: $("#item1 .inp-search").val().trim()
        };
    sendPost(url, params, 'json', 'get', queryFailed, function(res){
        if(res.status == 200){
        		if(is_sign == 1){
            	 	$(".div-add-btn").show();
            }else{
           	 	$(".div-add-btn").hide();
            }
        		$("#healthConsulationPanel").css("top","50px");
            d.close();
            $('#healthConsulationPanel').show();
            if (res.list.length > 0) {
                $('#ul_jiating_consultation').show();
                $('#item1 .vertical-line').show();
                $("#item1 .div-no-search-info").hide();
                $("#item1 .div-no-info").hide();
                var searchText = $("#item1 .inp-search").val().trim();
                var list = _.map(res.list, function(o){
                    o.jsonStr = JSON.stringify(o);
                    //针对搜索字体
                    if(searchText.length > 0){
                        var reg = new RegExp(searchText,"g");
                        o.symptoms = o.symptoms.replace(reg, '<em>'+searchText+"</em>");
                    }
                    var divStatus = "";
                    if(o.type==2){
                    	if(o.status==0){
	                        //咨询中
	                        divStatus = "div-beginning";
	                    }else if(o.evaluate ==1){
	                        divStatus = "div-hasvalue";//是否有评价 0无 1有
	                    }else{
	                        divStatus = "div-novalue";
	                    }
                    }
                    o.statusClass = divStatus;
                    return o;
                });
                var html = template('healthConsulation_tmp', {list: list});
                if(id == 0){
                    $("#ul_jiating_consultation").empty().append(html);
                }else{
                    $("#ul_jiating_consultation").append(html);
                }
                if(res.list.length < pageSize){
                    mui("#item1 .mui-scroll-wrapper").pullRefresh().endPullupToRefresh(true);
                }
                id =  res.list[res.list.length-1].id;
            }else{
                if(isHealthSearch){//查询无结果
                    $('#ul_jiating_consultation').hide();
                    $('#item1 .vertical-line').hide();
                    $("#item1 .div-no-search-info").show();
                    isHealthSearch = false;
                }else if(id==0){//id为0的时候证明是第一次加载,第一次加载无数据,显示无数据界面
                    $('#ul_jiating_consultation').hide();
                    $('#item1 .vertical-line').hide();
                    $("#item1 .div-no-info").show();
                    $("#healthConsulationPanel").css("top","0px");
                    if(is_sign == 0){
	      	          $(".mui-content").hide();
		              $('.div-signing').show();
	                }
                }
            }
        }else{
            queryFailed(res);
        }
    });
}
//获取续方咨询列表
function getPreConsultList(){
    d.show();
    var url = 'patient/consult/getPreConsultList',
        params = {
            id: xfId, 
            pagesize: xfPageSize,
            title: $("#item2 .inp-search").val().trim()
        };
    sendPost(url, params, 'json', 'get', queryFailed, function(res){
        if(res.status == 200){
            d.close();
            $("#re-prescriptionConsulationPanel").show();
            if(res.list.length > 0){
                $('#ul_xufang_consultation').show();
                $('#item2 .vertical-line').show();
                $("#item2 .div-no-info").hide();
                $("#item2 .div-no-search-info").hide();
                var searchText = $("#item2 .inp-search").val().trim();
                var list = _.map(res.list, function(o){
                    o.jsonStr = JSON.stringify(o);
                    //针对搜索字体
                    if(searchText.length > 0){
                        var reg = new RegExp(searchText,"g");
                        o.symptoms = o.symptoms.replace(reg, '<em>'+searchText+"</em>");
                    }
                    var divStatus = "";
                    if(o.status==0){
                        //咨询中
                        divStatus = "div-beginning";
                    }else if(o.evaluate ==1){
                        divStatus = "div-hasvalue";//是否有评价 0无 1有
                    }else{
                        divStatus = "div-novalue";
                    }
                    o.statusClass = divStatus;
                    return o;
                });
                var html = template('re-prescriptionConsulation_tmp', {list: list});
                if(xfId == 0){
                    $("#ul_xufang_consultation").empty().append(html);
                }else{
                    $("#ul_xufang_consultation").append(html);
                }
                if(res.list.length < xfPageSize){
                    mui("#item2 .mui-scroll-wrapper").pullRefresh().endPullupToRefresh(true);
                }
                xfId ++;
            }else{
                if(isPreSearch){//查询无结果
                    $('#ul_xufang_consultation').hide();
                    $('#item2 .vertical-line').hide();
                    $("#item2 .div-no-search-info").show();
                    isPreSearch = false;
                }else if(xfId==0){//id为0的时候证明是第一次加载,第一次加载无数据,显示无数据界面
                    $('#ul_xufang_consultation').hide();
                    $('#item2 .vertical-line').hide();
                    $("#item2 .div-no-info").show();
                }
            }
        }else{
            queryFailed(res);
        }
    });
}
//查询签约类型
function querySignType(type){
    chooseType = type;
    d.show();
    sendPost('patient/sign_doctors', {}, 'json', 'post', function(res){
        queryFailed(res, '获取咨询类型失败');
    }, querySignTypeSuccess);
}
//查询签约类型成功回调处理事件
function querySignTypeSuccess(res){
    if (res.status == 200) {
        var doctors = "";
        switch(Number(chooseType)) {
            case 1: doctors = res.teamDoctors; break;
            case 2: doctors = res.familyDoctors; break;
            default: break;
        }
        
        var docInfo,docQkInfo;
        $.each(doctors, function(i, v) {
            if(v.teamlevel){
                if(v.teamlevel == 3){
                    docInfo = v;
                }
                if(v.teamlevel == 2){
                    docQkInfo = v;
                }
            }else{
                if(v.level == 3){
                    docInfo = v;
                }
                if(v.level == 2){
                    docQkInfo = v;
                }
            }
        });
        
        if(!docInfo){
            docInfo = docQkInfo;
        }
        
        //判断是否有未结束的咨询
        isConsultUnfinished(docInfo,docQkInfo);
    } else {
        queryFailed(res);
    }
}
//判断是否有未结束的咨询
function isConsultUnfinished(docInfo,docQkInfo){
    var url = 'patient/consult/is_consult_unfinished',
        params = {doctor: docInfo.code};
    sendPost(url, params, 'json', 'post', function(res){
        queryFailed(res, '获取是否存在咨询失败');
    },function(res){
        d.close();
        if(res.status == 200){
            if(res.data == ""){
                //不存在
                checkDocInWork(chooseType, docInfo,docQkInfo);
            } else {
                dialog({
                    content: '十分抱歉,您与'+ docInfo.name +'医生还有<br/>未结束咨询,无法发起新的咨询',
                    okValue:'前往查看',
                    ok: function (){    
                        var userInfo = JSON.parse(userAgent);
                        var rep = userInfo.represented?userInfo.represented:userInfo.uid;
                        window.location.href = "consulting-doctor.html?consult=" + res.data +"&toUser="+rep;
                    },
                    cancelValue: '我知道了',
                    cancel: function () {
                        $(".modal-overlay").trigger("click");
                        $(".jiating-icon").removeClass("active");  
                        $(".mingyi-icon").removeClass("active");  
                        return;
                    }
                }).showModal();
            }
        } else {
            dialog({contentType:'tipsbox',bottom:true, skin:'bk-popup' , content:res.msg}).show();
        }
    });
}
//获取签约医生的工作时间
function checkDocInWork(type, doctor,docQkInfo){
    var url = 'patient/consult/isDoctorWorkWhenconsult',
        params = {doctor:docQkInfo.code,healthDoctor:doctor.code};
    sendPost(url, params, 'json', 'post', queryFailed, function(res){
        if(res.status == 200){
        	//	data:0-医生不接受咨询/1-医生当前接受咨询/2-全科医生和健管师当前都不在工作时间/3-全科医生当前不在工作时间/4-健管师当前不在工作时间		     健管师当前不在工作时间
			if(res.data==2){
				dialog({
				    content: '您好,由于您的签约医生工作繁忙,设置了每日回复咨询的时间段,所以,在该时间段外的时间,您的咨询将不会马上获得医生的回复。',
				    okValue:'查看医生工作时间',
				    ok: function (){				            		
				      	window.location.href = "doctor-work-hours.html?doctor=" + docQkInfo.code+"&healthDoctor="+doctor.code;
				    },
				    cancelValue: '继续新增咨询',
				    cancel: function () {
						window.location.href = "add-consult.html?type=" +type+"&doctorCode="+doctor.code;
				    }
		   		 }).showModal();
			}else if(res.data==3){
				dialog({
				    content: '您好,由于您的签约全科医生工作繁忙……,您的咨询将不会马上获得全科医生的回复 。',
				    okValue:'查看医生工作时间',
				    ok: function (){				            		
				      	window.location.href = "doctor-work-hours.html?doctor=" + docQkInfo.code+"&healthDoctor="+doctor.code;
				    },
				    cancelValue: '继续新增咨询',
				    cancel: function () {
						window.location.href = "add-consult.html?type=" +type+"&doctorCode="+doctor.code;
				    }
		   		 }).showModal();
			}else if(res.data==4){
				dialog({
				    content: '您好,由于您的签约健康管理师工作繁忙……,您的咨询将不会马上获得健康管理师的回复 。',
				    okValue:'查看医生工作时间',
				    ok: function (){				            		
				      	window.location.href = "doctor-work-hours.html?doctor=" + docQkInfo.code+"&healthDoctor="+doctor.code;
				    },
				    cancelValue: '继续新增咨询',
				    cancel: function () {
						window.location.href = "add-consult.html?type=" +type+"&doctorCode="+doctor.code;
				    }
		   		 }).showModal();
			}else{
                //跳转到新增咨询页面
                window.location.href = "add-consult.html?type="+type+"&doctorCode="+doctor.code;
            }
        }else{
            queryFailed(res);
        }
    });
}
//判断是否可以新增续方咨询
function checkCanPreConsult(){
    var url = "/patient/consult/isPrescriptionConsult",
        params = {patient: patientcode};
    d.show();
    sendPost(url, params, 'json', 'get', queryFailed, function(res){
        if(res.status == 200){
            //成功及可以发起续方咨询,跳转去新增续方咨询页面
            //TODO 待处理事件
            window.location.href = "add-prescription-consult.html?patient="+patientcode+"&name="+patientName;
        }else{
            queryFailed(res);
        }
    });
}
//显示搜索输入文字
function showSearchSuggest(text, type){
    var suggestText = '搜索“'+text+'”';
    // 如果text不为空,则显示;否则隐藏
    if(text&&text.trim().length) {
        if(type == 1){//家庭医生咨询
            $("#search_suggest_text").text(suggestText);
            $("#search_suggest_text").show();
        }else if(type == 2){//续方咨询
            $("#xf_search_suggest_text").text(suggestText);
            $("#xf_search_suggest_text").show();
        }
    } else {
        if(type == 1){//家庭医生咨询
            $("#search_suggest_text").text('');
            $("#search_suggest_text").hide();
        }else if(type == 2){//续方咨询
            $("#xf_search_suggest_text").text('');
            $("#xf_search_suggest_text").hide();
        }
    }
}
//搜索操作
function search(type){
    d.show();
    if(type == 1){//家庭医生咨询
        isHealthSearch = true;
        id = 0;
        $("#search_suggest_text").text('');
        $("#search_suggest_text").hide();
        $("#item1 .searchbar-cancel").hide();
        $("#item1 .searchbar-cancel").css("opacity","0");
        $("#item1 .div-no-info").hide();
        $("#item1 .div-no-search-info").hide();
        d.show();
        getHealthConsulationList();
    }else if(type == 2){//续方咨询
        isPreSearch = true;
        xfId = 0;
        $("#xf_search_suggest_text").text('');
        $("#xf_search_suggest_text").hide();
        $("#item2 .searchbar-cancel").hide();
        $("#item2 .searchbar-cancel").css("opacity","0");
        $("#item2 .div-no-info").hide();
        $("#item2 .div-no-search-info").hide();
        getPreConsultList();
    }
    
}
function bindEvents(){
    //监听tab切换动作
    document.querySelector('.mui-slider').addEventListener('slide', function(event) {
        var index = event.detail.slideNumber;
        chooseTab = index + 1;
        if(!loaded[index]){ //tab未加载过,则加载数据
            d.show();
            getPreConsultList();
            loaded[index] = true;
        }
    });
    
    $("#ul_jiating_consultation").on("tap",'li', function(){
        var userInfo = JSON.parse(userAgent);
        var jsonData = JSON.parse(this.getAttribute("data-json"));
        if(jsonData.type == 2 && jsonData.status == 0){
            var url = "patient/sign_status",
                params = {};
            d.show();
            sendPost(url, params, "json", "post", queryFailed, function(res){
                d.close();
                var teamCode = res["teamCode_2"];
                var signCode = res["signCode_2"];
                localStorage.setItem("signInfo_tab", "1");
                window.location.href = "../../qygl/html/sign_info.html?code="+jsonData.signCode+"&consult="+jsonData.code+"&teamCode="+jsonData.teamCode+"&type="+jsonData.type+"&doctor="+jsonData.doctorCode;
            });
        }else{
            localStorage.setItem("evaluate",jsonData.evaluate);
            window.location.href = "consulting-doctor.html?consult=" + jsonData.code+"&type="+jsonData.type+"&toUser="+userInfo.uid+"&doctor="+jsonData.doctorCode;
        }
    });
    
    $("#ul_xufang_consultation").on("tap",'li', function(){
        var userInfo = JSON.parse(userAgent);
        var jsonData = JSON.parse(this.getAttribute("data-json"));
        localStorage.setItem("evaluate",jsonData.evaluate);
        //跳转去续方咨询页面
        window.location.href = 'prescription-consulting.html?consult='+jsonData.code+'&type='+jsonData.type+"&toUser="+userInfo.uid+"&doctor="+jsonData.doctorCode;
    });
    
    //新增按钮事件
    $(".div-add-btn").on("click",function(){
        //现在固定显示咨询可以选择类型,不做三师等的判断
        $(this).hide();
        $(".div-dialog-content").show();
        $(".modal-overlay").addClass("modal-overlay-visible");
    });
    
    //点击遮罩事件
    $(".modal-overlay").on("click",function(){
        $(".modal-overlay").removeClass("modal-overlay-visible");
        $(".div-dialog-content").hide();
        $(".div-add-btn").removeClass("active");
        if(is_sign == 1){
        		$(".div-add-btn").show();
        }else{
        		$(".div-add-btn").hide();
        }
        
    });
    
    //点击家庭医生事件
    $(".jiating-icon").on("click",function(){
        $(this).addClass("active");
        if(is_sign == 1){
        	//判断该居民是否已经缴费 1为已经交费  ""没有签约信息 "0"未扣费 "1"已扣费 "2"已退费
        		if(expensesStatus == 1){
        			querySignType(2);
        		}else{
        			//未缴费居民限制咨询次数
	        		limitZxTimes();
        		}
        }else{
        		 $(".div-dialog-content").show();
        		 dialog({
                    content: '没有有效的签约信息,请前往签约',
                    okValue:'前往签约',
                    ok: function (){    
                        window.location.href = "../../qygl/html/signing_management.html";
                    },
                    cancelValue: '我知道了',
                    cancel: function () {
                        $(".modal-overlay").trigger("click");
                        $(".jiating-icon").removeClass("active");  
                        $(".mingyi-icon").removeClass("active");  
                        return;
                    }
                }).showModal();
        }
        
//      if(expensesStatus == 1){
//      		querySignType(2);
//      }else if(expensesStatus == ""){
//  	 		d.close();
//          $(".mui-content").hide();
//          $(".div-no-sign").show();
//      }else{
//      		//未缴费居民限制咨询次数
//	        limitZxTimes();
//      }
    });
    //点击名医咨询事件
    $(".mingyi-icon").on("click",function(){
        $(this).addClass("active");
        if(is_sign == 1){
            window.location.href = "select-consult-doctor.html";
        }else{
            dialog({
                content: '没有有效的签约信息,请前往签约',
                okValue:'前往签约',
                ok: function (){    
                    window.location.href = "../../qygl/html/signing_management.html";
                },
                cancelValue: '我知道了',
                cancel: function () {
                    $(".modal-overlay").trigger("click");
                    $(".jiating-icon").removeClass("active");  
                    $(".mingyi-icon").removeClass("active");  
                    return;
                }
            }).showModal();
        }
        
    });
    
    //取消事件
    $(".quxiao").on("click",function(){
        $(".modal-overlay").trigger("click");
    });
    
    //查看签约
    $('#signing-btn').on('click',function(){
        window.location.href = "../../qygl/html/signing_management.html";
    });
    
    //跳转去签约管理页面
    $("#goToSign").on('click', function(){
        window.location.href = "../../qygl/html/signing_management.html";
    });
    
    //点击发起咨询事件
    $("#launch-btn").on("tap",function(){
        $(".div-add-btn").trigger("click"); 
    });
    
    //点击续方tab内发起咨询的事件
    $("#launch-btn2").on("tap", function(){
        //判断是否可以续方咨询
        checkCanPreConsult();
    })
    
    //点击续方申请事件
    $(".xufangsq-icon").on("click",function(){
        $(this).addClass("active");
        //判断是否可以续方咨询
        checkCanPreConsult();
    });
    
    //搜索框事件
    $(".inp-search").on("input",function(){
        var text = $(this).val().trim(),
            type = $(this).attr("data-val");
        
        if(type == 1){//家庭医生咨询
            $('#healthConsulationPanel').hide();
        }else if(type == 2){//续方咨询
            $('#re-prescriptionConsulationPanel').hide();
        }
        
        showSearchSuggest(text, type);
        var $searchCancelBtn = $(".searchbar-clear");
        if(text){
//          $searchCancelBtn.css("opacity","1");
        }else{
//          $searchCancelBtn.css("opacity","0");
            search(type);
        }
    }).on('keydown',function(e) {
        var type = $(this).attr("data-val");
        if (e.which === 13) {
            search(type);
        }
    });
    
    $("#search_suggest_text").on("click", function(){
        search(1);
    });
    
    $("#xf_search_suggest_text").on("click", function(){
        search(2);
    });
    
    $(".searchbar-clear").on("click", function(){
        $(this).css("opacity","0");
        var $input = $(this).closest('.inp-search'),
            type = $input.attr("data-val");
        
        $input.val('');
        if(type == 1){//家庭医生咨询
            $("#search_suggest_text").text('');
            $("#search_suggest_text").hide();
        }else if(type == 2){//续方咨询
            $("#xf_search_suggest_text").text('');
            $("#xf_search_suggest_text").hide();
        }
        search(type);
    });
    
    //限制左右滑动
    // 左滑事件
    document.addEventListener("swipeleft", function(event) {
        console.log(event);
        event.preventDefault();
        return false;
    });
    // 右滑事件
    document.addEventListener("swiperight", function(event) {
        console.log(event);
        event.preventDefault();
        return false;
    });
}
//未缴费居民限制咨询次数
function limitZxTimes(){
	//获取剩余家庭咨询次数
	var url = '/patient/consult/remainConsultTimes';
	var remainTimes;//剩余咨询次数
	var countTimes;//总咨询次数
	var zxTimes;//已咨询次数
    d.show();
    sendPost(url, {}, 'json', 'get', queryFailed, function(res){
        if(res.status == 200){
        		d.close();
			remainTimes = res.data.amount;
			countTimes = res.data.count;
			zxTimes = countTimes - remainTimes;
			if(zxTimes == countTimes){
				//未缴费的总咨询次数已达上限 提示去缴费
                dialog({
                    content: '您本年度家庭医生签约暂未缴费,当前10次免费健康咨询已全部使用.如果需要家庭医生继续为您提供服务,请尽快完成缴费操作',
                    okValue:'前往缴费',
                    ok: function (){  
                        window.location.href = "../../qygl/html/signing_management.html";
                    }
                }).showModal();
			}else{
				
                dialog({
                    content: '您本年度家庭医生签约暂未缴费,可使用10次免费健康咨询,当前剩余:'+remainTimes+'次.为避免影响您的服务体验,请尽快完成缴费操作',
                    okValue:'前往缴费',
                    ok: function (){    
                          window.location.href = "../../qygl/html/signing_management.html";
                    },
                    cancelValue: '开始咨询',
                    cancel: function () {
                        querySignType(2)
                    }
                }).showModal();
            
			}
        }else{
            queryFailed(res);
        }
    });
}
//请求失败处理事件
function queryFailed(res, message){
    d.close();
    if(message){
        dialog({contentType:'tipsbox',bottom:true, skin:'bk-popup' , content: message}).show();
    }else{
        if (res && res.msg) {
            dialog({contentType:'tipsbox',bottom:true, skin:'bk-popup' , content:res.msg}).show();
        } else {
            dialog({contentType:'tipsbox',bottom:true, skin:'bk-popup' , content:'加载失败'}).show();
        }
    }
    
}
//获取微信信息,并配置微信api接口
function wxGetSign(){
    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
                });
            } 
        }
    });
}

+ 560 - 0
html/yszx/js/manyidu.js

@ -0,0 +1,560 @@
var d = dialog({contentType:'load', skin:'bk-popup'});
var dd = dialog({contentType:'load', skin:'bk-popup', content:'发送中...'});
var Request = new Object();
Request = GetRequest(); 
var userAgent = window.localStorage.getItem(agentName);
var toUser = Request["toUser"];
var toName = decodeURIComponent(Request["toName"]);
var openid = Request["openid"];
var represented = Request["represented"];
var consult = Request["consult"];
var pagetype = 0;
$(function() {
	if(!userAgent) {
		window.localStorage.setItem(pageName, JSON.stringify({pageurl: location.href}))
		window.location.href = server + "wx/html/home/html/zhmm-login.html?type=" + pagetype + "&openid=" + openid;	
		return false;
	}
	var newUaObj = JSON.parse(window.localStorage.getItem(agentName))
	//判断关系
	function hasFamilyRelation(a,b){
		return new Promise(function(resolve, reject) {
			var data={
				patient:a,
				familyMember:b
			}
			sendPost("patient/family/is_authorize", data, "json", "get", function(res){
				dialog({contentType:'tipsbox',bottom:true, skin:'bk-popup' , content:'请求家庭成员关系失败'}).show(); 
			}, function(res){
				if(res.status == 200) {
					window.localStorage.setItem('nowPatientName',res.data.name);
					resolve(res)
				}else if(res.status == 100) {
					dialog({
						content:'对不起,'+res.data.name+'未授权给您,如需查看,请切换'+res.data.name+'账号登录',
						okValue:'切换账号',
						ok: function() {
							window.localStorage.setItem(pageName, JSON.stringify({pageurl: location.href}))
							window.location.href = "../../grzx/html/change-login.html?type=0&openid="+ Request["openid"];
						},
						cancelValue: '我不看了',
						cancel: function () {
							wx.closeWindow();
			            }
					}).showModal();
				}else{
					relogin();
				}
				
			})
		})
	}
	//重新登录操作
	function relogin(){
		dialog({
			content:'对不起,该消息是发给'+toName+',如需查看,请切换'+toName+'账号登录',
			okValue:'切换账号',
			ok: function() {
				window.localStorage.setItem(pageName, JSON.stringify({pageurl: location.href}))
				window.location.href = "../../grzx/html/change-login.html?type=0&openid="+ Request["openid"];
			},
			cancelValue: '我不看了',
			cancel: function () {
				wx.closeWindow();
            }
		}).showModal();
	}
	//保存信息
	function saveUserInfo(a,b){
		Promise.all([hasFamilyRelation(a,b)]).then(function () {
			newUaObj.represented = represented;
			window.localStorage.setItem(agentName,JSON.stringify(newUaObj));
		})
	}
	
	function initFamilyData () {
		//从微信模板消息进入
		if(represented && userAgent && toUser){
			if(toUser == represented){
				saveUserInfo(represented,newUaObj.uid)
			}else if(toUser != represented && represented == newUaObj.uid){
				//本人代理
				saveUserInfo(represented,newUaObj.uid)
			}else if(toUser != represented && toUser == newUaObj.uid){
				//需要判定关系 200有授权 100家人 1无关系	
				saveUserInfo(represented,newUaObj.uid)
			}else{
				//重新登录	
				relogin();
			}
		}
	}
	initFamilyData();
		
	var doctorPar,//参与咨询医生信息
		$starListGroup = $('#manValueList'),
		reqUrl = '',
		evaluateKind = 1,//实名类型
		finish = 1;//提交后标志
	
	//参与者
	var data = {};
	data.consult = consult;
	data.page = 1;
	data.pagesize = 1;
	sendPost('patient/consult/loglist', data, 'json', 'GET', function(){
		dialog({contentType:'tipsbox', skin:'bk-popup' ,bottom:true, content:'请求数据失败'}).show(); 
	}, function(res){
		if (res.status == 200) {	
			res = res.list;
			var arr = [];//储存参与咨询的医生
			for(var k in res.users){
				if(res.users[k].is_patient == 0){
					arr.push(res.users[k])
				}
			}
			doctorPar=arr;	
			nextWork();
		}else{
			dialog({contentType:'tipsbox', skin:'bk-popup' ,bottom:true, content:'加载数据失败'}).show();
		}
	})
	
	
	function nextWork(){
		if(doctorPar){
			for(var k in doctorPar){
				if(doctorPar[k].level == 1){
					doctorPar[k].levelName = '专科医生'
				}
				if(doctorPar[k].level == 2){
					doctorPar[k].levelName = '全科医生'
				}
				if(doctorPar[k].level == 3){
					doctorPar[k].levelName = '健康管理师'
				}
			}
		}
		queryOldData();	
		bindEvents();
	}
	
	function bindEvents(){
		//文本框
	    $starListGroup.on('keyup',"textarea",function(){
	    	var $this = $(this);
	        var count = $this.val().length;
	        $this.parent('.text-input').find('.text_count').text(count);
	    });
	    //匿名
	    $('.j-niming').on('click',function(){
	    	if(finish == 1){
		    	var $this = $(this).parent();
				if($this.hasClass('active')){
					$this.removeClass('active');
					evaluateKind = 1;
				}else{
					$this.addClass('active');
					evaluateKind = 2;
				}
			}
	   	})
	    //贴标签展开和关闭
	    $starListGroup.on('click','.small-title',function(){
	    	if(finish == 1){
		    	var $this = $(this);
				if($this.hasClass('active')){
					$this.removeClass('active');
					$this.siblings('.j-tag-detail').animate({height:'hide'},300)
				}else{
					$this.addClass('active');
					$this.siblings('.j-tag-detail').animate({height:'show'},300)
				}
			}
	    })
		//点击显示星星
		$starListGroup.on('click','.star-lists .one-star',function(){
			var $this = $(this);
			var $parent = $this.parent();
			if(finish == 1){
				$parent.find('.one-star').removeClass('active')
				for(var i=0;i<=$this.index();i++){
					$parent.find('.one-star').eq(i).addClass('active');
				}
			}
		})
		//贴上功能
		$starListGroup.on('click','.j-submit',function(){
			if(finish == 1){
				var $this = $(this);
				var $input = $this.siblings('.input').find('input');
				var val = $input.val().trim();
				if($this.parent().siblings('ul.tag-list').find('li.active').length > 3){
					dialog({contentType:'tipsbox',bottom:true, skin:'bk-popup' , content:'最多只能选择4个标签'}).show();
				}else{
					if(val){
						if(val.length>8){
							dialog({contentType:'tipsbox',bottom:true, skin:'bk-popup' , content:'自定义标签最多8个字'}).show();
							$input.blur();
							return;
						}else{
							var html = '<li class="active">'+val+'</li>';
							$this.parent().siblings('ul.tag-list').append(html);
							$input.val('');
							$input.blur();
						}
					}
				}
			}
		})
		//点击标签选取
		$starListGroup.on('click','ul.tag-list li',function(){
			if(finish == 1){
				var $this = $(this);
				if($this.hasClass('active')){
					$this.removeClass('active');
				}else{
					if($this.closest('ul.tag-list').find('li.active').length > 3){
						dialog({contentType:'tipsbox',bottom:true, skin:'bk-popup' , content:'最多只能选择4个标签'}).show();
					}else{
						$this.addClass('active');
					}
				}
			}
		})
		
		$('#commit').click(function(){
			var data = {},
				label = [],
				evaluate = [],
				evaluateScore = [],
				$one = $starListGroup.find('.j-section');
				
			for(var i=0;i< $one.length;i++){
				var $ul = $one.eq(i).find('.star-lists').find('ul.list li.active').length;//该医生是否评价完整
				var remarkValue = $one.eq(i).find('.text-input textarea').val().trim();
				if($ul >0){
					for(var j=0;j<3;j++){
						var val = $one.eq(i).find('.star-lists').eq(j).find('ul.list li.active').length;
						if(!val){
							dialog({contentType:'tipsbox', skin:'bk-popup' ,bottom:true, content:'请完善医生评分'}).show(); 
							return ;
						}
						if(val <= 3){
							var isNimimg = $('.ni-select').hasClass('active');
							if(isNimimg){
								dialog({
									content:'为了帮助医生及时发现服务中存在的问题并作出改正,当您给出三星及以下评价时,需要实名评价哦~',
									okValue:'确定',
									ok: function() {
//										wx.closeWindow();
									}
								}).showModal();
								return ;
							}
						}
						if(val <= 4){
							if(!remarkValue){
								dialog({
									content:'为帮助医生及时发现服务存在的问题,当您给出四星及以下评价时,需要说明对医生服务的意见哦~',
									okValue:'确定',
									ok: function() {
//										wx.closeWindow();
									}
								}).showModal();
								return ;
							}
						}
					}
				}else{
					dialog({contentType:'tipsbox', skin:'bk-popup' ,bottom:true, content:'请完善医生评分'}).show(); 
					return ;
				}	
			}
			
			dd.showModal();
			for(var i=0;i< $one.length;i++){
				for(var j=0;j<3;j++){
					var obj = {};
					obj['doctor'] = $one.eq(i).find('.down-sec').data('code');
					obj['score'] = $one.eq(i).find('.star-lists').eq(j).find('ul.list li.active').length*20;
					obj['type'] = evaluateKind;
					obj['evaluateType'] = j+1;//匿名评价类型
					evaluate.push(obj);	
				}
		
				var that = $one.eq(i).find('.j-nosel .tag-list li.active');
				if(that.length >0){
					for(var z=0;z<that.length;z++){
						var obj = {};
						obj['doctor'] = $one.eq(i).find('.down-sec').data('code');
						obj['content'] = that.eq(z).text().trim();
						label.push(obj);
					}
				}
				
				var $text = $one.eq(i).find('.text-input textarea');
				var obj = {};
				obj['doctor'] = $one.eq(i).find('.down-sec').data('code');
				obj['remark'] = $text.val().trim();
				evaluateScore.push(obj);				
			}
			data['consult'] = consult;
			data['label'] = label;
			data['evaluateScore'] = evaluateScore;
			data['evaluate'] = evaluate;
			var params = {evaluate:JSON.stringify(data)};
			sendPost(reqUrl, params, 'json', 'post', submitFailed, submitSuccess);
			
		})
	}
	
	//点击修改按钮
	$('#revise').on('click',function(){
		revising()
		reqUrl = 'patient/consult/evaluate/update';
	})
	
	//点击修改评价的样式
	function revising(){
		$('#again_header').show();
		$('#yes_header').hide();
		$('#no_header').hide();
		$('#commit').show();//按钮
		$('#revise').hide();
		finish = 1;
		showTag2();
		showTextarea2();
		$('body').scrollTop(0);
	}
	//点击修改显示标签
	function showTag2(){
		var $one = $starListGroup.find('.j-section');
		for(var i=0;i<$one.length;i++){
			var $ul = $one.eq(i).find('.j-hassel .tag-list');
			var $li = $ul.find('li.active');
			var num = $li.length;
			var $ul2 = $one.eq(i).find('.j-nosel .tag-list');
			var $li2 = $ul2.find('li');
			if(num>0){
				for(var j=0;j<num;j++){
					var yes = 0;
					var name = $li.eq(j).text();
					for(var z=0;z<$li2.length;z++){
						if($li2.eq(z).text() == name){
							$li2.eq(z).addClass('active');
							yes = 1;
						}	
					}
					if(yes == 0){
						var html = '<li class="active">'+name+'</li>';
						$ul2.append(html);
					}
				}				
			}
		}
		$('.j-nosel').show();
		$('.j-hassel').hide();
	}
	//点击修改显示文本
	function showTextarea2(){
		var $one = $starListGroup.find('.j-section');
		for(var i=0;i<$one.length;i++){
			var $ul = $one.eq(i).find('.text-input textarea'),
				$ul2 = $one.eq(i).find('.show-word'),
				$val = $ul2.html();
			if($val){
				$ul.val($val);
				$ul.parent('.text-input').find('.text_count').text($ul.val().length);
			}	
		}
		$('.text-input').show();
		$('.show-word').hide();
	}
	
	//正要评价的样式
	function evaluating(){
		finish = 1;
		$('#show_text').show();
		$('#no_header').show();
	}
	//已经评价过的样式
	function evaluated(){
		finish = 0;
		$('#show_text').show();
		$('#yes_header').show();
		$('.j-nosel').hide();
		$('.text-input').hide();
		$('.show-word').show();
		hasName();
		$('#revise').show();
		$('#commit').hide();
		$('.small-title').removeClass('active');
		$('.j-tag-detail').hide();
	}
	//提交评价后的样式
	function committed(){
		finish = 0;
		localStorage.setItem("evaluate",1);
		$('#commit').hide();//按钮
		$('#revise').show();
		$('#yes_header').show();
		$('#again_header').hide();
		$('#no_header').hide();
		$('.small-title').removeClass('active');
		$('.j-tag-detail').hide();
		showTag();
		showTextarea();
		$('body').scrollTop(0);	
	}
	
    //实匿名样式切换
    function hasName(){
    	if(evaluateKind == 2){
			$('.ni-select').addClass('active');
		}else{
			$('.ni-select').removeClass('active');
		}
    }
	
	function submitFailed(res) {
		dd.close();
		if (res && res.msg) {
			dialog({contentType:'tipsbox', skin:'bk-popup' ,bottom:true, content:res.msg}).show();      
		} else {
			dialog({contentType:'tipsbox', skin:'bk-popup' , bottom:true,content:'提交失败'}).show(); 
		}
	}
	function submitSuccess(res) {
		dd.close();
		if(res.status==200){
			dialog({contentType:'tipsbox', skin:'bk-popup' , bottom:true,content:'提交成功'}).show(); 
			committed();
		}else{
			if (res && res.msg) {
				dialog({contentType:'tipsbox', skin:'bk-popup' ,bottom:true, content:res.msg}).show();      
			} 
		}
	}
	//提交后显示标签
	function showTag(){
		var $one = $starListGroup.find('.j-section');
		for(var i=0;i<$one.length;i++){
			var $ul = $one.eq(i).find('.j-nosel .tag-list');
			var $li = $ul.find('li.active');
			var num = $li.length;
			var $ul2 = $one.eq(i).find('.j-hassel .tag-list');
			if(num>0){
				var html='';
				for(var j=0;j<num;j++){
					html +='<li class="active">'+$li.eq(j).text()+'</li>'
				}
				$ul2.html(html);
				$one.eq(i).find('.j-hassel').show();
			}
		}
		$('.j-nosel').hide();
	}
	//提交后显示文本
	function showTextarea(){
		var $one = $starListGroup.find('.j-section');
		for(var i=0;i<$one.length;i++){
			var $ul = $one.eq(i).find('.text-input'),
				$val = $ul.find('textarea').val().trim(),
				$ul2 = $one.eq(i).find('.show-word');
			if($val){
				$ul2.html($val);
				$one.eq(i).find('.show-word').show();
			}	
		}
		$('.text-input').hide();
	}
	
	//请求数据看是否评价
	function queryOldData(){
		var params= {};
			params.consult = consult;
		sendPost('patient/consult/evaluate/list', params, 'json', 'get', queryFailed, querySuccess);
		
		function queryFailed(res) {
			if (res && res.msg) {
				dialog({contentType:'tipsbox', skin:'bk-popup' ,bottom:true, content:res.msg}).show();      
			} else {
				dialog({contentType:'tipsbox', skin:'bk-popup' , bottom:true,content:'请求数据失败'}).show(); 
			}
		}
		function querySuccess(res) {
			if(res.status==200){
				//显示内容
				var html = template("star_list_temp", {data: doctorPar});
				$starListGroup.append(html);
				
				var list = res.data['evaluate'];
				var labelTag = res.data['label'];
				var content = res.data['evaluateScore'];
				if(list && list.length>0){
					for(var i=0;i<$('.j-section').length;i++){
						for(var j=0;j<list.length;j++){
							if($('.down-sec').eq(i).data('code') == list[j].doctor){
								//1专业能力,2服务态度,3回复速度
								if(list[j].evaluateType == 1){
									//临时判断实匿名
									evaluateKind = list[j].type;
									
									var num = Math.floor(list[j].score/20);										
									for(var q=0;q<num;q++){
										$('.j-section').eq(i).find('.star-lists').eq(0).find('.one-star').eq(q).addClass('active');
									}
								}
								if(list[j].evaluateType == 2){
									var num = Math.floor(list[j].score/20);
									for(var q=0;q<num;q++){
										$('.j-section').eq(i).find('.star-lists').eq(1).find('.one-star').eq(q).addClass('active');
									}
								}
								if(list[j].evaluateType == 3){
									var num = Math.floor(list[j].score/20);
									for(var q=0;q<num;q++){
										$('.j-section').eq(i).find('.star-lists').eq(2).find('.one-star').eq(q).addClass('active');
									}
								}	
							}			
						}
						//显示标签
						if(labelTag && labelTag.length>0){
							var that = $('.j-hassel').eq(i).find('.tag-list');
							for(var z=0;z<labelTag.length;z++){
								if($('.down-sec').eq(i).data('code') == labelTag[z].doctor){
									var html = '<li class="active">'+labelTag[z].content+'</li>';
									that.append(html);
								}
							}
							$('.j-section').eq(i).find('.j-hassel').show();
						}
						//显示意见内容
						if(content && content.length>0){
							var that = $('.j-section').eq(i).find('.show-word');
							for(var z=0;z<content.length;z++){
								if($('.down-sec').eq(i).data('code') == content[z].doctor){
									that.html(content[z].remark);
								}
							}
						}
					}
					evaluated();
					reqUrl = 'patient/consult/evaluate/update';
				}else{//未评价
					evaluating();
					reqUrl = 'patient/consult/evaluate/save';
				}
			}else{
				queryFailed(res);
			}
		}
	}
})	
template.helper('getPhoto', function(str){
    return getImgUrl(str);
})

+ 404 - 0
html/yszx/js/mingyi-homepage.js

@ -0,0 +1,404 @@
Request = GetRequest(); 
var id = 0;
var pageSize = 15;
var d = dialog({contentType:'load', skin:'bk-popup'});	
var doctorCode = Request["doctorCode"];
var scroller1 = null;
var userAgent = window.localStorage.getItem(agentName);
$(function(){
	//添加isrcoll
	 scroller1 = new IScrollPullUpDown('wrapper',{
			probeType:2,
			bounceTime: 250,
			bounceEasing: 'quadratic',
			mouseWheel:false,
			scrollbars:true,
			click:true,
			fadeScrollbars:true,
			interactiveScrollbars:false
	},null,null);
	
	pageInit();
})
  var count = 0;
  var ids=[
		 {cosultTime:"zhouyi1",consultCount:"zhouyi2"},
		 {cosultTime:"zhouer1",consultCount:"zhouer2"},
		 {cosultTime:"zhousan1",consultCount:"zhousan2"},
		 {cosultTime:"zhousi1",consultCount:"zhousi2"},
		 {cosultTime:"zhouwu1",consultCount:"zhouwu2"},
		 {cosultTime:"zhouliu1",consultCount:"zhouliu2"},
		  {cosultTime:"zhouri1",consultCount:"zhouri2"}
		 ];
		 
	function pageInit(){
		d.show();
	    pageInitData();
	}
	
	function getListFail(res){
		d.close();
		if (res && res.msg) {
			dialog({contentType:'tipsbox', skin:'bk-popup' , content:res.msg,bottom:true}).show();     
		} else {
			dialog({contentType:'tipsbox', skin:'bk-popup' , content:'加载失败',bottom:true}).show(); 
		}
	}
	
	//查询医生的工作时间+名医主页信息,并判断当前是否可咨询(该医生今日是否有次数、是否在医生工作时间内)如当前可咨询,则立即咨询高亮显示,如不可咨询,则置灰
	function pageInitData(){
		sendPost('/patient/consult/doctor_worktime', {doctor:doctorCode}, 'json', 'post', getListFail, function(res){
				if(res.status==200){	
					var workWeek = res.data.workWeeks;
					var worktime = res.data.workTime;
					var doctor = res.data.doctor;
					if(workWeek&&workWeek.length>0){
						for(var i = 0 ;i<workWeek.length;i++){
							var weekInfo = workWeek[i];
							if(weekInfo.morning==1 && weekInfo.afternoon==1 && weekInfo.night==1){
								$("#"+ids[weekInfo.week-1].cosultTime).html(worktime.morningBegin+"~"+worktime.nightEnd);
							}else if(weekInfo.morning==1 && weekInfo.afternoon==0 && weekInfo.night==0){
								$("#"+ids[weekInfo.week-1].cosultTime).html(worktime.morningBegin+"~"+worktime.morningEnd);
							}else if(weekInfo.morning==0 && weekInfo.afternoon==1 && weekInfo.night==0){
								$("#"+ids[weekInfo.week-1].cosultTime).html(worktime.afternoonBegin+"~"+worktime.afternoonEnd);
							}else if(weekInfo.morning==0 && weekInfo.afternoon==0 && weekInfo.night==1){
								$("#"+ids[weekInfo.week-1].cosultTime).html(worktime.nightBegin+"~"+worktime.nightEnd);
							}else if(weekInfo.morning==1 && weekInfo.afternoon==1 && weekInfo.night==0){
								$("#"+ids[weekInfo.week-1].cosultTime).html(worktime.morningBegin+"~"+worktime.afternoonEnd);
							}else if(weekInfo.morning==0 && weekInfo.afternoon==1 && weekInfo.night==1){
								$("#"+ids[weekInfo.week-1].cosultTime).html(worktime.afternoonBegin+"~"+worktime.nightEnd);
							}
							$("#"+ids[weekInfo.week-1].consultCount).html(worktime.famousConsultTimes+"次");
						}
					}
					var photo = doctor.photo;
					if(!photo){
						var photo = "../../../images/noSexDoctor.jpg";
						if(doctor.sex==1){
							photo = "../../../images/d-male.png";
						}else if(doctor.sex==2){
							photo = "../../../images/d-female.png";
						}
					}
					$("#photo").attr("src", getImgUrl(photo));
					$("#name").html(doctor.name);
					$("#jobName").html(doctor.jobName);
					$("#deptName").html(doctor.deptName);
					$("#hospitalName").html(doctor.hospitalName);
					$("#expertise").html(doctor.expertise);
					$("#introduce").html(doctor.introduce);
					scroller1.myScroll.refresh();	
					d.close();
					
					isWordTimeInit();//判断当前是否可咨询(该医生今日是否有次数、是否在医生工作时间内)如当前可咨询,则立即咨询高亮显示,如不可咨询,则置灰
				}else{
					getListFail(res);
				}		
			});	
	}
	
	//判断当前是否可咨询(该医生今日是否有次数、是否在医生工作时间内)如当前可咨询,则立即咨询高亮显示,如不可咨询,则置灰
	function isWordTimeInit(){
		var week = new Date().getDay()==0?7:new Date().getDay();
		var myDate = new Date();
		if($("#"+ids[week-1].cosultTime).html()){//有上班时间
			//查询名医当前是否在工作时间内
			sendPost('patient/consult/is_doctor_working', {doctor:doctorCode}, 'json', 'post', getListFail, function(res){
				if(res.status==200){		
					var data = res.data;//0:医生不接受咨询 1:医生接受咨询 2:医生当前不在工作时间
					if(data==1){
						sendPost('patient/consult/consult_times_remain', {doctor:doctorCode}, 'json', 'post', getListFail, function(res){
							if(res.status==200){		
								count = res.data;//名医剩余咨询次数
								if(count>0){
									$("#bang-btn").addClass("active");
								}else{
									$("#bang-btn").removeClass("active");
								}
							}else{
								getListFail(res);
							}		
						});
					}else if(data==2){
//						dialog({
//						    content: '医生不在工作时间内哦,请在医生咨询计划时间段内咨询',
//						    cancelValue: '我知道了',
//						    cancel: function () {
//						    	$("#bang-btn").removeClass("active");
//								return;
//						    }
//						}).showModal();
						$("#bang-btn").removeClass("active");
						return false;
					}else{
//						dialog({
//						    content: '对不起,该医生已暂停接受咨询,您可选择其他医生进行咨询',
//						    cancelValue: '我知道了',
//						    cancel: function () {
//						    	$("#bang-btn").removeClass("active");
//								return;
//						    }
//						}).showModal();
						$("#bang-btn").removeClass("active");
						return false;
					}
				}else{
					getListFail(res);
				}		
			});
		}			
	}
	
	
	//立即咨询事件
	$("#bang-btn").on("click",function(){
		if($(this).hasClass("active")){
			d.show();
			if(userAgent) {
				userAgent = JSON.parse(userAgent);
			}
			//先判断这位名医是否是您的签约医生
			sendPost('patient/family_contract/getSignMessage', {patientCode:userAgent.represented?userAgent.represented:userAgent.uid}, 'json', 'get', getListFail, function(res){
				if(res.status==200){
					var list = res.list;
					var isMySignDoctor = false;
					for(var i=0;i<list.length;i++){
						if(list[i].code==doctorCode){
							isMySignDoctor = true;
							break;
						}
					}
					if(isMySignDoctor){
						d.close();
						dialog({
						    content: '对不起,这位名医是您的签约医生,可直接对其发起健康咨询',
						    okValue:'前往咨询',
						    ok: function (){				            		
						        window.location.href = server + "wx/html/yszx/html/doctor-consultation.html";
						    },
						    cancelValue: '不了,谢谢',
						    cancel: function () {
								wx.closeWindow();
						    }
						}).showModal();
					}else{
						//查询名医当前是否在工作时间内
						sendPost('patient/consult/is_doctor_working', {doctor:doctorCode}, 'json', 'post', getListFail, function(res){
							if(res.status==200){		
								var data = res.data;//0:医生不接受咨询 1:医生接受咨询 2:医生当前不在工作时间
								if(data==1){
									sendPost('/patient/consult/doctor_worktime', {doctor:doctorCode}, 'json', 'post', getListFail, function(res){
										if(res.status==200){	
											var workWeek = res.data.workWeeks;
											var worktime = res.data.workTime;
											var doctor = res.data.doctor;
											if(workWeek&&workWeek.length>0){
												for(var i = 0 ;i<workWeek.length;i++){
													var weekInfo = workWeek[i];
													if(weekInfo.morning==1 && weekInfo.afternoon==1 && weekInfo.night==1){
														$("#"+ids[weekInfo.week-1].cosultTime).html(worktime.morningBegin+"~"+worktime.nightEnd);
													}else if(weekInfo.morning==1 && weekInfo.afternoon==0 && weekInfo.night==0){
														$("#"+ids[weekInfo.week-1].cosultTime).html(worktime.morningBegin+"~"+worktime.morningEnd);
													}else if(weekInfo.morning==0 && weekInfo.afternoon==1 && weekInfo.night==0){
														$("#"+ids[weekInfo.week-1].cosultTime).html(worktime.afternoonBegin+"~"+worktime.afternoonEnd);
													}else if(weekInfo.morning==0 && weekInfo.afternoon==0 && weekInfo.night==1){
														$("#"+ids[weekInfo.week-1].cosultTime).html(worktime.nightBegin+"~"+worktime.nightEnd);
													}else if(weekInfo.morning==1 && weekInfo.afternoon==1 && weekInfo.night==0){
														$("#"+ids[weekInfo.week-1].cosultTime).html(worktime.morningBegin+"~"+worktime.afternoonEnd);
													}else if(weekInfo.morning==0 && weekInfo.afternoon==1 && weekInfo.night==1){
														$("#"+ids[weekInfo.week-1].cosultTime).html(worktime.afternoonBegin+"~"+worktime.nightEnd);
													}
													$("#"+ids[weekInfo.week-1].consultCount).html(worktime.famousConsultTimes+"次");
												}
												
												setTimeout(function(){
													isWordTime();//判断医生是否在工作时间内+查询某个医生名医当前剩余咨询次数
												},300)
												
											}
										}
								});
					
									
								}else if(data==2){
									sendPost('/patient/consult/doctor_worktime', {doctor:doctorCode}, 'json', 'post', getListFail, function(res){
										if(res.status==200){	
											var workWeek = res.data.workWeeks;
											var worktime = res.data.workTime;
											var doctor = res.data.doctor;
											if(workWeek&&workWeek.length>0){
												for(var i = 0 ;i<workWeek.length;i++){
													var weekInfo = workWeek[i];
													if(weekInfo.morning==1 && weekInfo.afternoon==1 && weekInfo.night==1){
														$("#"+ids[weekInfo.week-1].cosultTime).html(worktime.morningBegin+"~"+worktime.nightEnd);
													}else if(weekInfo.morning==1 && weekInfo.afternoon==0 && weekInfo.night==0){
														$("#"+ids[weekInfo.week-1].cosultTime).html(worktime.morningBegin+"~"+worktime.morningEnd);
													}else if(weekInfo.morning==0 && weekInfo.afternoon==1 && weekInfo.night==0){
														$("#"+ids[weekInfo.week-1].cosultTime).html(worktime.afternoonBegin+"~"+worktime.afternoonEnd);
													}else if(weekInfo.morning==0 && weekInfo.afternoon==0 && weekInfo.night==1){
														$("#"+ids[weekInfo.week-1].cosultTime).html(worktime.nightBegin+"~"+worktime.nightEnd);
													}else if(weekInfo.morning==1 && weekInfo.afternoon==1 && weekInfo.night==0){
														$("#"+ids[weekInfo.week-1].cosultTime).html(worktime.morningBegin+"~"+worktime.afternoonEnd);
													}else if(weekInfo.morning==0 && weekInfo.afternoon==1 && weekInfo.night==1){
														$("#"+ids[weekInfo.week-1].cosultTime).html(worktime.afternoonBegin+"~"+worktime.nightEnd);
													}
													$("#"+ids[weekInfo.week-1].consultCount).html(worktime.famousConsultTimes+"次");
												}
												
												setTimeout(function(){
													isWordTime();//判断医生是否在工作时间内+查询某个医生名医当前剩余咨询次数
												},300)
												
											}
										}
								});
									return false;
								}else{
									d.close();
									dialog({
									    content: '对不起,该医生已暂停接受咨询,您可选择其他医生进行咨询',
									    cancelValue: '我知道了',
									    cancel: function () {
									    	$("#bang-btn").removeClass("active");
											return;
									    }
									}).showModal();
									return false;
								}
							}else{
								getListFail(res);
							}		
						});
					}
				}else{
					getListFail(res);
				}
				
			});	
		}
	})
	
	//查询某个医生名医当前剩余咨询次数
	function consultTimesRemain(){
		sendPost('patient/consult/consult_times_remain', {doctor:doctorCode}, 'json', 'post', getListFail, function(res){
			if(res.status==200){		
				count = res.data;//名医剩余咨询次数
				if(count>0){
					var week = new Date().getDay();
					var myDate = new Date();
					window.location.href = "add-consult.html?type=6&doctorCode="+doctorCode;
				}else {
					dialog({
					    content: '您来晚了哦~该医生今日已无免费次数,您可咨询其他名医或改天再来~',
					    cancelValue: '我知道了',
					    cancel: function () {
					    	$("#bang-btn").removeClass("active");
							return;
					    }
					}).showModal();
					return false;
				}
			}else{
				getListFail(res);
			}		
		});	
	}
	
	function time_range(beginTime, endTime, nowTime) {
		  var strb = beginTime.split (":");
		  if (strb.length != 2) {
		    return false;
		  }
		 
		  var stre = endTime.split (":");
		  if (stre.length != 2) {
		    return false;
		  }
		 
		  var strn = nowTime.split (":");
		  if (stre.length != 2) {
		    return false;
		  }
		  var b = new Date ();
		  var e = new Date ();
		  var n = new Date ();
		 
		  b.setHours (strb[0]);
		  b.setMinutes (strb[1]);
		  e.setHours (stre[0]);
		  e.setMinutes (stre[1]);
		  n.setHours (strn[0]);
		  n.setMinutes (strn[1]);
		 
		  if (n.getTime () - b.getTime () > 0 && n.getTime () - e.getTime () < 0) {
		    return "1";//在时间范围内
		  } else {
		    return "0";//不在工作时间内
		  }
	}
	
	function CompareDate(t1,t2)
	{
		var date = new Date();
		var a = t1.split(":");
		var b = t2.split(":");
		return date.setHours(a[0],a[1]) > date.setHours(b[0],b[1]);
	}
	
	
	//判断医生是否在工作时间内
	function isWordTime(){
		d.close();
		var week = new Date().getDay()==0?7:new Date().getDay();
		var myDate = new Date();
		if($("#"+ids[week-1].cosultTime).html()){//有上班时间
			var cosultTimeArr = $("#"+ids[week-1].cosultTime).html().split("~");
			var curHours = myDate.getHours(); //获取当前小时数(0-23)
			var curMinutes = myDate.getMinutes();//获取当前分钟数(0-59)
			var curTime = curHours+":"+curMinutes;
			var timeRange = time_range(cosultTimeArr[0],cosultTimeArr[1],curTime)
			if(timeRange=="1"){//在工作时间内,查询某个医生名医当前剩余咨询次数
				consultTimesRemain();
			}else{//不在工作时间内,判断早晚
				var isFlag1 = CompareDate(curTime,cosultTimeArr[0]);
				var isFlag2 = CompareDate(curTime,cosultTimeArr[1]);
				if(!isFlag1){//来早了
					 dialog({
					    content: '您来早了哦,'+$("#name").html()+'医生将在'+cosultTimeArr[0]+'准时开始接受咨询~',
					    cancelValue: '我知道了',
					    cancel: function () {
					    	$("#bang-btn").removeClass("active");
							return;
					    }
					}).showModal();
					return false;
				}
				if(isFlag2){//来晚了
					dialog({
						    content: '您来晚了哦~'+$("#name").html()+'医生本日咨询时间已过,请改日再来~',
						    cancelValue: '我知道了',
						    cancel: function () {
						    	$("#bang-btn").removeClass("active");
								return;
						    }
						}).showModal();
					return false;
				}
			}
		}else{
				dialog({
					    content: '医生今天不上班哦,请在医生咨询计划时间段内咨询',
					    cancelValue: '我知道了',
					    cancel: function () {
					    	$("#bang-btn").removeClass("active");
							return;
					    }
					}).showModal();
					
					return false;
		}
			
	}
	
	

+ 1213 - 0
html/yszx/js/prescription-consulting.js

@ -0,0 +1,1213 @@
var d = dialog({contentType:'load', skin:'bk-popup'});
var dd = dialog({contentType:'load', skin:'bk-popup', content:'发送中...'});
var dialroll;            
var doctorInfo;
var content = "";    
var timeStr = "";
var id = 1;
var pagesize = 100;
var Request = new Object();
Request = GetRequest(); 
var consult = Request["consult"];
var status = Request["status"];
var consultType  = Request["type"]; //咨询类型,1-三师咨询,2-家庭咨询, 6-名医咨询, 8-续方咨询
var doctor = Request['doctor'];
var toUser = Request["toUser"];
var toName = decodeURIComponent(Request["toName"]);
var openid = Request["openid"];
var represented = Request["represented"];
var evaluate = localStorage.getItem("evaluate");//1为有评价 0为无评价
var prescriptionCode;
var docMsg = 0;
var patientcode = '';
var networkStatus = "";
var userAgent = window.localStorage.getItem(agentName);
var userInfo = JSON.parse(window.localStorage.getItem(agentName));
//回复单条内容填写
var defaultPhoto = "../../../images/p-default.png";
var doctorDefaultPhoto = "../../../images/d-default.png";
var presciptionStatus = 0; //标记续方状态
mui.init({
    gestureConfig:{
        hold:true,//默认为false,不监听
        release:true//默认为false,不监听
    }
});
//页面初始化
$(function(){
	isRepresent(function(){
		pageInit();
	})
})
function pageInit(){
    patientcode = userInfo.represented ? userInfo.represented : userInfo.uid;
    createSocketConnect();
    checkStatus();
    getPrescriptionDetail();
    
    getWXSign();
    bindEvents();
}
//im建立socket连接
function createSocketConnect(){
    //获取sessionId
    sendPost('/patient/consult/getTopic', {consult:consult}, 'json', 'GET', queryFailed, function(res){
        if(res.status==200){
            var sessionId = JSON.parse(res.msg)[0].session_id;
            //登录IM
            sendPost('/patient/consult/intoTopic', {consult: consult}, 'json', 'get', queryFailed, function(res){});
            //加载socket组件
            jQuery.getScript(imurl+"/socket.io/socket.io.js").done(function() {
                var socket = io.connect(imurl);
                var userInfo = JSON.parse(window.localStorage.getItem(agentName));
                var uid = userInfo.represented ? userInfo.represented : userInfo.uid;
                socket.emit('login', {
                    userId: uid, 
                    password: uid, 
                    sessionId:sessionId,
                    clientType:"patient"
                });
                socket.on('message', function (data) {
                	console.log(data)
                    if((data.type == 1) ||(data.type == 2) || (data.type == 6) || (data.type == 12) || (data.type == 7) || (data.type == 15)){
                        addReply(1, data.content, new Date(data.timestamp).Format('yyyy-MM-dd HH:mm:ss'), data.type, data.name,data.sender_img);        
                        setTimeout(function(){
                            dialroll.refresh();
                            dialroll.scrollTo(0, dialroll.maxScrollY);
                        },300)
                    }
                    if((data.type == 16)||(data.type == 17)){
                    	if(data.sender_id == patientcode){
                    		addReply(2, data.content, new Date(data.timestamp).Format('yyyy-MM-dd HH:mm:ss'), data.type, data.name,data.sender_img);        
                    	}else{
                    		addReply(1, data.content, new Date(data.timestamp).Format('yyyy-MM-dd HH:mm:ss'), data.type, data.name,data.sender_img);        
                    	}
                        setTimeout(function(){
                            dialroll.refresh();
                            dialroll.scrollTo(0, dialroll.maxScrollY);
                        },300)
                    }
                });
                socket.on('error', function (data) {
                });
                socket.on('ack', function (data) {
                });
//              function getLocalTime(nS) {     
//                  return new Date(parseInt(nS) * 1000).toLocaleString().replace(/:\d{1,2}$/,' ');     
//              }
            }).fail(function() {
                 dialog({contentType:'tipsbox', skin:'bk-popup' ,bottom:true, content:"医生实时对话连接失败!"}).show();     
            });
        }
    });
}
//判断咨询记录的状态 
function checkStatus(){
    d.show();
    var url = 'patient/consult/status',
        data = {consult: consult};
    sendPost(url, data, 'json', 'get', queryFailed, queryStatusSuccess);
}
//获取咨询状态成功回调处理
function queryStatusSuccess(res){
    if(res.status == 200) {
        if(res.data == 0){ //咨询未结束
            $("#divBottom").show();
            $("#finish_list").show();
            $("#input_div").show();
            winSize(165); // 110+55
        }else{ //咨询已结束
            $("#divBottom").hide();
            $("#finish_list").hide();    
            $("#input_div").hide();
            winSize(75);
            //显示评价按钮
            if(evaluate == 0){
                $('#valFoot').show();
                $('#noval').show();
                $('#hasval').hide();
            }else if(evaluate == 1){
                $('#valFoot').show();
                $('#noval').hide();
                $('#hasval').show();
            }
        }
        status = res.data;
        //聊天记录填充
        queryList();
        var pulldownAction = function() {
            getPage(this);
        };
        dialroll = iscrollAssist.newVerScrollForPull($('.pull-iscroll-wrap'), pulldownAction, null);
        dialroll.refresh();
        dialroll.scrollTo(0, dialroll.maxScrollY);
        
        d.close();
    } else {
        queryFailed(res);
    }
}
//获得续方详情
function getPrescriptionDetail(){
    var url = "/patient/consult/prescriptionDetail",
        params = {consult: consult};
    sendPost(url, params, 'json', 'get', queryFailed, function(res){
        if(res.status == 200){
            res.data.statusName = getStatusName(res.data.status);
            presciptionStatus = res.data.status;
            var html = template('prescription_tmp', res.data);
            $("#prescriptionInfo").empty().append(html);
            $("#prescriptionInfo").attr("data-code", res.data.code);
            prescriptionCode = res.data.code;
        }else{
            queryFailed(res);
        }
    });
}
//查询咨询记录
function queryList(){
    var url = 'patient/consult/loglist',
        data = {
            consult: consult,
            page: id,
            pagesize: pagesize
        };
    
    sendPost(url, data, 'json', 'GET', queryFailed, queryListSuccess);
}
//查询咨询记录成功的回调处理
function queryListSuccess(res){
    if (res.status == 200) {
        id++;
        var data = res.list;
        var docCode;
        for(var k in data.users){
            if(data.users[k].is_patient == 0){
                docCode = data.users[k].id;
            }
        }
        var list = data.list;
        if (list && list.length > 0) {
            docMsg = list[list.length - 1].content_type;
            for (var j = list.length-1; j >=0; j--) {
                var reply = JSON.parse(list[j]);
//              console.log(reply)
                // TODO 判断咨询回复的类型,区别是否显示在患者端
                if((reply.content_type == 3) || (reply.content_type == 1) || (reply.content_type == 2) || (reply.content_type == 6) || (reply.content_type == 12) || (reply.content_type == 7)|| (reply.content_type == 15)|| (reply.content_type == 16)|| (reply.content_type == 17)){
                    var date = new Date();
                    date.setTime(reply.timestamp);
                    var time = date.format('yyyy-MM-dd hh:mm:ss');
                    var p;
                    
                    for(var k in data.users){
                        if(data.users[k].id==reply.sender_id){
                            p = data.users[k].avatar;
                        }
                    }
                    var isSystem = reply.sender_id == 'system';
                    //第一个参数为1时,医生发的
                    addReply(reply.sender_id==patientcode? 2 : 1, reply.content, time, reply.content_type, reply.sender_name, p, false, isSystem);
                }
            }
            dialroll.refresh();
            dialroll.scrollTo(0, dialroll.maxScrollY);
        }
        if(status==0){
            checkDoctorInWork(docCode);
        }
        d.close();
    } 
    else{
        queryFailed(res);
    }
}
//判断医生是否在工作时间内
function checkDoctorInWork(doctor){
    var url = 'patient/consult/is_doctor_working';
    sendPost(url, {doctor:doctor}, 'json', 'post', queryFailed, function(res){
        if(res.status==200){
            if(res.data!=1){
                var time = (new Date()).Format('yyyy-MM-dd hh:mm:ss');
                addReply(1, "医生不在工作时间,无法及时回复您的消息。<br/><a class='workhours' href='#'>查看工作时间!</a>", time, 7, "系统消息");
                
                $(".workhours").on("click",function(){
                    location.href='doctor-work-hours.html?doctor='+doctor;    
                });
                
                setTimeout(function(){
                    dialroll.refresh();
                    dialroll.scrollTo(0, dialroll.maxScrollY);
                },20);
            }
        }else{
            queryFailed(res);
        }        
    });
}
function queryFailed(res, msg){
    d.close();
    dd.close();
    if(msg){
        dialog({contentType:'tipsbox', skin:'bk-popup' , bottom:true,content: msg}).show();
    }else{
        if (res && res.msg) {
            dialog({contentType:'tipsbox', skin:'bk-popup' ,bottom:true, content:res.msg}).show();      
        } else {
            dialog({contentType:'tipsbox', skin:'bk-popup' , bottom:true,content:'加载失败'}).show();
        }
    }
}
//点击发送按钮事件
function send(){
    content = $("#input_content").text().replace(/\s+/g,"");
    if (content && content != null && content != "") {
        var now = new Date(),
            timeStr = now.Format('yyyy-MM-dd hh:mm:ss');
        
        $("#input_content").blur();
        dialroll.refresh();
        dialroll.scrollTo(0, dialroll.maxScrollY);
        
        dd.showModal();
        var url = "patient/consult/append",
            data = {
                consult: consult,
                content: utf16toEntities(content),
                type: 1
            };
        sendPost(url, data, 'json', 'post', function(res){
            queryFailed(res, '发送失败');
        }, submitSuccess);
        
    } else {
        return;
    }
}
//发送文本消息成功回调
function submitSuccess(res){
    if (res.status == 200) {
        //置空
        $("#input_content").text("");
        $(".talk-send a").addClass("disab");
        addReply(2, content, timeStr, 1, "");
        dialroll.refresh();
        dialroll.scrollTo(0, dialroll.maxScrollY);
        showSendBtn(false);
        dd.close();
    } else {
        queryFailed(res, '发送失败');
    }
}
/**
 * 组装信息
 * @param {number} type 消息是本人发送还是他们发送, 1-医生发送,2-自己发送
 * @param {string} content 消息内容
 * @param {string} time 时间
 * @param {string} msgType 消息类型
 * @param {string} doctorName 
 * @param {string} photo 头像图片路径
 * @param {boolean} prepend 消息是否往前添加
 */
function addReply(type, content, time, msgType, doctorName, photo, prepend, isSystem){
    //time = time.substr(10);
    var $div = $("<dl></dl>");
    
    if(msgType == 7){
        if(msgType == 7 && isSystem){
            content = "您24小时内未回复,系统自动结束咨询";
        }
//      if(msgType == 1){
//      	var	content1 = '您未绑定智能设备,请手动上传体征数据,绑定设备后系统将会自动将您的体征数据上报给医生<br><a href="javascript:;" class="add-equip">点击绑定</a>';
//      	if(prepend){
//	            $(".talk-box").prepend('<div class="time-tips"><span class="">' + content1 + '</span></div>');
//	        } else{
//	        	$(".talk-box").append('<div class="time-tips"><span class="">' + content1 + '</span></div>');
//	        }
//	        return;
//      }
        if(prepend){
            $(".talk-box").prepend('<div class="time-tips"><span class="xt-xiaoxi">' + content + '</span></div>');
        } else
            $(".talk-box").append('<div class="time-tips"><span class="xt-xiaoxi">' + content + '</span></div>');
        return;
    } 
        
    if (type == 1) {
        $div.addClass('chat-left');
        img = photo ? getImgUrl(photo) : doctorDefaultPhoto;
        doctorDefaultPhoto = img;
        name = doctorName;
    } else {
        $div.addClass('chat-right');
        img = photo ? getImgUrl(photo) : defaultPhoto;
        defaultPhoto = img;
        name = window.localStorage.getItem("nowPatientName");
    }
    
    var temp = '<dt style="height: auto; text-align: center;"><a><img src="' + img + '" class="c-images-cycle" /></a></dt>' +
        '<div class="c-content"><span class="c-f12 name">' + name + '</span>'
    
    switch(parseInt(msgType)) {
        case 1://信息
            temp += '<dd class="word-bread"><span>' + content + '</span></dd></dl>';
            break;
        case 6://咨询问题
            var rs = JSON.parse(content);
            var tzMsg = rs.tzMsg;
            temp += '<dd class="word-bread sys-msg">'+
                '<div class="c-f14 sys-header mb5"><img src="../images/xitongtixing_im_icon.png" width="14">本消息为系统提示</div>'+
                '<p class="c-333 c-f14">' + rs.title + '</p>'+
                '<p class="c-333 c-f14">体征信息:'+tzMsg+'</p>'+
                '</dd></dl>';
            break;
        case 2://图片
            temp += '<dd class="word-bread wb-img"><img width="100" height="100" src="'+ getImgUrl(content) +'" /></dd></dl>';
            break;
        case 3://语音
            var rec = JSON.parse(content);
            temp += "<div class='c-msg'><dd class='word-bread audio' data-type='3' data-audio='" + getImgUrl(content) + "'>"+
                        "<div class='soundWav'>" +
                               "<span class='soundWavT'>"+(rec? rec.times: "") +"\'\'</span>"+
                        "</div>"+
                    "</dd></div>";
            break;
        case 12://视频
            var videoInfo = content.split(",");
            var shichang = formatSeconds(videoInfo[2]);//时长
            if(type == 1){
                temp += '<dd class="preview-video" data-video="'+getImgUrl(videoInfo[1])+'">'+
                        '<img class="video-img-left" src="'+getImgUrl(videoInfo[0])+'">'+
                        '<img class="bofang-icon-left" src="../images/bofang_icon.png">'+
                        '<img class="jianjiao-icon-left" src="../images/zuoshanjiao_bg.png">'+
                        '<span class="shichang-time-left">'+shichang+'</span>'+
                    '</dd>';
            }else{
                temp += '<dd class="preview-video" data-video="'+getImgUrl(videoInfo[1])+'">'+
                        '<img class="video-img-right" src="'+getImgUrl(videoInfo[0])+'">'+
                        '<img class="bofang-icon-right" src="../images/bofang_icon.png">'+
                        '<img class="jianjiao-icon-right" src="../images/youshanjiao_bg.png">'+
                        '<span class="shichang-time-right">'+shichang+'</span>'+
                    '</dd>';
            }
            break;
        case 15:
            var rs = JSON.parse(content);
            var reason = "";
            if(rs.reason){
                reason = '<p class="c-333 c-f14">原因:'+rs.reason+'</p>';
            }
            temp += '<dd class="word-bread sys-msg">'+
                '<div class="c-f14 sys-header mb5"><img src="../images/xitongtixing_im_icon.png" width="14">本消息为系统提示</div>'+
                '<p class="c-333 c-f14">审核消息:</p>'+
                '<p class="c-333 c-f14">' + rs.title + '</p>'+
                '<p class="c-333 c-f14">审核结果:'+rs.result+'</p>'+reason+
                '<a href="javascript:void(0);" class="view-detail c-f14">点此查看详情</a>'+
                '</dd>';
            break;
        case 16:
        	var rs = JSON.parse(content);
            if(type == 2){
            	var bttn="";
            	if(rs.needUpload == 'true'){
            		if(rs.type == 1){
            			bttn = ' <a href="javascript:void(0);" class="add-xy c-f14">上传血压数据</a>'
            		}else{
            			bttn = ' <a href="javascript:void(0);" class="add-xt c-f14">上传血糖数据</a>'
            		}
            		temp += '<dd class="word-bread sys-msg">'+
		                '<div class="c-f14 sys-header mb5"><img src="../images/xitongtixing_im_icon.png" width="14">本消息为系统提示</div>'+
	                    '<p class="c-333 c-f14">'+rs.patientAlert+bttn+'</p>'+
		                '</dd></div>';
            	}else{
            		temp += '<dd class="word-bread sys-msg">'+
	                '<div class="c-f14 sys-header mb5"><img src="../images/xitongtixing_im_icon.png" width="14">本消息为系统提示</div>'+
	                '<p class="c-333 c-f14">'+rs.tzMsg+'</p>'+
                    '<p class="c-333 c-f14">'+rs.tzTime+'</p>'+
	                '</dd></div>';
            	}
	            break;
            }else{
            	var dev="";
            	if(rs.deviceMsg){
            		dev = '<p class="c-999 c-f12">'+rs.deviceMsg+' <a href="javascript:void(0);" class="add-equip c-f14">点击绑定</a></p>'
            	}
            	temp += '<dd class="word-bread survey-msg"><div class="msg-body clearfix">'+
	                '<p class="c-333 c-f15">'+rs.text+'</p>'+dev+
	                '</div></dd>';
            }
            break;
	    case 17://随访调查
            var rs = JSON.parse(content);
            if(type==2){
            	if(rs.sysMsg){
	            	temp += '<dd class="word-bread sys-msg">'+
		                '<div class="c-f14 sys-header mb5"><img src="../images/xitongtixing_im_icon.png" width="14">本消息为系统提示</div>'+
		                '<p class="c-f14 c-333">'+rs.text+
		                ' <a href="javascript:void(0);" data-type="'+rs.msgType+'" class="survey c-f14">查看</a></p>'+
		                '</dd></div>';
	         	}
            }else{
            	temp += '<dd class="word-bread survey-msg"><div class="msg-body clearfix">'+
	                '<p class="c-333 c-f15">'+rs.text+' <a href="javascript:void(0);" data-type="'+rs.msgType+'" class="survey c-f14">开始填写</a></p>'+
	                '</div></dd><p class="xf-notice">'+rs.patientremind+'</p>';
            }
            break;
    }
    
    if(prepend){
        $(".talk-box").prepend($div.append(temp)).prepend('<div class="time-tips"><span>' + time + '</span></div>');
    } else
        $(".talk-box").append('<div class="time-tips"><span>' + time + '</span></div>').append($div.append(temp));
    
    if(type != null && type != 1) {
        $(".tw-add-detail").hide(200);
    }
}
//下拉刷新加载数据方法
function getPage(t){
    var url = 'patient/consult/loglist',
        data = {
            consult: consult,
            page: id,
            pagesize: pagesize
        };
    
    sendPost(url, data, 'json', 'post', queryFailed, function(res){
        if(res.status == 200){
            var list = res.list;
            if (list && list.length > 0) {
                id = list[list.length - 1].id;
                for (var j = 0; j < list.length; j++) {
                    var reply = list[j];
                    if((reply.msgType == 1) || (reply.msgType == 3) || (reply.msgType == 2) || (reply.msgType == 6) || (reply.msgType == 12) || (reply.msgType == 7) || (reply.msgType == 15)){
                        //type为1时,医生发的
                        var type = (reply.sender_id==patientcode) ? 2 : 1;
                        var isSystem = reply.sender_id == 'system';
                        addReply(type, reply.content, reply.time, reply.msgType, reply.doctorName, reply.photo, true, isSystem);
                    }
                }
            }
            t.refresh();
        }else{
            queryFailed(res);
        }
    });
}
//结束咨询方法
function finish(){
    //先判断是否可以结束咨询,续方申请状态为待审核时,不可以结束咨询
    if((presciptionStatus >= 0) && (presciptionStatus < 21)){
        dialog({
            contentType:'tipsbox',
            content: '续方申请未审核,不可关闭续方咨询',
            skin: 'bk-popup',
            closeTime: 2000
        }).show();
        return false;
    }
    dialog({
        content:'是否确认结束该次咨询?结束后医生将无法回复',
        ok: function (){
            var params = {}
            params.code = consult;                                
            //发送ajax请求, 查询设备列表信息
            sendPost("patient/consult/finish", params, "json", "post", function(res){
                queryFailed(res, '操作失败');
            },function(res){
                if (res.status == 200) {
                    location.reload();
                }
                else{
                    queryFailed(res, '操作失败');
                }
            });
        },
        cancel: function () {
            return;
        }
    }).showModal();
}
/*--------------------------- 事件监听 ------------------------------------*/
function bindEvents(){
    //点击续方卡片,跳转去续方记录页面
    $("#prescriptionInfo").on('click', function(){
        var code = $(this).attr("data-code");
        window.location.href = "../../prescription/html/re-prescription_info.html?code="+code+'&toUser='+toUser;
    });
    
    //点击内容区域输入框失焦
    $('#talkwrap').click(function(){
        $("#input_content").blur();
//        dialroll.refresh();
//        dialroll.scrollTo(0, dialroll.maxScrollY);
        return false;
    });
    
    //发送以后定位至最底部
    $("#reply a").click(function() {
        send();
    });    
    
    //立即发送
    $("#lijifasong").on("tap", function(){
        uploadVideo();
        mui('#sheet1').popover('toggle');
        return false;
    });
     
     //不再提醒
    $("#buzaitixing").on("tap", function(){
        window.localStorage.setItem("isTiXingVideoFaSong","1");
        uploadVideo();
        mui('#sheet1').popover('toggle');
        return false;
    });
    
    //查看续方详情
    $("body").on("tap", '.view-detail', function(){
        window.location.href = "../../prescription/html/re-prescription_info.html?code="+prescriptionCode+'&toUser='+toUser;
    })
    //调查问卷
    $("body").on("tap", '.survey', function(){
    	var $this = $(this)
        window.location.href = "questionaires.html?prescriptionCode="+prescriptionCode+"&pro_id="+$this.attr('data-type')
    })
    $("body").on("tap", '.view-check', function(){
        window.location.href = "questionaires.html?prescriptionCode="+prescriptionCode+"&pro_id=2"
    })
	//血压血糖
	$("body").on("tap", '.j-btn', function(){
        window.location.href = "../../jkjl/html/health-index-add-bloodpressure.html?origin=suifang&prescriptionCode="+prescriptionCode
    })
	$("body").on("tap", '.add-xt', function(){
        window.location.href = "../../jkjl/html/health-index-add-bloodsugar.html?origin=suifang&prescriptionCode="+prescriptionCode
    })
	$("body").on("tap", '.add-xy', function(){
        window.location.href = "../../jkjl/html/health-index-add-bloodpressure.html?origin=suifang&prescriptionCode="+prescriptionCode
    })
	//添加设备
	$("body").on("tap", '.add-equip', function(){
        window.location.href = "../../wdsb/html/my-equipments.html?prescriptionCode="+prescriptionCode
    })
    //点击评价
    $('body').on('tap','#noval',function(){
        window.location.href = "manyidu.html?consult=" +consult;
    });
    
    $('body').on('tap','#hasval',function(){
        window.location.href = "manyidu.html?consult=" +consult;
    });
    
    var $ipt_content = $('#input_content');
    //键盘输入解决输入框被软键盘覆盖的问题
    var bfscrolltop = document.body.scrollTop;//获取软键盘唤起前浏览器滚动部分的高度
    var interval;
    $ipt_content.focus(function(){//当它获取焦点时触发事件
        $(".tw-add-detail").hide();
        interval = setInterval(function(){//设置一个计时器,时间设置与软键盘弹出所需时间相近
            document.body.scrollTop = document.body.scrollHeight;//获取焦点后将浏览器内所有内容高度赋给浏览器滚动部分高度
        },100)
    }).blur(function(){//设定输入框失去焦点时的事件
        clearInterval(interval);//清除计时器
        document.body.scrollTop = bfscrolltop; //将软键盘唤起前的浏览器滚动部分高度重新赋给改变后的高度
    });
    //显示发送按钮的事件
    $ipt_content.on('input', function(e){
        if($(this).prop('comstart')) {
            return;
        }
        var text = $.trim($(this).text());
        showSendBtn(text.length > 0)
        
    }).on('compositionstart', function(){
        $(this).prop('comstart', true);
        //console.log('中文输入:开始');
    }).on('compositionend', function(){
        $(this).prop('comstart', false);
        //console.log('中文输入:结束');
        var text = $.trim($(this).text());
        showSendBtn(text.length > 0)
    })
    .on('tap', function(){
        $(".tw-add-detail").hide();
//      $ipt_content.focus();
    })
    
    //附加功能
    $(".tw-add").click(function() {
        $(".tw-add-detail").toggle(200);
    });
    //隐藏打开的附加功能
    $('body').on('tap', '#talkwrap', function(){
        $('.tw-add-detail').hide();
        $ipt_content.blur();
    });
    
    $(".yy-add").click(function() {
        if($('#msg-sound:visible').length){
            $ipt_content.show();
            ui.boxMsgSound.style.display = 'none';
            $(this).find('img:eq(0)').show().next().hide();
        } else {
            $ipt_content.hide();
            ui.boxMsgSound.style.display = 'block';
            $(this).find('img:eq(0)').hide().next().show();
        }
    });
    
    //预览图片
    $('.talk-box').on('click', '.word-bread img', function(){
        if(!$(this).closest(".word-bread").hasClass("preview-video")){
            var urls = [];
            $.each($('.word-bread img'), function(i, v) {
                urls.push($(v).attr('src'));
            });
            wx.previewImage({
                current: $(this).attr('src'), // 当前显示图片的http链接
                urls: urls // 需要预览的图片http链接列表
            });
        }
    })
    //播放语音
    .on('touchstart', '.audio', function(){
        if($playingDom){
            aud.pause();
            //aud.stop();
            $playingDom.removeClass('active');
            if($playingDom[0] == this){
                $playingDom = null;
                return;
            }
        }
        $playingDom = $(this);
        $playingDom.addClass('active');
        var ser = JSON.parse($(this).attr('data-audio'));
        aud.src = getImgUrl(ser.path);
        aud.load();
        aud.play();
    })
    //播放视频
    .on('click','.preview-video',function() {
            $(document.body).find('video').remove();
            var url = $(this).attr('data-video');
            var html = '<video style="display: none;"  controls preload="auto" width="1" height="1" src="'+url+'" ></video>';
            $(document.body).append(html);
            var video = $(document.body).find('video')[0];
            video.play();
    });
}
/*--------------------------- 事件监听 ------------------------------------*/
/*--------------------------- 辅助方法 ------------------------------------*/
//控制页面高度
function winSize(h){
    var totH = $(window).height();
    $("#talkwrap").height(totH - h);
    if(h > 75){
        $(".c-main").css("top", '110px');
    }
}
//控制是否显示文本消息框
function showSendBtn(isShow){
    if(isShow){
        $('.tw-add').hide();
        $('#reply').fadeIn('fast', 'swing');
    } else {
        $('#reply').fadeOut('fast', 'swing', function(){
            $('.tw-add').show();
        });
    }
};
//毫秒转换成时分秒
function formatSeconds(value){
    var theTime = parseInt(value/1000);// 秒
    var theTime1 = 0;// 分
    var theTime2 = 0;// 小时
    if(theTime > 60) {
        theTime1 = parseInt(theTime/60);
        theTime = parseInt(theTime%60);
            if(theTime1 > 60) {
                theTime2 = parseInt(theTime1/60);
                theTime1 = parseInt(theTime1%60);
            }
    }
    var result = ""+parseInt(theTime);//秒
    if(parseInt(theTime)<=9){
        result = "0"+parseInt(theTime);//秒
    }
    if(theTime1 > 0) {//分
        if(parseInt(theTime1)>9){
            result = ""+parseInt(theTime1)+":"+result;
        }else{
            result = "0"+parseInt(theTime1)+":"+result;
        }
    }
    if(theTime2 > 0) {//小时
        if(parseInt(theTime2)>9){
            result = ""+parseInt(theTime2)+":"+result;
        }else{
            result = "0"+parseInt(theTime2)+":"+result;
        }
    }
    var resResult = "";
    if(result.split(":").length==1){//秒
        resResult = "00:"+result;
    }else if(result.split(":").length==2){//分
        resResult = "00:"+result;
    }else{//时
        resResult = result;
    }
    return resResult;
}
/*--------------------------- 辅助方法 ------------------------------------*/
    
//-----------------------------【图片】处理方法-------------------------------------
//微信上传图片
var serverId = "";
var images = [];
//查看图片
function viewImg(dom){
    var $img = $(dom);
    var thissrc = $img.attr("src");
    var mWid = $(window).width();
    var mHei = $(window).height();
    var nHtml = '<div class="delimgpop"><div class="del-img-box"><div class="del-img-con"><img class="del-pop-img" src="' + thissrc + '" style="max-width:' + mWid + 'px; max-height:' + mHei + 'px;"></div></div></div>';
    $("body").append(nHtml);
    $(".delimgpop").click(function() {
        $(this).remove()
    });
}
//微信选择图片
function chooseImageWx(){
    wx.chooseImage({
        count: 3,
        success: function (res) {
            for (var i in res.localIds) {
                images.push(res.localIds[i]);
            } 
            dd.showModal();
            uploadImage();
        }
    });
}
//上传图片到微信
function uploadImage(){
    if (images.length == 0) {
        dd.close();
        return;
    }
    var i = 0, length = images.length;
    serverId = "";
    var faillength = 0 ;
    function upload() {
        wx.uploadImage({
            localId: images[i],
            isShowProgressTips: 0,
            success: function (res) {
                faillength= 0;
                i++;
                if(serverId.length == 0){
                    serverId = res.serverId;
                }
                else{
                    serverId =serverId + "," + res.serverId;
                }          
                if (i < length) {
                    upload();
                }
                if(i == images.length){
                    sendImages();
                }          
            },
            fail: function (res) {
              dd.close();
              faillength+=1;
              if(faillength<=5){
              //失败从传
                  upload();
              }else{
                  dialog({contentType:'tipsbox', skin:'bk-popup' ,bottom:true, content:"图片上传失败,请控制发送频率"}).show();
              }
            }
        });
    }
    upload();
}
//保存图片到后台
function sendImages(){
    var now = new Date();
    timeStr = now.Format('yyyy-MM-dd hh:mm:ss');
    
    var url = 'patient/consult/append'
        data = {
            consult: consult,
            content: '',
            mediaIds: serverId,
            type: 2,
            times: ''
        };
   
    sendPost(url, data, 'json', 'post', function(res){
        queryFailed(res, '发送失败');
    }, function(res){
        if (res.status == 200) {
            var data= JSON.parse(res.data)
            dd.close();
            addReply(2, data.content, timeStr, 2, "");
            dialroll.refresh();
            dialroll.scrollTo(0, dialroll.maxScrollY);        
        } else {
            queryFailed(res, '发送失败');
        }
    });
}
//-----------------------------【图片】处理方法-------------------------------------
//------------------------------【语音】处理方法------------------------------------
var aud = document.getElementById('audio');
var $playingDom;
//播放语音结束方法
function playSoundEnd(){
    $playingDom.removeClass('active');
    $playingDom = null;
}
//播放语音错误提示方法
function playError(){
    var src = $('#audio').attr('src');
    if(!$.trim(src)) {
        return ;
    }
    dialog({contentType:'tipsbox', skin:'bk-popup' ,bottom:true, content:"播放语音失败"}).show();
    $playingDom.removeClass('active');
    $playingDom = null;
}
var recordCancel = false;
var recorder = null;
var audio_tips = document.getElementById("audio_tips");
var startTimestamp = null;
var stopTimestamp = null;
var stopTimer = null;
var MIN_SOUND_TIME = 500;
var ui = {
    body: document.querySelector('body'),
    btnMsgType: document.querySelector('#msg-type'),
    boxMsgText: document.querySelector('#msg-text'),
    boxMsgSound: document.querySelector('#msg-sound'),
    btnMsgImage: document.querySelector('#msg-image'),
    areaMsgList: document.querySelector('#msg-list'),
    boxSoundAlert: document.querySelector('#sound-alert')
};
var recordTimer = null;
var realStartTime = 0;
ui.boxMsgSound.addEventListener("touchstart", function(e) {
    e.preventDefault();
    event.preventDefault();
    $(this).addClass('yy-hold');
    if(stopTimer)clearTimeout(stopTimer);
    recordCancel = false;
    audio_tips.innerHTML = "手指上划,取消发送";
    ui.boxSoundAlert.classList.remove('rprogress-sigh');
    setSoundAlertVisable(true);
    startTimestamp = new Date().getTime();
    recordTimer = setTimeout(function(){
        wx.startRecord({
            success: function(){
                realStartTime = new Date().getTime();
            },
            fail: recordErr
        });
        wx.onVoiceRecordEnd({
            // 录音时间超过一分钟没有停止的时候会执行 complete 回调
            complete: function (res) {
                serverId = res.localId;
                sendSounds(60);
            }, 
            fail: recordErr
        });
    },MIN_SOUND_TIME);
}, false);
ui.boxMsgSound.addEventListener("touchend", function(e){
    e.preventDefault();
    event.preventDefault();
    $(this).removeClass('yy-hold');
    if (audio_tips.classList.contains("cancel")) {
        audio_tips.classList.remove("cancel");
        audio_tips.innerHTML = "手指上划,取消发送";
    }
    var endTimestamp = new Date().getTime();
    
    var times = endTimestamp - startTimestamp;
    var realTimes = endTimestamp - realStartTime;
    if(times < MIN_SOUND_TIME || realTimes < MIN_SOUND_TIME){
          audio_tips.innerHTML = "录音时间太短";
        ui.boxSoundAlert.classList.add('rprogress-sigh');
        recordCancel = true;
        stopTimer=setTimeout(function(){
            setSoundAlertVisable(false);
        },500);
        startTimestamp = 0;
        realStartTime = 0;
        //小于300ms,不录音
        clearTimeout(recordTimer);
        wx.stopRecord({
          success: function (res) {
          },
          fail: function(){}
        });
    }else{
        setSoundAlertVisable(false);
        wx.stopRecord({
          success: function (res) {
              if(!recordCancel) {
                serverId = res.localId;
                sendSounds(Math.round(times/1000));
            }
          },
          fail: recordErr
        });
    }
}, false)
                    
ui.body.addEventListener('drag', function(event) {
    if (Math.abs(event.detail.deltaY) > 50) {
        if (!recordCancel) {
            recordCancel = true;
            if (!audio_tips.classList.contains("cancel")) {
                audio_tips.classList.add("cancel");
            }
            audio_tips.innerHTML = "松开手指,取消发送";
        }
    } else {
        if (recordCancel) {
            recordCancel = false;
            if (audio_tips.classList.contains("cancel")) {
                audio_tips.classList.remove("cancel");
            }
            audio_tips.innerHTML = "手指上划,取消发送";
        }
    }
}, false);
var setSoundAlertVisable=function(show){
    if(show){
        ui.boxSoundAlert.style.display = 'block';
        ui.boxSoundAlert.style.opacity = 1;
    }else{
        ui.boxSoundAlert.style.opacity = 0;
        //fadeOut 完成再真正隐藏
        setTimeout(function(){
            ui.boxSoundAlert.style.display = 'none';
        },200);
    }
},
//保存语音
sendSounds = function(times){
    var now = new Date();
    timeStr = now.Format('yyyy-MM-dd hh:mm:ss');
    var data = {};
    data.consult = consult;
    data.content = "";
    data.type = 3;
    data.times = times;
    dd.show();
    wx.uploadVoice({
        localId: serverId,
        success: function (res) {
            data.voices = res.serverId;
            sendPost('patient/consult/append', data, 'json', 'post', function(){
                queryFailed(res, '发送失败');
            },
                function submitSoundSuccess(res) {
                    if (res.status == 200) {
                        dd.close();
                        var data = JSON.parse(res.data[0]);
                        addReply(2, data.content, timeStr, 3, "");
                        dialroll.refresh();
                        dialroll.scrollTo(0, dialroll.maxScrollY);        
                    } else {
                        queryFailed(res, '发送失败');
                    }
                });
        }
    });
},
//录制语音错误提示信息
recordErr = function(res){
    if(res && res.errMsg == "stopRecord:tooshort") {
        audio_tips.innerHTML = "录音时间太短";
        ui.boxSoundAlert.classList.add('rprogress-sigh');
        recordCancel = true;
        stopTimer=setTimeout(function(){
            setSoundAlertVisable(false);
        },500);
        startTimestamp = 0;
        //小于300ms,不录音
        if(recordTimer)clearTimeout(recordTimer);
        return;
    }
    if(!recordCancel){
        dialog({
            content:'录音失败,请重试',
            okValue:'我知道了',
            ok: function() {}
        }).showModal();
    }
};
//------------------------------【语音】处理方法------------------------------------
//【视频】处理方法
//录制视频回调
var videoFileChange = function(target){
    var fileSize = (target.files[0].size/1024/1024).toFixed(2);//字节转换成M
    if(parseInt(fileSize)>30){
        dialog({
            content:'对不起,视频超过30Mb,无法发送,请录制10秒左右的短视频',
            okValue:'我知道了',
            ok: function() {
                return;
            }
        }).showModal();
    }else{
        if(networkStatus=="wifi" || window.localStorage.getItem("isTiXingVideoFaSong")=="1"){//wifi环境或用户点击移动网络弹框中的”不再提醒“按钮
            uploadVideo();
        }else{
            $("#mui-content").html('您正在使用移动网络,继续发送将消耗'+fileSize+'Mb流量,是否继续发送?');
             mui('#sheet1').popover('toggle');
        }
    }
},
//上传视频
uploadVideo = function(){
    dd.showModal();
    var fd=new FormData();
    fd.append('file',document.getElementById("upload_input").files[0]);
    $.ajax(server+"/upload/chat?type=4", {
            data: fd,
            contentType: false,
            cache: false,
            processData: false,
            type: 'post',
            success: function(resData) {
                if(resData.status==200){
                    var data = {consult:consult,content:resData.urls,type:12};
                    sendPost('patient/consult/append', data, 'json', 'post', function(){
                        queryFailed(res, '发送失败');
                    },
                        function submitSoundSuccess(res) {
                            if (res.status == 200) {
                                dd.close();
                                var data = JSON.parse(res.data[0]);
                                addReply(2, data.content,  new Date(data.timestamp).Format('yyyy-MM-dd HH:mm:ss'), 12, "");
                                dialroll.refresh();
                                dialroll.scrollTo(0, dialroll.maxScrollY);        
                            } else {
                                queryFailed(res, '发送失败');
                            }
                        });
                }else{
                    dd.close();
                }
            },
            error:function (XMLHttpRequest, textStatus, errorThrown) {
                console.log(XMLHttpRequest.status);
                console.log(XMLHttpRequest.readyState);
                console.log(textStatus)
            }
    });
};
Date.prototype.format = function(fmt) { //author: meizz 
    var o = {
        "M+": this.getMonth() + 1, //月份 
        "d+": this.getDate(), //日 
        "h+": this.getHours(), //小时 
        "m+": this.getMinutes(), //分 
        "s+": this.getSeconds(), //秒 
        "q+": Math.floor((this.getMonth() + 3) / 3), //季度 
        "S": this.getMilliseconds() //毫秒 
    };
    if (/(y+)/.test(fmt))
        fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
    for (var k in o)
        if (new RegExp("(" + k + ")").test(fmt))
            fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
    return fmt;
}
//从后台那边获取签名等信息    
function getWXSign(){
    var params = {};
    var url1 = window.location.href;
    params.pageUrl = url1;
    $.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({
                    appId: appId, // 必填,公众号的唯一标识
                    timestamp: t, // 必填,生成签名的时间戳
                    nonceStr: noncestr, // 必填,生成签名的随机串
                    signature: signature,// 必填,签名,见附录1
                    jsApiList: [
                        'chooseImage',
                        'uploadImage',
                        'startRecord',
                        'stopRecord',
                        'onVoiceRecordEnd',
                        'playVoice',
                        'pauseVoice',
                        'stopVoice',
                        'onVoicePlayEnd',
                        'uploadVoice',
                        'getNetworkType'
                    ] // 必填,需要使用的JS接口列表,所有JS接口列表见附录2
                });
                // config信息验证后会执行ready方法,所有接口调用都必须在config接口获得结果之后,config是一个客户端的异步操作,所以如果需要在页面加载时就调用相关接口,则须把相关接口放在ready函数中调用来确保正确执行。对于用户触发时才调用的接口,则可以直接调用,不需要放在ready函数中。
                wx.ready(function(){
                    wx.getNetworkType({
                        success: function (res) {
                             networkStatus = res.networkType; // 返回网络类型2g,3g,4g,wifi
                        }
                    });
                });
            } 
        }
    });
}

+ 264 - 0
html/yszx/js/prescription-selection.js

@ -0,0 +1,264 @@
var listPage = function(){
    var d = dialog({contentType:'load', skin:'bk-popup'});
    //设置变量标记选项的值
    var deseaseType = 0,
        startDate = '',
        endDate = '';
    
    var page = 0,
        pagesize = 10,
        recipeNo = 0; // 记录
        
    function pageInit(){
        getPrescriptionList(true);
        initScroller();
        bindEvents();
    }
    
    function getPrescriptionList(isInit){
        d.show();
        if(isInit){
            page = 0;
            //mui(".mui-scroll-wrapper").pullRefresh().scrollTo(0, 0, 1);
        }
        var url = 'patient/prescriptionInfo/getRecipeMasterList',
            params = {
                type: 1, //type: 1-查询处方,2-我的续方, 3-续方记录
                isRenewal: 1, //1: 可续方,2: 无过滤
                diagnosisCode: deseaseType, //0: 全部,1:高血压,2: 糖尿病 
                startDate: startDate?startDate+' 00:00:00':startDate,
                endDate: endDate?endDate+' 23:59:59':endDate,
                page: page,
                size: pagesize
    //          recipeNo:recipeNo
            };
        sendPost(url, params, 'json', 'get', queryFailed, function(res){
            if(res.status == 200){
                d.close();
                if(res.data.list.length >0){
                    $("#next").removeClass("disabled")
                    $(".mui-scroll-wrapper").show();
                    $(".div-no-info").hide();
                    var list = _.map(res.data.list, function(o){
                        o.jsonStr = JSON.stringify(o);
                        var canXF = getXFStatus(o.prescriptionDt, o.createTime);
                        o.canXF = canXF;
                        recipeNo = o.code;
                        return o;
                    });
                    var html = template("prescription_tmp", {list: list});
                    
                    if(!isInit){
                        $("#prescriptionList").append(html);
                    }else{
                        $("#prescriptionList").empty().append(html);
                    }
                    
                    if(res.data.list.length < pagesize){
                        mui(".mui-scroll-wrapper").pullRefresh().endPullupToRefresh(true);
                    }else{
                        page ++;
                    }
                }else{
                    if(isInit){ //初始请求,无数据
                        $(".mui-scroll-wrapper").hide();
                        $(".div-no-info").show();
                        $("#next").hide();
                    }else{
                        $("#next").addClass("disabled");
                    }
                }
            }else{
                queryFailed(res);
            }
        });
    }
    
    function getXFStatus(arr, date){
        var isXFDesease = true,
            statusName = '',
            canXF = false;
        if(arr){
            for(i=0; i<arr.length; i++){
                var item = arr[i];
                //HP0093 - 高血压 , HP0047 - 糖尿病
                if((item.healthProblem != 'HP0093') && (item.healthProblem != 'HP0047')){
                    isXFDesease = false;
                    break;
                }
            }
            if(isXFDesease){
                //判断时间是否是在6个月内的
//              var d = new Date(date),
//                  now = new Date();
//              now.setMonth(now.getMonth() - 2);
//              
//              if(d > now){ //6个月内的时间
                    statusName = '续方';
                    canXF = true;
//              }
            }
        }
        return canXF;
    }
    
    /**
     * 根据选择的时间类型获取开始和结束时间
     */
    function getDate(type){
        var now = new Date(),
            d = new Date();
        switch (type){
            case 'all':
                startDate = '';
                endDate = "";
                break;
            case 'week':
                d.setDate(d.getDate() - 6);
                break;
            case 'month':
                d.setMonth(d.getMonth() - 1);
                d.setDate(d.getDate() + 1);
                break;
            case 'half-year':
                d.setMonth(d.getMonth() - 2);
                d.setDate(d.getDate() + 1);
                break;
        }
        
        if(type != 'all'){
            endDate = now.Format('yyyy-MM-dd');
            startDate = d.Format('yyyy-MM-dd');
        }
    }
    
    function bindEvents(){
        $(".c-lab-mor").on("click","li",function(){
            var index = $(this).index();
            $(".c-lab-mor li i").removeClass("active");
            $(this).find("i").addClass("active");
            if(index==0){//所有诊断
                $(".div-diagnosis").show();
                $(".div-dates").hide();
            }else{
                $(".div-diagnosis").hide();
                $(".div-dates").show();
            }
            $(".modal-overlay").show();
        });
        
        //所有诊断-tab点击事件
        $(".div-diagnosis").on("click","li",function(){
            $(".div-diagnosis li").removeClass("active");
            $(this).addClass("active");
            $(".c-lab-mor li i").removeClass("active");
            $(".modal-overlay").hide();
            $(".div-diagnosis").hide();
            $(".c-lab-mor li").eq(0).find("span").html($(this).find("label").html());
            
            //TODO 搜索数据处理
            deseaseType = $(this).attr("data-val");
            page = 1;
            getPrescriptionList(true);
        });
        //全部时间-tab点击事件
        $(".div-dates").on("click","li",function(){
            $(".div-dates li").removeClass("active");
            $(this).addClass("active");
            $(".c-lab-mor li i").removeClass("active");
            $(".modal-overlay").hide();
            $(".div-dates").hide();
            $(".c-lab-mor li").eq(1).find("span").html($(this).find("label").html());
            
            //TODO 搜索数据处理
            var value = $(this).attr("data-val");
            getDate(value);
            page = 1;
            getPrescriptionList(true);
        });
        //点击遮罩事件
        $(".modal-overlay").on("click",function(){
            $(".div-diagnosis").hide();
            $(".div-dates").hide();
            $(".c-lab-mor li i").removeClass("active");
            $(".modal-overlay").hide();
        });
        //申请续方按钮事件
        $(".ul-consultation").on("tap",".div-sqxf-btn",function(e){
            e.stopPropagation();
            var $this = $(this);
            if($this.hasClass('appy-btn')){
                var code = $this.closest("li").attr("data-code");
                window.localStorage.setItem("prescriptionCode", code);
                viewApi.back();
            }else{
                return false;
            }
        })
        //域跳转处方详情页
        .on("tap","li",function(){
            var code = $(this).attr("data-code");
            window.location.href = "../../prescription/html/prescription_detail.html?code="+code;
        });    
            
        //显示下一条数据
        $("#next").on('tap', function(){
            if($(this).hasClass("disabled")){
                return false;
            }
            getPrescriptionList(false);
        })
    }
    
    function initScroller(){
        //阻尼系数
        var deceleration = mui.os.ios?0.003:0.0009;
        mui('.mui-scroll-wrapper').scroll({
            bounce: false,
            indicators: true, //是否显示滚动条
            deceleration:deceleration
        });
        mui(".mui-scroll-wrapper").pullRefresh({
            down: {
                callback: function() {
                    var self = this;
                    setTimeout(function() {
                        getPrescriptionList(true);
                        self.endPulldownToRefresh();
                    }, 1000);
                }
            },
            up: {
                callback: function() {
                    var self = this;
                    setTimeout(function(){
                        getPrescriptionList();
                        self.endPullupToRefresh();
                    }, 1000);
                }
            }
        });
    }
    
    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();
        }
    }
    
    return {
        initPage: pageInit
    };
}

+ 214 - 0
html/yszx/js/questionaires.js

@ -0,0 +1,214 @@
var request = GetRequest();
var pro_id = request['pro_id'],
	prescriptionCode = request['prescriptionCode'];
var project_data;   
var $form = $("#question_form");
var d = dialog({contentType:'load', skin:'bk-popup'});
var dd = dialog({contentType:'load', skin:'bk-popup', content:'提交中...'});
function toast(msg){
	dialog({contentType:'tipsbox',bottom:true, skin:'bk-popup' , content:msg}).show()
}
var initPage = function(){
    project_data = gTemplate[pro_id];
    var nameObj = {1:'症状',2:'体征及生活方式问卷'}
    var classes="";
    if(pro_id == 1){classes='1'}
    if(pro_id == 2){classes='2,4'}
    $('title').text(nameObj[pro_id])
    var params3 = {
		prescriptioncode:prescriptionCode,
		followupProject:classes
	}
    d.show()
	sendPost('patient/prescription/followupcontent/getinfo', params3, 'json', 'get',function(){
		d.close()
		toast('请求失败')
	}, function(res){
		d.close()
        if(res.status == 200){
        	if(! $.isEmptyObject(res.data)){
        		for(var key in project_data){
	                project_data[key].value = res.data[key];
	            }
        		nextdo(false)
        	}else{
        		nextdo(true)
        	}
        }
    })
	
	function nextdo(isBtn){
		var html = template("item", {data:project_data})
	    $form.append(html);
	    initMobiscroll()
	    bindEvents()
	    if(isBtn){
	    	$('#btn_group').show()
	    	$('#question_form').css('pointer-events','')
	    }else{
	    	$('#btn_group').hide()
	    	$('#question_form').css('pointer-events','none')
	    }
	}
},
initMobiscroll = function(){
    //绑定数字键盘
    $.each(document.querySelectorAll('input[type=number]'), function(index, el){
        var name = el.name;
        if(name=="HEART_RATE" || name == "HEIGHT" || name=="DAILY_SMOKING" || name=="CONTROL_EXERCISE_DURATION_MINS" || name=="SOMKING_EXP" || name=="EXERCISE_DURATION_MINS" || name=="EXERCISE_DURATION_MINS_EXP"){
            $(el).mobiscroll().numpad({
                theme: 'ios',
                display: 'bottom',
                lang: 'zh',
                placeholder: '0',
                fill: 'rtl',
                allowLeadingZero: true,
                template: 'ddd',
                scale:0,
                buttons: ['set','cancel'],
                onSelect: function(valueText, inst){
                    var value = parseFloat($('.mbsc-np-dsp').text());
                    $(this).val(value);
                }
            })
        }else if(name == "WEIGHT" || name=="DRINK_EXP" || name=="DAILY_DRINKING" || name=="DAILY_STAPLE" || name == "WEIGHT_EXP"){
            $(el).mobiscroll().numpad({
                theme: 'ios',
                display: 'bottom',
                lang: 'zh',
                placeholder: '0',
                fill: 'rtl',
                allowLeadingZero: true,
                template: 'ddd.d',
                scale:0,
                buttons: ['set','cancel'],
                onSelect: function(valueText, inst){
                    var value = parseFloat($('.mbsc-np-dsp').text());
                    $(this).val(value);
                }
            })
        }else{
            $(el).mobiscroll().numpad({
                theme: 'ios',
                display: 'bottom',
                lang: 'zh',
                placeholder: '0',
                buttons: ['set','cancel'],
                onSelect: function(valueText, inst){
                    var value = parseFloat($('.mbsc-np-dsp').text());
                    $(this).val(value);
                }
            })
        }
    })
},
bindEvents = function(){  
//    判断checkbox和radio控件
    $form.on("change","input[type=radio]",function(){
        $("#disable_save").hide();
        $("#active_save").show();
        var $this = $(this)
        if($this.attr('name') == "DAILY_DRINKING_f" || $this.attr('name') == "DAILY_SMOKING_f"){
        	if($this.val()>0){//针对类型5 
	        	$this.closest('ul').find('input[name=DAILY_SMOKING]').show()
	        	$this.closest('ul').find('input[name=DAILY_DRINKING]').show()
	        	$this.closest('ul').find('input[name=DAILY_SMOKING]').val('')
	        	$this.closest('ul').find('input[name=DAILY_DRINKING]').val('')
	        }else{
	        	$this.closest('ul').find('input[name=DAILY_SMOKING]').hide()
	        	$this.closest('ul').find('input[name=DAILY_DRINKING]').hide()
	        	$this.closest('ul').find('input[name=DAILY_SMOKING]').val(0)
	        	$this.closest('ul').find('input[name=DAILY_DRINKING]').val(0)
	        }
        }
    })
    
    $form.on("change","input[type!=radio]",function(){
    	if(this.type =='checkbox'){
    		if(this.checked){
	            this.value = 1;
	            nextDo(this)
	        }else{
	            this.value = 0;
	            nextDo(this)
	        }
    	}
    	
    	if(this.type !='checkbox'){
	        nextDo(this)
    	}
    	
    	function nextDo($this){
    		if($this.value && $this.value!="0"){
	            $("#disable_save").hide();
	            $("#active_save").show();
	       }else{ 
	            var list = $("input[type!=radio]"),
	                len = list.length,
	                empty = true;
	            for(i=0; i< len; i++){
	                var value = list[i].value;
	                if(value && value!="0"){
	                    empty = false;
	                }
	            }
	            if(empty){
	            	if(pro_id == 1){//有选低血糖特殊处理
	            		if($('input[name=HYPOG_REACT_CODE]:checked').val() == undefined){
	            			$("#disable_save").show();
	                		$("#active_save").hide();
	            		}
	            	}else{
	            		$("#disable_save").show();
	                	$("#active_save").hide();
	            	}
	            }
	        }
    	}
    })
    
    $("#active_save").on("tap", function(){		
		dd.show()
        var url = "patient/prescription/followupcontent/saveinfo",
            params = [],
            data = {};
        
        function addData(num,d){
        	var alldata = {};
        	alldata.followupProject = num;
        	alldata.projectData = d;
        	return alldata
        }
        
        $form.serializeArray().map(function(x){data[x.name]=x.value;});
        data = _.omit(data,'DAILY_SMOKING_f','DAILY_DRINKING_f')//过滤辅助判断
        if(pro_id == 2){
        	var obj2={},obj4={};
        	obj4 = _.omit(data,'HEART_RATE','HEIGHT','WEIGHT')
        	obj2 = _.pick(data,'HEART_RATE','HEIGHT','WEIGHT')
        	params.push(addData(2,obj2))
        	params.push(addData(4,obj4))
        }
        if(pro_id == 1){
        	params.push(addData(1,data))
        }
        sendPost(url,{followupProjectData:JSON.stringify(params),prescriptioncode:prescriptionCode,sendIM:"true"}, 'json', 'post',function(){
        	dd.close()
    		toast('请求失败')
        }, function(res){
			dd.close()
	        if(res.status == 200){
	        	toast('提交成功')
           		setTimeout(function(){
           			window.history.back()
           		},500)
	        }
	    })
   })
}
$(function(){
	//初始化页面内容
	initPage();
})

+ 560 - 0
html/yszx/js/sanshitijiao.js

@ -0,0 +1,560 @@
Request = GetRequest(); 
var chooseType = Request["type"];//界面传送的类型 0不定义类型 1.慢病咨询 2.家庭医生咨询 6.名医咨询
var doctorCode = Request["doctorCode"];
var patientName = window.localStorage.getItem('nowPatientName');
var workTime = "";//医生工作时间
var doctorName = "";//医生名称
var teamCode = ""; //团队名称
var signCode = "";//签约记录的code
updateTitle();
//修改header 的标题
function updateTitle(){
	//需要jQuery
	    var $body = $('body');
	    if(chooseType!=6){
	    	 document.title = '新增医生咨询';
	    }
	    // hack在微信等webview中无法修改document.title的情况
	    var $iframe = $('<iframe src="/favicon.ico"></iframe>');
	    $iframe.on('load',function() {
	        setTimeout(function() {
	            $iframe.off('load').remove();
	        }, 0);
	    }).appendTo($body);
}
$(function(){
	if(chooseType==1){
	 	$(".span-type").html("慢病管理");
		querySignType();//填充下拉框
	 }else if(chooseType==2){
	 	$(".span-type").html("家庭医生");
	 	querySignType();//填充下拉框
	 }else if(chooseType==6){
	 	$(".span-type").html("名医咨询");
	 	$('#txtTypeCode').val(chooseType);
	 	sendPost('patient/consult/doctor_worktime', {doctor:doctorCode}, 'json', 'post', getListFail, successFun);	
	 }
	/* 复选框兼容  */
	$(document).on("click", ".input-group-pack > input[type=checkbox]", function() {
		var $cpChk = $(this).parent();
		if ($(this).attr("checked") == "checked") {
			$cpChk.removeClass("checked");
			$(this).removeAttr("checked");
		} else {
			$cpChk.addClass("checked");
			$(this).attr("checked", true);
		}
	});
    //弹窗   
    $('.broadcast-icon').on('click',function(){
        $('.broadcast-shadow-panel').removeClass('c-hide');
    });
    $('.win-cancle').on('click',function(){
        $('.broadcast-shadow-panel').addClass('c-hide');
    });   
    
    //从后台那边获取签名等信息
	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: [
				    	'chooseImage',
				        'uploadImage'
				    ] // 必填,需要使用的JS接口列表,所有JS接口列表见附录2
				});
			} 
			else{
				dialog({
				  	title:'提示',
				  	skin:"ui-dialog ax-popup pror", 
				  	content:"获取微信签名失败", 
				  	ok: function (){}
				}).showModal();
				window.location.href = "doctor-consultation.html";
			}
		}
	});
	
	function successFun(res){
		if(res.status==200){
			var dataList = res.data.doctor;
			doctorName = dataList.name;
			if(dataList.jobName){
				$("#lbl_doctor").html(dataList.name+"("+dataList.jobName+")");
			}else{
				$("#lbl_doctor").html(dataList.name);
			}
			$("#lbl_patient").html(patientName);
		}else{
			getListFail(res);
		}
	}
	
	function getListFail(res){
		if (res && res.msg) {
			dialog({contentType:'tipsbox', skin:'bk-popup' , content:res.msg,bottom:true}).show();     
		} else {
			dialog({contentType:'tipsbox', skin:'bk-popup' , content:'加载失败',bottom:true}).show(); 
		}
	}
	
	//提交咨询
	$("#commit").click(function() {
		if($(this).hasClass("active")){
			var data = {};
			data.type = Number($("#txtTypeCode").val());
			if($("#txtContent").val() == null)
				data.symptoms = "";
			else
				data.symptoms = utf16toEntities($("#txtContent").val().replace(/\s+/g,""));
			data.voice = "";
			if (validate(data)) {
				//验证通过执行
				dd.showModal();
	            var images = getImages();
	            if(images.length == 0){
	            	$("#commit").css("pointer-events","none");
	            	serverId = '';
	            	doSubmit(data);
	            }
	            else{
					uploadImage(data);
				}
			}
		}
	});
});
function checkInWork(doctor){
	sendPost('/patient/consult/is_doctor_working', {doctor:doctor}, 'json', 'post', queryFailed, function(res){
		if(res.status==200){
			if(res.data==0){
			  dialog({
						title: '提示',
						content: '您好,由于您的签约医生工作繁忙,所以设置了每日回复咨询的时间段,所以,在该时间段外的时间,您的咨询将不会马上获得医生的回复',
						okValue:'我知道了',
						ok: function (){				            		
						    return;
						},
					    cancelValue: '查看时间',
						cancel: function () {
							alert("查看时间")
						}
				}).showModal();
			}
		}else{
			queryFailed(res);
		}		
	});
}
//查询咨询类型
function querySignType(){
	d.show();
    sendPost('patient/sign_status', {}, 'json', 'post', querySignTypeFailed, querySignTypeSuccess);
}
function querySignTypeFailed(res) {
	d.close();
	if (res && res.msg) {
		dialog({contentType:'tipsbox',bottom:true, skin:'bk-popup' , content:res.msg}).show();      
	} else {
		dialog({contentType:'tipsbox',bottom:true, skin:'bk-popup' , content:'获取咨询类型失败'}).show(); 
	}
}
function querySignTypeSuccess(res) {
	if (res.status == 200) {
		$('#txtTypeCode').val(chooseType);
	    $('#lbl_doctor').html(getSignDoctor(res,chooseType));
	    $("#lbl_patient").html(patientName);
	    
	    teamCode = res["teamCode_"+ chooseType];
	    signCode = res["signCode_"+chooseType];
		d.close();
	} else {
		querySignTypeFailed(res);
	}
}
//获取医生信息
function getSignDoctor(data,type){
	var doctor_name = "";
	var doctor_type = "";
	switch(Number(type))
	{
		case 1:	
		    doctor_type = data.teamDoctors;
			break;
		case 2:
			doctor_type = data.familyDoctors;
			break;
		default:
			break;
	}
	for(var i=0; i < doctor_type.length; i++){
		doctor_name += doctor_type[i] + ",";
	}
	if(doctor_name.length > 0){
		doctor_name = doctor_name.substring(0, doctor_name.length-1);
	}
	return doctor_name;
}
//验证信息
function validate(data) {	
	if (data.symptoms.length < 10) {
		dialog({contentType:'tipsbox',bottom:true, skin:'bk-popup' , content:'请至少用10个字描述您的症状'}).show();
		return false;
	}
	if (data.symptoms.length > 500) {
		dialog({contentType:'tipsbox',bottom:true, skin:'bk-popup' , content:'请在500字以内完成您的症状描述'}).show();
		return false;
	}
	if(!$(".input-group-pack > input[type=checkbox]").attr("checked")){
		dialog({contentType:'tipsbox',bottom:true, skin:'bk-popup' , content:'请勾选"我已阅读咨询说明"'}).show();
		return false;
	}
	return true;
}
var serverId = "";
function chooseImage(){
	wx.chooseImage({
		count: 9-getImages().length,
        success: function (res) {
	        for (var i in res.localIds) {
				appendFile(res.localIds[i]);
			}        
        }
    });
}
function uploadImage(data){
	$("#commit").css("pointer-events","none");
	var images = getImages();
	if (images.length == 0) {
      return;
    }
    var i = 0, length = images.length;
    serverId = "";
    function upload() {
      wx.uploadImage({
        localId: images[i],
        isShowProgressTips: 0,
        success: function (res) {
          i++;
          if(serverId.length == 0){
          	serverId = res.serverId;
          }
          else{
          	serverId =serverId + "," + res.serverId;
          }          
          if (i < length) {
            upload();
          }
          if(i == images.length){
          	doSubmit(data);
          }          
        },
        fail: function (res) {
        	$("#commit").css("pointer-events","");
            alert(JSON.stringify(res));
        }
      });
    }
    upload();
}
// 添加文件
function appendFile(p) {
	var amount = getImages().length;
	if (amount >= 8) {
		$("#add_img_li").hide();
	}
	if(amount < 9){
		var $li = $('<li>' + '   <img src="' + p + '" data-src="' + p + '" onclick="viewImg(this)">' + '  <a href="javascript:;" class="del-img" onclick="delImg(this)"><i class="iconfont icon-laji"></i></a>' + '</li>');
		var $add_img_li = $("#add_img_li");
		$add_img_li.before($li);
		$("#image_tips").text(getImages().length + "/9");
	}
}
//获取需要上传的图片
function getImages() {
	var images = [];
	$("#img_ul").find("img").each(function() {
		var imgSrc = $(this).attr("data-src");
		images.push(imgSrc);
	});
	return images;
}
//查看图片
function viewImg(dom) {
	var $img = $(dom);
	var thissrc = $img.attr("data-src");
	var mWid = $(window).width();
	var mHei = $(window).height();
	var nHtml = '<div class="delimgpop"><div class="del-img-box"><div class="del-img-con"><img class="del-pop-img" src="' + thissrc + '" style="max-width:' + mWid + 'px; max-height:' + mHei + 'px;"></div></div></div>';
	$("body").append(nHtml);
	$(".delimgpop").click(function() {
		$(this).remove()
	});
};
//删除图片
function delImg(dom) {
	var $li = $(dom).parent();
	$li.remove();
	$("#image_tips").text(getImages().length + "/9");
	var amount = getImages().length;
	if(amount <= 8){
		$("#add_img_li").show();
	}
	return;
}
//微信sdk配置出错
wx.error(function (res) {
  alert("wx.error:" + res.errMsg);
});
//提交咨询
function doSubmit(data) {
    console.log(data);
	data.mediaIds = serverId;
	var url = 'patient/consult/add';//新增三师或家庭
	if(chooseType == 6){//名医咨询
		data.doctorCode = doctorCode;
		url = 'patient/consult/famousAdd';
		//查询名医当前是否在工作时间内
		sendPost('patient/consult/is_doctor_working', {doctor:doctorCode}, 'json', 'post', submitFailed, function(res){
			if(res.status==200){		
				var resultData = res.data;//0:医生不接受咨询 1:医生接受咨询 2:医生当前不在工作时间
				if(resultData==1){
					sendPost('patient/consult/consult_times_remain', {doctor:doctorCode}, 'json', 'post', submitFailed, function(res){
						if(res.status==200){		
							var count = res.data;//名医剩余咨询次数
							if(count>0){
								$("#commit").addClass("active");
								sendPost(url, data, 'json', 'post', submitFailed, submitSuccess);
							}else{
								dialog({
								    content: '您来晚了哦~该医生今日已无免费次数,您可咨询其他名医或改天再来~',
								    cancelValue: '我知道了',
								    cancel: function () {
								    	$("#commit").removeClass("active");
										dd.close();
										return;
								    }
								}).showModal();
								
							}
						}else{
							submitFailed(res);
						}		
					});
				}else if(resultData==2){
					sendPost('/patient/consult/doctor_worktime', {doctor:doctorCode}, 'json', 'post', submitFailed, function(res){
							if(res.status==200){	
								var workWeek = res.data.workWeeks;
								var worktime = res.data.workTime;
								if(workWeek&&workWeek.length>0){
										var week = new Date().getDay();
										for(var i = 0 ;i<workWeek.length;i++){
											if((week-1)==i){
												var weekInfo = workWeek[i];
												   if(weekInfo.morning==1 && weekInfo.afternoon==1 && weekInfo.night==1){
														workTime = worktime.morningBegin+"~"+worktime.nightEnd;
													}else if(weekInfo.morning==1 && weekInfo.afternoon==0 && weekInfo.night==0){
														workTime = worktime.morningBegin+"~"+worktime.morningEnd;
													}else if(weekInfo.morning==0 && weekInfo.afternoon==1 && weekInfo.night==0){
														workTime = worktime.afternoonBegin+"~"+worktime.afternoonEnd;
													}else if(weekInfo.morning==0 && weekInfo.afternoon==0 && weekInfo.night==1){
														workTime = worktime.nightBegin+"~"+worktime.nightEnd;
													}else if(weekInfo.morning==1 && weekInfo.afternoon==1 && weekInfo.night==0){
														workTime = worktime.morningBegin+"~"+worktime.afternoonEnd;
													}else if(weekInfo.morning==0 && weekInfo.afternoon==1 && weekInfo.night==1){
														workTime = worktime.afternoonBegin+"~"+worktime.nightEnd;
													}
											}
										}
										setTimeout(function(){
											isWordTime(workTime);//判断医生是否在工作时间内+查询某个医生名医当前剩余咨询次数
										},300)
								  }
							}else{
								submitFailed(res);
							}	
					});
					
			
					return false;
					
				}else{
					dialog({
					    content: '对不起,该医生已暂停接受咨询,您可选择其他医生进行咨询',
					    cancelValue: '我知道了',
					    cancel: function () {
					    	dd.close();
							return;
					    }
					}).showModal();
					return false;
				}
			}else{
				submitFailed(res);
			}		
		});
			
		
	}else{
		sendPost(url, data, 'json', 'post', submitFailed, submitSuccess);
	}
	
}
function time_range(beginTime, endTime, nowTime) {
		  var strb = beginTime.split (":");
		  if (strb.length != 2) {
		    return false;
		  }
		 
		  var stre = endTime.split (":");
		  if (stre.length != 2) {
		    return false;
		  }
		 
		  var strn = nowTime.split (":");
		  if (stre.length != 2) {
		    return false;
		  }
		  var b = new Date ();
		  var e = new Date ();
		  var n = new Date ();
		 
		  b.setHours (strb[0]);
		  b.setMinutes (strb[1]);
		  e.setHours (stre[0]);
		  e.setMinutes (stre[1]);
		  n.setHours (strn[0]);
		  n.setMinutes (strn[1]);
		 
		  if (n.getTime () - b.getTime () > 0 && n.getTime () - e.getTime () < 0) {
		    return "1";//在时间范围内
		  } else {
		    return "0";//不在工作时间内
		  }
	}
	
	function CompareDate(t1,t2)
	{
		var date = new Date();
		var a = t1.split(":");
		var b = t2.split(":");
		return date.setHours(a[0],a[1]) > date.setHours(b[0],b[1]);
	}
	
	//判断医生是否在工作时间内
	function isWordTime(curWorkTime){
		dd.close();
		var week = new Date().getDay();
		var myDate = new Date();
		debugger
		if(curWorkTime){//有上班时间
			var cosultTimeArr = curWorkTime.split("~");
			var curHours = myDate.getHours(); //获取当前小时数(0-23)
			var curMinutes = myDate.getMinutes();//获取当前分钟数(0-59)
			var curTime = curHours+":"+curMinutes;
			var timeRange = time_range(cosultTimeArr[0],cosultTimeArr[1],curTime)
			if(timeRange=="1"){//在工作时间内,查询某个医生名医当前剩余咨询次数
				consultTimesRemain();
			}else{//不在工作时间内,判断早晚
				var isFlag1 = CompareDate(curTime,cosultTimeArr[0]);
				var isFlag2 = CompareDate(curTime,cosultTimeArr[1]);
				if(!isFlag1){//来早了
					 dialog({
					    content: '您来早了哦,'+doctorName+'医生将在'+cosultTimeArr[0]+'准时开始接受咨询~',
					    cancelValue: '我知道了',
					    cancel: function () {
					    	$("#commit").removeClass("active");
					    	dd.close();
							return;
					    }
					}).showModal();
					return false;
				}
				if(isFlag2){//来晚了
					dialog({
						    content: '您来晚了哦~'+doctorName+'医生本日咨询时间已过,请改日再来~',
						    cancelValue: '我知道了',
						    cancel: function () {
						    	$("#commit").removeClass("active");
						    	dd.close();
								return;
						    }
						}).showModal();
					return false;
				}
			}
		}else{
				dialog({
					    content: '医生今天不上班哦,请在医生咨询计划时间段内咨询',
					    cancelValue: '我知道了',
					    cancel: function () {
					    	$("#commit").removeClass("active");
					    	dd.close();
							return;
					    }
					}).showModal();
					
					return false;
		}
		
	}
	
	
function submitFailed(res) {
	$("#commit").css("pointer-events","");
	dd.close();
	if (res && res.msg) {
		dialog({contentType:'tipsbox',bottom:true, skin:'bk-popup' , content:res.msg}).show();      
	} else {
		dialog({contentType:'tipsbox',bottom:true, skin:'bk-popup' , content:'提交失败'}).show(); 
	}
}
function submitSuccess(res) {
	if (res.status == 200) {
		$("#commit").css("pointer-events","");
		dd.close();
		//window.location.href = "https://open.weixin.qq.com/connect/oauth2/authorize?appid=" + appId + "&redirect_uri=http%3a%2f%2f" + weixinUrl + "%2f" + urlName + "%2fwx%2fhtml%2fyszx%2fhtml%2fdoctor-consultation.html&response_type=code&scope=snsapi_base&state=STATE#wechat_redirect";
		//window.location.href = "vedio-consulting-commit-success.html?type=2";
		//页面跳转到消息页面
		var direct_url = "";
		if(chooseType == "6" || chooseType == "1"){ //名医咨询和三师咨询均跳转回原来的咨询IM页面
		    direct_url = "consulting-doctor.html?consult="+res.data.consult+"&type="+res.data.type+"&toUser="+res.data.patient+"&doctor="+doctorCode;
		}else{
		    localStorage.setItem("signInfo_tab", 1);
		    direct_url = "../../qygl/html/sign_info.html?code="+signCode+"&teamCode="+teamCode+"&type="+chooseType+"&doctor="+doctorCode+"&consult="+res.data.consult;
		}
		
		window.location.href = direct_url;
	} else { 
		submitFailed(res);
		
	}
}

+ 0 - 0
html/yszx/js/select-consult-doctor.js


部分文件因为文件数量过多而无法显示