Browse Source

会诊插件跳转详情页

14-plugin-huizhen
aBin 4 years ago
parent
commit
c95a9d813d
  1. 15
      index.html

15
index.html

@ -49,9 +49,9 @@
<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 style="flex:1;font-size:22px;"></div>
<div style="height:100%">
<img style="height:100%;width:100%" src="https://www.tall.wiki/staticrec/photos/right.png">
<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">
</div>
</div>
</div>
@ -71,9 +71,12 @@
})()
const p1419895828960780288 = {
jumpDetails(that) {
console.log(that.parentNode.getAttribute('data-tname'))
console.log(that.parentNode.getAttribute('data-pid'))
location.href = 'https://www.baidu.com'
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}`;
}
}
</script>

Loading…
Cancel
Save