Explorar el Código

弹窗打开大小设置

wyq hace 3 años
padre
commit
65cd0cfe37
Se han modificado 4 ficheros con 8 adiciones y 7 borrados
  1. 2 2
      src/js/cdss.js
  2. 3 3
      src/js/cdssHorizontal.js
  3. 2 1
      src/js/informationOut.js
  4. 1 1
      src/js/staticSearch.js

+ 2 - 2
src/js/cdss.js

@@ -179,12 +179,12 @@ function moreInfo() {
   $('.infoImg').off("click").click(function () {
     const name = $(this).parent().attr('data-name')
     const type = $(this).parent().attr('data-type')
-    openNewWin(`staticInfo.html?type=${encodeURIComponent(type)}&position=0&name=${encodeURIComponent(name)}&mrId=${encodeURIComponent(mrId)}`)
+    openNewWin(`staticInfo.html?type=${encodeURIComponent(type)}&position=0&name=${encodeURIComponent(name)}&mrId=${encodeURIComponent(mrId)}`, "width=500,height=400")
   })
   $('.evaluationtitle').off("click").click(function () {
     const name = $(this).parent().attr('data-name')
     const type = $(this).parent().attr('data-type')
-    openNewWin(`staticInfo.html?type=${encodeURIComponent(type)}&position=0&name=${encodeURIComponent(name)}&page=1&mrId=${encodeURIComponent(mrId)}&gauge=gauge`)
+    openNewWin(`staticInfo.html?type=${encodeURIComponent(type)}&position=0&name=${encodeURIComponent(name)}&page=1&mrId=${encodeURIComponent(mrId)}&gauge=gauge`, "width=500,height=400")
   })
 }
 

+ 3 - 3
src/js/cdssHorizontal.js

@@ -657,14 +657,14 @@ function moreInfo() {
   $('.infoImg').off("click").click(function () {
     const name = $(this).parent().attr('data-name')
     const type = $(this).parent().attr('data-type')
-    openNewWin(`staticInfo.html?type=${encodeURIComponent(type)}&position=0&name=${encodeURIComponent(name)}`)
+    openNewWin(`staticInfo.html?type=${encodeURIComponent(type)}&position=0&name=${encodeURIComponent(name)}`, "width=500,height=400")
   })
   $('.evaluationtitle').off("click").click(function () {
     console.log(11)
     const name = $(this).parent().attr('data-name')
     const type = $(this).parent().attr('data-type')
     console.log(name)
-    openNewWin(`staticInfo.html?type=${encodeURIComponent(type)}&position=0&name=${encodeURIComponent(name)}&page=1&gauge=gauge`)
+    openNewWin(`staticInfo.html?type=${encodeURIComponent(type)}&position=0&name=${encodeURIComponent(name)}&page=1&gauge=gauge`, "width=500,height=400")
   })
   
 }
@@ -674,7 +674,7 @@ function pushItemName(){
     const name = $(this).parent().attr('data-name')
     const type = $(this).parent().attr('data-type')
     console.log(name)
-    openNewWin(`staticInfo.html?type=${encodeURIComponent(type)}&position=0&name=${encodeURIComponent(name)}`)
+    openNewWin(`staticInfo.html?type=${encodeURIComponent(type)}&position=0&name=${encodeURIComponent(name)}`, "width=500,height=400")
   })
 }
 function getVersion() {

+ 2 - 1
src/js/informationOut.js

@@ -440,8 +440,9 @@ function getResult(pushInfo) {
         break
       }
     }
+    console.log(v)
     if (v) {
-      $(`.scale .infos`).scrollTop(v.top + 346)
+      $(`.scale .infos`).scrollTop(v.top)
     }
     if (!$(".contentList").find(".item-title").hasClass('chColor') && !$(".contentList").find(".item-titles").hasClass('chColor')) {
       $('input[type="radio"]:checked').each(function () {

+ 1 - 1
src/js/staticSearch.js

@@ -159,7 +159,7 @@ $(".staticSearchB ul").on("click","li",function(){
     const type = $(this).attr('data-type')
     const sign = $(this).attr('data-sign')
     if(type != 48){
-        openNewWin(`staticInfo.html?type=${encodeURIComponent(sign)}&position=0&name=${encodeURIComponent(infoMsgName)}`)
+        openNewWin(`staticInfo.html?type=${encodeURIComponent(sign)}&position=0&name=${encodeURIComponent(infoMsgName)}`, "width=500,height=400")
         // openNewWin(`information.html?type=${encodeURIComponent(sign)}&position=0&name=${encodeURIComponent(infoMsgName)}&uname=${encodeURIComponent(infoMsgUName)}`)
     }else{
         let msg = JSON.parse(getUrlArgObject("msg"));