Commit 5a51b796 by zujiaozhang

'修改crmBUG22'

parent 8c3b9c1f
......@@ -71,7 +71,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) { 
$('.next').text('下一题')
discomfort.flag=true
// console.log(discomfort.flag)
discomfort.getQuestionAnswer()
// discomfort.getQuestionAnswer()
if(discomfort.checks==''){
$('.checkbox_pl').prop('checked',true)
discomfort.checks = '15'
......@@ -88,6 +88,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) { 
})
// 点击下一题
$('.next').on('tap',function(){
console.log(discomfort.checks)
if(discomfort.flag){
var dataHas = {
"adminId":discomfort.adminId,
......@@ -146,7 +147,6 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) { 
"adminId":discomfort.adminId,
},
success: function(res) {
console.log(res)
if(!res.success) return medtap.winPop('获取数据失败')
if(!res.content.followAnswer.answer) {
discomfort.flag=true
......@@ -371,8 +371,6 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) { 
case 33:
medtap.pushWindow('discomfortGeneralPage.html?followUpId='+discomfort.followUpId+'&questionNo='+questionNo+'&questionId='+questionId+'&parentId='+parentId+'&lastChecks='+discomfort.checks+'&adminId='+discomfort.adminId)
break;
default:
medtap.pushWindow('submitSuccessfully.html?followUpId='+discomfort.followUpId+'&adminId='+discomfort.adminId)
}
}
})
......@@ -387,7 +385,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) { 
contentType: 'application/json',
data: data,
success: function(res){
console.log(res)
// console.log(res)
medtap.pushWindow('submitSuccessfully.html?followUpId='+discomfort.followUpId+'&adminId='+discomfort.adminId)
}
})
......
......@@ -26,7 +26,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) { 
// 图片https://地址
imgKey: '',
init:function(){
console.log(furtherConsultation.flag)
// console.log(furtherConsultation.flag)
// 点击删除图片
$('#ImgUp').on('click', '.image_del', function() {
var src = $(this).siblings('img').attr('src')
......@@ -42,7 +42,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) { 
// 用户点击了无
$('.noHas').on('tap',function(){
furtherConsultation.flag=false
console.log(furtherConsultation.flag)
// console.log(furtherConsultation.flag)
})
// 用户点击了有
$('.has').on('tap',function(){
......@@ -242,11 +242,6 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) { 
});
}
});
$('#ImgUp').on('click', '.image_del', function() {
if (confirm('确定要删除图片吗?')) {
$(this).parent().remove();
}
});
},
//上传图片
upLoadImg: function(serverId, localId) {
......
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