Commit f3149746 by zujiaozhang

'修改聊天条件判断'

parent 7ba617a2
......@@ -351,4 +351,5 @@ div.fabulous.clearfix{
height:1.04rem;
margin-top:1.14rem;
margin-left:3.22rem;
}
\ No newline at end of file
}
.disabled { pointer-events: none; }
\ No newline at end of file
......@@ -45,7 +45,6 @@ define(['zepto', 'medtap','../javaScript/beforeSubmitForLung.js'], function($, m
$('input').on('blur', function() {
$('body').scrollTop(0);
});
$('.btn_do_comment').on('click', function() {
if(card.userId){
$('.content_mod').show();
......@@ -55,9 +54,10 @@ define(['zepto', 'medtap','../javaScript/beforeSubmitForLung.js'], function($, m
$(this).hide();
$('.comment_btn').hide();
});
$('.reply_btn').on('click', card.debounce(function() {
$('.reply_btn').on('click', function(){
card.replyPublish();
}))
})
}else {
$('#showDialog').show()
}
......@@ -86,17 +86,6 @@ define(['zepto', 'medtap','../javaScript/beforeSubmitForLung.js'], function($, m
}
})
},
// 防抖
debounce:function(fn){
let timeout = null
return function(){
clearTimeout(timeout)
var that = this
timeout = setTimeout(function(){
fn.apply(that,arguments)
},1000)
}
},
getToken:function(){
localStorage.wxLungToken = '';
medtap.loading(1);
......
......@@ -285,7 +285,7 @@ define([ 'zepto', 'medtap' ], function($, medtap) {
} else if (detail.status.key == 1) {
} */
if (imgConsultDetail.serviceStatus.key !== 3) {
if (imgConsultDetail.serviceStatus.key != 3) {
$('.footer').hide();
}
//病历id
......
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