Pārlūkot izejas kodu

搜索量表跳转定位修改

wyq 4 gadi atpakaļ
vecāks
revīzija
583b338741

+ 3 - 1
src/css/staticInfo.less

@@ -455,13 +455,15 @@
     .printing{
       display: flex;
       align-items: center;
-      justify-content: space-around;
       width: 94px;
       height: 32px;
       background: #FFFFFF;
       border-radius: 4px;
       border: 1px solid #333333;
       cursor: pointer;
+      & img{
+        margin: 0 12px 0 14px;
+      }
     }
     .printing:hover{
       background: #2C96E5;

+ 2 - 2
src/js/searchStaticList.js

@@ -120,9 +120,9 @@ function renderList(tabList){
         let name = $(this).attr('data-name')
         let type = $(this).attr('data-type')
         if(window.opener){
-            openNewWin(`./staticInfo.html?name=${name}&type=${type}&page=1`);
+            openNewWin(`./staticInfo.html?name=${name}&type=${type}`);
         }else{
-            window.open(`./staticInfo.html?name=${name}&type=${type}&page=1`);
+            window.open(`./staticInfo.html?name=${name}&type=${type}`);
         }
     })
     window.scrollTo(0, 0);

+ 4 - 3
src/js/staticInfo.js

@@ -207,7 +207,7 @@ function renderContentscale(list, contentWrapClassName, name) {
   adjustWidth()
   getcheck()
   getResult(pushInfo)
-  copy()
+  copy(name)
   getprinting()
 }
 
@@ -251,14 +251,15 @@ function getcheck() {
   });
 }
 
-function copy() {
+function copy(name) {
   $(".copy").click(function () {
     var texts = document.getElementById("result_title").innerText;
     if (texts == '') {
       return
     }
     var inputs = document.getElementById("inputs");
-    inputs.value = texts; // 修改文本框的内容(赋值内容)
+    inputs.value = name+'量表结果为:'+texts; // 修改文本框的内容(赋值内容)
+    console.log(inputs.value)
     inputs.select(); // 选中文本
     document.execCommand("copy"); // 执行浏览器复制命令
     Toast('复制成功', 500)

+ 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)}&page=1`)
+        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"));