提交 c049c54d authored 作者: 朱政's avatar 朱政

feat:全部智库点击跳转功能完善;多智库功能鼠标悬浮小手

Co-authored-by: 's avatarCopilot <copilot@github.com>
上级 72613fb4
流水线 #642 已取消 于阶段
......@@ -1449,6 +1449,7 @@ onMounted(async () => {
border-bottom: 1px solid rgb(234, 236, 238);
flex-shrink: 0;
display: flex;
cursor: pointer;
/* 防止item被挤压变形 */
.left {
......@@ -2218,6 +2219,7 @@ onMounted(async () => {
line-height: 30px;
letter-spacing: 0;
text-align: justify;
cursor: pointer;
}
.source-view-detail-org {
......@@ -2541,6 +2543,7 @@ onMounted(async () => {
line-height: 30px;
letter-spacing: 0;
text-align: justify;
cursor: pointer;
}
.source-view-detail-org {
......
......@@ -205,7 +205,14 @@ const handleClick = tank => {
ElMessage.warning("当前智库id为空,无法进入详情页");
return;
}
const curRoute = router.resolve({ name: "ThinkTankDetail", params: { id: tank.id, name: tank.name } });
let encoded;
try {
encoded = btoa(encodeURIComponent(String(tank.id)));
} catch (e) {
ElMessage.warning("当前智库id编码失败,无法进入详情页");
return;
}
const curRoute = router.resolve({ name: "ThinkTankDetail", params: { id: encoded } });
window.open(curRoute.href, "_blank");
};
onMounted(async () => {
......@@ -253,6 +260,7 @@ onMounted(async () => {
min-height: 80px;
position: relative;
.to-back-btn {
position: absolute;
left: calc(50% - 76px - 1600px/2 - 20px - 33px);
......@@ -266,6 +274,7 @@ onMounted(async () => {
padding-left: 20px;
margin-top: 24px;
box-shadow: 0px 0px 20px 0px rgba(25, 69, 130, 0.1);
cursor: pointer;
.back-text {
......@@ -468,6 +477,7 @@ onMounted(async () => {
padding-top: 17px;
padding-bottom: 21px;
position: relative;
cursor: pointer;
.red-info {
color: rgb(255, 255, 255);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论