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

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

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