From 5845dbb3c42e5b833f8ab8a232be9bab1774a6e7 Mon Sep 17 00:00:00 2001 From: aBin Date: Fri, 30 Jul 2021 10:04:06 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9B=BE=E7=89=87=E8=B7=B3=E8=BD=AC=E8=B7=AF?= =?UTF-8?q?=E5=BE=84=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.html | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/index.html b/index.html index 2a7152d..734c1c1 100644 --- a/index.html +++ b/index.html @@ -64,10 +64,6 @@ alert(this.name) } } - /* - 1.进页面首先查询绑定状态 - 2.根据返回的数据,判断显示哪个btn - */ ;(async function() { var dom = document.querySelector("div[data-root=p1419895529168707584]"); var domBox = dom.parentNode; @@ -83,9 +79,6 @@ domChild[1].style.display = 'block' } })(); - /* - 根据uid获取token接口 - */ async function getToken(uid) { var token = '' await fetch(`https://www.tall.wiki/gateway/tall/v1.0/users/userId?userId=${uid}`) @@ -97,15 +90,9 @@ }); return token } - /* - 查询绑定好的平车 - 1. 有则显示 平车+编号 按钮 - 2. 无泽显示 绑定平车 按钮 - */ async function getBindCar(projectId,token) { const params = { param: { projectId } } const response = await fetch('https://www.tall.wiki/gateway/qcp/v3.0/car/queryBind', { - // const response = await fetch('/queryBind', { method: 'POST', headers: { 'Content-Type': 'application/json;charset=utf-8', @@ -131,7 +118,6 @@ const uId = that.parentNode.parentNode.getAttribute('data-uid'); const tId = that.parentNode.parentNode.getAttribute('data-tid'); location.href = `https://www.tall.wiki/qc/control?projectId=${pId}&roleId=${rId}&userId=${uId}&id=${tId}`; - } };