Commit f350e008 by zujiaozhang

'修改9问题bug'

parent fec23f34
...@@ -42,9 +42,9 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {  ...@@ -42,9 +42,9 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) { 
// 选择改变状态 // 选择改变状态
$('.content_select_has .dowebok').on('change','input[type=checkbox]',function(){ $('.content_select_has .dowebok').on('change','input[type=checkbox]',function(){
console.log($(this)[0].checked,$(this)[0].name) // console.log($(this)[0].checked,$(this)[0].name)
discomfort.discomfortGPObj[$(this)[0].name] = $(this)[0].checked discomfort.discomfortGPObj[$(this)[0].name] = $(this)[0].checked
console.log(discomfort.discomfortGPObj) // console.log(discomfort.discomfortGPObj)
discomfort.checkList = [] discomfort.checkList = []
for(var key in discomfort.discomfortGPObj){ for(var key in discomfort.discomfortGPObj){
if(discomfort.discomfortGPObj[key]){ if(discomfort.discomfortGPObj[key]){
...@@ -62,7 +62,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {  ...@@ -62,7 +62,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) { 
// 用户点击了无 // 用户点击了无
$('.noHas').on('tap',function(){ $('.noHas').on('tap',function(){
discomfort.flag=false discomfort.flag=false
console.log(discomfort.flag) // console.log(discomfort.flag)
discomfort.checks = '' discomfort.checks = ''
$('.next').text('提交') $('.next').text('提交')
}) })
...@@ -70,7 +70,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {  ...@@ -70,7 +70,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) { 
$('.has').on('tap',function(){ $('.has').on('tap',function(){
$('.next').text('下一题') $('.next').text('下一题')
discomfort.flag=true discomfort.flag=true
console.log(discomfort.flag) // console.log(discomfort.flag)
discomfort.getQuestionAnswer() discomfort.getQuestionAnswer()
if(discomfort.checks==''){ if(discomfort.checks==''){
$('.checkbox_pl').prop('checked',true) $('.checkbox_pl').prop('checked',true)
...@@ -84,7 +84,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {  ...@@ -84,7 +84,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) { 
} }
}) })
discomfort.checks = list.join(',') discomfort.checks = list.join(',')
console.log(discomfort.checks) // console.log(discomfort.checks)
}) })
// 点击下一题 // 点击下一题
$('.next').on('tap',function(){ $('.next').on('tap',function(){
......
...@@ -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) { 
discomfortGeneralPage.isHandleVal = $('.input_item_isHandle').val() discomfortGeneralPage.isHandleVal = $('.input_item_isHandle').val()
discomfortGeneralPage.dataText = $('#content_body_fill').val() discomfortGeneralPage.dataText = $('#content_body_fill').val()
if(discomfortGeneralPage.questionId!='33'&&discomfortGeneralPage.questionId!='32'&&discomfortGeneralPage.questionId!='31'){ if(discomfortGeneralPage.questionId!='33'&&discomfortGeneralPage.questionId!='32'&&discomfortGeneralPage.questionId!='31'){
if(ScoreVal=='') return medtap.winPop('请输入症状评分') if(ScoreVal=='') return medtap.winPop('请输入症状级别')
} }
var data = { var data = {
...@@ -339,6 +339,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {  ...@@ -339,6 +339,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) { 
$('.doctorExplanation').show() $('.doctorExplanation').show()
} }
$('.input_item_symptomScore').val(res.content.followAnswer.answer.symptomScoreVal||'') $('.input_item_symptomScore').val(res.content.followAnswer.answer.symptomScoreVal||'')
discomfortGeneralPage.symptomScoreVal = res.content.followAnswer.answer.symptomScoreVal
$('.input_item_happenTime').val(res.content.followAnswer.answer.happenTimeVal||'') $('.input_item_happenTime').val(res.content.followAnswer.answer.happenTimeVal||'')
$('.input_item_isRelieve').val(res.content.followAnswer.answer.isRelieveVal||'') $('.input_item_isRelieve').val(res.content.followAnswer.answer.isRelieveVal||'')
$('.input_item_isHandle').val(res.content.followAnswer.answer.isHandleVal||'') $('.input_item_isHandle').val(res.content.followAnswer.answer.isHandleVal||'')
......
...@@ -69,7 +69,7 @@ define(['zepto','medtap'],function($,medtap){ ...@@ -69,7 +69,7 @@ define(['zepto','medtap'],function($,medtap){
'<p class="body_title">医生对疗效的判断:</p>'+ '<p class="body_title">医生对疗效的判断:</p>'+
'<p class="body_content">'+questionnaireDetails.queDetailsList[key].judge+'</p>'+ '<p class="body_content">'+questionnaireDetails.queDetailsList[key].judge+'</p>'+
'</div>'+ '</div>'+
'<div class="que_content_body">'+ '<div class="que_content_body content_body2">'+
'<p class="body_title">转移部位:</p>'+ '<p class="body_title">转移部位:</p>'+
'<p class="body_content">'+questionnaireDetails.queDetailsList[key].movePositionVal+'</p>'+ '<p class="body_content">'+questionnaireDetails.queDetailsList[key].movePositionVal+'</p>'+
'</div>'+ '</div>'+
...@@ -81,6 +81,9 @@ define(['zepto','medtap'],function($,medtap){ ...@@ -81,6 +81,9 @@ define(['zepto','medtap'],function($,medtap){
'</div>'+ '</div>'+
'</div>' '</div>'
$('.question_two').append(html) $('.question_two').append(html)
if(questionnaireDetails.queDetailsList[key].movePositionVal==''){
$('.content_body2').remove()
}
var imglist = questionnaireDetails.queDetailsList[key].imgKey var imglist = questionnaireDetails.queDetailsList[key].imgKey
if(imglist.length>0){ if(imglist.length>0){
var htmli = '' var htmli = ''
......
...@@ -5,6 +5,9 @@ define(['zepto', 'medtap', 'mui'], function($, medtap, mui) { ...@@ -5,6 +5,9 @@ define(['zepto', 'medtap', 'mui'], function($, medtap, mui) {
// 修改人员id // 修改人员id
adminId: medtap.getRequest('adminId')||'', adminId: medtap.getRequest('adminId')||'',
init:function(){ init:function(){
if(submitSuccessfully.adminId!=''){
$('.tip_contact_service').hide()
}
$('.tip_contact_service').on('tap',function(){ $('.tip_contact_service').on('tap',function(){
medtap.pushWindow('../pages/myQuestionnaireList.html?followUpId='+submitSuccessfully.followUpId+'&adminId='+submitSuccessfully.adminId) medtap.pushWindow('../pages/myQuestionnaireList.html?followUpId='+submitSuccessfully.followUpId+'&adminId='+submitSuccessfully.adminId)
}) })
......
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