Commit 7410ff70 by zujiaozhang

'问卷切换到测试'

parent 1852c036
...@@ -138,7 +138,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {  ...@@ -138,7 +138,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) { 
getQuestionAnswer: function(){ getQuestionAnswer: function(){
var crm = discomfort.adminId==''? '':'/crm' var crm = discomfort.adminId==''? '':'/crm'
medtap.submitAjax({ medtap.submitAjax({
url: 'https://gateway.medtap.cn/operation/followUp'+crm+'/getAnswer', url: 'https://testdevgw.medtap.cn/operation/followUp'+crm+'/getAnswer',
type: 'post', type: 'post',
async: false, async: false,
contentType: 'application/json', contentType: 'application/json',
...@@ -278,7 +278,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {  ...@@ -278,7 +278,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) { 
getPreQuestion:function(){ getPreQuestion:function(){
var crm = discomfort.adminId==''? '':'/crm' var crm = discomfort.adminId==''? '':'/crm'
medtap.submitAjax({ medtap.submitAjax({
url: 'https://gateway.medtap.cn/operation/followUp'+crm+'/previousQuestion', url: 'https://testdevgw.medtap.cn/operation/followUp'+crm+'/previousQuestion',
type: 'post', type: 'post',
async: false, async: false,
contentType: 'application/json', contentType: 'application/json',
...@@ -303,7 +303,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {  ...@@ -303,7 +303,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) { 
var crm = discomfort.adminId==''? '':'/crm' var crm = discomfort.adminId==''? '':'/crm'
console.log(discomfort.checks) console.log(discomfort.checks)
medtap.submitAjax({ medtap.submitAjax({
url: 'https://gateway.medtap.cn/operation/followUp'+crm+'/nextQuestion', url: 'https://testdevgw.medtap.cn/operation/followUp'+crm+'/nextQuestion',
type: 'post', type: 'post',
async: false, async: false,
contentType: 'application/json', contentType: 'application/json',
...@@ -380,7 +380,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {  ...@@ -380,7 +380,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) { 
submitQuestionAnswer: function(data){ submitQuestionAnswer: function(data){
var crm = discomfort.adminId==''? '':'/crm' var crm = discomfort.adminId==''? '':'/crm'
medtap.submitAjax({ medtap.submitAjax({
url: 'https://gateway.medtap.cn/operation/followUp'+crm+'/completeQuestion', url: 'https://testdevgw.medtap.cn/operation/followUp'+crm+'/completeQuestion',
type: 'post', type: 'post',
async: false, async: false,
contentType: 'application/json', contentType: 'application/json',
......
...@@ -344,7 +344,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {  ...@@ -344,7 +344,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) { 
getQuestionAnswer: function(){ getQuestionAnswer: function(){
var crm = discomfortGeneralPage.adminId==''? '':'/crm' var crm = discomfortGeneralPage.adminId==''? '':'/crm'
medtap.submitAjax({ medtap.submitAjax({
url: 'https://gateway.medtap.cn/operation/followUp'+crm+'/getAnswer', url: 'https://testdevgw.medtap.cn/operation/followUp'+crm+'/getAnswer',
type: 'post', type: 'post',
async: false, async: false,
contentType: 'application/json', contentType: 'application/json',
...@@ -375,7 +375,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {  ...@@ -375,7 +375,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) { 
getPreQuestion:function(){ getPreQuestion:function(){
var crm = discomfortGeneralPage.adminId==''? '':'/crm' var crm = discomfortGeneralPage.adminId==''? '':'/crm'
medtap.submitAjax({ medtap.submitAjax({
url: 'https://gateway.medtap.cn/operation/followUp'+crm+'/previousQuestion', url: 'https://testdevgw.medtap.cn/operation/followUp'+crm+'/previousQuestion',
type: 'post', type: 'post',
async: false, async: false,
contentType: 'application/json', contentType: 'application/json',
...@@ -460,7 +460,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {  ...@@ -460,7 +460,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) { 
getNextQuestion:function(data,url){ getNextQuestion:function(data,url){
var crm = discomfortGeneralPage.adminId==''? '':'/crm' var crm = discomfortGeneralPage.adminId==''? '':'/crm'
medtap.submitAjax({ medtap.submitAjax({
url: 'https://gateway.medtap.cn/operation/followUp'+crm+'/nextQuestion', url: 'https://testdevgw.medtap.cn/operation/followUp'+crm+'/nextQuestion',
type: 'post', type: 'post',
async: false, async: false,
contentType: 'application/json', contentType: 'application/json',
...@@ -533,7 +533,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {  ...@@ -533,7 +533,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) { 
submitQuestionAnswer: function(data){ submitQuestionAnswer: function(data){
var crm = discomfortGeneralPage.adminId==''? '':'/crm' var crm = discomfortGeneralPage.adminId==''? '':'/crm'
medtap.submitAjax({ medtap.submitAjax({
url: 'https://gateway.medtap.cn/operation/followUp'+crm+'/completeQuestion', url: 'https://testdevgw.medtap.cn/operation/followUp'+crm+'/completeQuestion',
type: 'post', type: 'post',
async: false, async: false,
contentType: 'application/json', contentType: 'application/json',
......
...@@ -122,7 +122,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {  ...@@ -122,7 +122,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) { 
getQuestionAnswer: function(){ getQuestionAnswer: function(){
var crm = examination.adminId==''? '':'/crm' var crm = examination.adminId==''? '':'/crm'
medtap.submitAjax({ medtap.submitAjax({
url: 'https://gateway.medtap.cn/operation/followUp'+crm+'/getAnswer', url: 'https://testdevgw.medtap.cn/operation/followUp'+crm+'/getAnswer',
type: 'post', type: 'post',
async: false, async: false,
contentType: 'application/json', contentType: 'application/json',
...@@ -203,7 +203,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {  ...@@ -203,7 +203,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) { 
getPreQuestion:function(){ getPreQuestion:function(){
var crm = examination.adminId==''? '':'/crm' var crm = examination.adminId==''? '':'/crm'
medtap.submitAjax({ medtap.submitAjax({
url: 'https://gateway.medtap.cn/operation/followUp'+crm+'/previousQuestion', url: 'https://testdevgw.medtap.cn/operation/followUp'+crm+'/previousQuestion',
type: 'post', type: 'post',
async: false, async: false,
contentType: 'application/json', contentType: 'application/json',
...@@ -230,7 +230,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {  ...@@ -230,7 +230,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) { 
getNextQuestion:function(data){ getNextQuestion:function(data){
var crm = examination.adminId==''? '':'/crm' var crm = examination.adminId==''? '':'/crm'
medtap.submitAjax({ medtap.submitAjax({
url: 'https://gateway.medtap.cn/operation/followUp'+crm+'/nextQuestion', url: 'https://testdevgw.medtap.cn/operation/followUp'+crm+'/nextQuestion',
type: 'post', type: 'post',
async: false, async: false,
contentType: 'application/json', contentType: 'application/json',
......
...@@ -170,7 +170,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {  ...@@ -170,7 +170,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) { 
}, },
getWechatTicket: function() { getWechatTicket: function() {
medtap.submitAjax({ medtap.submitAjax({
url: 'https://gateway.medtap.cn/wechat/lung/fetchWechatTicket', url: 'https://testdevgw.medtap.cn/wechat/lung/fetchWechatTicket',
type: 'GET', type: 'GET',
async: false, async: false,
data: { data: {
...@@ -250,7 +250,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {  ...@@ -250,7 +250,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) { 
//上传图片 //上传图片
upLoadImg: function(serverId, localId) { upLoadImg: function(serverId, localId) {
$.ajax({ $.ajax({
url: 'https://gateway.medtap.cn/common/uploadWechatFile', url: 'https://testdevgw.medtap.cn/common/uploadWechatFile',
type: 'POST', type: 'POST',
async: false, async: false,
contentType:"application/json", contentType:"application/json",
...@@ -285,7 +285,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {  ...@@ -285,7 +285,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) { 
getQuestionAnswer: function(){ getQuestionAnswer: function(){
var crm = furtherConsultation.adminId==''? '':'/crm' var crm = furtherConsultation.adminId==''? '':'/crm'
medtap.submitAjax({ medtap.submitAjax({
url: 'https://gateway.medtap.cn/operation/followUp'+crm+'/getAnswer', url: 'https://testdevgw.medtap.cn/operation/followUp'+crm+'/getAnswer',
type: 'post', type: 'post',
async: false, async: false,
contentType: 'application/json', contentType: 'application/json',
...@@ -335,7 +335,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {  ...@@ -335,7 +335,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) { 
getPreQuestion:function(){ getPreQuestion:function(){
var crm = furtherConsultation.adminId==''? '':'/crm' var crm = furtherConsultation.adminId==''? '':'/crm'
medtap.submitAjax({ medtap.submitAjax({
url: 'https://gateway.medtap.cn/operation/followUp'+crm+'/previousQuestion', url: 'https://testdevgw.medtap.cn/operation/followUp'+crm+'/previousQuestion',
type: 'post', type: 'post',
async: false, async: false,
contentType: 'application/json', contentType: 'application/json',
...@@ -358,7 +358,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {  ...@@ -358,7 +358,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) { 
getNextQuestion:function(data){ getNextQuestion:function(data){
var crm = furtherConsultation.adminId==''? '':'/crm' var crm = furtherConsultation.adminId==''? '':'/crm'
medtap.submitAjax({ medtap.submitAjax({
url: 'https://gateway.medtap.cn/operation/followUp'+crm+'/nextQuestion', url: 'https://testdevgw.medtap.cn/operation/followUp'+crm+'/nextQuestion',
type: 'post', type: 'post',
async: false, async: false,
contentType: 'application/json', contentType: 'application/json',
......
...@@ -187,7 +187,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {  ...@@ -187,7 +187,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) { 
}, },
getWechatTicket: function() { getWechatTicket: function() {
medtap.submitAjax({ medtap.submitAjax({
url: 'https://gateway.medtap.cn/wechat/lung/fetchWechatTicket', url: 'https://testdevgw.medtap.cn/wechat/lung/fetchWechatTicket',
type: 'GET', type: 'GET',
async: false, async: false,
data: { data: {
...@@ -265,7 +265,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {  ...@@ -265,7 +265,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) { 
//上传图片 //上传图片
upLoadImg: function(serverId, localId) { upLoadImg: function(serverId, localId) {
$.ajax({ $.ajax({
url: 'https://gateway.medtap.cn/common/uploadWechatFile', url: 'https://testdevgw.medtap.cn/common/uploadWechatFile',
type: 'POST', type: 'POST',
async: false, async: false,
contentType:"application/json", contentType:"application/json",
...@@ -298,7 +298,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {  ...@@ -298,7 +298,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) { 
getQuestionAnswer: function(){ getQuestionAnswer: function(){
var crm = geneDetection.adminId==''? '':'/crm' var crm = geneDetection.adminId==''? '':'/crm'
medtap.submitAjax({ medtap.submitAjax({
url: 'https://gateway.medtap.cn/operation/followUp'+crm+'/getAnswer', url: 'https://testdevgw.medtap.cn/operation/followUp'+crm+'/getAnswer',
type: 'post', type: 'post',
async: false, async: false,
contentType: 'application/json', contentType: 'application/json',
...@@ -354,7 +354,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {  ...@@ -354,7 +354,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) { 
getPreQuestion:function(){ getPreQuestion:function(){
var crm = geneDetection.adminId==''? '':'/crm' var crm = geneDetection.adminId==''? '':'/crm'
medtap.submitAjax({ medtap.submitAjax({
url: 'https://gateway.medtap.cn/operation/followUp'+crm+'/previousQuestion', url: 'https://testdevgw.medtap.cn/operation/followUp'+crm+'/previousQuestion',
type: 'post', type: 'post',
async: false, async: false,
contentType: 'application/json', contentType: 'application/json',
...@@ -404,7 +404,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {  ...@@ -404,7 +404,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) { 
getNextQuestion:function(data,url){ getNextQuestion:function(data,url){
var crm = geneDetection.adminId==''? '':'/crm' var crm = geneDetection.adminId==''? '':'/crm'
medtap.submitAjax({ medtap.submitAjax({
url: 'https://gateway.medtap.cn/operation/followUp'+crm+'/nextQuestion', url: 'https://testdevgw.medtap.cn/operation/followUp'+crm+'/nextQuestion',
type: 'post', type: 'post',
async: false, async: false,
contentType: 'application/json', contentType: 'application/json',
......
...@@ -107,7 +107,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {  ...@@ -107,7 +107,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) { 
}, },
getWechatTicket: function() { getWechatTicket: function() {
medtap.submitAjax({ medtap.submitAjax({
url: 'https://gateway.medtap.cn/wechat/lung/fetchWechatTicket', url: 'https://testdevgw.medtap.cn/wechat/lung/fetchWechatTicket',
type: 'GET', type: 'GET',
async: false, async: false,
data: { data: {
...@@ -187,7 +187,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {  ...@@ -187,7 +187,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) { 
//上传图片 //上传图片
upLoadImg: function(serverId, localId) { upLoadImg: function(serverId, localId) {
$.ajax({ $.ajax({
url: 'https://gateway.medtap.cn/common/uploadWechatFile', url: 'https://testdevgw.medtap.cn/common/uploadWechatFile',
type: 'POST', type: 'POST',
async: false, async: false,
contentType:"application/json", contentType:"application/json",
...@@ -220,7 +220,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {  ...@@ -220,7 +220,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) { 
getQuestionAnswer: function(){ getQuestionAnswer: function(){
var crm = generalPage.adminId==''? '':'/crm' var crm = generalPage.adminId==''? '':'/crm'
medtap.submitAjax({ medtap.submitAjax({
url: 'https://gateway.medtap.cn/operation/followUp'+crm+'/getAnswer', url: 'https://testdevgw.medtap.cn/operation/followUp'+crm+'/getAnswer',
type: 'post', type: 'post',
async: false, async: false,
contentType: 'application/json', contentType: 'application/json',
...@@ -256,7 +256,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {  ...@@ -256,7 +256,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) { 
getPreQuestion:function(){ getPreQuestion:function(){
var crm = generalPage.adminId==''? '':'/crm' var crm = generalPage.adminId==''? '':'/crm'
medtap.submitAjax({ medtap.submitAjax({
url: 'https://gateway.medtap.cn/operation/followUp'+crm+'/previousQuestion', url: 'https://testdevgw.medtap.cn/operation/followUp'+crm+'/previousQuestion',
type: 'post', type: 'post',
async: false, async: false,
contentType: 'application/json', contentType: 'application/json',
...@@ -305,7 +305,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {  ...@@ -305,7 +305,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) { 
getNextQuestion:function(data,url){ getNextQuestion:function(data,url){
var crm = generalPage.adminId==''? '':'/crm' var crm = generalPage.adminId==''? '':'/crm'
medtap.submitAjax({ medtap.submitAjax({
url: 'https://gateway.medtap.cn/operation/followUp'+crm+'/nextQuestion', url: 'https://testdevgw.medtap.cn/operation/followUp'+crm+'/nextQuestion',
type: 'post', type: 'post',
async: false, async: false,
contentType: 'application/json', contentType: 'application/json',
......
...@@ -17,7 +17,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) { ...@@ -17,7 +17,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {
localStorage.wxLungToken = ''; localStorage.wxLungToken = '';
medtap.loading(1); medtap.loading(1);
medtap.submitAjax({ medtap.submitAjax({
url: 'https://gateway.medtap.cn/user/auth/token', url: 'https://testdevgw.medtap.cn/user/auth/token',
type: 'POST', type: 'POST',
async: false, async: false,
contentType: 'application/json', contentType: 'application/json',
...@@ -41,7 +41,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) { ...@@ -41,7 +41,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {
getMyquestionnaire: function(){ getMyquestionnaire: function(){
var crm = index.adminId==''? '':'/crm' var crm = index.adminId==''? '':'/crm'
medtap.submitAjax({ medtap.submitAjax({
url: 'https://gateway.medtap.cn/operation/followUp'+ crm +'/followUpUser', url: 'https://testdevgw.medtap.cn/operation/followUp'+ crm +'/followUpUser',
type: 'post', type: 'post',
async: false, async: false,
contentType: 'application/json', contentType: 'application/json',
......
...@@ -19,7 +19,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {  ...@@ -19,7 +19,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) { 
// 获取问卷列表 // 获取问卷列表
getQuestionnaireList:function(){ getQuestionnaireList:function(){
medtap.submitAjax({ medtap.submitAjax({
url: "https://gateway.medtap.cn/operation/followUp/followUpList", url: "https://testdevgw.medtap.cn/operation/followUp/followUpList",
type: 'post', type: 'post',
async: false, async: false,
contentType: 'application/json', contentType: 'application/json',
......
...@@ -117,7 +117,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {  ...@@ -117,7 +117,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) { 
getQuestionAnswer: function(){ getQuestionAnswer: function(){
var crm = otherTreatment.adminId==''? '':'/crm' var crm = otherTreatment.adminId==''? '':'/crm'
medtap.submitAjax({ medtap.submitAjax({
url: 'https://gateway.medtap.cn/operation/followUp'+crm+'/getAnswer', url: 'https://testdevgw.medtap.cn/operation/followUp'+crm+'/getAnswer',
type: 'post', type: 'post',
async: false, async: false,
contentType: 'application/json', contentType: 'application/json',
...@@ -154,7 +154,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {  ...@@ -154,7 +154,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) { 
getPreQuestion:function(){ getPreQuestion:function(){
var crm = otherTreatment.adminId==''? '':'/crm' var crm = otherTreatment.adminId==''? '':'/crm'
medtap.submitAjax({ medtap.submitAjax({
url: 'https://gateway.medtap.cn/operation/followUp'+crm+'/previousQuestion', url: 'https://testdevgw.medtap.cn/operation/followUp'+crm+'/previousQuestion',
type: 'post', type: 'post',
async: false, async: false,
contentType: 'application/json', contentType: 'application/json',
...@@ -178,7 +178,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {  ...@@ -178,7 +178,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) { 
getNextQuestion:function(data){ getNextQuestion:function(data){
var crm = otherTreatment.adminId==''? '':'/crm' var crm = otherTreatment.adminId==''? '':'/crm'
medtap.submitAjax({ medtap.submitAjax({
url: 'https://gateway.medtap.cn/operation/followUp'+crm+'/nextQuestion', url: 'https://testdevgw.medtap.cn/operation/followUp'+crm+'/nextQuestion',
type: 'post', type: 'post',
async: false, async: false,
contentType: 'application/json', contentType: 'application/json',
......
...@@ -19,7 +19,7 @@ define(['zepto','medtap'],function($,medtap){ ...@@ -19,7 +19,7 @@ define(['zepto','medtap'],function($,medtap){
}, },
getQueDetails:function(){ getQueDetails:function(){
medtap.submitAjax({ medtap.submitAjax({
url: "https://gateway.medtap.cn/operation/followUp/followUpDetail", url: "https://testdevgw.medtap.cn/operation/followUp/followUpDetail",
type: 'post', type: 'post',
async: false, async: false,
contentType: 'application/json', contentType: 'application/json',
...@@ -1382,7 +1382,7 @@ define(['zepto','medtap'],function($,medtap){ ...@@ -1382,7 +1382,7 @@ define(['zepto','medtap'],function($,medtap){
}, },
getWechatTicket: function() { getWechatTicket: function() {
medtap.submitAjax({ medtap.submitAjax({
url: 'https://gateway.medtap.cn/wechat/lung/fetchWechatTicket', url: 'https://testdevgw.medtap.cn/wechat/lung/fetchWechatTicket',
type: 'GET', type: 'GET',
async: false, async: false,
data: { data: {
......
...@@ -28,7 +28,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {  ...@@ -28,7 +28,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) { 
getQuestionAnswer: function(){ getQuestionAnswer: function(){
var crm = questionnaireWeight.adminId==''? '':'/crm' var crm = questionnaireWeight.adminId==''? '':'/crm'
medtap.submitAjax({ medtap.submitAjax({
url: 'https://gateway.medtap.cn/operation/followUp'+crm+'/getAnswer', url: 'https://testdevgw.medtap.cn/operation/followUp'+crm+'/getAnswer',
type: 'post', type: 'post',
async: false, async: false,
contentType: 'application/json', contentType: 'application/json',
...@@ -52,7 +52,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {  ...@@ -52,7 +52,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) { 
getNextQuestion:function(){ getNextQuestion:function(){
var crm = questionnaireWeight.adminId==''? '':'/crm' var crm = questionnaireWeight.adminId==''? '':'/crm'
medtap.submitAjax({ medtap.submitAjax({
url: 'https://gateway.medtap.cn/operation/followUp'+crm+'/nextQuestion', url: 'https://testdevgw.medtap.cn/operation/followUp'+crm+'/nextQuestion',
type: 'post', type: 'post',
async: false, async: false,
contentType: 'application/json', contentType: 'application/json',
......
...@@ -11,7 +11,7 @@ define(['zepto','medtap'],function($,medtap){ ...@@ -11,7 +11,7 @@ define(['zepto','medtap'],function($,medtap){
checkUser:function(){ checkUser:function(){
medtap.loading(1); medtap.loading(1);
medtap.submitAjax({ medtap.submitAjax({
url:'https://gateway.medtap.cn/wechat/user/getWechatUser', url:'https://testdevgw.medtap.cn/wechat/user/getWechatUser',
type:'GET', type:'GET',
async: false, async: false,
data:{ data:{
...@@ -33,7 +33,7 @@ define(['zepto','medtap'],function($,medtap){ ...@@ -33,7 +33,7 @@ define(['zepto','medtap'],function($,medtap){
localStorage.wxLungToken = ''; localStorage.wxLungToken = '';
medtap.loading(1); medtap.loading(1);
medtap.submitAjax({ medtap.submitAjax({
url: 'https://gateway.medtap.cn/user/auth/token', url: 'https://testdevgw.medtap.cn/user/auth/token',
type: 'POST', type: 'POST',
async: false, async: false,
contentType: 'application/json', contentType: 'application/json',
......
...@@ -201,7 +201,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {  ...@@ -201,7 +201,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) { 
initCityl: function() { initCityl: function() {
medtap.loading(1); medtap.loading(1);
$.ajax({ $.ajax({
url: "https://gateway.medtap.cn/common/listAreaV0", url: "https://testdevgw.medtap.cn/common/listAreaV0",
data: {}, data: {},
type: 'get', type: 'get',
async: true, async: true,
...@@ -376,7 +376,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {  ...@@ -376,7 +376,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) { 
getQuestionAnswer: function(){ getQuestionAnswer: function(){
var crm = targetedTherapy.adminId==''? '':'/crm' var crm = targetedTherapy.adminId==''? '':'/crm'
medtap.submitAjax({ medtap.submitAjax({
url: 'https://gateway.medtap.cn/operation/followUp'+crm+'/getAnswer', url: 'https://testdevgw.medtap.cn/operation/followUp'+crm+'/getAnswer',
type: 'post', type: 'post',
async: false, async: false,
contentType: 'application/json', contentType: 'application/json',
...@@ -428,7 +428,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {  ...@@ -428,7 +428,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) { 
getPreQuestion:function(){ getPreQuestion:function(){
var crm = targetedTherapy.adminId==''? '':'/crm' var crm = targetedTherapy.adminId==''? '':'/crm'
medtap.submitAjax({ medtap.submitAjax({
url: 'https://gateway.medtap.cn/operation/followUp'+crm+'/previousQuestion', url: 'https://testdevgw.medtap.cn/operation/followUp'+crm+'/previousQuestion',
type: 'post', type: 'post',
async: false, async: false,
contentType: 'application/json', contentType: 'application/json',
...@@ -453,7 +453,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {  ...@@ -453,7 +453,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) { 
getNextQuestion:function(data,url){ getNextQuestion:function(data,url){
var crm = targetedTherapy.adminId==''? '':'/crm' var crm = targetedTherapy.adminId==''? '':'/crm'
medtap.submitAjax({ medtap.submitAjax({
url: 'https://gateway.medtap.cn/operation/followUp'+crm+'/nextQuestion', url: 'https://testdevgw.medtap.cn/operation/followUp'+crm+'/nextQuestion',
type: 'post', type: 'post',
async: false, async: false,
contentType: 'application/json', contentType: 'application/json',
......
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