Преглед на файлове

静态信息type后端传值11

zhouna преди 3 години
родител
ревизия
80104954bd
променени са 1 файла, в които са добавени 10 реда и са изтрити 10 реда
  1. 10 10
      src/js/cdss.js

+ 10 - 10
src/js/cdss.js

@@ -177,16 +177,16 @@ $(document).on('click',".allDis .right,.allDis .secDis",function(){
 
 
 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)}`)
-  })
-  $('.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`)
-  }) 
+    $('.infoImg').off("click").click(function(){
+        const name = $(this).parents(".pushItemBox").attr('data-name')
+        const type = $(this).parents(".pushItemBox").attr('data-type')
+        openNewWin(`staticInfo.html?type=${encodeURIComponent(type)}&position=0&name=${encodeURIComponent(name)}&mrId=${encodeURIComponent(mrId)}`)
+    })
+    $('.evaluationtitle').off("click").click(function () {
+        const name = $(this).parents(".pushItemBox").attr('data-name')
+        const type = $(this).parents(".pushItemBox").attr('data-type')
+        openNewWin(`staticInfo.html?type=${encodeURIComponent(type)}&position=0&name=${encodeURIComponent(name)}&page=1&mrId=${encodeURIComponent(mrId)}&gauge=gauge`)
+    })
 }
 
 function getVersion() {