正在显示
1 个修改的文件
包含
30 行增加
和
13 行删除
@@ -24,7 +24,6 @@ var canvas ; | @@ -24,7 +24,6 @@ var canvas ; | ||
24 | var context ; | 24 | var context ; |
25 | //蒙版 | 25 | //蒙版 |
26 | var canvas_bak; | 26 | var canvas_bak; |
27 | -var context_bak; | ||
28 | 27 | ||
29 | // 消息模板-老师 | 28 | // 消息模板-老师 |
30 | var tpl_message_teacher = ` | 29 | var tpl_message_teacher = ` |
@@ -280,6 +279,8 @@ function showFile(_data){ | @@ -280,6 +279,8 @@ function showFile(_data){ | ||
280 | } | 279 | } |
281 | } | 280 | } |
282 | 281 | ||
282 | + | ||
283 | + | ||
283 | } | 284 | } |
284 | 285 | ||
285 | 286 | ||
@@ -288,6 +289,7 @@ function showFile(_data){ | @@ -288,6 +289,7 @@ function showFile(_data){ | ||
288 | //切换文档 | 289 | //切换文档 |
289 | function switchDoc(msg) { | 290 | function switchDoc(msg) { |
290 | $(".spinner").css("display","block"); | 291 | $(".spinner").css("display","block"); |
292 | + $(".doc-headline-a").trigger("click"); | ||
291 | var paramInfo={ | 293 | var paramInfo={ |
292 | "itemIdx": msg, | 294 | "itemIdx": msg, |
293 | "visible":true | 295 | "visible":true |
@@ -416,6 +418,7 @@ function showInter(_data,isPage){ | @@ -416,6 +418,7 @@ function showInter(_data,isPage){ | ||
416 | 418 | ||
417 | $(".docImage").css("display","none"); | 419 | $(".docImage").css("display","none"); |
418 | $("#showImg").css("display","block"); | 420 | $("#showImg").css("display","block"); |
421 | + $(".canvas_container").scrollTop(0); | ||
419 | $(".canvas_container").css("overflow","hidden"); | 422 | $(".canvas_container").css("overflow","hidden"); |
420 | 423 | ||
421 | 424 | ||
@@ -479,6 +482,14 @@ function showTurnPage() { | @@ -479,6 +482,14 @@ function showTurnPage() { | ||
479 | 482 | ||
480 | } | 483 | } |
481 | 484 | ||
485 | +function hideTurnPage(){ | ||
486 | + $(".next-page ").css("display","none"); | ||
487 | + $(".total-page").css("display","none"); | ||
488 | + $(".bias").css("display","none"); | ||
489 | + $(".cur-page").css("display","none"); | ||
490 | + $(".prev").css("display","none"); | ||
491 | +} | ||
492 | + | ||
482 | 493 | ||
483 | 494 | ||
484 | 495 | ||
@@ -487,12 +498,7 @@ function docDelete(callbackData){ | @@ -487,12 +498,7 @@ function docDelete(callbackData){ | ||
487 | console.log("监听文档删除"); | 498 | console.log("监听文档删除"); |
488 | console.log(callbackData); | 499 | console.log(callbackData); |
489 | updateDocList(callbackData,1); | 500 | updateDocList(callbackData,1); |
490 | - $("#docImage").attr("src",""); | ||
491 | - $("#showImage").attr("src",""); | ||
492 | - if (classAllInfo.userRole=="normal"){ | ||
493 | - $("#docImage").attr("src",""); | ||
494 | - $("#showImage").attr("src",""); | ||
495 | - } | 501 | + |
496 | 502 | ||
497 | //操作页面 | 503 | //操作页面 |
498 | $("li").remove(".xin"); | 504 | $("li").remove(".xin"); |
@@ -532,15 +538,26 @@ function updateDocList(_data,isAdd) { | @@ -532,15 +538,26 @@ function updateDocList(_data,isAdd) { | ||
532 | for (var i=0;i<fileFromArr.length;i++){ | 538 | for (var i=0;i<fileFromArr.length;i++){ |
533 | console.log(fileFromArr); | 539 | console.log(fileFromArr); |
534 | if (fileFromArr[i].itemIdx==_data){ | 540 | if (fileFromArr[i].itemIdx==_data){ |
541 | + $("#docImage").attr("src",""); | ||
542 | + $("#showImg").attr("src",""); | ||
543 | + $(".canvas_container").css("overflow-y","hidden"); | ||
544 | + hideTurnPage(); | ||
545 | + if (classAllInfo.userRole=="normal"){ | ||
546 | + $("#docImage").attr("src",""); | ||
547 | + $("#showImg").attr("src",""); | ||
548 | + $(".canvas_container").css("overflow-y","hidden"); | ||
549 | + } | ||
535 | fileFromArr.splice(i,1); | 550 | fileFromArr.splice(i,1); |
551 | + | ||
536 | } | 552 | } |
537 | } | 553 | } |
538 | - if(fileFromArr.length==0){ | ||
539 | - console.log(fileFromArr); | ||
540 | - $("#docCanvas").css("display","none"); | ||
541 | - $("#showImg").css("display","none"); | ||
542 | - showTurnPage(); | ||
543 | - } | 554 | + |
555 | + // if(fileFromArr.length==0){ | ||
556 | + // console.log(fileFromArr); | ||
557 | + // $("#docImage").css("display","none"); | ||
558 | + // $("#showImg").css("display","none"); | ||
559 | + // showTurnPage(); | ||
560 | + // } | ||
544 | } | 561 | } |
545 | } | 562 | } |
546 | 563 |
-
请 注册 或 登录 后发表评论