Commit cb1293a2 by zujiaozhang

'修改问卷详情部分样式与ilcc同步'

parent 0959df3b
...@@ -37,30 +37,33 @@ ...@@ -37,30 +37,33 @@
margin-top: .2rem; margin-top: .2rem;
} }
.que_title{ .que_title{
height: 1.04rem; /* height: 1.04rem; */
width: 100%; width: 100%;
border-bottom:.01rem solid #DDDDDD; border-bottom:.01rem solid #DDDDDD;
text-align: center;
font-size:.4rem; font-size:.4rem;
font-family:PingFangSC-Semibold,PingFang SC; font-family:PingFangSC-Semibold,PingFang SC;
font-weight:600; font-weight:600;
color:rgba(17,17,17,1); color:rgba(17,17,17,1);
line-height: 1.04rem; padding: .4rem 0;
color:#111;
box-sizing: border-box;
} }
.que_content_title{ .que_content_title{
font-size:.36rem; font-size:.4rem;
font-family:PingFangSC-Medium,PingFang SC; font-family:PingFangSC-Medium,PingFang SC;
font-weight:500; font-weight:600;
color:rgba(17,17,17,1); color:#999;
margin: .4rem 0; margin-top: .3rem;
} }
.body_title{ .body_title{
width:100%; width:100%;
height:.32rem; height:.32rem;
font-size:.32rem; font-size:.32rem;
font-family:PingFangSC-Regular,PingFang SC; font-family:PingFangSC-Semibold,PingFang SC;
font-weight:400; font-weight:600;
color:rgba(17,17,17,1); margin-top:.3rem;
color:#111;
line-height:.32rem; line-height:.32rem;
} }
.body_content{ .body_content{
...@@ -69,9 +72,8 @@ ...@@ -69,9 +72,8 @@
font-size:.32rem; font-size:.32rem;
font-family:PingFangSC-Regular,PingFang SC; font-family:PingFangSC-Regular,PingFang SC;
font-weight:400; font-weight:400;
color:#666; color:#999;
margin:.2rem 0 0;
margin:.2rem 0 .4rem;
} }
.body_img{ .body_img{
display:flex; display:flex;
...@@ -89,11 +91,24 @@ ...@@ -89,11 +91,24 @@
/* 详情中的单独样式 */ /* 详情中的单独样式 */
.left_line{ .left_line{
border-left: .08rem solid #2CBCA0; border-left: .08rem solid #2CBCA0;
padding-left: .16rem padding-left: .16rem ;
font-size:0.36rem;
font-family:PingFangSC-Medium,PingFang SC;
font-weight:600;
color: #111;
} }
.top_margin{ .top_margin{
margin-top: .48rem; margin-top: .48rem;
} }
.que_content_body{ .que_content_body{
overflow: hidden; overflow: hidden;
}
.no_border{
border: none;
}
.no_marg_bot{
padding: 0 .32rem 0;
}
.que_content_title_discomfort{
display: none;
} }
\ No newline at end of file
...@@ -54,4 +54,7 @@ body { ...@@ -54,4 +54,7 @@ body {
.que_content_title{ .que_content_title{
height: .36rem; height: .36rem;
line-height: .36rem; line-height: .36rem;
}
.que_content_title_jc{
display: none;
} }
\ No newline at end of file
...@@ -51,7 +51,6 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {  ...@@ -51,7 +51,6 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) { 
// 用户点击了无 // 用户点击了无
$('.noHas').on('tap',function(){ $('.noHas').on('tap',function(){
examination.flag=false examination.flag=false
console.log(examination.flag)
examination.checks = '' examination.checks = ''
}) })
// 用户点击了有 // 用户点击了有
...@@ -71,13 +70,12 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {  ...@@ -71,13 +70,12 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) { 
}) })
examination.checks = list.join(',') examination.checks = list.join(',')
console.log(examination.checks) // console.log(examination.checks)
}) })
// 点击下一题 // 点击下一题
$('.next').on('tap',function(){ $('.next').on('tap',function(){
console.log(examination.flag)
if(examination.flag){ if(examination.flag){
console.log(examination.checks) // console.log(examination.checks)
var dataHas = { var dataHas = {
"adminId":examination.adminId, "adminId":examination.adminId,
"parentId":examination.parentId, "parentId":examination.parentId,
...@@ -134,7 +132,6 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {  ...@@ -134,7 +132,6 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) { 
"adminId":examination.adminId, "adminId":examination.adminId,
}, },
success: function(res) { success: function(res) {
console.log(res)
if(!res.success) return medtap.winPop('获取数据失败') if(!res.success) return medtap.winPop('获取数据失败')
// 如果没做过题那么answer没有 // 如果没做过题那么answer没有
if(!res.content.followAnswer.answer) { if(!res.content.followAnswer.answer) {
...@@ -150,7 +147,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {  ...@@ -150,7 +147,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) { 
'12': false '12': false
} }
$('.bloodTest').prop('checked',true) $('.bloodTest').prop('checked',true)
console.log(examination.checks) // console.log(examination.checks)
return return
} }
// console.log(res.content.followAnswer.answer.checks) // console.log(res.content.followAnswer.answer.checks)
...@@ -217,7 +214,6 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {  ...@@ -217,7 +214,6 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) { 
"adminId":examination.adminId, "adminId":examination.adminId,
}, },
success: function(res) { success: function(res) {
console.log(res)
if(!res.success) return medtap.winPop('获取数据失败') if(!res.success) return medtap.winPop('获取数据失败')
var parentId = res.content.previousQuestion.parentId||'' var parentId = res.content.previousQuestion.parentId||''
var questionId = res.content.previousQuestion.questionId||'' var questionId = res.content.previousQuestion.questionId||''
...@@ -233,7 +229,6 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {  ...@@ -233,7 +229,6 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) { 
// 提交答案获取下一题id // 提交答案获取下一题id
getNextQuestion:function(data){ getNextQuestion:function(data){
var crm = examination.adminId==''? '':'/crm' var crm = examination.adminId==''? '':'/crm'
console.log(data)
medtap.submitAjax({ medtap.submitAjax({
url: 'https://gateway.medtap.cn/operation/followUp'+crm+'/nextQuestion', url: 'https://gateway.medtap.cn/operation/followUp'+crm+'/nextQuestion',
type: 'post', type: 'post',
...@@ -241,7 +236,6 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {  ...@@ -241,7 +236,6 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) { 
contentType: 'application/json', contentType: 'application/json',
data: data, data: data,
success: function(res) { success: function(res) {
console.log(res)
if(!res.success) return medtap.winPop('获取数据失败') if(!res.success) return medtap.winPop('获取数据失败')
// 获取下一题的id和序号通过url传递 // 获取下一题的id和序号通过url传递
var parentId = res.content.nextQuestion.parentId||'' var parentId = res.content.nextQuestion.parentId||''
......
...@@ -51,7 +51,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {  ...@@ -51,7 +51,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) { 
// 用户点击了有 // 用户点击了有
$('.has').on('tap',function(){ $('.has').on('tap',function(){
furtherConsultation.flag=true furtherConsultation.flag=true
console.log(furtherConsultation.flag) // console.log(furtherConsultation.flag)
}) })
// tab切换(有无) // tab切换(有无)
$(".tabbox li").click(function (){ $(".tabbox li").click(function (){
...@@ -162,8 +162,8 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {  ...@@ -162,8 +162,8 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) { 
// 点击转移部位 // 点击转移部位
$('.input_item_move').click(function(){ $('.input_item_move').click(function(){
furtherConsultation.movePicker.show(function (Items) { furtherConsultation.movePicker.show(function (Items) {
console.log(Items[0].text); // console.log(Items[0].text);
console.log(Items[0].value); // console.log(Items[0].value);
$('.input_item_move').val(Items[0].text) $('.input_item_move').val(Items[0].text)
}) })
}) })
...@@ -177,7 +177,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {  ...@@ -177,7 +177,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) { 
url: window.location.href url: window.location.href
}, },
success: function(res) { success: function(res) {
console.log(res) // console.log(res)
var data = res.content; var data = res.content;
wx.config({ wx.config({
debug: false, debug: false,
...@@ -197,7 +197,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {  ...@@ -197,7 +197,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) { 
//选择图片 //选择图片
choseImage: function() { choseImage: function() {
$('.upload_img').on('click',function() { $('.upload_img').on('click',function() {
console.log('点击了选择图片') // console.log('点击了选择图片')
var html = ''; var html = '';
wx.ready(function() { wx.ready(function() {
var syncUpload = function(localIds) { var syncUpload = function(localIds) {
...@@ -221,7 +221,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {  ...@@ -221,7 +221,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) { 
sizeType: ['original', 'compressed'], sizeType: ['original', 'compressed'],
sourceType: ['album', 'camera'], sourceType: ['album', 'camera'],
success: function(res) { success: function(res) {
console.log('选择图片的结果',res) // console.log('选择图片的结果',res)
furtherConsultation.localIds = res.localIds; furtherConsultation.localIds = res.localIds;
//所有需要上传到图片预览 //所有需要上传到图片预览
syncUpload(furtherConsultation.localIds); syncUpload(furtherConsultation.localIds);
...@@ -264,13 +264,13 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {  ...@@ -264,13 +264,13 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) { 
'user-os':'wechat' 'user-os':'wechat'
}, },
success: function(data) { success: function(data) {
console.log('上传的data',data) // console.log('上传的data',data)
if (data.success == true) { if (data.success == true) {
var res = data.content; var res = data.content;
var imgKey = res.url; var imgKey = res.url;
furtherConsultation.imgList.push(imgKey); furtherConsultation.imgList.push(imgKey);
console.log('上传后图片的imgKey',imgKey) // console.log('上传后图片的imgKey',imgKey)
console.log(localId) // console.log(localId)
var html = '<div class="image_files_item">' + var html = '<div class="image_files_item">' +
'<img src="' + localId + '" class="image_files_img" imgkey="' + imgKey + '">' + '<img src="' + localId + '" class="image_files_img" imgkey="' + imgKey + '">' +
'<img src="../images/post_delete_btn@2x.png" class="image_del" >' + '<img src="../images/post_delete_btn@2x.png" class="image_del" >' +
...@@ -295,7 +295,6 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {  ...@@ -295,7 +295,6 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) { 
"questionId": furtherConsultation.questionId, "questionId": furtherConsultation.questionId,
}, },
success: function(res) { success: function(res) {
console.log(res)
if(!res.success) return medtap.winPop('获取数据失败') if(!res.success) return medtap.winPop('获取数据失败')
// 如果没做过题那么answer没有 // 如果没做过题那么answer没有
if(!res.content.followAnswer.answer) { if(!res.content.followAnswer.answer) {
...@@ -347,7 +346,6 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {  ...@@ -347,7 +346,6 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) { 
"followUpId":furtherConsultation.followUpId, "followUpId":furtherConsultation.followUpId,
}, },
success: function(res) { success: function(res) {
console.log(res)
if(!res.success) return medtap.winPop('获取数据失败') if(!res.success) return medtap.winPop('获取数据失败')
var parentId = res.content.previousQuestion.parentId||'' var parentId = res.content.previousQuestion.parentId||''
var questionId = res.content.previousQuestion.questionId||'' var questionId = res.content.previousQuestion.questionId||''
...@@ -366,7 +364,6 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {  ...@@ -366,7 +364,6 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) { 
contentType: 'application/json', contentType: 'application/json',
data: data, data: data,
success: function(res) { success: function(res) {
console.log(res)
if(!res.success) return medtap.winPop('获取数据失败') if(!res.success) return medtap.winPop('获取数据失败')
// 获取下一题的id和序号通过url传递 // 获取下一题的id和序号通过url传递
var parentId = res.content.nextQuestion.parentId||'' var parentId = res.content.nextQuestion.parentId||''
......
...@@ -209,7 +209,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {  ...@@ -209,7 +209,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) { 
//选择图片 //选择图片
choseImage: function() { choseImage: function() {
$('.upload_img').on('click', function() { $('.upload_img').on('click', function() {
console.log('点击了选择图片') // console.log('点击了选择图片')
var html = ''; var html = '';
wx.ready(function() { wx.ready(function() {
var syncUpload = function(localIds) { var syncUpload = function(localIds) {
...@@ -257,12 +257,6 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {  ...@@ -257,12 +257,6 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) { 
}); });
} }
}); });
$('#ImgUp').on('click', '.image_del', function() {
if (confirm('确定要删除图片吗?')) {
$(this).parent().remove();
console.log($(this))
}
});
}, },
//上传图片 //上传图片
upLoadImg: function(serverId, localId) { upLoadImg: function(serverId, localId) {
...@@ -367,7 +361,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {  ...@@ -367,7 +361,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) { 
"adminId":geneDetection.adminId, "adminId":geneDetection.adminId,
}, },
success: function(res) { success: function(res) {
console.log(res)
if(!res.success) return medtap.winPop('获取数据失败') if(!res.success) return medtap.winPop('获取数据失败')
var parentId = res.content.previousQuestion.parentId||'' var parentId = res.content.previousQuestion.parentId||''
var questionId = res.content.previousQuestion.questionId||'' var questionId = res.content.previousQuestion.questionId||''
...@@ -412,7 +406,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {  ...@@ -412,7 +406,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) { 
contentType: 'application/json', contentType: 'application/json',
data: data, data: data,
success: function(res) { success: function(res) {
console.log(res)
if(!res.success) return medtap.winPop('获取数据失败') if(!res.success) return medtap.winPop('获取数据失败')
var parentId = res.content.nextQuestion.parentId||'' var parentId = res.content.nextQuestion.parentId||''
var nextquestionNo = res.content.nextQuestion.questionNo||'' var nextquestionNo = res.content.nextQuestion.questionNo||''
......
...@@ -228,7 +228,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {  ...@@ -228,7 +228,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) { 
}, },
success: function(res) { success: function(res) {
if(!res.success) return medtap.winPop('获取数据失败') if(!res.success) return medtap.winPop('获取数据失败')
console.log(res)
if(!res.content.followAnswer.answer) { if(!res.content.followAnswer.answer) {
return return
} }
...@@ -264,7 +264,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {  ...@@ -264,7 +264,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) { 
"adminId":generalPage.adminId, "adminId":generalPage.adminId,
}, },
success: function(res) { success: function(res) {
console.log(res)
if(!res.success) return medtap.winPop('获取数据失败') if(!res.success) return medtap.winPop('获取数据失败')
var parentId = res.content.previousQuestion.parentId||'' var parentId = res.content.previousQuestion.parentId||''
var questionId = res.content.previousQuestion.questionId||'' var questionId = res.content.previousQuestion.questionId||''
...@@ -308,7 +308,6 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {  ...@@ -308,7 +308,6 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) { 
contentType: 'application/json', contentType: 'application/json',
data: data, data: data,
success: function(res) { success: function(res) {
console.log(res)
if(!res.success) return medtap.winPop('获取数据失败') if(!res.success) return medtap.winPop('获取数据失败')
var parentId = res.content.nextQuestion.parentId||'' var parentId = res.content.nextQuestion.parentId||''
var nextquestionNo = res.content.nextQuestion.questionNo||'' var nextquestionNo = res.content.nextQuestion.questionNo||''
......
...@@ -50,7 +50,6 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) { ...@@ -50,7 +50,6 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {
"adminId":index.adminId "adminId":index.adminId
}, },
success: function(res) { success: function(res) {
console.log(res)
if(res.content.followUpUser.status=='1' && index.adminId==''){ if(res.content.followUpUser.status=='1' && index.adminId==''){
medtap.pushWindow('pages/questionnaireDetails.html?followUpId='+index.followUpId) medtap.pushWindow('pages/questionnaireDetails.html?followUpId='+index.followUpId)
} }
......
...@@ -27,7 +27,6 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {  ...@@ -27,7 +27,6 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) { 
"adminId": myQuestionnaireList.adminId "adminId": myQuestionnaireList.adminId
}, },
success: function(res) { success: function(res) {
console.log(res)
var html = '' var html = ''
var QuestionnaireList = res.content.followUpList var QuestionnaireList = res.content.followUpList
for (var i = 0; i < QuestionnaireList.length; i++) { for (var i = 0; i < QuestionnaireList.length; i++) {
......
...@@ -24,12 +24,12 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {  ...@@ -24,12 +24,12 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) { 
// 用户点击了无 // 用户点击了无
$('.noHas').click(function(){ $('.noHas').click(function(){
otherTreatment.flag=false otherTreatment.flag=false
console.log(otherTreatment.flag) // console.log(otherTreatment.flag)
}) })
// 用户点击了有 // 用户点击了有
$('.has').click(function(){ $('.has').click(function(){
otherTreatment.flag=true otherTreatment.flag=true
console.log(otherTreatment.flag) // console.log(otherTreatment.flag)
}) })
// 点击下一题 // 点击下一题
$('.next').on('click',function(){ $('.next').on('click',function(){
...@@ -123,7 +123,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {  ...@@ -123,7 +123,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) { 
"adminId":otherTreatment.adminId, "adminId":otherTreatment.adminId,
}, },
success: function(res) { success: function(res) {
console.log(res)
if(!res.success) return winPop('获取数据失败') if(!res.success) return winPop('获取数据失败')
if(!res.content.followAnswer.answer) { if(!res.content.followAnswer.answer) {
otherTreatment.flag=true otherTreatment.flag=true
...@@ -161,7 +161,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {  ...@@ -161,7 +161,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) { 
"adminId":otherTreatment.adminId, "adminId":otherTreatment.adminId,
}, },
success: function(res) { success: function(res) {
console.log(res)
if(!res.success) return winPop('获取数据失败') if(!res.success) return winPop('获取数据失败')
var parentId = res.content.previousQuestion.parentId||'' var parentId = res.content.previousQuestion.parentId||''
var questionId = res.content.previousQuestion.questionId||'' var questionId = res.content.previousQuestion.questionId||''
...@@ -180,7 +180,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {  ...@@ -180,7 +180,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) { 
contentType: 'application/json', contentType: 'application/json',
data: data, data: data,
success: function(res) { success: function(res) {
console.log(res)
if(!res.success) return winPop('获取数据失败') if(!res.success) return winPop('获取数据失败')
// 获取下一题的id和序号通过url传递 // 获取下一题的id和序号通过url传递
var parentId = res.content.nextQuestion.parentId||'' var parentId = res.content.nextQuestion.parentId||''
......
...@@ -382,7 +382,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {  ...@@ -382,7 +382,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) { 
"adminId":targetedTherapy.adminId, "adminId":targetedTherapy.adminId,
}, },
success: function(res) { success: function(res) {
console.log(res)
if(!res.success) return medtap.winPop('获取数据失败') if(!res.success) return medtap.winPop('获取数据失败')
// 如果没做过题那么answer没有 // 如果没做过题那么answer没有
if(!res.content.followAnswer.answer) { if(!res.content.followAnswer.answer) {
...@@ -403,7 +403,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {  ...@@ -403,7 +403,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) { 
$('.input_item_city').val(res.content.followAnswer.answer.cityVal||'') $('.input_item_city').val(res.content.followAnswer.answer.cityVal||'')
$('.input_item_medicalType').val(res.content.followAnswer.answer.medicalType||'') $('.input_item_medicalType').val(res.content.followAnswer.answer.medicalType||'')
}else if(status=='0'){ }else if(status=='0'){
console.log('1')
// 无 // 无
targetedTherapy.flag=false targetedTherapy.flag=false
$('.noHas').addClass('active').siblings('.has').removeClass('active') $('.noHas').addClass('active').siblings('.has').removeClass('active')
...@@ -416,7 +416,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {  ...@@ -416,7 +416,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) { 
$('.input_item_isNext').val(res.content.followAnswer.answer.isNextVal||'') $('.input_item_isNext').val(res.content.followAnswer.answer.isNextVal||'')
$('#content_body_programme').val(res.content.followAnswer.answer.programme||'') $('#content_body_programme').val(res.content.followAnswer.answer.programme||'')
} }
console.log(targetedTherapy.flag) // console.log(targetedTherapy.flag)
} }
}) })
}, },
...@@ -435,7 +435,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {  ...@@ -435,7 +435,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) { 
"adminId":targetedTherapy.adminId, "adminId":targetedTherapy.adminId,
}, },
success: function(res) { success: function(res) {
console.log(res)
if(!res.success) return medtap.winPop('获取数据失败') if(!res.success) return medtap.winPop('获取数据失败')
var parentId = res.content.previousQuestion.parentId||'' var parentId = res.content.previousQuestion.parentId||''
var questionId = res.content.previousQuestion.questionId||'' var questionId = res.content.previousQuestion.questionId||''
...@@ -455,7 +455,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {  ...@@ -455,7 +455,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) { 
contentType: 'application/json', contentType: 'application/json',
data: data, data: data,
success: function(res) { success: function(res) {
console.log(res)
if(!res.success) return medtap.winPop('获取数据失败') if(!res.success) return medtap.winPop('获取数据失败')
// 获取下一题的id和序号通过url传递 // 获取下一题的id和序号通过url传递
var parentId = res.content.nextQuestion.parentId||'' var parentId = res.content.nextQuestion.parentId||''
......
...@@ -52,7 +52,7 @@ ...@@ -52,7 +52,7 @@
</div> </div>
<div class="question_four question"> <div class="question_four question">
<div class="que_title que_title_isHide"> <div class="que_title que_title_isHide">
检验检查情况 检验检查情况<span class="que_content_title que_content_title_jc">近一个月做过以下检验检查</span>
</div> </div>
<div class="question6"></div> <div class="question6"></div>
<div class="question7"></div> <div class="question7"></div>
...@@ -66,8 +66,8 @@ ...@@ -66,8 +66,8 @@
</div> </div>
<div class="question_six question"> <div class="question_six question">
<div class="que_title"> <div class="que_title que_title_nobor">
不适症状 不适症状<span class="que_content_title que_content_title_discomfort">近一个月没有不适症状</span>
</div> </div>
<div class="question15"></div> <div class="question15"></div>
<div class="question16"></div> <div class="question16"></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