From d7faf3bd7ddd4ef171847c42981d7569236b242c Mon Sep 17 00:00:00 2001 From: xuesinan <1404152492@qq.com> Date: Fri, 27 May 2022 09:43:09 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AF=B7=E5=81=87=E6=8F=92=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.html | 30 ++++++++++++++++++++++++++++-- 1 file changed, 28 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index e533bb2..262ddb5 100644 --- a/index.html +++ b/index.html @@ -47,7 +47,17 @@ -
+
@@ -364,10 +374,26 @@ // 跳转详情 jumpDetails(that) { + // const pId = this.dom.parentNode.getAttribute('data-pid'); + // const uId = this.dom.parentNode.getAttribute('data-uid'); + // const rId = this.dom.parentNode.getAttribute('data-rid'); + // location.href = `https://test.tall.wiki/checkwork/?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'); - location.href = `https://test.tall.wiki/checkwork/?pid=${pId}&uid=${uId}&rid=${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 = `pid=${pId}&uid=${uId}&rid=${rId}&token=${token}&url=${url}&longitude=${longitude}&latitude=${latitude}`; + if (type === 1) { + sessionStorage.setItem('targetUrl', `http://101.201.226.163/leaveProcess/?${param}`); + } else { + location.href = `${path}/?url=${encodeURIComponent(param)}`; + } } } p1473554031225085952.init()