Browse Source

图片跳转路径修改

8-bindBtn
aBin 4 years ago
parent
commit
5845dbb3c4
  1. 14
      index.html

14
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}`;
}
};
</script>

Loading…
Cancel
Save