Commit 5a51b796 by zujiaozhang

'修改crmBUG22'

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