Commit d638d8c1 by zujiaozhang

'医生端切换为正式环境'

parent 595b9cfe
......@@ -114,7 +114,7 @@ define(['zepto', 'medtap'], function($, medtap) {
getPmdOrderInfo: function() {
medtap.jzz(1);
$.ajax({
url: 'https://testdevgw.medtap.cn/trade/pmdConsultOrder/listValidOrder',
url: 'https://gateway.medtap.cn/trade/pmdConsultOrder/listValidOrder',
type: 'post',
contentType: "application/json",
async: false,
......@@ -141,7 +141,7 @@ define(['zepto', 'medtap'], function($, medtap) {
talkRelation: function() {
medtap.jzz(1);
$.ajax({
url: 'https://testdevgw.medtap.cn/operation/talk/talkRelation',
url: 'https://gateway.medtap.cn/operation/talk/talkRelation',
type: 'post',
async: false,
contentType: 'application/json',
......@@ -173,7 +173,7 @@ define(['zepto', 'medtap'], function($, medtap) {
sendMsg: function() {
medtap.jzz(1);
$.ajax({
url: 'https://testdevgw.medtap.cn/operation/talk/talk',
url: 'https://gateway.medtap.cn/operation/talk/talk',
type: 'post',
async: false,
headers: medtap.getHeaders(),
......@@ -199,7 +199,7 @@ define(['zepto', 'medtap'], function($, medtap) {
getTalkRecord: function() {
medtap.jzz(1);
$.ajax({
url: 'https://testdevgw.medtap.cn/operation/talk/talkRecord',
url: 'https://gateway.medtap.cn/operation/talk/talkRecord',
type: 'get',
async: false,
headers: medtap.getHeaders(),
......@@ -326,7 +326,7 @@ define(['zepto', 'medtap'], function($, medtap) {
}
medtap.jzz(1);
$.ajax({
url: 'https://testdevgw.medtap.cn/operation/talk/talkRecord/refresh',
url: 'https://gateway.medtap.cn/operation/talk/talkRecord/refresh',
type: 'get',
async: false,
headers: medtap.getHeaders(),
......
......@@ -120,7 +120,7 @@ define(['zepto', 'medtap'], function($, medtap) {
getPmdOrderInfo: function() {
medtap.jzz(1);
$.ajax({
url: 'https://testdevgw.medtap.cn/trade/pmdConsultOrder/listValidOrder',
url: 'https://gateway.medtap.cn/trade/pmdConsultOrder/listValidOrder',
type: 'post',
contentType: "application/json",
async: false,
......@@ -147,7 +147,7 @@ define(['zepto', 'medtap'], function($, medtap) {
talkRelation: function() {
medtap.jzz(1);
$.ajax({
url: 'https://testdevgw.medtap.cn/operation/talk/talkRelation',
url: 'https://gateway.medtap.cn/operation/talk/talkRelation',
type: 'post',
async: false,
contentType: 'application/json',
......@@ -179,7 +179,7 @@ define(['zepto', 'medtap'], function($, medtap) {
sendMsg: function() {
medtap.jzz(1);
$.ajax({
url: 'https://testdevgw.medtap.cn/operation/talk/talk',
url: 'https://gateway.medtap.cn/operation/talk/talk',
type: 'post',
async: false,
headers: medtap.getHeaders(),
......@@ -207,7 +207,7 @@ define(['zepto', 'medtap'], function($, medtap) {
getTalkRecord: function() {
medtap.jzz(1);
$.ajax({
url: 'https://testdevgw.medtap.cn/operation/talk/talkRecord',
url: 'https://gateway.medtap.cn/operation/talk/talkRecord',
type: 'get',
async: false,
headers: medtap.getHeaders(),
......@@ -343,7 +343,7 @@ define(['zepto', 'medtap'], function($, medtap) {
}
medtap.jzz(1);
$.ajax({
url: 'https://testdevgw.medtap.cn/operation/talk/talkRecord/refresh',
url: 'https://gateway.medtap.cn/operation/talk/talkRecord/refresh',
type: 'get',
async: false,
headers: medtap.getHeaders(),
......
......@@ -16,7 +16,6 @@ define(['zepto', 'medtap','mui'], function($, medtap,mui) {
minId: 0,
maxId: 0,
init: function() {
console.log(main.orderSn)
main.getOrderDetail();
main.bindEve();
var getTalk = setInterval(function() {
......@@ -77,6 +76,7 @@ define(['zepto', 'medtap','mui'], function($, medtap,mui) {
mui.confirm('确认已给出明确建议,结束本次咨询?','结束提醒',['取消','结束'],function(e){
if(e.index=='1'){
$('.footer_tip').hide()
$('.footer').hide()
main.finishOrder()
// console.log('确认了')
}else if(e.index=='0'){
......@@ -87,7 +87,7 @@ define(['zepto', 'medtap','mui'], function($, medtap,mui) {
},
getOrderDetail: function() {
$.ajax({
url: 'https://testdevgw.medtap.cn/trade/order/getOrderByOrderSn',
url: 'https://gateway.medtap.cn/trade/order/getOrderByOrderSn',
type: 'get',
headers: medtap.getHeaders(),
data: {
......@@ -104,6 +104,7 @@ define(['zepto', 'medtap','mui'], function($, medtap,mui) {
$('.footer_tip').show()
}else{
$('.footer_tip').hide()
$('.footer').hide()
}
main.userId = imgConsultDetail.clientId;
$('.patient_name').html(imgConsultDetail.patientName + ' (' + (imgConsultDetail.sex == 'M' ? '男 ' : '女 ') +
......@@ -189,7 +190,7 @@ define(['zepto', 'medtap','mui'], function($, medtap,mui) {
getPmdOrderInfo: function() {
medtap.jzz(1);
$.ajax({
url: 'https://testdevgw.medtap.cn/trade/pmdConsultOrder/listValidOrder',
url: 'https://gateway.medtap.cn/trade/pmdConsultOrder/listValidOrder',
type: 'post',
contentType: "application/json",
async: false,
......@@ -220,7 +221,7 @@ define(['zepto', 'medtap','mui'], function($, medtap,mui) {
talkRelation: function(userId) {
medtap.jzz(1);
$.ajax({
url: 'https://testdevgw.medtap.cn/operation/talk/talkRelation',
url: 'https://gateway.medtap.cn/operation/talk/talkRelation',
type: 'post',
async: false,
contentType: 'application/json',
......@@ -252,7 +253,7 @@ define(['zepto', 'medtap','mui'], function($, medtap,mui) {
getTalkRecord: function() {
medtap.jzz(1);
$.ajax({
url: 'https://testdevgw.medtap.cn/operation/talk/talkRecord',
url: 'https://gateway.medtap.cn/operation/talk/talkRecord',
type: 'get',
async: false,
headers: medtap.getHeaders(),
......@@ -332,7 +333,7 @@ define(['zepto', 'medtap','mui'], function($, medtap,mui) {
sendMsg: function() {
medtap.jzz(1);
$.ajax({
url: 'https://testdevgw.medtap.cn/operation/talk/talk',
url: 'https://gateway.medtap.cn/operation/talk/talk',
type: 'post',
async: false,
headers: medtap.getHeaders(),
......@@ -360,7 +361,7 @@ define(['zepto', 'medtap','mui'], function($, medtap,mui) {
acceptOrder: function() {
medtap.jzz(1);
$.ajax({
url: 'https://testdevgw.medtap.cn/trade/imageConsultOrder/affirmOrder/ACCEPT',
url: 'https://gateway.medtap.cn/trade/imageConsultOrder/affirmOrder/ACCEPT',
type: 'post',
async: false,
headers: medtap.getHeaders(),
......@@ -382,7 +383,7 @@ define(['zepto', 'medtap','mui'], function($, medtap,mui) {
rejectOrder: function() {
medtap.jzz(1);
$.ajax({
url: 'https://testdevgw.medtap.cn/trade/imageConsultOrder/affirmOrder/REJECT',
url: 'https://gateway.medtap.cn/trade/imageConsultOrder/affirmOrder/REJECT',
type: 'post',
async: false,
headers: medtap.getHeaders(),
......@@ -405,7 +406,7 @@ define(['zepto', 'medtap','mui'], function($, medtap,mui) {
finishOrder:function(){
medtap.jzz(1);
$.ajax({
url: 'https://testdevgw.medtap.cn/trade/order/completeOrder',
url: 'https://gateway.medtap.cn/trade/order/completeOrder',
type: 'post',
async: false,
headers: medtap.getHeaders(),
......
......@@ -21,7 +21,7 @@ define(['zepto', 'medtap'], function($, medtap) {
getEmrDetail: function() {
medtap.jzz(1);
$.ajax({
url: 'https://testdevgw.medtap.cn/user/patientEMR/getPatientEMRInfo',
url: 'https://gateway.medtap.cn/user/patientEMR/getPatientEMRInfo',
type: 'post',
async: false,
contentType: 'application/json',
......
......@@ -43,7 +43,7 @@ define(['zepto','medtap'],function($,medtap){
getMyEmr:function(){
medtap.jzz(1);
$.ajax({
url:'https://testdevgw.medtap.cn/user/patientEMR/getPatientEMRInfo',
url:'https://gateway.medtap.cn/user/patientEMR/getPatientEMRInfo',
type:'post',
async:false,
contentType: 'application/json',
......
......@@ -79,7 +79,7 @@ define(['zepto', 'medtap'], function($, medtap) {
getMyEmr: function() {
medtap.jzz(1);
$.ajax({
url: 'https://testdevgw.medtap.cn/user/patientEMR/getPatientEMRInfo',
url: 'https://gateway.medtap.cn/user/patientEMR/getPatientEMRInfo',
type: 'post',
async: false,
contentType: 'application/json',
......@@ -217,7 +217,7 @@ define(['zepto', 'medtap'], function($, medtap) {
getUserAttention: function() {
medtap.jzz(1);
$.ajax({
url: 'https://testdevgw.medtap.cn/doctor/fans/getUserDetail',
url: 'https://gateway.medtap.cn/doctor/fans/getUserDetail',
type: 'get',
headers: medtap.getHeaders(),
data: {
......@@ -243,7 +243,7 @@ define(['zepto', 'medtap'], function($, medtap) {
cancelAttentionUser: function() {
medtap.jzz(1);
$.ajax({
url: 'https://testdevgw.medtap.cn/doctor/fans/attentUser',
url: 'https://gateway.medtap.cn/doctor/fans/attentUser',
type: 'post',
contentType: 'application/json',
headers: medtap.getHeaders(),
......
......@@ -285,15 +285,8 @@ define([ 'zepto', 'medtap' ], function($, medtap) {
} else if (detail.status.key == 1) {
} */
if (imgConsultDetail.serviceStatus.key == 2) {
$('.footer_btn').show();
if (imgConsultDetail.serviceStatus.key !== 3) {
$('.footer').hide();
} else if (imgConsultDetail.serviceStatus.key == 10) {
$('.footer_btn').hide();
$('.footer').hide();
} else {
$('.footer_btn').hide();
$('.footer').show();
}
//病历id
var emrId = imgConsultDetail.emrId;
......
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