Browse Source

治疗方案跳转

15-plugin-zlfangan
aBin 4 years ago
parent
commit
a0b99ddd10
  1. 12
      index.html

12
index.html

@ -47,8 +47,8 @@
<!-- 示例插件2 id=100-->
<button class="bg-blue-500 py-2 px-5 rounded text-white" onclick="p100.show()">测试组建2</button>
<div data-tname="会诊" data-pid="1402932548627206144" data-uid="1323567842540523520" data-rid="rid333" data-tid="tid444" data-did="did555" style="height:26px;width:150px">
<div data-root="p1419895828960780288" style="height:100%;width:100%;display: flex;justify-content: space-between;align-items:center" onclick="p1419895828960780288.jumpDetails(this)">
<div data-tname="治疗方案" data-pid="1402932548627206144" data-uid="1323567842540523520" data-rid="rid333" data-tid="tid444" data-did="did555" style="height:26px;width:150px">
<div data-root="p1419895863458930688" style="height:100%;width:100%;display: flex;justify-content: space-between;align-items:center" onclick="p1419895863458930688.jumpDetails(this)">
<div class="flex-1 title"></div>
<div class="flex flex-row-reverse items-center" onclick="p1419895659787722752.jumpDetails(this)">
<img style="height:16px" src="https://www.tall.wiki/staticrec/photos/right.png">
@ -64,19 +64,19 @@
}
}
;(function() {
var dom = document.querySelector('div[data-root=p1419895828960780288]')
var dom = document.querySelector('div[data-root=p1419895863458930688]')
var domBox = dom.parentNode;
var domChild = document.querySelectorAll('div[data-root=p1419895828960780288]>div');
var domChild = document.querySelectorAll('div[data-root=p1419895863458930688]>div');
domChild[0].innerHTML = domBox.getAttribute('data-tname');
})()
const p1419895828960780288 = {
const p1419895863458930688 = {
jumpDetails(that) {
const pId = that.parentNode.getAttribute('data-pid');
const rId = that.parentNode.getAttribute('data-rid');
const uId = that.parentNode.getAttribute('data-uid');
const tId = that.parentNode.getAttribute('data-tid');
console.log(pId)
location.href = `https://www.tall.wiki/qc/diagnosis?projectId=${pId}&roleId=${rId}&userId=${uId}&id=${tId}`;
location.href = `https://www.tall.wiki/qc/treatmentPlan?projectId=${pId}&roleId=${rId}&userId=${uId}&id=${tId}`;
}
}
</script>

Loading…
Cancel
Save