瀏覽代碼

修改所有弹窗默认大小

wyq 3 年之前
父節點
當前提交
fdf2200735
共有 4 個文件被更改,包括 7 次插入7 次删除
  1. 2 2
      src/js/cdss.js
  2. 3 3
      src/js/cdssHorizontal.js
  3. 1 1
      src/js/promise.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)}`, "width=500,height=400")
+    openNewWin(`staticInfo.html?type=${encodeURIComponent(type)}&position=0&name=${encodeURIComponent(name)}&mrId=${encodeURIComponent(mrId)}`)
   })
   $('.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`, "width=500,height=400")
+    openNewWin(`staticInfo.html?type=${encodeURIComponent(type)}&position=0&name=${encodeURIComponent(name)}&page=1&mrId=${encodeURIComponent(mrId)}&gauge=gauge`)
   })
 }
 

+ 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)}`, "width=500,height=400")
+    openNewWin(`staticInfo.html?type=${encodeURIComponent(type)}&position=0&name=${encodeURIComponent(name)}`)
   })
   $('.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`, "width=500,height=400")
+    openNewWin(`staticInfo.html?type=${encodeURIComponent(type)}&position=0&name=${encodeURIComponent(name)}&page=1&gauge=gauge`)
   })
   
 }
@@ -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)}`, "width=500,height=400")
+    openNewWin(`staticInfo.html?type=${encodeURIComponent(type)}&position=0&name=${encodeURIComponent(name)}`)
   })
 }
 function getVersion() {

+ 1 - 1
src/js/promise.js

@@ -153,7 +153,7 @@ const newinConf = {
 const newWindowLocationTcm = `width=800, height=600, left=${newinConf.left}, top=${newinConf.top},resizable=yes, scrollbars=yes`
 const newWindowLocation = `width=${newinConf.width}, height=${newinConf.height}, left=${newinConf.left}, top=${newinConf.top},resizable=yes, scrollbars=yes`
 const openNewWin = function (url, isTcm) {
-    window.open(url, newinConf.openMode, isTcm ? newWindowLocationTcm : newWindowLocation)
+  window.open(url, newinConf.openMode, isTcm ? newWindowLocationTcm : newWindowLocation, "width=300,height=200")
 }
 
 //判断浏览器是否为Ie8

+ 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)}`, "width=500,height=400")
+        openNewWin(`staticInfo.html?type=${encodeURIComponent(sign)}&position=0&name=${encodeURIComponent(infoMsgName)}`)
         // openNewWin(`information.html?type=${encodeURIComponent(sign)}&position=0&name=${encodeURIComponent(infoMsgName)}&uname=${encodeURIComponent(infoMsgUName)}`)
     }else{
         let msg = JSON.parse(getUrlArgObject("msg"));