Commit f350e008 by zujiaozhang

'修改9问题bug'

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