From e7388646600a204fe92fc8a48202c6eda70617dc Mon Sep 17 00:00:00 2001 From: xuesinan <1404152492@qq.com> Date: Mon, 23 May 2022 17:35:45 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.html | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index c8119a5..25466d1 100644 --- a/index.html +++ b/index.html @@ -47,7 +47,19 @@ -
+
@@ -455,11 +467,16 @@ 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 longitude = this.dom.parentNode.getAttribute('data-longitude'); const latitude = this.dom.parentNode.getAttribute('data-latitude'); const path = "http://101.201.226.163/tall/v4.0.0/pages/detailWebview/detailWebview"; const param = `http://101.201.226.163/checkwork/?pid=${pId}&uid=${uId}&rid=${rId}&token=${token}&url=${url}&longitude=${longitude}&latitude=${latitude}`; - location.href = `${path}/?url=${encodeURIComponent(param)}`; + if (type === 1) { + sessionStorage.setItem('targetUrl', param); + } else { + location.href = `${path}/?url=${encodeURIComponent(param)}`; + } } } p1485171846022434817.init()