|
@@ -35,7 +35,13 @@ const { transConf } = require('./util.js');
|
|
|
|
|
|
//静态知识类型: 1:诊断 2.药品 3.化验套餐 4.化验明细 5.辅检 6.手术和操作
|
|
|
|
|
|
-
|
|
|
+
|
|
|
+// console.log('aaaaaaaaaaa')
|
|
|
+// $(".bodyWrap").on("mousewheel DOMMouseScroll",function(e){
|
|
|
+// // console.log('aaaaaaaaaaa')
|
|
|
+// e.stopPropagation()
|
|
|
+// // e.preventDefault();
|
|
|
+// })
|
|
|
let moduleConfig={
|
|
|
auxiliary:"recommendWrap",
|
|
|
qc:"qcWrap",
|
|
@@ -653,7 +659,7 @@ function bindTabClick(){
|
|
|
$(".staticSearchT .ipt").find("input").focus()
|
|
|
$(".contentWrapper").css("overflowY","hidden")
|
|
|
}else{
|
|
|
- $(".contentWrapper").css("overflowY","auto")
|
|
|
+ // $(".contentWrapper").css("overflowY","auto")
|
|
|
}
|
|
|
})
|
|
|
}
|
|
@@ -711,4 +717,28 @@ $(function(){
|
|
|
localStorage.setItem('versionTime',ver.replace("=new",""));
|
|
|
openNewWin("version.html");
|
|
|
});
|
|
|
+ $.fn.extend({
|
|
|
+ "preventScroll":function(){
|
|
|
+ $(this).each(function(){
|
|
|
+ var _this = this;
|
|
|
+ if(navigator.userAgent.indexOf('Firefox') >= 0){ //firefox
|
|
|
+ _this.addEventListener('DOMMouseScroll',function(e){
|
|
|
+ _this.scrollTop += e.detail > 0 ? 60 : -60;
|
|
|
+ e.preventDefault();
|
|
|
+ },false);
|
|
|
+ }else{
|
|
|
+ _this.onmousewheel = function(e){
|
|
|
+ e = e || window.event;
|
|
|
+ console.log( _this.scrollTop,e.wheelDelta)
|
|
|
+ _this.scrollTop += e.wheelDelta > 0 ? -60 : 60;
|
|
|
+ return false;
|
|
|
+ };
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
+ });
|
|
|
+ // $(".iframeWrap").preventScroll();
|
|
|
+ $(".iframeWrap").preventScroll();
|
|
|
+ $(".recommendWrap").preventScroll();
|
|
|
+ $(".medicalKonwledgeWrap .staticSearchB ul").preventScroll();
|
|
|
});
|