From 350a0ac58a68c82c276892bd71680d58abcd1408 Mon Sep 17 00:00:00 2001 From: xuesinan <1404152492@qq.com> Date: Fri, 24 Jun 2022 09:37:42 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B7=A5=E8=B5=84=E6=9D=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.html | 34 +++++++++++++++++++++++++++++----- 1 file changed, 29 insertions(+), 5 deletions(-) diff --git a/index.html b/index.html index ddaba6e..81401ed 100644 --- a/index.html +++ b/index.html @@ -47,7 +47,16 @@ -
+
@@ -70,10 +79,25 @@ }, jumpDetails(that) { - var pId = that.parentNode.parentNode.getAttribute('data-pid'); - var rId = that.parentNode.parentNode.getAttribute('data-rid'); - var uId = that.parentNode.parentNode.getAttribute('data-uid'); - location.href = `https://test.tall.wiki/checkwork/salary/?pid=${pId}&uid=${uId}&rid=${rId}`; + const pId = this.dom.parentNode.getAttribute('data-pid'); + const uId = this.dom.parentNode.getAttribute('data-uid'); + const token = this.dom.parentNode.getAttribute('data-token'); + const rId = this.dom.parentNode.getAttribute('data-rid'); + const url = this.dom.parentNode.getAttribute('data-url'); + const type = this.dom.parentNode.getAttribute('data-type') ? 1 : 0; + + const param = `http://101.201.226.163/tallsalary/?pid=${pId}&uid=${uId}&rid=${rId}&token=${token}&url=${url}`; + if (type === 1) { + sessionStorage.setItem('targetUrl', param); + } else { + location.href = param; + } + + + // var pId = that.parentNode.parentNode.getAttribute('data-pid'); + // var rId = that.parentNode.parentNode.getAttribute('data-rid'); + // var uId = that.parentNode.parentNode.getAttribute('data-uid'); + // location.href = `http://101.201.226.163/checkwork/salary/?pid=${pId}&uid=${uId}&rid=${rId}`; } } p1457912674670354432.init()