Commit 9c4ac900 by zujiaozhang

'修改部分问题'

parent d7dfb2f9
......@@ -67,7 +67,7 @@
font-weight:400;
color:rgba(102,102,102,1);
margin:10px 0 20px;
margin:.2rem 0 .4rem;
}
.body_img{
display:flex;
......
......@@ -127,7 +127,7 @@ input {
#content_body_fill{
border:0;
background:rgba(249,249,249,1);
border-radius:2px;
border-radius: .04rem;
padding: .2rem;
}
.doctorExplanation{
......
......@@ -184,7 +184,7 @@ input {
#content_body_fill{
border:0;
background:rgba(249,249,249,1);
border-radius:2px;
border-radius: .04rem;
padding: .2rem;
}
textarea::-webkit-input-placeholder {
......
......@@ -110,7 +110,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) { 
"questionNo":Number(discomfort.questionNo),
"followUpId": discomfort.followUpId
}
discomfort.getNextQuestion(dataNo)
discomfort.submitQuestionAnswer(dataNo)
}
})
// tab切换
......@@ -172,6 +172,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) { 
}
if(res.content.followAnswer.answer.status=='0'){
discomfort.flag=false
$('.next').text('提交')
$('.noHas').addClass('active').siblings('.has').removeClass('active')
$('.content_select_no').addClass('active').siblings('.content_select').removeClass('active')
return
......@@ -367,7 +368,21 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) { 
}
}
})
}
},
// 最后提交问卷
submitQuestionAnswer: function(data){
medtap.submitAjax({
url: "https://testdevgw.medtap.cn/operation/followUp/completeQuestion",
type: 'post',
async: false,
contentType: 'application/json',
data: data,
success: function(res){
console.log(res)
medtap.pushWindow('submitSuccessfully.html?followUpId='+discomfort.followUpId)
}
})
}
}
discomfort.init()
discomfort.getQuestionAnswer()
......
......@@ -47,6 +47,9 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {
},
success: function(res) {
console.log(res)
if(res.content.followUpUser.status=='1'){
medtap.pushWindow('pages/questionnaireDetails.html?followUpId='+index.followUpId)
}
index.followUpId =res.content.followUpUser.id
var mm = res.content.followUpUser.answerTime
$('.mouth_title span').text(mm.split("-")[1])
......
......@@ -46,7 +46,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) { 
}
// 点击进入详情
$('.my_questionnaire_box').on('tap','.my_questionnaire_list',function(){
console.log('跳转')
medtap.pushWindow('../pages/questionnaireDetails.html?followUpId='+myQuestionnaireList.followUpId)
})
}
......
......@@ -377,9 +377,7 @@ define(['zepto','medtap'],function($,medtap){
'<div class="que_content_body">'+
'<p class="body_title">基因检测报告:</p>'+
'<ul class="body_img">'+
'<li>'+
'<img src="../images/question_submit_succeed_png@2x.png" alt="">'+
'</li>'+
'</ul>'+
'</div>'+
'<div class="que_content_body top_margin">'+
......@@ -388,6 +386,19 @@ define(['zepto','medtap'],function($,medtap){
'</div>'+
'</div>'
$('.question_five').append(html)
var imglist = questionnaireDetails.queDetailsList[key].imgList
if(imglist.length>0){
var htmli = ''
for(var i=0;i<imglist.length;i++){
htmli += '<li>'+
'<img src="'+imglist[i]+'" alt="">'+
'</li>'
}
$('.question_five .body_img').append(htmli)
}
if(imglist.length==0){
$('.question_five .question_two_img').remove()
}
}
break;
case 'question14':
......
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