From 1f46ae66eaee82a1b1c864f739ff14480b543433 Mon Sep 17 00:00:00 2001
From: xuesinan <1404152492@qq.com>
Date: Fri, 24 Jun 2022 09:45:31 +0800
Subject: [PATCH] =?UTF-8?q?=E5=B7=A5=E8=B5=84=E6=B1=87=E6=80=BB?=
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 23d4358..7f6070d 100644
--- a/index.html
+++ b/index.html
@@ -47,7 +47,17 @@
-
+
@@ -79,10 +89,24 @@
},
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-summary/?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/salarysummary/?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 = `https://test.tall.wiki/checkwork/salary-summary/?pid=${pId}&uid=${uId}&rid=${rId}`;
}
}
p1458326054384181248.init();