Bläddra i källkod

清除状态处理

namejr 4 år sedan
förälder
incheckning
3998c0ab8f
1 ändrade filer med 4 tillägg och 3 borttagningar
  1. 4 3
      EBook.Web/Common/tasklib_book.js

+ 4 - 3
EBook.Web/Common/tasklib_book.js

@@ -259,7 +259,8 @@ var isGCFunc = function (NodeHandle) {
 var dealGLShowFunc = function (NodeHandle) {
     $.each($(NodeHandle).find(".wordStyle"), function (index, element) {
         var showFlagS = $(element).attr("showFlag");
-        $("#showtext").append("<span style='padding:5px;'>showFlagS:" + showFlagS + ",wordFlag:" + styleWPSContrl.wordFlag + "</span>");
+        $("#spanshowf").remove();
+        $("#showtext").append("<span id='spanshowf'>sentenceFlag:" + styleWPSContrl.sentenceFlag + ",phraseFlag:" + styleWPSContrl.phraseFlag + ",wordFlag:" + styleWPSContrl.wordFlag + "</span>");
         if (styleWPSContrl.wordFlag && showFlagS == "1") {
             $(element).css("color", "#db5d00");
         }
@@ -503,7 +504,7 @@ function bindEventTeaOrignalYS() {
     // 绑定横线内处理
     $(document).find(".wordStyle,.phraseStyle,.phraseStyle,u,span").attr("uLFlag", "0").attr("shcode", 0).attr("showFlag", "1");
     $(document).find(".underlineContent").find(".wordStyle,.phraseStyle,.phraseStyle,u,span").attr("shcode", 0).attr("uLFlag", "1").attr("showFlag", "1");
-    $(document.body).append("<div id='showtext' style='width:200px;height:50px;overflow-y:auto;position:fixed;left:20px;top:100px;background-color:yellow;'></div>");
+    $(document.body).append("<div id='showtext' style='width:300px;height:50px;overflow-y:auto;position:fixed;left:20px;top:100px;background-color:yellow;'></div>");
 }
 
 //页面加载完,课件 绑定事件
@@ -641,7 +642,7 @@ function bindEventYS() {
     // 绑定横线内处理
     $(document).find(".wordStyle,.phraseStyle,.phraseStyle,u,span").attr("uLFlag", "0").attr("shcode", 0).attr("showFlag", "1");
     $(document).find(".underlineContent").find(".wordStyle,.phraseStyle,.phraseStyle,u,span").attr("shcode", 0).attr("uLFlag", "1").attr("showFlag", "1");
-    $(document.body).append("<div id='showtext' style='width:200px;height:50px;overflow-y:auto;position:fixed;left:20px;top:100px;background-color:yellow;'></div>");
+    $(document.body).append("<div id='showtext' style='width:300px;height:50px;overflow-y:auto;position:fixed;left:20px;top:100px;background-color:yellow;'></div>");
 }
 
 // 移动端使用,true:表示点击表格且正在移动,需阻止模块切换