Commit 0d330542 by hanpeng

-mark- 订单相关页面

parent e91121ef
......@@ -60,7 +60,7 @@ define(['zepto', 'medtap'], function($, medtap) {
talkRelation: function() {
medtap.loading(1);
medtap.submitAjax({
url: 'https://dev2-gw.medtap.cn/operation/talk/talkRelation',
url: 'https://testdevgw.medtap.cn/operation/talk/talkRelation',
type: 'post',
async: false,
contentType: 'application/json',
......@@ -84,7 +84,7 @@ define(['zepto', 'medtap'], function($, medtap) {
sendMsg: function() {
medtap.loading(1);
medtap.submitAjax({
url: 'https://dev2-gw.medtap.cn/operation/talk/talk',
url: 'https://testdevgw.medtap.cn/operation/talk/talk',
type: 'post',
async: false,
contentType: 'application/json',
......@@ -106,7 +106,7 @@ define(['zepto', 'medtap'], function($, medtap) {
getTalkRecord: function() {
medtap.loading(1);
medtap.submitAjax({
url: 'https://dev2-gw.medtap.cn/operation/talk/talkRecord',
url: 'https://testdevgw.medtap.cn/operation/talk/talkRecord',
type: 'get',
async: false,
data: {
......@@ -180,7 +180,7 @@ define(['zepto', 'medtap'], function($, medtap) {
}
medtap.loading(1);
medtap.submitAjax({
url: 'https://dev2-gw.medtap.cn/operation/talk/talkRecord/refresh',
url: 'https://testdevgw.medtap.cn/operation/talk/talkRecord/refresh',
type: 'get',
async: false,
data: {
......
......@@ -178,4 +178,13 @@ body {
color:#fff;
border-radius:0.08rem;
margin:0.18rem 0.32rem;
}
.price_content .needPay{
display:none
}
.price_content .needPay .free_price{
text-decoration:none;
font-size:0.32rem;
margin-top:0.15rem;
}
\ No newline at end of file
......@@ -4,15 +4,60 @@ define(['zepto','medtap'],function($,medtap){
localIds: [],
serverId: "",
imgList: [],
pmdOrderSn:medtap.getRequest('pmdOrderSn'),
isPmd:false,
consultCount:0,
init:function(){
$('.doctor_name').text(medtap.getRequest('doctorname') + ' 医生')
consult.getWechatTicket();
//consult.confirmConsultOrder();
consult.confirmConsultOrder();
consult.bindEve();
},
bindEve:function(){
$('.submit').unbind().bind('click',function(){
var result = consult.checkValue();
if(result == true){
if(consult.pmdOrderSn != '' || consult.pmdOrderSn != 'undefined'){
if(consult.isPmd == true && consult.consultCount > 0){
consult.freeOrder();
}else{
consult.createConsultOrder();
}
}else{
consult.createConsultOrder();
}
}
})
},
confirmConsultOrder:function(){
medtap.loading(1);
/* medtap.submitAjax({
url:'https://testdevgw.medtap.cn/trade/consult/confirmConsultOrder'
}) */
medtap.submitAjax({
url:'https://testdevgw.medtap.cn/trade/consult/confirmConsultOrder',
type:'post',
async:false,
contentType: "application/json",
data:{
doctorId:consult.doctorId,
pmdOrderSn:consult.pmdOrderSn
},
success:function(res){
medtap.loading(0);
if(res.success == true){
var result = res.content.result;
consult.isPmd = result.isPmd;
consult.consultCount = result.consultCount;
$('.free_price').html(result.totalFee + '/次');
$('.pay_price').html(result.totalFee + '/次');
if(consult.consultCount != 0 && consult.isPmd == true){
$('.for_free').show();
$('.need_pay').hide();
}else{
$('.for_free').hide();
$('.need_pay').show();
}
}
}
})
},
getWechatTicket: function() {
medtap.submitAjax({
......@@ -122,6 +167,106 @@ define(['zepto','medtap'],function($,medtap){
})
},
checkValue:function(){
var flag = false;
if(!$('#tel_phone').val()){
medtap.toast({
message:'请输入联系电话',
time:1500
});
flag = false;
}else if(!$('#disease_detail').val()){
medtap.toast({
message:'请输入病情描述',
time:1500
});
flag = false;
}else if($('#disease_detail').val().length < 10){
medtap.toast({
message:'病情描述不能少于10个字',
time:1500
});
flag = false;
}else if(!$('#expectation_help_detail').val()){
medtap.toast({
message:'请输入想要咨询的问题',
time:1500
});
flag = false;
}else if($('#expectation_help_detail').val().length < 5 || $('#expectation_help_detail').val().length > 20){
medtap.toast({
message:'请输入5-20字',
time:1500
});
flag = false;
}else{
flag = true
}
return flag;
},
//创建免费订单
freeOrder:function(){
var urls = [],
picUrl = "";
[].forEach.call($('#ImgUp .image_files_img'), function(item) {
urls.push($(item).attr('imgkey'));
});
var picUrl = urls.join(',')
medtap.loading(1);
medtap.submitAjax({
url:'https://testdevgw.medtap.cn/trade/consult/submitConsultOrderByPmd',
type:'post',
async: false,
contentType: 'application/json',
data:{
doctorId:consult.doctorId,
pmdOrderSn:medtap.getRequest('pmdOrderSn'),
diseaseDescription:$('#disease_detail').val(),
expectationHelp:$('#expectation_help_detail').val(),
picUrl:picUrl
},
success:function(res){
medtap.loading(0);
if(res.success == true){
var orderDetail = res.content.order;
setTimeout(function(){
medtap.pushWindow('pages/success.html?orderSn=' + orderDetail.orderSn);
},1000);
}
}
})
},
//创建付费订单
createConsultOrder:function(){
var urls = [],
picUrl = "";
[].forEach.call($('#ImgUp .image_files_img'), function(item) {
urls.push($(item).attr('imgkey'));
});
var picUrl = urls.join(',')
medtap.loading(1);
medtap.submitAjax({
url:'https://testdevgw.medtap.cn/trade/consult/submitConsultOrder',
type:'post',
async: false,
contentType: 'application/json',
data:{
doctorId:consult.doctorId,
diseaseDescription:$('#disease_detail').val(),
expectationHelp:$('#expectation_help_detail').val(),
picUrl:picUrl
},
success:function(res){
medtap.loading(0);
if(res.success == true){
var orderDetail = res.content.order;
setTimeout(function(){
medtap.pushWindow('pages/success.html?orderSn=' + orderDetail.orderSn);
},1000);
}
}
})
}
}
consult.init();
consult.choseImage();
......
......@@ -33,11 +33,11 @@
<div id="content">
<div class="header_content clearfix">
<span class="left_tip">预约咨询</span>
<span class="doctor_name">孔祥鸣医生</span>
<span class="doctor_name"></span>
</div>
<div class="price_content for_free clearfix">
<span class="left_tip">价格 (15分钟)</span>
<div class="right_box">
<div class="right_box free">
<p class="free_price">50元/次</p>
<p class="free_reason">使用私人医生服务,本次免费</p>
</div>
......@@ -67,10 +67,7 @@
<img src="images/post_ picture_btn@2x.png">
</div>
<div class="image_files clearfix" id="ImgUp">
<div class="image_files_item">
<img src="images/post_title_bg@2x.png" class="image_files_img">
<img src="images/post_delete_btn@2x.png" class="image_del" >
</div>
</div>
</div>
</div>
......
......@@ -154,4 +154,21 @@ body {
}
.consult_agreement{
color:#1D8AEF;
}
.free_tip{
display:none;
width:4.58rem;
height:0.96rem;
float:left;
font-size:0.24rem;
padding:0.16rem 0.42rem;
background:#fff;
}
.free_tip .img_consult_price{
text-decoration:line-through;
color:#F45E19;
}
.free_tip_desc{
font-size:0.28rem;
font-weight:500;
}
\ No newline at end of file
......@@ -34,7 +34,7 @@
<img src="images/order_tuwen_bg_png@2x.png" style="width:100%">
<div class="header_content clearfix">
<span class="left_tip">咨询医生</span>
<span class="doctor_name">孔祥鸣(主任医师)</span>
<span class="doctor_name"></span>
</div>
<div class="patient_info">
<div class="patient_info_item" style="border-bottom:0.01rem solid #F1F1F1">
......@@ -43,15 +43,15 @@
</div>
<div class="patient_info_item clearfix">
<p class="patient_info_item_01">
<span class="patient_name">张天</span>
<span class="patient_sex_age_city">(男 63岁 杭州)</span>
<span class="patient_name"></span>
<span class="patient_sex_age_city"></span>
</p>
<p class="patient_info_item_01">疾病诊断:肺癌</p>
<p class="patient_info_item_01">病理类型:小细胞肺癌-腺癌</p>
<div class="changeInfo">
<p class="patient_info_item_01 diseaseDiagnosis">疾病诊断:肺癌</p>
<p class="patient_info_item_01 pathologyType">病理类型:小细胞肺癌-腺癌</p>
<!-- <div class="changeInfo">
<span class="changeInfo_desc">修改信息</span>
<img src="images/_arrows _right@2x.png">
</div>
</div> -->
</div>
</div>
<div class="textarea_box">
......@@ -82,9 +82,13 @@
</div>
</div>
<div class="footer clearfix">
<div class="left_tip img_consult_price">
<div class="left_tip img_consult_price needPay">
</div>
<div class="free_tip">
<p class="img_consult_price">0.1元/3个月</p>
<p class="free_tip_desc">已开通私人医生服务 本次免费</p>
</div>
<div class="right_btn submit_order">
提交并购买服务
</div>
......
......@@ -2,10 +2,14 @@ define(['zepto','medtap'],function($,medtap){
var imgConsult = {
doctorId:medtap.getRequest('doctorId'),
doctorName:'',
pmdOrderSn:medtap.getRequest('pmdOrderSn'),
localIds: [],
serverId: "",
imgList: [],
emrId:'',
payFee:'',
isPmd:false,
wxLungToken:localStorage.wxLungToken,
init:function(){
imgConsult.getDoctorDetail();
imgConsult.bindEve();
......@@ -25,13 +29,24 @@ define(['zepto','medtap'],function($,medtap){
$('.submit_order').unbind().bind('click',function(){
var flag = $('.btn_icon').attr('select');
if(flag == 'yes'){
}else{
medtap.toast({
message:'<p style="text-align:center">请阅读并同意<br/>《私人医生咨询服务订单协议》</p>',
time:1500
})
var result = imgConsult.checkValue();
if(result == true){
if(flag == 'yes'){
if(imgConsult.pmdOrderSn == '' || imgConsult.pmdOrderSn == 'undefined'){
if(imgConsult.isPmd == true && imgConsult.payFee == '0'){
imgConsult.createImgConsult();
}else{
}
}else{
imgConsult.freeOrder();
}
}else{
medtap.toast({
message:'<p style="text-align:center">请阅读并同意<br/>《私人医生咨询服务订单协议》</p>',
time:1500
})
}
}
})
},
......@@ -74,10 +89,22 @@ define(['zepto','medtap'],function($,medtap){
medtap.loading(0);
if(res.success == true){
var patientList = res.content.list;
var sex = '';
var age = '';
var city = '';
for(var i = 0;i < patientList.length;i++){
if(patientList[i].defaultFlg == true){
$('.service_patient').html(patientList[i].patientName);
imgConsult.emrId = patientList[i].emrId;
$('.patient_name').text(patientList[i].patientName);
if(patientList[i].sex == 'M'){
sex = '男';
}else if(patientList[i].sex == 'F'){
sex = '女';
}
age = patientList[i].age;
city = patientList[i].hasOwnProperty('areaItem') ? info.areaItem.fullName : '';
$('.patient_sex_age_city').text('(' + sex +' ' + age +'岁 ' + city + ')');
}
}
}
......@@ -108,6 +135,40 @@ define(['zepto','medtap'],function($,medtap){
medtap.loading(0);
if(res.success == true){
var orderDetail = res.content.order;
medtap.pushWindow('https://review-formal.iplusmed.com/wechatForLungCancer/dev/wechat_lung_wxPay/wxPay.html?orderType=imgConsult&orderId=' + orderDetail.orderSn + '&wxLungToken=' + imgConsult.wxLungToken)
}
}
})
},
freeOrder:function(){
var urls = [],
picUrl = "";
[].forEach.call($('#ImgUp .image_files_img'), function(item) {
urls.push($(item).attr('imgkey'));
});
var picUrl = urls.join(',');
medtap.loading(1);
medtap.submitAjax({
url:'https://testdevgw.medtap.cn/trade/imageConsultOrder/submitOrderByPmd',
type:'post',
async: false,
contentType: 'application/json',
data:{
emrId:imgConsult.emrId,
doctorId:imgConsult.doctorId,
pmdOrderSn:medtap.getRequest('pmdOrderSn'),
describe:$('#disease_detail').val() || '',
describePic:picUrl,
expectationHelp:$('#expectation_help_detail').val() || ''
},
success:function(res){
medtap.loading(0);
if(res.success == true){
var orderDetail = res.content.order;
setTimeout(function(){
medtap.pushWindow('pages/success.html?OrderSn=' + orderDetail.orderSn);
},1000);
}
}
})
......@@ -121,12 +182,22 @@ define(['zepto','medtap'],function($,medtap){
contentType: 'application/json',
data:{
emrId:imgConsult.emrId,
doctorId:imgConsult.doctorId
doctorId:imgConsult.doctorId,
pmdOrderSn:medtap.getRequest('pmdOrderSn')
},
success:function(res){
medtap.loading(0);
if(res.success == true){
var result = res.content.result;
imgConsult.isPmd = result.isPmd;
imgConsult.payFee = result.payFee;
if(result.isPmd == true && result.payFee == '0'){
$('.free_tip').show();
$('.needPay').hide();
}else{
$('.free_tip').hide();
$('.needPay').show();
}
}
}
})
......@@ -239,6 +310,38 @@ define(['zepto','medtap'],function($,medtap){
})
},
checkValue:function(){
var flag = false;
if(!$('#disease_detail').val()){
medtap.toast({
message:'请输入疾病描述',
time:1500
})
flag = false;
}else if($('#disease_detail').val().length < 10){
medtap.toast({
message:'疾病描述不可少于10个字',
time:1500
})
flag = false;
}else if(!$('#expectation_help_detail').val()){
medtap.toast({
message:'请输入您想要咨询的内容',
time:1500
})
flag = false;
}else if($('#expectation_help_detail').val().length < 5 || $('#expectation_help_detail').val().length > 20){
medtap.toast({
message:'请输入5-20字',
time:1500
})
flag = false;
}else{
flag = true;
}
return flag;
}
}
imgConsult.init();
})
\ No newline at end of file
body {
background: #F6F6FC;
}
.consult_item {
background: #fff;
padding: 0.32rem;
font-size: 0.32rem;
margin-bottom:0.2rem;
position:relative;
}
.consult_item .doctor_profile {
width: 1.2rem;
height: 1.2rem;
border-radius: 50%;
float: left;
}
.consult_item .doctor_info {
width: 5.5rem;
float: left;
margin-left: 0.1rem;
}
.consult_item .doctor_info .doctor_info_item01 .doctor_name {
font-size: 0.36rem;
font-weight: 600;
}
.consult_item .doctor_info .doctor_info_item01 .doctor_title {
font-size: 0.36rem;
color: #333;
margin-left: 0.16rem;
}
.consult_item .doctor_info .doctor_info_item01 .create_time {
float: right;
font-size: 0.28rem;
color: #666;
}
.consult_item .doctor_info .consult_content {
font-size: 0.28rem;
color: #999999;
margin-top: 0.4rem;
width: 100%;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.close_warp{
position:absolute;
bottom:0.2rem;
right:0.2rem;
}
.close_warp img{
width:1.2rem;
height:1.2rem;
}
\ No newline at end of file
......@@ -9,7 +9,14 @@ define(['zepto','medtap'],function($,medtap){
bindEve:function(){
$('.tab_item').unbind().bind('click',function(){
$(this).addClass('tabOn');
$(this).siblings('.tab_item').removeClass('tabOn')
$(this).siblings('.tab_item').removeClass('tabOn');
if($('.basic').hasClass('tabOn')){
$('.basicInfo').show();
$('.treatwayInfo').hide()
}else if($('.treatway').hasClass('tabOn')){
$('.basicInfo').hide();
$('.treatwayInfo').show()
}
})
},
getEmrDetail:function(){
......@@ -26,7 +33,9 @@ define(['zepto','medtap'],function($,medtap){
medtap.loading(0);
if(res.success == true){
var info = res.content.emr;
//基本信息
var sex = '';
var diseaseDiagnosis = '';
$('#username').val(info.patientName);
if(info.sex == 'M'){
sex = '男';
......@@ -34,7 +43,62 @@ define(['zepto','medtap'],function($,medtap){
sex = '女';
}
$('#sex').val(sex).attr('sendkey',info.sex);
$('#birth').val(info.birthday)
$('#birth').val(info.birthday);
if(info.diseaseDiagnosis == 'lung'){
diseaseDiagnosis = '肺癌';
$('#disease').val(diseaseDiagnosis).attr('sendkey','lung');
}else{
diseaseDiagnosis = '其他';
$('#disease').val(diseaseDiagnosis).attr('sendkey',' ');
}
$('#pathology').val(info.pathologyTypeItem.value).attr('sendkey',info.pathologyTypeItem.child);
$('#height').val(info.hasOwnProperty('height') ? info.height : '');
$('#stages').val(info.hasOwnProperty('tumorStageItem') ? info.tumorStageItem.value : '');
$('#stages_TNM').val(info.hasOwnProperty('tnmStage') ? info.tnmStage : '');
$('#transfer').val(info.hasOwnProperty('transferNidusItem') ? info.transferNidusItem.value : '');
if(info.hasOwnProperty('smokingFlg') && info.smokingFlg == true){
$('#somke').val(info.smokingYear+ '年' + info.smokingDailyNum + '支/天');
}else if(info.hasOwnProperty('smokingFlg') && info.smokingFlg == false){
$('#somke').val('无');
}
$('#ECOG').val(info.hasOwnProperty('ecogGradeItem') ? info.ecogGradeItem.value : '');
$('#idCard').val(info.hasOwnProperty('patientHospitalIdNum') ? info.patientHospitalIdNum : '');
$('#location').val(info.hasOwnProperty('areaItem') ? info.areaItem.fullName : '');
//治疗信息
//$('.hasPoint').text(info.hasOwnProperty('targetedMutationsItem') ? info.targetedMutationsItem.value : "");
if(info.hasOwnProperty('targetedMutationsItem') && info.targetedMutationsItem.length != 0){
var strTargetedMutations = [];
for(var i = 0;i < info.targetedMutationsItem.length;i++){
strTargetedMutations.push(info.targetedMutationsItem[i].value);
}
strTargetedMutations.join(',')
$('.hasPoint').text(strTargetedMutations).css('color','#333');
}else{
$('.hasPoint').text('无');
}
if(info.hasOwnProperty('acceptingCureItem') && info.acceptingCureItem.length != 0){
var strAccepting = [];
for(var i = 0;i < info.acceptingCureItem.length;i++){
strAccepting.push(info.acceptingCureItem[i].value);
}
strAccepting.join(',');
$('.treating').text(strAccepting).css('color','#333');
}else{
$('.treating').text('无');
}
if(info.hasOwnProperty('acceptedCureItem') && info.acceptedCureItem.length != 0){
var strAccepted = [];
for(var i = 0;i < info.acceptedCureItem.length;i++){
strAccepted.push(info.acceptedCureItem[i].value);
}
strAccepted.join(',');
$('.treated').text(strAccepted);
}else{
$('.treated').text('无');
}
//图片
}
}
})
......
define(['zepto','medtap'],function($,medtap){
var myConsult = {
init:function(){
myConsult.getMyConsultList()
},
getMyConsultList:function(){
medtap.loading(1);
medtap.submitAjax({
url:'https://testdevgw.medtap.cn/trade/imageConsultOrder/listOrder',
type:'post',
async: false,
contentType: 'application/json',
data:{
pageNum:1,
pageSize:10,
condtion:{
}
},
success:function(res){
medtap.loading(0);
if(res.success == true){
var orderList = res.content.list;
var html = '';
for(var i = 0;i < orderList.length;i++){
var status = orderList[i].status.key;
if(status == '3'){
html += '<div class="consult_item clearfix close">'+
'<img src="'+orderList[i].doctorProfile+'" class="doctor_profile">'+
'<div class="doctor_info clearfix">'+
'<p class="doctor_info_item01 clearfix">'+
'<span class="doctor_name">'+orderList[i].doctorName+'</span>'+
'<span class="doctor_title">'+orderList[i].doctorId+'</span>'+
'<span class="create_time">'+orderList[i].createTime.substring(0,11)+'</span>'+
'</p>'+
'<p class="consult_content">'+orderList[i].describe+'</p>'+
'</div>'+
'<div class="close_warp">'+
'<img src="../images/consult_list_finish_png@2x.png" >'+
'</div>'+
'</div>';
}else{
html += '<div class="consult_item clearfix">'+
'<img src="'+orderList[i].doctorProfile+'" class="doctor_profile">'+
'<div class="doctor_info clearfix">'+
'<p class="doctor_info_item01 clearfix">'+
'<span class="doctor_name">'+orderList[i].doctorName+'</span>'+
'<span class="doctor_title">'+orderList[i].doctorId+'</span>'+
'<span class="create_time">'+orderList[i].createTime.substring(0,11)+'</span>'+
'</p>'+
'<p class="consult_content">'+orderList[i].describe+'</p>'+
'</div>'+
'</div>';
}
}
$('.consult_list').html(html);
}
}
})
}
}
myConsult.init();
})
\ No newline at end of file
......@@ -41,7 +41,7 @@ define(['zepto','medtap'],function($,medtap){
}else{
str3 = '<span class="service_icon consult none">电话咨询</span>'
}
html += '<div class="doctor_item clearfix">'+
html += '<div class="doctor_item clearfix" data-id="'+myAtDoctor[i].doctorInfo.doctorId+'">'+
'<img src="'+myAtDoctor[i].doctorInfo.profile+'" class="doctor_profile">'+
'<div class="doctor_info">'+
'<span class="doctor_name">'+myAtDoctor[i].doctorInfo.doctorName+'</span>'+
......@@ -78,7 +78,7 @@ define(['zepto','medtap'],function($,medtap){
}else{
str3 = '<span class="service_icon consult none">电话咨询</span>'
}
html += '<div class="doctor_item clearfix">'+
html += '<div class="doctor_item clearfix" data-id="'+myAtDoctor[i].doctorInfo.doctorId+'">'+
'<img src="'+myAtDoctor[i].doctorInfo.profile+'" class="doctor_profile">'+
'<div class="doctor_info">'+
'<span class="doctor_name">'+myAtDoctor[i].doctorInfo.doctorName+'</span>'+
......@@ -99,6 +99,10 @@ define(['zepto','medtap'],function($,medtap){
}
}
$('.doctor_list_consult').html(html);
$('.doctor_item').unbind().bind('click',function(){
var id = $(this).attr('data-id');
medtap.pushWindow('../../wechat_lung_push_doctor/pages/doctorHomePage.html?doctorId=' + id);
})
}
}
})
......@@ -116,7 +120,27 @@ define(['zepto','medtap'],function($,medtap){
},
success:function(res){
medtap.loading(0)
medtap.loading(0);
if(res.success == true){
var pmdList = res.content.list;
var html = '';
for(var i = 0;i < pmdList.length;i++){
var doctorInfo = pmdList[i].doctorResult;
html += '<div class="doctor_pmd_item clearfix" data-id="'+doctorInfo.doctorId+'">'+
'<img src="'+doctorInfo.profile+'" class="doctor_pmd_profile">'+
'<div class="doctor_info_pmd">'+
'<span class="doctor_pmd_name">'+doctorInfo.doctorName+'</span>'+
'<span class="doctor_pmd_title">'+(doctorInfo.hasOwnProperty('technologyProfessionalName') ? doctorInfo.technologyProfessionalName :'')+'</span>'+
'<p class="doctor_hospital">'+(doctorInfo.hasOwnProperty('hospitalName') ? doctorInfo.hospitalName + (doctorInfo.hasOwnProperty('departmentName') ? ' ' + doctorInfo.departmentName : '' ): '') +'</p>'+
'</div>'+
'</div>';
}
$('.doctor_list_pmd').html(html);
$('.doctor_pmd_item').unbind().bind('click',function(){
var id = $(this).attr('data-id');
medtap.pushWindow('../../wechat_lung_push_doctor/pages/doctorHomePage.html?doctorId=' + id);
})
}
}
})
}
......
define(['zepto','medtap'],function(){
})
\ No newline at end of file
......@@ -51,7 +51,7 @@
</div>
<div class="right_box" id="sex_typeBox">
<input type="text" name="" id="sex" value="" placeholder="请选择" readonly="true" />
<img src="../images/_arrows _right@2x.png" class="arrow_icon">
<!-- <img src="../images/_arrows _right@2x.png" class="arrow_icon"> -->
</div>
</div>
<div class="input_item clearfix">
......@@ -61,7 +61,7 @@
</div>
<div class="right_box" id="birth_typeBox">
<input type="text" name="" id="birth" value="" placeholder="请选择" readonly="true" />
<img src="../images/_arrows _right@2x.png" class="arrow_icon">
<!-- <img src="../images/_arrows _right@2x.png" class="arrow_icon"> -->
</div>
</div>
<div class="input_item clearfix">
......@@ -69,7 +69,7 @@
<span class="input_tip">身高(cm)</span>
</div>
<div class="right_box">
<input type="text" name="" id="height" value="" placeholder="请输入" />
<input type="text" name="" id="height" value="" placeholder="" readonly="true"/>
</div>
</div>
<div class="input_item clearfix">
......@@ -78,8 +78,8 @@
<span class="input_tip">疾病诊断</span>
</div>
<div class="right_box" id="disease_typeBox">
<input type="text" name="" id="disease" value="" placeholder="请选择" readonly="true" />
<img src="../images/_arrows _right@2x.png" class="arrow_icon">
<input type="text" name="" id="disease" value="" placeholder="" readonly="true" />
<!-- <img src="../images/_arrows _right@2x.png" class="arrow_icon"> -->
</div>
</div>
<div class="input_item clearfix">
......@@ -88,8 +88,8 @@
<span class="input_tip">病理类型</span>
</div>
<div class="right_box" id="pathology_typeBox">
<input type="text" name="" id="pathology" value="" placeholder="请选择" readonly="true" />
<img src="../images/_arrows _right@2x.png" class="arrow_icon">
<input type="text" name="" id="pathology" value="" placeholder="" readonly="true" />
<!-- <img src="../images/_arrows _right@2x.png" class="arrow_icon"> -->
</div>
</div>
<div class="input_item clearfix">
......@@ -97,8 +97,8 @@
<span class="input_tip">肿瘤分期</span>
</div>
<div class="right_box" id="stages_typeBox">
<input type="text" name="" id="stages" value="" placeholder="请选择" readonly="true" />
<img src="../images/_arrows _right@2x.png" class="arrow_icon">
<input type="text" name="" id="stages" value="" placeholder="" readonly="true" />
<!-- <img src="../images/_arrows _right@2x.png" class="arrow_icon"> -->
</div>
</div>
<div class="input_item clearfix">
......@@ -106,8 +106,8 @@
<span class="input_tip">TNM分期</span>
</div>
<div class="right_box" id="stages_TNM_typeBox">
<input type="text" name="" id="stages_TNM" value="" placeholder="请选择" readonly="true" />
<img src="../images/_arrows _right@2x.png" class="arrow_icon">
<input type="text" name="" id="stages_TNM" value="" placeholder="" readonly="true" />
<!-- <img src="../images/_arrows _right@2x.png" class="arrow_icon"> -->
</div>
</div>
<div class="input_item clearfix">
......@@ -115,8 +115,8 @@
<span class="input_tip">有无转移病灶</span>
</div>
<div class="right_box" id="transfer_typeBox">
<input type="text" name="" id="transfer" value="" placeholder="请选择" readonly="true" />
<img src="../images/_arrows _right@2x.png" class="arrow_icon">
<input type="text" name="" id="transfer" value="" placeholder="" readonly="true" />
<!-- <img src="../images/_arrows _right@2x.png" class="arrow_icon"> -->
</div>
</div>
<div class="input_item clearfix">
......@@ -124,8 +124,8 @@
<span class="input_tip">有无吸烟史</span>
</div>
<div class="right_box somke_typeBox">
<input type="text" name="" id="somke" value="" placeholder="请选择" readonly="true" />
<img src="../images/_arrows _right@2x.png" class="arrow_icon">
<input type="text" name="" id="somke" value="" placeholder="" readonly="true" />
<!-- <img src="../images/_arrows _right@2x.png" class="arrow_icon"> -->
</div>
</div>
<div class="input_item clearfix">
......@@ -133,8 +133,8 @@
<span class="input_tip">ECOG评分</span>
</div>
<div class="right_box" id="ECOG_typeBox">
<input type="text" name="" id="ECOG" value="" placeholder="请选择" readonly="true" />
<img src="../images/_arrows _right@2x.png" class="arrow_icon">
<input type="text" name="" id="ECOG" value="" placeholder="" readonly="true" />
<!-- <img src="../images/_arrows _right@2x.png" class="arrow_icon"> -->
</div>
</div>
<div class="input_item clearfix">
......@@ -142,7 +142,7 @@
病案号/住院号医保卡号
</div>
<div class="right_box">
<input type="text" name="" id="idCard" value="" placeholder="请输入" />
<input type="text" name="" id="idCard" value="" placeholder="" readonly="true"/>
</div>
</div>
<div class="input_item clearfix" style="border:none">
......@@ -150,8 +150,8 @@
<span class="input_tip">医保所在地</span>
</div>
<div class="right_box" id="location_typeBox">
<input type="text" name="" id="location" value="" placeholder="请选择" readonly="true" />
<img src="../images/_arrows _right@2x.png" class="arrow_icon">
<input type="text" name="" id="location" value="" placeholder="" readonly="true" />
<!-- <img src="../images/_arrows _right@2x.png" class="arrow_icon"> -->
</div>
</div>
</div>
......@@ -160,27 +160,27 @@
<div class="input_item_title">有无靶向突变</div>
<div class="input_item_info" id="hasPoint">
<span class="input_content hasPoint">请选择</span>
<img src="../images/_arrows _right@2x.png" class="arrow_icon">
<!-- <img src="../images/_arrows _right@2x.png" class="arrow_icon"> -->
</div>
</div>
<div class="input_item clearfix">
<div class="input_item_title">当前正在接受的治疗</div>
<div class="input_item_info treatWay_btn">
<span class="input_content treating">请选择</span>
<img src="../images/_arrows _right@2x.png" class="arrow_icon">
<!-- <img src="../images/_arrows _right@2x.png" class="arrow_icon"> -->
</div>
</div>
<div class="input_item clearfix" style="padding-bottom:0.3rem;">
<div class="input_item_title">既往接受过的治疗</div>
<div class="add_btn">+添加</div>
<!-- <div class="add_btn">+添加</div> -->
<span class="treated" style="margin-top:0.2rem"></span>
</div>
<div class="input_item clearfix">
<div class="input_item_title">既往出院小结/门诊病历</div>
<div class="input_item_info">
<div class="image_upload" id="upload">
<!-- <div class="image_upload" id="upload">
<img src="../images/post_ picture_btn@2x.png">
</div>
</div> -->
<div class="image_files clearfix" id="ImgUp">
</div>
......
......@@ -2,8 +2,64 @@
<html>
<head>
<meta charset="utf-8">
<title></title>
<meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1,user-scalable=no">
<meta content="yes" name="apple-mobile-web-app-capable">
<meta content="black" name="apple-mobile-web-app-status-bar-style">
<meta content="telephone=no" name="format-detection">
<meta content="email=no" name="format-detection">
<link rel="stylesheet" type="text/css" href="https://review-formal.iplusmed.com/Common/css/wechat_Reset.min.css" />
<link rel="stylesheet" type="text/css" href="../css/myConsult.css"/>
<script src="https://review-formal.iplusmed.com/Common/javaScript/calRem.js" type="text/javascript" charset="utf-8"></script>
<title>我的咨询</title>
<script src="https://review-formal.iplusmed.com/Common/javaScript/require.min.js"></script>
<script type="text/javascript">
require.config({
baseUrl: "./",
paths: {
"zepto": "https://review-formal.iplusmed.com/Common/javaScript/zepto.min",
"medtap": "https://review-formal.iplusmed.com/Common/javaScript/medtap_core_wx",
"md5": "https://review-formal.iplusmed.com/Common/javaScript/md5.min"
},
shim: {
"zepto": {
exports: "$"
}
}
});
</script>
</head>
<body>
<div id="content">
<div class="consult_list">
<div class="consult_item clearfix">
<img src="https://cdn.iplusmed.com/DOCTOR/52223/ea6ef875-2250-4739-b975-5f4d22b54454" class="doctor_profile">
<div class="doctor_info clearfix">
<p class="doctor_info_item01 clearfix">
<span class="doctor_name">孔祥鸣</span>
<span class="doctor_title">主任医师</span>
<span class="create_time">2019-06-01</span>
</p>
<p class="consult_content">孔祥鸣医生:最近一次检测是什么时候去…</p>
</div>
</div>
<div class="consult_item clearfix close">
<img src="https://cdn.iplusmed.com/DOCTOR/52223/ea6ef875-2250-4739-b975-5f4d22b54454" class="doctor_profile">
<div class="doctor_info clearfix">
<p class="doctor_info_item01 clearfix">
<span class="doctor_name">孔祥鸣</span>
<span class="doctor_title">主任医师</span>
<span class="create_time">2019-06-01</span>
</p>
<p class="consult_content">孔祥鸣医生:最近一次检测是什么时候去…</p>
</div>
<div class="close_warp">
<img src="../images/consult_list_finish_png@2x.png" >
</div>
</div>
</div>
</div>
</body>
<script type="text/javascript">
require(['../javaScript/myConsult.js'])
</script>
</html>
......@@ -34,63 +34,13 @@
私人医生
</div>
<div class="doctor_list_pmd">
<div class="doctor_pmd_item clearfix">
<img src="../images/post_title_bg@2x.png" class="doctor_pmd_profile">
<div class="doctor_info_pmd">
<span class="doctor_pmd_name">刘怎容</span>
<span class="doctor_pmd_title">主任医师</span>
<p class="doctor_hospital">哈尔滨医科大学附属肿瘤医院 肿瘤内科</p>
</div>
</div>
<div class="doctor_pmd_item clearfix">
<img src="../images/post_title_bg@2x.png" class="doctor_pmd_profile">
<div class="doctor_info_pmd">
<span class="doctor_pmd_name">刘怎容</span>
<span class="doctor_pmd_title">主任医师</span>
<p class="doctor_hospital">哈尔滨医科大学附属肿瘤医院 肿瘤内科</p>
</div>
</div>
</div>
<div class="doctor_list_consult_header">
关注医生
</div>
<div class="doctor_list_consult">
<div class="doctor_item clearfix">
<img src="../images/post_title_bg@2x.png" class="doctor_profile">
<div class="doctor_info">
<span class="doctor_name">刘怎容</span>
<span class="doctor_title">主任医师</span>
<span class="attention_status">互相关注</span>
<p class="doctor_hospital">哈尔滨医科大学附属肿瘤医院 肿瘤内科</p>
</div>
<div class="clearfix" style="margin-top:0.3rem;float:left">
<span class="doctor_info_tag">擅长</span>
<span class="doctor_goodAt">掌握内科血液病以及造血干细胞移植…</span>
</div>
<div class="service_list clearfix">
<span class="service_icon pmd">私人医生</span>
<span class="service_icon img_consult">图文咨询</span>
<span class="service_icon consult">电话咨询</span>
</div>
</div>
<div class="doctor_item clearfix">
<img src="../images/post_title_bg@2x.png" class="doctor_profile">
<div class="doctor_info">
<span class="doctor_name">刘怎容</span>
<span class="doctor_title">主任医师</span>
<span class="attention_status">互相关注</span>
<p class="doctor_hospital">哈尔滨医科大学附属肿瘤医院 肿瘤内科</p>
</div>
<div class="clearfix" style="margin-top:0.3rem;float:left">
<span class="doctor_info_tag">擅长</span>
<span class="doctor_goodAt">掌握内科血液病以及造血干细胞移植…</span>
</div>
<div class="service_list clearfix">
<span class="service_icon pmd">私人医生</span>
<span class="service_icon img_consult">图文咨询</span>
<span class="service_icon consult">电话咨询</span>
</div>
</div>
</div>
</div>
</body>
......
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1,user-scalable=no">
<meta content="yes" name="apple-mobile-web-app-capable">
<meta content="black" name="apple-mobile-web-app-status-bar-style">
<meta content="telephone=no" name="format-detection">
<meta content="email=no" name="format-detection">
<link rel="stylesheet" type="text/css" href="https://review-formal.iplusmed.com/Common/css/wechat_Reset.min.css" />
<link rel="stylesheet" type="text/css" href="../css/myOrder.css"/>
<script src="https://review-formal.iplusmed.com/Common/javaScript/calRem.js" type="text/javascript" charset="utf-8"></script>
<title>我的订单</title>
<script src="https://review-formal.iplusmed.com/Common/javaScript/require.min.js"></script>
<script type="text/javascript">
require.config({
baseUrl: "./",
paths: {
"zepto": "https://review-formal.iplusmed.com/Common/javaScript/zepto.min",
"medtap": "https://review-formal.iplusmed.com/Common/javaScript/medtap_core_wx",
"md5": "https://review-formal.iplusmed.com/Common/javaScript/md5.min"
},
shim: {
"zepto": {
exports: "$"
}
}
});
</script>
</head>
<body>
</body>
<script type="text/javascript">
require(['../javaScript/myOrder.js'])
</script>
</html>
......@@ -64,10 +64,11 @@ body {
background: #20CD99;
border-radius: 0.08rem;
}
.top_btn_warp .follow{
.top_btn_warp .follow {
border: 0.01rem solid #20cd99;
background: #fff;
color: #20cd99;
background: #fff;
color: #20cd99;
}
.top_btn_warp .regard {
......@@ -136,6 +137,13 @@ body {
white-space: nowrap;
}
.doctor_introduce {
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 3;
overflow: hidden;
}
.show_more_btn {
width: 100%;
height: 0.76rem;
......@@ -156,7 +164,7 @@ body {
color: #1D8AEF;
border-top: 0.01rem solid #f1f1f1;
background: #fff;
display:none;
display: none;
}
.doctor_info_open {
......@@ -336,9 +344,10 @@ body {
margin-top: 0.32rem;
margin-left: 0.5rem;
}
.service_card .cardDis{
background:#ccc;
color:#fff;
.service_card .cardDis {
background: #ccc;
color: #fff;
}
.service_tel_consulation {
......
......@@ -2,11 +2,13 @@ define(['zepto','medtap'],function($,medtap){
var doctor = {
doctorId:medtap.getRequest('doctorId'),
wechatId:medtap.getRequest('wechatId'),
doctorName:'',
pmdOrderSn:'',
init:function(){
doctor.getPmdOrderStatus();
doctor.getDoctorDetail();
doctor.getAttention();
doctor.bindEve();
doctor.getPmdOrderStatus();
},
bindEve:function(){
$('.show_more_btn').unbind().bind('click',function(){
......@@ -36,11 +38,14 @@ define(['zepto','medtap'],function($,medtap){
//私人医生服务购买
$('.go_pmd').unbind().bind('click',function(){
//medtap.pushWindow('../../wechat_lung_prvivateDoctor/index.html?doctorId=' + doctor.doctorId);
if($(this).hasClass('cardDis')){
}else{
medtap.pushWindow('../../wechat_lung_prvivateDoctor/index.html?doctorId=' + doctor.doctorId);
if(doctor.pmdOrderSn != ''){
//medtap.pushWindow('../../wechat_lung_prvivateDoctor/index.html?doctorId=' + doctor.doctorId + '&pmdOrderSn=' + doctor.pmdOrderSn);
}else{
medtap.pushWindow('../../wechat_lung_prvivateDoctor/index.html?doctorId=' + doctor.doctorId);
}
}
})
......@@ -49,7 +54,7 @@ define(['zepto','medtap'],function($,medtap){
if($(this).hasClass('cardDis')){
}else{
medtap.pushWindow('../../wechat_lung_consult/rukou.html?doctorId=' + doctor.doctorId);
medtap.pushWindow('../../wechat_lung_consult/rukou.html?doctorId=' + doctor.doctorId + '&pmdOrderSn=' + doctor.pmdOrderSn + '&doctorname=' + doctor.doctorName);
}
});
......@@ -58,7 +63,7 @@ define(['zepto','medtap'],function($,medtap){
if($(this).hasClass('cardDis')){
}else{
medtap.pushWindow('../../wechat_lung_imgConsult/index.html?doctorId=' + doctor.doctorId);
medtap.pushWindow('../../wechat_lung_imgConsult/index.html?doctorId=' + doctor.doctorId + '&pmdOrderSn=' + doctor.pmdOrderSn);
}
})
......@@ -77,6 +82,7 @@ define(['zepto','medtap'],function($,medtap){
var detail = res.content.doctorItem;
$('.doctor_profile').attr('src',detail.profile);
$('.doctor_name').text(detail.doctorName);
doctor.doctorName = detail.doctorName;
document.title = detail.doctorName;
$('.doctor_professional').text(detail.technologyProfessional.value);
$('.doctor_hospital').text(detail.hospitalName + ' ' + detail.departmentName);
......@@ -100,6 +106,7 @@ define(['zepto','medtap'],function($,medtap){
$('.consult_price').html('未开通').css('color','#999');
$('.consult_btn').addClass('cardDis');
}else{
$('.consult_price').html(detail.consultPrice);
$('.consult_btn').removeClass('cardDis');
}
......@@ -108,7 +115,8 @@ define(['zepto','medtap'],function($,medtap){
$('.img_consult_price').html('未开通').css('color','#999');
$('.img_consult_btn').addClass('cardDis');
}else{
$('.consult_price').html(detail.imageConsultPrice);
var str = '<span class="txt_gray">/次</span>';
$('.img_consult_price').html(detail.imageConsultPrice + str);
$('.img_consult_btn').removeClass('cardDis');
}
//私人医生
......@@ -196,7 +204,7 @@ define(['zepto','medtap'],function($,medtap){
getPmdOrderStatus:function(){
medtap.loading(1);
medtap.submitAjax({
url:'https://testdevgw.medtap.cn/trade/pmdConsultOrder/checkPmdStatus',
url:'https://testdevgw.medtap.cn/trade/pmdConsultOrder/listValidOrder',
type:'post',
contentType: "application/json",
async:false,
......@@ -205,6 +213,21 @@ define(['zepto','medtap'],function($,medtap){
},
success:function(res){
medtap.loading(0);
if(res.success == true){
var pmdOrderList = res.content.list;
if(pmdOrderList.length == 0){
doctor.pmdOrderSn = '';
$('.go_pmd').html('立即开通');
}else{
$('.go_pmd').html('已开通');
for(var i = 0;i < pmdOrderList.length;i++){
if(pmdOrderList[i].doctorId == parseInt(doctor.doctorId)){
doctor.pmdOrderSn = pmdOrderList[i].orderSn;
}
}
}
}
}
})
},
......
......@@ -89,7 +89,7 @@
<img src="../images/imtext_icon_png@2x.png" class="service_card_icon" >
<div class="service_card_introduce">
<p class="service_card_title">图文咨询</p>
<p class="service_card_price img_consult_price">50元<span class="txt_gray">/次</span></p>
<p class="service_card_price img_consult_price"><span class="txt_gray">/次</span></p>
</div>
<div class="service_card_status img_consult_btn">
立即咨询
......@@ -99,7 +99,7 @@
<img src="../images/phone_icon_png@2x.png" class="service_card_icon" >
<div class="service_card_introduce">
<p class="service_card_title">电话咨询</p>
<p class="service_card_price consult_price">150元<span class="txt_gray">/15分钟</span></p>
<p class="service_card_price consult_price"><span class="txt_gray">/15分钟</span></p>
</div>
<div class="service_card_status consult_btn">
立即咨询
......@@ -116,7 +116,7 @@
<p>2.享受3次电话咨询</p>
<p>3.专属小助手实时相应</p>
<div class="service_card_status go_pmd">
立即开通
</div>
</div>
</div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment