feat: 新增特藏书架与词云热词展示
- 首页快捷入口改为 3D 悬浮书架,拉取特藏推荐并支持点击进入详情 - 热词页改用 wordcloud 渲染词云,支持悬停放大与点击检索 - 导航栏改为半透明绿叠加实景背景,统一首页与内页观感 - 版本资源表新增 is_special 字段及示例数据
This commit is contained in:
+7
@@ -73,4 +73,11 @@ public class VersionResourceController {
|
||||
versionResourceService.removeById(id);
|
||||
return Result.success();
|
||||
}
|
||||
|
||||
@Operation(summary = "设置是否特藏版本(0否 1是)")
|
||||
@PutMapping("/{id}/special")
|
||||
public Result<Void> updateSpecialFlag(@PathVariable Long id, @RequestParam Integer isSpecial) {
|
||||
versionResourceService.updateSpecialFlag(id, isSpecial);
|
||||
return Result.success();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -143,6 +143,9 @@ public class VersionResource implements Serializable {
|
||||
@Schema(description = "数据密级/敏感词标记:0正常 1敏感")
|
||||
private Integer sensitiveFlag;
|
||||
|
||||
@Schema(description = "是否特藏版本:0否 1是(是则展示在特藏推荐模块)")
|
||||
private Integer isSpecial;
|
||||
|
||||
@TableField(fill = FieldFill.INSERT)
|
||||
@Schema(description = "创建时间")
|
||||
private LocalDateTime createTime;
|
||||
|
||||
@@ -19,4 +19,9 @@ public interface VersionResourceService extends IService<VersionResource> {
|
||||
* 保存或更新版本资源。
|
||||
*/
|
||||
Long saveOrUpdateResource(VersionResource resource);
|
||||
|
||||
/**
|
||||
* 更新「是否特藏版本」标记(0否 1是)。
|
||||
*/
|
||||
void updateSpecialFlag(Long id, Integer isSpecial);
|
||||
}
|
||||
|
||||
+12
@@ -2,6 +2,7 @@ package com.banben.modules.resource.service.impl;
|
||||
|
||||
import cn.hutool.core.util.StrUtil;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import com.banben.common.PageResult;
|
||||
@@ -71,4 +72,15 @@ public class VersionResourceServiceImpl
|
||||
this.saveOrUpdate(resource);
|
||||
return resource.getId();
|
||||
}
|
||||
|
||||
/**
|
||||
* 仅更新「是否特藏版本」标记:1 是 → 展示在特藏推荐模块;其余值一律归 0。
|
||||
*/
|
||||
@Override
|
||||
public void updateSpecialFlag(Long id, Integer isSpecial) {
|
||||
LambdaUpdateWrapper<VersionResource> wrapper = new LambdaUpdateWrapper<>();
|
||||
wrapper.eq(VersionResource::getId, id)
|
||||
.set(VersionResource::getIsSpecial, isSpecial != null && isSpecial == 1 ? 1 : 0);
|
||||
this.update(wrapper);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
package com.banben.modules.special.controller;
|
||||
|
||||
import com.banben.common.Result;
|
||||
import com.banben.modules.special.dto.SpecialRecommendVO;
|
||||
import com.banben.modules.special.entity.SpecialResource;
|
||||
import com.banben.modules.special.service.SpecialService;
|
||||
import io.swagger.v3.oas.annotations.Operation;
|
||||
@@ -24,9 +25,9 @@ public class SpecialController {
|
||||
|
||||
private final SpecialService specialService;
|
||||
|
||||
@Operation(summary = "首页推荐特藏列表")
|
||||
@Operation(summary = "特藏推荐列表(version_resource 中 is_special=1 的记录)")
|
||||
@GetMapping("/recommend")
|
||||
public Result<List<SpecialResource>> recommend(@RequestParam(defaultValue = "8") int limit) {
|
||||
public Result<List<SpecialRecommendVO>> recommend(@RequestParam(defaultValue = "8") int limit) {
|
||||
return Result.success(specialService.recommend(limit));
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,46 @@
|
||||
package com.banben.modules.special.dto;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* 特藏推荐展示项。
|
||||
*
|
||||
* <p>两种数据来源共用该结构:</p>
|
||||
* <ul>
|
||||
* <li>version_resource(is_special = 1):title 正题名、note 附注、
|
||||
* ebookUrl 取 fulltext_url 作为下载地址;</li>
|
||||
* <li>special_resource(手工维护):title 取 name、note 取 summary、
|
||||
* coverUrl 封面图、ebookUrl 电子版地址。</li>
|
||||
* </ul>
|
||||
*/
|
||||
@Data
|
||||
@Schema(description = "特藏推荐展示项")
|
||||
public class SpecialRecommendVO implements Serializable {
|
||||
|
||||
@Schema(description = "资源ID")
|
||||
private Long id;
|
||||
|
||||
@Schema(description = "题名(version_resource.title / special_resource.name)")
|
||||
private String title;
|
||||
|
||||
@Schema(description = "描述(version_resource.note / special_resource.summary)")
|
||||
private String note;
|
||||
|
||||
@Schema(description = "责任者")
|
||||
private String author;
|
||||
|
||||
@Schema(description = "出版年份")
|
||||
private String publishYear;
|
||||
|
||||
@Schema(description = "封面图片地址(special_resource.cover_url)")
|
||||
private String coverUrl;
|
||||
|
||||
@Schema(description = "全文地址(version_resource.fulltext_url)")
|
||||
private String fulltextUrl;
|
||||
|
||||
@Schema(description = "下载/电子版地址(special_resource.ebook_url,version_resource 场景取全文地址)")
|
||||
private String ebookUrl;
|
||||
}
|
||||
@@ -1,6 +1,7 @@
|
||||
package com.banben.modules.special.service;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.banben.modules.special.dto.SpecialRecommendVO;
|
||||
import com.banben.modules.special.entity.SpecialResource;
|
||||
|
||||
import java.util.List;
|
||||
@@ -11,12 +12,12 @@ import java.util.List;
|
||||
public interface SpecialService extends IService<SpecialResource> {
|
||||
|
||||
/**
|
||||
* 首页推荐特藏(仅展示 status=1,按 sort_no 排序)。
|
||||
* 特藏推荐列表:查询 version_resource 中 is_special = 1 的记录。
|
||||
*/
|
||||
List<SpecialResource> recommend(int limit);
|
||||
List<SpecialRecommendVO> recommend(int limit);
|
||||
|
||||
/**
|
||||
* 管理端列表。
|
||||
* 管理端列表(special_resource 手工维护数据)。
|
||||
*/
|
||||
List<SpecialResource> adminList();
|
||||
}
|
||||
|
||||
+64
-3
@@ -2,28 +2,89 @@ package com.banben.modules.special.service.impl;
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import com.banben.modules.resource.entity.VersionResource;
|
||||
import com.banben.modules.resource.mapper.VersionResourceMapper;
|
||||
import com.banben.modules.special.dto.SpecialRecommendVO;
|
||||
import com.banben.modules.special.entity.SpecialResource;
|
||||
import com.banben.modules.special.mapper.SpecialResourceMapper;
|
||||
import com.banben.modules.special.service.SpecialService;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 特藏版本推荐服务实现。
|
||||
*
|
||||
* <p>展示数据来源两部分(统一为 {@link SpecialRecommendVO}):</p>
|
||||
* <ol>
|
||||
* <li>version_resource 中 is_special = 1 的记录:题名取 title、描述取 note、
|
||||
* 下载地址取 fulltext_url;</li>
|
||||
* <li>special_resource 手工维护的特藏:题名取 name、描述取 summary、
|
||||
* 封面取 cover_url、下载地址取 ebook_url。</li>
|
||||
* </ol>
|
||||
* <p>第一部分用 try/catch 兜底:若 is_special 字段尚未迁移,不影响第二部分正常展示。</p>
|
||||
*/
|
||||
@Slf4j
|
||||
@Service
|
||||
@RequiredArgsConstructor
|
||||
public class SpecialServiceImpl extends ServiceImpl<SpecialResourceMapper, SpecialResource>
|
||||
implements SpecialService {
|
||||
|
||||
private final VersionResourceMapper versionResourceMapper;
|
||||
|
||||
@Override
|
||||
public List<SpecialResource> recommend(int limit) {
|
||||
public List<SpecialRecommendVO> recommend(int limit) {
|
||||
int size = Math.max(1, limit);
|
||||
List<SpecialRecommendVO> result = new ArrayList<>();
|
||||
|
||||
// 1) version_resource 中标记为特藏的记录
|
||||
try {
|
||||
LambdaQueryWrapper<VersionResource> wrapper = new LambdaQueryWrapper<>();
|
||||
wrapper.eq(VersionResource::getIsSpecial, 1)
|
||||
.orderByDesc(VersionResource::getUpdateTime)
|
||||
.last("limit " + size);
|
||||
|
||||
versionResourceMapper.selectList(wrapper).forEach(r -> {
|
||||
SpecialRecommendVO vo = new SpecialRecommendVO();
|
||||
vo.setId(r.getId());
|
||||
vo.setTitle(r.getTitle());
|
||||
vo.setNote(r.getNote());
|
||||
vo.setAuthor(r.getAuthor());
|
||||
vo.setPublishYear(r.getPublishYear());
|
||||
vo.setFulltextUrl(r.getFulltextUrl());
|
||||
// version_resource 无封面与电子版字段,下载地址用全文地址兜底
|
||||
vo.setEbookUrl(r.getFulltextUrl());
|
||||
result.add(vo);
|
||||
});
|
||||
} catch (Exception e) {
|
||||
// is_special 字段未迁移时查询会失败,此处降级为只展示手工维护的特藏
|
||||
log.warn("查询 version_resource 特藏记录失败,仅展示 special_resource:{}", e.getMessage());
|
||||
}
|
||||
|
||||
// 2) special_resource 手工维护的特藏(补齐剩余条数)
|
||||
int remain = size - result.size();
|
||||
if (remain > 0) {
|
||||
LambdaQueryWrapper<SpecialResource> wrapper = new LambdaQueryWrapper<>();
|
||||
wrapper.eq(SpecialResource::getStatus, 1)
|
||||
.orderByAsc(SpecialResource::getSortNo)
|
||||
.orderByDesc(SpecialResource::getCreateTime)
|
||||
.last("limit " + Math.max(1, limit));
|
||||
return this.list(wrapper);
|
||||
.last("limit " + remain);
|
||||
|
||||
this.list(wrapper).forEach(s -> {
|
||||
SpecialRecommendVO vo = new SpecialRecommendVO();
|
||||
vo.setId(s.getId());
|
||||
vo.setTitle(s.getName());
|
||||
vo.setNote(s.getSummary());
|
||||
vo.setCoverUrl(s.getCoverUrl());
|
||||
vo.setEbookUrl(s.getEbookUrl());
|
||||
result.add(vo);
|
||||
});
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Generated
+7
-1
@@ -14,7 +14,8 @@
|
||||
"element-plus": "^2.7.6",
|
||||
"pinia": "^2.1.7",
|
||||
"vue": "^3.4.31",
|
||||
"vue-router": "^4.4.0"
|
||||
"vue-router": "^4.4.0",
|
||||
"wordcloud": "^1.2.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/node": "^20.14.9",
|
||||
@@ -2441,6 +2442,11 @@
|
||||
"typescript": ">=5.0.0"
|
||||
}
|
||||
},
|
||||
"node_modules/wordcloud": {
|
||||
"version": "1.2.2",
|
||||
"resolved": "https://registry.npmjs.org/wordcloud/-/wordcloud-1.2.2.tgz",
|
||||
"integrity": "sha512-fUnDsGrHXou+49j1OeKaC7nOeZPx+sWjIet0L/j6eAcm0nXy+a+AuUs/iDAX4PLBg1Zc6wgXWXhoXdQsXRWAEw=="
|
||||
},
|
||||
"node_modules/zrender": {
|
||||
"version": "5.6.1",
|
||||
"resolved": "https://registry.npmmirror.com/zrender/-/zrender-5.6.1.tgz",
|
||||
|
||||
@@ -16,7 +16,8 @@
|
||||
"element-plus": "^2.7.6",
|
||||
"pinia": "^2.1.7",
|
||||
"vue": "^3.4.31",
|
||||
"vue-router": "^4.4.0"
|
||||
"vue-router": "^4.4.0",
|
||||
"wordcloud": "^1.2.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/node": "^20.14.9",
|
||||
|
||||
@@ -21,13 +21,22 @@ export interface VersionResource {
|
||||
sourceLibrary?: string
|
||||
sourceLibraryAddr?: string
|
||||
fulltextUrl?: string
|
||||
otherTitle?: string
|
||||
author?: string
|
||||
responsibility?: string
|
||||
publisher?: string
|
||||
publishPlace?: string
|
||||
publishDate?: string
|
||||
edition?: string
|
||||
isbn?: string
|
||||
governStatus?: string
|
||||
mergedToId?: number
|
||||
abnormalFlag?: number
|
||||
sensitiveFlag?: number
|
||||
/** 是否特藏版本:0否 1是 */
|
||||
isSpecial?: number
|
||||
/** 附注 */
|
||||
note?: string
|
||||
}
|
||||
|
||||
export interface ResourceQuery {
|
||||
@@ -61,3 +70,8 @@ export function saveResource(data: VersionResource) {
|
||||
export function removeResource(id: number) {
|
||||
return request.delete<never, void>(`/resource/${id}`)
|
||||
}
|
||||
|
||||
/** 设置是否特藏版本(0否 1是) */
|
||||
export function updateSpecialFlag(id: number, isSpecial: number) {
|
||||
return request.put<never, void>(`/resource/${id}/special`, null, { params: { isSpecial } })
|
||||
}
|
||||
|
||||
+30
-10
@@ -1,5 +1,35 @@
|
||||
import request from './request'
|
||||
|
||||
/**
|
||||
* 特藏推荐展示项
|
||||
* - version_resource(后端重启后):title 正题名 / note 附注 / fulltextUrl 全文地址
|
||||
* - special_resource(当前运行版本):name 名称 / summary 简介 / ebookUrl 电子版地址
|
||||
*/
|
||||
export interface SpecialRecommendItem {
|
||||
id?: number
|
||||
/** 正题名(version_resource.title) */
|
||||
title?: string
|
||||
/** 附注(version_resource.note) */
|
||||
note?: string
|
||||
/** 名称(special_resource.name) */
|
||||
name?: string
|
||||
/** 简介(special_resource.summary) */
|
||||
summary?: string
|
||||
author?: string
|
||||
publishYear?: string
|
||||
/** 封面图片(special_resource.cover_url) */
|
||||
coverUrl?: string
|
||||
/** 全文地址(version_resource.fulltext_url) */
|
||||
fulltextUrl?: string
|
||||
/** 电子版地址(special_resource.ebook_url) */
|
||||
ebookUrl?: string
|
||||
}
|
||||
|
||||
/** 特藏推荐列表 */
|
||||
export function getRecommend(limit = 8) {
|
||||
return request.get<never, SpecialRecommendItem[]>('/special/recommend', { params: { limit } })
|
||||
}
|
||||
|
||||
export interface SpecialResource {
|
||||
id?: number
|
||||
name: string
|
||||
@@ -11,16 +41,6 @@ export interface SpecialResource {
|
||||
status?: number
|
||||
}
|
||||
|
||||
/** 首页推荐 */
|
||||
export function getRecommend(limit = 8) {
|
||||
return request.get<never, SpecialResource[]>('/special/recommend', { params: { limit } })
|
||||
}
|
||||
|
||||
/** 特藏细览 */
|
||||
export function getSpecialDetail(id: number) {
|
||||
return request.get<never, SpecialResource>(`/special/${id}`)
|
||||
}
|
||||
|
||||
/** 管理端列表 */
|
||||
export function adminSpecialList() {
|
||||
return request.get<never, SpecialResource[]>('/special/admin/list')
|
||||
|
||||
@@ -30,8 +30,8 @@ function logout() {
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div class="site">
|
||||
<header class="site-header" :class="{ 'on-hero': route.path === '/dashboard' }">
|
||||
<div class="site" :class="{ 'on-hero': route.path === '/dashboard' }">
|
||||
<header class="site-header">
|
||||
<div class="logo" @click="router.push('/')">
|
||||
<img class="logo-img" :src="logoUrl" alt="logo" />
|
||||
<div class="logo-texts">
|
||||
@@ -66,8 +66,31 @@ function logout() {
|
||||
|
||||
<style scoped lang="scss">
|
||||
.site {
|
||||
position: relative;
|
||||
z-index: 0;
|
||||
min-height: 100vh;
|
||||
background: var(--page-bg);
|
||||
|
||||
/* 导航背后垫一层与首页同源的实景图:
|
||||
内页时它充当导航的背景,首页时则被上浮的轮播图盖住,
|
||||
两种场景下导航都是「半透明绿压在实景图上」,观感完全一致 */
|
||||
&::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
height: 72px;
|
||||
background:
|
||||
linear-gradient(rgba(10, 28, 20, 0.5), rgba(10, 28, 20, 0.62)),
|
||||
url('../assets/banner/b2.jpg') center 18% / cover no-repeat;
|
||||
z-index: -1;
|
||||
}
|
||||
|
||||
/* 首页:轮播图上浮到导航之下,导航直接压在实景图上 */
|
||||
&.on-hero .site-main {
|
||||
margin-top: -72px;
|
||||
}
|
||||
}
|
||||
|
||||
.site-header {
|
||||
@@ -76,18 +99,15 @@ function logout() {
|
||||
align-items: center;
|
||||
gap: 36px;
|
||||
padding: 0 36px;
|
||||
background: rgba(36, 72, 55, 0.95);
|
||||
backdrop-filter: blur(16px);
|
||||
-webkit-backdrop-filter: blur(16px);
|
||||
/* 与首页检索面板完全一致的半透明绿 + 同款毛玻璃 */
|
||||
background: rgba(16, 38, 28, 0.58);
|
||||
backdrop-filter: blur(22px) saturate(140%);
|
||||
-webkit-backdrop-filter: blur(22px) saturate(140%);
|
||||
color: #fff;
|
||||
position: relative;
|
||||
z-index: 20;
|
||||
transition: background 0.45s ease;
|
||||
|
||||
/* 首页:导航浮在实景背景上 */
|
||||
&.on-hero {
|
||||
background: rgba(18, 40, 30, 0.34);
|
||||
}
|
||||
|
||||
/* 底部金线:呼应版本馆的描金装饰 */
|
||||
&::after {
|
||||
content: '';
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
<script setup lang="ts">
|
||||
import { onBeforeUnmount, onMounted, ref } from 'vue'
|
||||
import { useRouter } from 'vue-router'
|
||||
import { getRecommend, type SpecialRecommendItem } from '@/api/special'
|
||||
import b1 from '@/assets/banner/b1.jpg'
|
||||
import b2 from '@/assets/banner/b2.jpg'
|
||||
import b3 from '@/assets/banner/b3.jpg'
|
||||
@@ -26,16 +27,48 @@ const sources = [
|
||||
{ name: '特色专题库', on: false }
|
||||
]
|
||||
|
||||
const entries = [
|
||||
{ title: '资源检索', path: '/search', icon: 'Search' },
|
||||
{ title: '热词检索', path: '/hotwords', icon: 'Cloudy' },
|
||||
{ title: '特藏推荐', path: '/special', icon: 'Star' },
|
||||
{ title: '资源呈缴', path: '/deposit', icon: 'Upload' },
|
||||
{ title: '数据统计', path: '/analysis', icon: 'DataAnalysis' },
|
||||
{ title: '资源管理', path: '/resource', icon: 'Collection' },
|
||||
{ title: '数据采集', path: '/collect', icon: 'Download' },
|
||||
{ title: '数据治理', path: '/governance', icon: 'MagicStick' }
|
||||
]
|
||||
/* ---------- 3D 书架:一本书对应一条特藏,点击进入特藏详情 ---------- */
|
||||
const bookColors = ['#2c4d40', '#7a2e2e', '#2b3a67', '#b3862d', '#5a2e42']
|
||||
|
||||
const specials = ref<SpecialRecommendItem[]>([])
|
||||
const bookMeta = ref<
|
||||
{ color: string; rz: string; ry: string; sc: string; delay: string }[]
|
||||
>([])
|
||||
|
||||
/* 题名:version_resource.title → special_resource.name */
|
||||
function titleOf(it: SpecialRecommendItem) {
|
||||
return it.title || it.name || ''
|
||||
}
|
||||
|
||||
/* 拉取特藏列表,为每本书随机分配姿态与呼吸延迟,使节奏互不同步 */
|
||||
async function fetchSpecials() {
|
||||
try {
|
||||
specials.value = (await getRecommend(10)) || []
|
||||
} catch {
|
||||
specials.value = []
|
||||
}
|
||||
bookMeta.value = specials.value.map((_, i) => ({
|
||||
color: bookColors[i % bookColors.length],
|
||||
rz: (Math.random() * 8 - 4).toFixed(2) + 'deg', // -4deg ~ 4deg
|
||||
ry: (Math.random() * 16 - 8).toFixed(2) + 'deg', // -8deg ~ 8deg
|
||||
sc: (0.9 + Math.random() * 0.1).toFixed(3), // 0.9 ~ 1
|
||||
delay: (-Math.random() * 5).toFixed(2) + 's' // 0s ~ -5s
|
||||
}))
|
||||
}
|
||||
|
||||
function openSpecial(it: SpecialRecommendItem) {
|
||||
router.push({ path: '/special', query: { id: String(it.id ?? '') } })
|
||||
}
|
||||
|
||||
const hoverIndex = ref(-1)
|
||||
|
||||
/* X 轴推挤:悬停某本书时,左侧书本左推、右侧书本右推 */
|
||||
function wrapperStyle(i: number) {
|
||||
if (hoverIndex.value < 0) return {}
|
||||
if (i < hoverIndex.value) return { transform: 'translateX(-40px)' }
|
||||
if (i > hoverIndex.value) return { transform: 'translateX(40px)' }
|
||||
return { transform: 'translateX(0px)' }
|
||||
}
|
||||
|
||||
const active = ref(0)
|
||||
const tick = ref(0)
|
||||
@@ -69,7 +102,10 @@ function doSearch() {
|
||||
router.push({ path: '/search', query: { keyword: keyword.value } })
|
||||
}
|
||||
|
||||
onMounted(reset)
|
||||
onMounted(() => {
|
||||
reset()
|
||||
fetchSpecials()
|
||||
})
|
||||
onBeforeUnmount(pause)
|
||||
</script>
|
||||
|
||||
@@ -133,18 +169,36 @@ onBeforeUnmount(pause)
|
||||
</section>
|
||||
</div>
|
||||
|
||||
<!-- 快捷入口 -->
|
||||
<div class="quick">
|
||||
<!-- 特藏书架:一本书 = 一条特藏,点击查看特藏详情 -->
|
||||
<div v-if="specials.length" class="shelf">
|
||||
<div
|
||||
v-for="e in entries"
|
||||
:key="e.path"
|
||||
class="quick-item"
|
||||
@click="router.push(e.path)"
|
||||
v-for="(e, i) in specials"
|
||||
:key="e.id ?? i"
|
||||
class="book-wrapper"
|
||||
:style="[wrapperStyle(i), { '--delay': bookMeta[i]?.delay || '0s' }]"
|
||||
@mouseenter="hoverIndex = i"
|
||||
@mouseleave="hoverIndex = -1"
|
||||
@click="openSpecial(e)"
|
||||
>
|
||||
<el-icon :size="26"><component :is="e.icon" /></el-icon>
|
||||
<span>{{ e.title }}</span>
|
||||
<!-- 中层:随机倾斜 + 呼吸悬浮 -->
|
||||
<div
|
||||
class="book-inner"
|
||||
:style="{
|
||||
'--rz': bookMeta[i]?.rz || '0deg',
|
||||
'--ry': bookMeta[i]?.ry || '0deg',
|
||||
'--sc': bookMeta[i]?.sc || '1'
|
||||
}"
|
||||
>
|
||||
<!-- 内层:书本本体,悬停时飞出转正 -->
|
||||
<div class="book" :style="{ backgroundColor: bookMeta[i]?.color || '#2c4d40' }">
|
||||
<span class="book-title">{{ titleOf(e) }}</span>
|
||||
</div>
|
||||
</div>
|
||||
<!-- 底层:与呼吸同步的投影 -->
|
||||
<div class="book-shadow" />
|
||||
</div>
|
||||
</div>
|
||||
<p v-else class="shelf-empty">暂无特藏推荐,可在资源管理中将版本资源标记为特藏</p>
|
||||
</div>
|
||||
|
||||
<!-- 轮播控制 -->
|
||||
@@ -168,7 +222,8 @@ onBeforeUnmount(pause)
|
||||
<style scoped lang="scss">
|
||||
.home {
|
||||
position: relative;
|
||||
min-height: calc(100vh - 72px);
|
||||
/* 已上浮到导航栏之下,故按整屏高度铺满 */
|
||||
min-height: 100vh;
|
||||
margin: -20px -24px;
|
||||
overflow: hidden;
|
||||
background: #16301f;
|
||||
@@ -219,7 +274,7 @@ onBeforeUnmount(pause)
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
min-height: calc(100vh - 72px);
|
||||
min-height: 100vh;
|
||||
}
|
||||
|
||||
.hero-text {
|
||||
@@ -407,36 +462,155 @@ onBeforeUnmount(pause)
|
||||
color: rgba(255, 255, 255, 0.45);
|
||||
}
|
||||
|
||||
/* ---------- 快捷入口 ---------- */
|
||||
.quick {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(8, 1fr);
|
||||
gap: 10px;
|
||||
margin-top: 28px;
|
||||
/* ---------- 快捷入口:3D 悬浮书架 ---------- */
|
||||
.shelf {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: flex-end;
|
||||
gap: 18px;
|
||||
margin-top: 30px;
|
||||
padding: 30px 16px 0;
|
||||
perspective: 1200px;
|
||||
}
|
||||
|
||||
.quick-item {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
padding: 24px 8px;
|
||||
color: #fff;
|
||||
font-size: 13px;
|
||||
letter-spacing: 0.5px;
|
||||
background: rgba(255, 255, 255, 0.1);
|
||||
border: 1px solid rgba(255, 255, 255, 0.16);
|
||||
border-radius: var(--radius-sm);
|
||||
backdrop-filter: blur(14px);
|
||||
-webkit-backdrop-filter: blur(14px);
|
||||
/* 外层:仅负责悬停时的 X 轴推挤位移 */
|
||||
.book-wrapper {
|
||||
flex: none;
|
||||
width: 84px;
|
||||
cursor: pointer;
|
||||
transition: all 0.24s;
|
||||
transform-style: preserve-3d;
|
||||
transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
|
||||
}
|
||||
|
||||
&:hover {
|
||||
background: rgba(255, 255, 255, 0.22);
|
||||
border-color: rgba(255, 255, 255, 0.36);
|
||||
transform: translateY(-3px);
|
||||
/* 中层:JS 随机静态倾斜 + 呼吸悬浮 */
|
||||
.book-inner {
|
||||
transform-style: preserve-3d;
|
||||
animation: floatBreathing 5s ease-in-out infinite alternate;
|
||||
animation-delay: var(--delay, 0s);
|
||||
will-change: transform;
|
||||
}
|
||||
|
||||
@keyframes floatBreathing {
|
||||
from {
|
||||
transform: translateY(0) rotateY(var(--ry, 0deg)) rotateZ(var(--rz, 0deg))
|
||||
scale(var(--sc, 1));
|
||||
}
|
||||
to {
|
||||
transform: translateY(-16px) rotateY(var(--ry, 0deg)) rotateZ(var(--rz, 0deg))
|
||||
scale(var(--sc, 1));
|
||||
}
|
||||
}
|
||||
|
||||
/* 内层:书本本体 */
|
||||
.book {
|
||||
position: relative;
|
||||
height: 158px;
|
||||
border-radius: 2px 6px 6px 2px;
|
||||
/* 书脊凹槽光影 */
|
||||
background-image: linear-gradient(
|
||||
to right,
|
||||
rgba(255, 255, 255, 0.15) 0%,
|
||||
transparent 15%,
|
||||
rgba(0, 0, 0, 0.6) 20%,
|
||||
rgba(0, 0, 0, 0.1) 25%,
|
||||
transparent 60%,
|
||||
rgba(0, 0, 0, 0.4) 100%
|
||||
);
|
||||
box-shadow: 0 12px 20px rgba(0, 0, 0, 0.4);
|
||||
transform-style: preserve-3d;
|
||||
transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.45s ease;
|
||||
|
||||
/* 右侧书页白边(4px 厚度) */
|
||||
&::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: 4px;
|
||||
bottom: 4px;
|
||||
right: -4px;
|
||||
width: 4px;
|
||||
background: repeating-linear-gradient(
|
||||
to bottom,
|
||||
#f3efe2 0 1.5px,
|
||||
#d6d0bd 1.5px 3px
|
||||
);
|
||||
border-radius: 0 2px 2px 0;
|
||||
}
|
||||
}
|
||||
|
||||
/* 悬停飞出:冲出屏幕并转正 */
|
||||
.book-wrapper:hover .book {
|
||||
transform: translateZ(140px) rotateY(0deg) rotateZ(0deg) scale(1.05);
|
||||
box-shadow: 0 34px 64px rgba(0, 0, 0, 0.6);
|
||||
}
|
||||
|
||||
/* 竖排烫金书名(楷体 + 锐利金属倒角),过长自动截断 */
|
||||
.book-title {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
/* vertical-lr:每列自上而下,多列时从左往右排(rl 会把开头那列放到最右,看着像反了) */
|
||||
writing-mode: vertical-lr;
|
||||
font-family: 'Kaiti SC', 'STKaiti', 'KaiTi', '楷体', serif;
|
||||
font-size: 15px;
|
||||
letter-spacing: 5px;
|
||||
color: #b8862d;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
padding: 10px 0;
|
||||
text-shadow:
|
||||
-0.5px -0.5px 0px rgba(255, 255, 255, 0.8),
|
||||
1px 1px 0px #704e10,
|
||||
1.5px 1.5px 0px #4a3207,
|
||||
2px 2px 3px rgba(0, 0, 0, 0.9);
|
||||
}
|
||||
|
||||
.shelf-empty {
|
||||
margin: 30px 0 0;
|
||||
text-align: center;
|
||||
font-size: 13px;
|
||||
letter-spacing: 1px;
|
||||
color: rgba(255, 255, 255, 0.55);
|
||||
}
|
||||
|
||||
/* 底层投影:呼吸明暗放在伪元素上,避免与悬停位移的 transform 冲突 */
|
||||
.book-shadow {
|
||||
position: relative;
|
||||
height: 14px;
|
||||
margin-top: 16px;
|
||||
border-radius: 50%;
|
||||
transform-origin: center;
|
||||
transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease;
|
||||
|
||||
&::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
border-radius: inherit;
|
||||
background: radial-gradient(
|
||||
ellipse at center,
|
||||
rgba(0, 0, 0, 0.55) 0%,
|
||||
rgba(0, 0, 0, 0) 72%
|
||||
);
|
||||
animation: shadowBreathing 5s ease-in-out infinite alternate;
|
||||
animation-delay: var(--delay, 0s);
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes shadowBreathing {
|
||||
from {
|
||||
opacity: 1;
|
||||
}
|
||||
to {
|
||||
opacity: 0.55;
|
||||
}
|
||||
}
|
||||
|
||||
/* 悬停时书本升起,投影散开变淡 */
|
||||
.book-wrapper:hover .book-shadow {
|
||||
transform: translateY(15px) scaleX(1.6) scaleY(0.6);
|
||||
opacity: 0.1;
|
||||
}
|
||||
|
||||
/* ---------- 轮播控制 ---------- */
|
||||
@@ -518,8 +692,9 @@ onBeforeUnmount(pause)
|
||||
|
||||
/* ---------- 响应式 ---------- */
|
||||
@media (max-width: 1080px) {
|
||||
.quick {
|
||||
grid-template-columns: repeat(4, 1fr);
|
||||
.shelf {
|
||||
flex-wrap: wrap;
|
||||
row-gap: 22px;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -537,8 +712,21 @@ onBeforeUnmount(pause)
|
||||
display: none;
|
||||
}
|
||||
|
||||
.quick {
|
||||
grid-template-columns: repeat(3, 1fr);
|
||||
.shelf {
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
.book-wrapper {
|
||||
width: 64px;
|
||||
}
|
||||
|
||||
.book {
|
||||
height: 124px;
|
||||
}
|
||||
|
||||
.book-title {
|
||||
font-size: 13px;
|
||||
letter-spacing: 5px;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -1,8 +1,15 @@
|
||||
<script setup lang="ts">
|
||||
import { onMounted, reactive, ref } from 'vue'
|
||||
import { ElMessage, ElMessageBox } from 'element-plus'
|
||||
import { ElMessage, ElMessageBox, type FormInstance, type FormRules } from 'element-plus'
|
||||
import { Refresh, Search } from '@element-plus/icons-vue'
|
||||
import { pageResource, removeResource, type ResourceQuery, type VersionResource } from '@/api/resource'
|
||||
import {
|
||||
getResource,
|
||||
pageResource,
|
||||
removeResource,
|
||||
saveResource,
|
||||
type ResourceQuery,
|
||||
type VersionResource
|
||||
} from '@/api/resource'
|
||||
import { GOVERN_STATUS, governStatusLabel, governStatusTagType } from '@/constants/dict'
|
||||
|
||||
const loading = ref(false)
|
||||
@@ -53,6 +60,45 @@ async function handleDelete(row: VersionResource) {
|
||||
fetchData()
|
||||
}
|
||||
|
||||
/* ---------- 编辑(含「是否为特藏版本」设置) ---------- */
|
||||
const drawerVisible = ref(false)
|
||||
const detailLoading = ref(false)
|
||||
const saving = ref(false)
|
||||
const formRef = ref<FormInstance | null>(null)
|
||||
const editForm = ref<VersionResource>({ title: '' } as VersionResource)
|
||||
|
||||
const rules: FormRules = {
|
||||
title: [{ required: true, message: '请输入正题名', trigger: 'blur' }]
|
||||
}
|
||||
|
||||
async function openEdit(row: VersionResource) {
|
||||
drawerVisible.value = true
|
||||
detailLoading.value = true
|
||||
editForm.value = { title: row.title } as VersionResource
|
||||
try {
|
||||
// 拉取完整元数据,避免表格行缺字段
|
||||
const full = await getResource(row.id as number)
|
||||
editForm.value = { ...full }
|
||||
} finally {
|
||||
detailLoading.value = false
|
||||
}
|
||||
}
|
||||
|
||||
async function saveEdit() {
|
||||
if (!formRef.value) return
|
||||
await formRef.value.validate()
|
||||
saving.value = true
|
||||
try {
|
||||
// id 有值 → 后端走更新;isSpecial 随表单一起保存(1是 0否)
|
||||
await saveResource(editForm.value)
|
||||
ElMessage.success('保存成功')
|
||||
drawerVisible.value = false
|
||||
fetchData()
|
||||
} finally {
|
||||
saving.value = false
|
||||
}
|
||||
}
|
||||
|
||||
onMounted(fetchData)
|
||||
</script>
|
||||
|
||||
@@ -91,7 +137,14 @@ onMounted(fetchData)
|
||||
<h3 class="page-title">版本资源库(元数据)</h3>
|
||||
<el-table v-loading="loading" :data="list" border stripe>
|
||||
<el-table-column type="index" label="#" width="50" />
|
||||
<el-table-column prop="title" label="正题名" min-width="200" show-overflow-tooltip />
|
||||
<el-table-column prop="title" label="正题名" min-width="200" show-overflow-tooltip>
|
||||
<template #default="{ row }">
|
||||
<el-tag v-if="row.isSpecial === 1" size="small" class="special-tag" effect="dark">
|
||||
特藏
|
||||
</el-tag>
|
||||
<span>{{ row.title }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="author" label="责任者" width="140" show-overflow-tooltip />
|
||||
<el-table-column prop="clcCode" label="中图分类" width="110" />
|
||||
<el-table-column prop="mediaType" label="媒体类型" width="90" />
|
||||
@@ -110,8 +163,9 @@ onMounted(fetchData)
|
||||
<span v-else>-</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="操作" width="120" fixed="right">
|
||||
<el-table-column label="操作" width="150" fixed="right">
|
||||
<template #default="{ row }">
|
||||
<el-button link type="primary" size="small" @click="openEdit(row)">编辑</el-button>
|
||||
<el-button link type="danger" size="small" @click="handleDelete(row)">删除</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
@@ -129,6 +183,126 @@ onMounted(fetchData)
|
||||
@size-change="fetchData"
|
||||
/>
|
||||
</div>
|
||||
|
||||
<!-- 编辑抽屉:完整元数据 + 是否特藏版本 -->
|
||||
<el-drawer
|
||||
v-model="drawerVisible"
|
||||
:title="editForm.id ? '编辑版本资源' : '版本资源'"
|
||||
size="720px"
|
||||
>
|
||||
<div v-loading="detailLoading">
|
||||
<el-form
|
||||
ref="formRef"
|
||||
:model="editForm"
|
||||
:rules="rules"
|
||||
label-width="110px"
|
||||
label-position="right"
|
||||
>
|
||||
<el-divider content-position="left">基本信息</el-divider>
|
||||
<div class="form-grid">
|
||||
<el-form-item label="正题名" prop="title">
|
||||
<el-input v-model="editForm.title" placeholder="请输入正题名" />
|
||||
</el-form-item>
|
||||
<el-form-item label="加工编号">
|
||||
<el-input v-model="editForm.processNo" />
|
||||
</el-form-item>
|
||||
<el-form-item label="责任者">
|
||||
<el-input v-model="editForm.author" />
|
||||
</el-form-item>
|
||||
<el-form-item label="责任方式">
|
||||
<el-input v-model="editForm.responsibility" />
|
||||
</el-form-item>
|
||||
<el-form-item label="中图分类">
|
||||
<el-input v-model="editForm.clcCode" />
|
||||
</el-form-item>
|
||||
<el-form-item label="媒体类型">
|
||||
<el-select v-model="editForm.mediaType" style="width: 100%">
|
||||
<el-option label="纸质" value="纸质" />
|
||||
<el-option label="电子" value="电子" />
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="出版年份">
|
||||
<el-input v-model="editForm.publishYear" />
|
||||
</el-form-item>
|
||||
<el-form-item label="出版日期">
|
||||
<el-input v-model="editForm.publishDate" />
|
||||
</el-form-item>
|
||||
<el-form-item label="出版者">
|
||||
<el-input v-model="editForm.publisher" />
|
||||
</el-form-item>
|
||||
<el-form-item label="出版地">
|
||||
<el-input v-model="editForm.publishPlace" />
|
||||
</el-form-item>
|
||||
<el-form-item label="内容形式">
|
||||
<el-input v-model="editForm.contentForm" />
|
||||
</el-form-item>
|
||||
<el-form-item label="格式">
|
||||
<el-input v-model="editForm.format" />
|
||||
</el-form-item>
|
||||
<el-form-item label="页码">
|
||||
<el-input v-model="editForm.pageCount" />
|
||||
</el-form-item>
|
||||
<el-form-item label="语种">
|
||||
<el-input v-model="editForm.language" />
|
||||
</el-form-item>
|
||||
<el-form-item label="其他题名">
|
||||
<el-input v-model="editForm.otherTitle" />
|
||||
</el-form-item>
|
||||
<el-form-item label="版本/版次">
|
||||
<el-input v-model="editForm.edition" />
|
||||
</el-form-item>
|
||||
<el-form-item label="ISBN">
|
||||
<el-input v-model="editForm.isbn" />
|
||||
</el-form-item>
|
||||
<el-form-item label="主题词">
|
||||
<el-input v-model="editForm.keywords" placeholder="多个主题词用 ; 分隔" />
|
||||
</el-form-item>
|
||||
</div>
|
||||
|
||||
<el-form-item label="摘要">
|
||||
<el-input v-model="editForm.summary" type="textarea" :rows="4" />
|
||||
</el-form-item>
|
||||
<el-form-item label="附注">
|
||||
<el-input v-model="editForm.note" type="textarea" :rows="3" placeholder="附注内容将展示在特藏推荐模块" />
|
||||
</el-form-item>
|
||||
|
||||
<el-divider content-position="left">来源信息</el-divider>
|
||||
<div class="form-grid">
|
||||
<el-form-item label="来源馆">
|
||||
<el-input v-model="editForm.sourceLibrary" />
|
||||
</el-form-item>
|
||||
<el-form-item label="来源馆地址">
|
||||
<el-input v-model="editForm.sourceLibraryAddr" />
|
||||
</el-form-item>
|
||||
<el-form-item label="数据提交单位">
|
||||
<el-input v-model="editForm.submitOrg" />
|
||||
</el-form-item>
|
||||
<el-form-item label="任务年份">
|
||||
<el-input v-model="editForm.taskYear" />
|
||||
</el-form-item>
|
||||
<el-form-item label="加工日期">
|
||||
<el-input v-model="editForm.processDate" />
|
||||
</el-form-item>
|
||||
</div>
|
||||
<el-form-item label="全文地址">
|
||||
<el-input v-model="editForm.fulltextUrl" />
|
||||
</el-form-item>
|
||||
|
||||
<el-divider content-position="left">特藏设置</el-divider>
|
||||
<el-form-item label="特藏版本">
|
||||
<el-radio-group v-model="editForm.isSpecial">
|
||||
<el-radio :value="1">是 —— 展示在特藏推荐模块</el-radio>
|
||||
<el-radio :value="0">否</el-radio>
|
||||
</el-radio-group>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
</div>
|
||||
|
||||
<template #footer>
|
||||
<el-button @click="drawerVisible = false">取消</el-button>
|
||||
<el-button type="primary" :loading="saving" @click="saveEdit">保存</el-button>
|
||||
</template>
|
||||
</el-drawer>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -137,4 +311,16 @@ onMounted(fetchData)
|
||||
margin-top: 16px;
|
||||
justify-content: flex-end;
|
||||
}
|
||||
|
||||
.special-tag {
|
||||
margin-right: 6px;
|
||||
background: #8a6d3b;
|
||||
border-color: #8a6d3b;
|
||||
}
|
||||
|
||||
.form-grid {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
column-gap: 16px;
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
<script setup lang="ts">
|
||||
import { computed, onMounted, ref } from 'vue'
|
||||
import { computed, onBeforeUnmount, onMounted, ref } from 'vue'
|
||||
import { useRouter } from 'vue-router'
|
||||
import WordCloud from 'wordcloud'
|
||||
import { getHotKeywords } from '@/api/analysis'
|
||||
import type { FacetItem } from '@/api/search'
|
||||
|
||||
@@ -8,29 +9,101 @@ const router = useRouter()
|
||||
const loading = ref(false)
|
||||
const list = ref<FacetItem[]>([])
|
||||
|
||||
/** 排名越靠前,字号(云朵)越大 */
|
||||
function sizeOf(index: number) {
|
||||
return Math.max(13, 28 - index * 0.85)
|
||||
}
|
||||
/** 书籍类补充热词(value 即词云权重,数值越大字号越大) */
|
||||
const bookWords: FacetItem[] = [
|
||||
{ name: '雕版印刷', value: 80 },
|
||||
{ name: '活字本', value: 70 },
|
||||
{ name: '四库全书', value: 65 },
|
||||
{ name: '永乐大典', value: 60 },
|
||||
{ name: '稿抄校本', value: 55 },
|
||||
{ name: '家谱方志', value: 50 },
|
||||
{ name: '中华再造善本', value: 45 },
|
||||
{ name: '敦煌遗书', value: 40 },
|
||||
{ name: '版本鉴定', value: 38 },
|
||||
{ name: '金石拓片', value: 36 },
|
||||
{ name: '丛书集成', value: 34 },
|
||||
{ name: '汲古阁', value: 32 },
|
||||
{ name: '诗文集', value: 30 },
|
||||
{ name: '线装书', value: 28 },
|
||||
{ name: '藏书楼', value: 26 },
|
||||
{ name: '批校本', value: 24 },
|
||||
{ name: '蝴蝶装', value: 22 },
|
||||
{ name: '藏书印', value: 20 },
|
||||
{ name: '经折装', value: 18 },
|
||||
{ name: '孤本', value: 16 },
|
||||
{ name: '天一阁', value: 16 },
|
||||
{ name: '政书', value: 14 },
|
||||
{ name: '舆图', value: 14 },
|
||||
{ name: '题跋', value: 12 },
|
||||
{ name: '珍本', value: 12 },
|
||||
{ name: '类书', value: 10 },
|
||||
{ name: '书院', value: 10 }
|
||||
]
|
||||
|
||||
function styleOf(index: number) {
|
||||
return { fontSize: `${sizeOf(index).toFixed(1)}px` }
|
||||
}
|
||||
|
||||
function tierOf(index: number) {
|
||||
if (index < 3) return 'top'
|
||||
if (index < 10) return 'mid'
|
||||
return 'rest'
|
||||
}
|
||||
/** 真实热词权重最高(版本、古籍等),其后接书籍类热词 */
|
||||
const cloudWords = computed<[string, number][]>(() => {
|
||||
const api = [...list.value].sort((a, b) => b.value - a.value)
|
||||
const seen = new Set(api.map((k) => k.name))
|
||||
const out: [string, number][] = api.map((k, i) => [k.name, Math.max(80, 120 - i * 10)])
|
||||
bookWords.filter((w) => !seen.has(w.name)).forEach((w) => out.push([w.name, w.value]))
|
||||
return out
|
||||
})
|
||||
|
||||
const totalCount = computed(() =>
|
||||
list.value.reduce((sum, item) => sum + (Number(item.value) || 0), 0)
|
||||
cloudWords.value.reduce((sum, item) => sum + (Number(item[1]) || 0), 0)
|
||||
)
|
||||
|
||||
function go(keyword: string) {
|
||||
router.push({ path: '/search', query: { keyword } })
|
||||
/* ---------- 词云(DOM 模式:每个词都是真实 span,放大交给纯 CSS) ---------- */
|
||||
const cloudRef = ref<HTMLDivElement | null>(null)
|
||||
const stageRef = ref<HTMLDivElement | null>(null)
|
||||
|
||||
const colors = ['#5c7c9e', '#c96b6b', '#4a7a8c', '#b39b8b', '#8c9aaf', '#d19b9b']
|
||||
const FONT_FAMILY = '"Microsoft YaHei", "PingFang SC", sans-serif'
|
||||
const MAX_WEIGHT = 120
|
||||
|
||||
function render() {
|
||||
const host = cloudRef.value
|
||||
if (!host || !cloudWords.value.length) return
|
||||
if (!host.clientWidth || !host.clientHeight) return
|
||||
|
||||
// 重新生成:先清空上一次渲染出的 span
|
||||
host.innerHTML = ''
|
||||
|
||||
WordCloud.stop()
|
||||
WordCloud(host, {
|
||||
list: cloudWords.value.slice(),
|
||||
gridSize: 9,
|
||||
// 权重 120 → 约 61px,权重 10 → 约 20px
|
||||
weightFactor: (size: number) => 17 + 44 * (size / MAX_WEIGHT),
|
||||
fontFamily: FONT_FAMILY,
|
||||
fontWeight: 'bold',
|
||||
color: (word: string) => colors[Math.abs(hash(word)) % colors.length],
|
||||
// 给每个词加上类名,便于用 CSS 实现悬停放大
|
||||
classes: 'cloud-word',
|
||||
rotateRatio: 0,
|
||||
shape: 'circle',
|
||||
minSize: 8
|
||||
})
|
||||
}
|
||||
|
||||
/** 字符串散列,让每个词的配色固定 */
|
||||
function hash(str: string) {
|
||||
let h = 0
|
||||
for (let i = 0; i < str.length; i++) h = (h * 31 + str.charCodeAt(i)) | 0
|
||||
return h
|
||||
}
|
||||
|
||||
/** 点击热词直达检索(事件委托) */
|
||||
function onClick(e: MouseEvent) {
|
||||
const el = e.target as HTMLElement | null
|
||||
if (!el?.classList.contains('cloud-word')) return
|
||||
const word = el.textContent?.trim()
|
||||
if (word) go(word)
|
||||
}
|
||||
|
||||
let resizeTimer: number | undefined
|
||||
let observer: ResizeObserver | undefined
|
||||
|
||||
onMounted(async () => {
|
||||
loading.value = true
|
||||
try {
|
||||
@@ -39,8 +112,26 @@ onMounted(async () => {
|
||||
list.value = []
|
||||
} finally {
|
||||
loading.value = false
|
||||
render()
|
||||
}
|
||||
|
||||
// 容器尺寸变化后重排(带防抖)
|
||||
observer = new ResizeObserver(() => {
|
||||
if (resizeTimer) window.clearTimeout(resizeTimer)
|
||||
resizeTimer = window.setTimeout(render, 220)
|
||||
})
|
||||
if (stageRef.value) observer.observe(stageRef.value)
|
||||
})
|
||||
|
||||
onBeforeUnmount(() => {
|
||||
if (resizeTimer) window.clearTimeout(resizeTimer)
|
||||
observer?.disconnect()
|
||||
WordCloud.stop()
|
||||
})
|
||||
|
||||
function go(keyword: string) {
|
||||
router.push({ path: '/search', query: { keyword } })
|
||||
}
|
||||
</script>
|
||||
|
||||
<template>
|
||||
@@ -48,31 +139,20 @@ onMounted(async () => {
|
||||
<div class="head">
|
||||
<div>
|
||||
<h2 class="page-title">检索热词</h2>
|
||||
<p class="desc">按检索热度排序,排名越靠前,云朵越大</p>
|
||||
<p class="desc">字号越大热度越高,鼠标定位到哪个词该词即放大,点击直达检索结果</p>
|
||||
</div>
|
||||
<div v-if="list.length" class="stat">
|
||||
<span class="num">{{ list.length }}</span>
|
||||
<div v-if="cloudWords.length" class="stat">
|
||||
<span class="num">{{ cloudWords.length }}</span>
|
||||
<span class="unit">个热词</span>
|
||||
<em>累计检索 {{ totalCount }} 次</em>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div v-loading="loading" class="field">
|
||||
<div
|
||||
v-for="(k, i) in list"
|
||||
:key="k.name"
|
||||
class="cloud"
|
||||
:class="tierOf(i)"
|
||||
:style="styleOf(i)"
|
||||
:title="`第 ${i + 1} 位 · 检索 ${k.value} 次`"
|
||||
@click="go(k.name)"
|
||||
>
|
||||
<span class="rank">{{ String(i + 1).padStart(2, '0') }}</span>
|
||||
<span class="word">{{ k.name }}</span>
|
||||
<div ref="stageRef" class="stage">
|
||||
<div ref="cloudRef" class="cloud" @click="onClick" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<el-empty v-if="!loading && !list.length" description="暂无热词数据" />
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -125,110 +205,41 @@ onMounted(async () => {
|
||||
}
|
||||
}
|
||||
|
||||
/* ---------- 云朵区 ---------- */
|
||||
/* ---------- 词云 ---------- */
|
||||
.field {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 22px 16px;
|
||||
min-height: 420px;
|
||||
padding: 58px 34px 46px;
|
||||
background:
|
||||
radial-gradient(620px 280px at 50% 0%, rgba(91, 154, 120, 0.1), transparent 68%),
|
||||
radial-gradient(520px 240px at 82% 100%, rgba(47, 93, 71, 0.07), transparent 70%),
|
||||
#fff;
|
||||
padding: 24px;
|
||||
background: #fff;
|
||||
border: 1px solid var(--card-border);
|
||||
border-radius: var(--radius-sm);
|
||||
}
|
||||
|
||||
/* 云朵:胶囊主体 + 两处鼓包,合并为柔和云形 */
|
||||
.stage {
|
||||
width: 100%;
|
||||
height: 620px;
|
||||
}
|
||||
|
||||
.cloud {
|
||||
position: relative;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 0.5em;
|
||||
padding: 0.52em 1.35em;
|
||||
background: #fff;
|
||||
border-radius: 999px;
|
||||
color: #3d4f44;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
/* 词云的 span 由 JS 动态生成,需用 :deep 穿透 scoped */
|
||||
.cloud :deep(.cloud-word) {
|
||||
cursor: pointer;
|
||||
filter: drop-shadow(0 6px 14px rgba(31, 63, 47, 0.12));
|
||||
transition: transform 0.22s, filter 0.22s;
|
||||
|
||||
/* 顶部两团鼓包 */
|
||||
&::before,
|
||||
&::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
border-radius: 50%;
|
||||
background: inherit;
|
||||
}
|
||||
|
||||
&::before {
|
||||
left: 14%;
|
||||
top: -0.7em;
|
||||
width: 1.45em;
|
||||
height: 1.45em;
|
||||
}
|
||||
|
||||
&::after {
|
||||
right: 16%;
|
||||
top: -0.52em;
|
||||
width: 1.1em;
|
||||
height: 1.1em;
|
||||
}
|
||||
|
||||
.rank,
|
||||
.word {
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.rank {
|
||||
font-size: 0.5em;
|
||||
font-weight: 700;
|
||||
letter-spacing: 0.5px;
|
||||
color: #a9c4b2;
|
||||
}
|
||||
|
||||
.word {
|
||||
font-family: 'Noto Serif SC', 'Source Han Serif SC', 'Songti SC', 'STSong',
|
||||
'SimSun', serif;
|
||||
font-weight: 700;
|
||||
letter-spacing: 1px;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
transform: translateY(-3px);
|
||||
filter: drop-shadow(0 10px 20px rgba(31, 63, 47, 0.2));
|
||||
}
|
||||
transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
|
||||
}
|
||||
|
||||
/* 前三名:描金云朵 */
|
||||
.cloud.top {
|
||||
background: linear-gradient(180deg, #eef7f0, #d6eadc);
|
||||
color: #23503a;
|
||||
|
||||
.rank {
|
||||
color: #6fa287;
|
||||
}
|
||||
/* 悬停:仅做缩放,不做任何颜色/描边/阴影变化。
|
||||
词云内部给 span 写了行内 transform(rotate),这里用 !important 覆盖 */
|
||||
.cloud :deep(.cloud-word:hover) {
|
||||
transform: scale(1.18) !important;
|
||||
z-index: 5;
|
||||
}
|
||||
|
||||
/* 4-10 名:米白云朵 */
|
||||
.cloud.mid {
|
||||
background: linear-gradient(180deg, #ffffff, #f3f9f4);
|
||||
}
|
||||
|
||||
/* 其余:纯白云朵 */
|
||||
.cloud.rest {
|
||||
background: #fff;
|
||||
color: #5c6f63;
|
||||
font-weight: 400;
|
||||
|
||||
.word {
|
||||
font-weight: 400;
|
||||
@media (max-width: 900px) {
|
||||
.stage {
|
||||
height: 480px;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -1,70 +1,156 @@
|
||||
<script setup lang="ts">
|
||||
import { onMounted, ref } from 'vue'
|
||||
import { getRecommend, getSpecialDetail, type SpecialResource } from '@/api/special'
|
||||
import { useRoute } from 'vue-router'
|
||||
import { ElMessage } from 'element-plus'
|
||||
import { Download } from '@element-plus/icons-vue'
|
||||
import { getResource } from '@/api/resource'
|
||||
import { getRecommend, type SpecialRecommendItem } from '@/api/special'
|
||||
|
||||
const route = useRoute()
|
||||
|
||||
const loading = ref(false)
|
||||
const list = ref<SpecialResource[]>([])
|
||||
const dialogVisible = ref(false)
|
||||
const current = ref<SpecialResource | null>(null)
|
||||
const list = ref<SpecialRecommendItem[]>([])
|
||||
|
||||
const palette = ['#5b9a78', '#7cb094', '#2f5d47', '#9dc4ac', '#4a7c5f', '#b4cdbd']
|
||||
interface Detail {
|
||||
title: string
|
||||
note?: string
|
||||
author?: string
|
||||
publishYear?: string
|
||||
fulltextUrl?: string
|
||||
}
|
||||
|
||||
const dialogVisible = ref(false)
|
||||
const current = ref<Detail | null>(null)
|
||||
|
||||
/** 正题名:version_resource.title → special_resource.name */
|
||||
function titleOf(it: SpecialRecommendItem) {
|
||||
return it.title || it.name || '未命名资源'
|
||||
}
|
||||
|
||||
/** 附注:version_resource.note → special_resource.summary */
|
||||
function noteOf(it: SpecialRecommendItem) {
|
||||
return it.note || it.summary || ''
|
||||
}
|
||||
|
||||
/** 下载地址:special_resource.ebook_url → version_resource.fulltext_url */
|
||||
function urlOf(it: SpecialRecommendItem) {
|
||||
return it.ebookUrl || it.fulltextUrl || ''
|
||||
}
|
||||
|
||||
async function fetchList() {
|
||||
loading.value = true
|
||||
try {
|
||||
list.value = await getRecommend(12)
|
||||
list.value = (await getRecommend(20)) || []
|
||||
} finally {
|
||||
loading.value = false
|
||||
}
|
||||
}
|
||||
|
||||
async function openDetail(item: SpecialResource) {
|
||||
current.value = item
|
||||
/** 打开细览:先展示列表行数据,version_resource 来源的再补拉完整元数据 */
|
||||
async function openDetail(item: SpecialRecommendItem) {
|
||||
dialogVisible.value = true
|
||||
const res = await getSpecialDetail(item.id as number)
|
||||
if (res) current.value = res
|
||||
current.value = {
|
||||
title: titleOf(item),
|
||||
note: noteOf(item),
|
||||
author: item.author,
|
||||
publishYear: item.publishYear,
|
||||
fulltextUrl: urlOf(item)
|
||||
}
|
||||
// 只有来自 version_resource 的记录才有 title,可据此补拉完整著录
|
||||
if (item.id && item.title) {
|
||||
try {
|
||||
const full = await getResource(item.id)
|
||||
current.value = {
|
||||
title: full.title,
|
||||
note: full.note,
|
||||
author: full.author,
|
||||
publishYear: full.publishYear,
|
||||
fulltextUrl: full.fulltextUrl
|
||||
}
|
||||
} catch {
|
||||
/* 保留列表行数据兜底 */
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
onMounted(fetchList)
|
||||
/** 下载全文(新窗口打开全文地址;无地址时提示) */
|
||||
function download(item: SpecialRecommendItem) {
|
||||
const url = urlOf(item)
|
||||
if (url) {
|
||||
window.open(url, '_blank')
|
||||
} else {
|
||||
ElMessage.warning('该资源暂无全文地址')
|
||||
}
|
||||
}
|
||||
|
||||
onMounted(async () => {
|
||||
await fetchList()
|
||||
// 从首页书架点书进来:自动打开对应特藏的详情
|
||||
const id = route.query.id
|
||||
if (id) {
|
||||
const target = list.value.find((it) => String(it.id) === String(id))
|
||||
if (target) openDetail(target)
|
||||
}
|
||||
})
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div class="page-card" v-loading="loading">
|
||||
<h3 class="page-title">特藏版本推荐</h3>
|
||||
<p class="sub-desc">精选各馆呈缴的珍贵特藏版本,点击查看详细著录信息</p>
|
||||
|
||||
<el-empty v-if="!list.length" description="暂无特藏数据" />
|
||||
<el-empty v-if="!loading && !list.length" description="暂无特藏数据(可在资源管理中将版本资源标记为特藏)" />
|
||||
|
||||
<el-row v-else :gutter="16">
|
||||
<el-col v-for="(it, idx) in list" :key="it.id" :xs="24" :sm="12" :md="6">
|
||||
<el-card shadow="hover" class="special-card" @click="openDetail(it)">
|
||||
<div class="cover" :style="{ background: palette[idx % palette.length] }">
|
||||
{{ (it.name || '').slice(0, 2) }}
|
||||
<div v-else class="special-list">
|
||||
<div
|
||||
v-for="(it, idx) in list"
|
||||
:key="it.id ?? idx"
|
||||
class="special-item"
|
||||
@click="openDetail(it)"
|
||||
>
|
||||
<!-- 封面图:special_resource.cover_url,无值时用古籍封面占位 -->
|
||||
<div class="cover">
|
||||
<img v-if="it.coverUrl" :src="it.coverUrl" :alt="titleOf(it)" class="cover-img" />
|
||||
<div v-else class="cover-frame">
|
||||
<span class="cover-title">{{ titleOf(it).slice(0, 4) }}</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="name">{{ it.name }}</div>
|
||||
<div class="desc">{{ it.summary || '暂无简介' }}</div>
|
||||
<el-tag size="small" type="info">{{ it.category || '特藏' }}</el-tag>
|
||||
</el-card>
|
||||
</el-col>
|
||||
</el-row>
|
||||
|
||||
<el-dialog v-model="dialogVisible" :title="current?.name || '特藏细览'" width="620px">
|
||||
<!-- 标题(正题名) + 描述(附注)+ 详细 / 下载 -->
|
||||
<div class="info">
|
||||
<div class="name">{{ titleOf(it) }}</div>
|
||||
<div class="desc">
|
||||
<span class="desc-text">{{ noteOf(it) || '本资源为馆藏特藏版本,详细著录信息请点击查看详情。' }}</span>
|
||||
<span class="op" @click.stop="openDetail(it)">详细</span>
|
||||
<span class="op" @click.stop="download(it)">
|
||||
<el-icon :size="14"><Download /></el-icon>
|
||||
下载
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 细览弹窗 -->
|
||||
<el-dialog v-model="dialogVisible" :title="current?.title || '特藏细览'" width="620px">
|
||||
<template v-if="current">
|
||||
<el-descriptions :column="1" border size="small">
|
||||
<el-descriptions-item label="名称">{{ current.name }}</el-descriptions-item>
|
||||
<el-descriptions-item label="类别">{{ current.category || '-' }}</el-descriptions-item>
|
||||
<el-descriptions-item label="简介">{{ current.summary || '-' }}</el-descriptions-item>
|
||||
<el-descriptions-item label="正题名">{{ current.title || '-' }}</el-descriptions-item>
|
||||
<el-descriptions-item label="责任者">{{ current.author || '-' }}</el-descriptions-item>
|
||||
<el-descriptions-item label="出版年份">{{ current.publishYear || '-' }}</el-descriptions-item>
|
||||
<el-descriptions-item label="附注">{{ current.note || '-' }}</el-descriptions-item>
|
||||
</el-descriptions>
|
||||
<div style="margin-top: 16px">
|
||||
<el-button
|
||||
v-if="current.ebookUrl"
|
||||
v-if="current.fulltextUrl"
|
||||
type="primary"
|
||||
tag="a"
|
||||
:href="current.ebookUrl"
|
||||
:href="current.fulltextUrl"
|
||||
target="_blank"
|
||||
>
|
||||
电子版下载
|
||||
查看全文
|
||||
</el-button>
|
||||
<el-button v-else type="primary" disabled>暂无电子版</el-button>
|
||||
<el-button v-else type="primary" disabled>暂无全文地址</el-button>
|
||||
</div>
|
||||
</template>
|
||||
</el-dialog>
|
||||
@@ -72,33 +158,137 @@ onMounted(fetchList)
|
||||
</template>
|
||||
|
||||
<style scoped lang="scss">
|
||||
.special-card {
|
||||
margin-bottom: 16px;
|
||||
text-align: center;
|
||||
cursor: pointer;
|
||||
.sub-desc {
|
||||
margin: -6px 0 18px;
|
||||
font-size: 13px;
|
||||
color: #a09480;
|
||||
letter-spacing: 1px;
|
||||
}
|
||||
|
||||
.cover {
|
||||
height: 120px;
|
||||
/* ---------- 列表(参考站外资源展示样式:图左 · 题名 · 描述 · 右侧入口) ---------- */
|
||||
.special-list {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 14px;
|
||||
}
|
||||
|
||||
.special-item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 22px;
|
||||
padding: 14px 20px;
|
||||
background: #faf7ee;
|
||||
border: 1px solid #f0e9d8;
|
||||
border-radius: 6px;
|
||||
cursor: pointer;
|
||||
transition: background 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
|
||||
|
||||
&:hover {
|
||||
background: #f5efdf;
|
||||
box-shadow: 0 6px 18px rgba(90, 70, 20, 0.12);
|
||||
transform: translateY(-2px);
|
||||
|
||||
.goto {
|
||||
color: #8a6d3b;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* 封面图:古籍线装书封面占位 */
|
||||
.cover {
|
||||
flex: none;
|
||||
width: 150px;
|
||||
height: 100px;
|
||||
border-radius: 4px;
|
||||
color: #fff;
|
||||
font-size: 28px;
|
||||
background: linear-gradient(135deg, #2c4d40 0%, #1f3a30 100%);
|
||||
box-shadow: inset 0 0 0 3px rgba(0, 0, 0, 0.15), 0 4px 10px rgba(0, 0, 0, 0.25);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
.name {
|
||||
font-weight: 600;
|
||||
margin-bottom: 6px;
|
||||
}
|
||||
|
||||
.desc {
|
||||
font-size: 12px;
|
||||
color: #909399;
|
||||
height: 36px;
|
||||
overflow: hidden;
|
||||
|
||||
.cover-img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
}
|
||||
|
||||
.cover-frame {
|
||||
width: 56px;
|
||||
height: 84px;
|
||||
border: 1px solid rgba(184, 134, 45, 0.85);
|
||||
border-radius: 2px;
|
||||
box-shadow: inset 0 0 0 2px rgba(184, 134, 45, 0.25);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.cover-title {
|
||||
writing-mode: vertical-rl;
|
||||
font-family: 'Kaiti SC', 'STKaiti', 'KaiTi', '楷体', serif;
|
||||
font-size: 15px;
|
||||
letter-spacing: 4px;
|
||||
color: #d8b25e;
|
||||
text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
|
||||
}
|
||||
}
|
||||
|
||||
.info {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.name {
|
||||
font-size: 18px;
|
||||
font-weight: 700;
|
||||
color: #8a6d3b;
|
||||
margin-bottom: 10px;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.desc {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 16px;
|
||||
padding: 10px 14px;
|
||||
border: 1px solid #e7dfc8;
|
||||
border-radius: 4px;
|
||||
font-size: 14px;
|
||||
line-height: 1.7;
|
||||
color: #666;
|
||||
|
||||
.desc-text {
|
||||
min-width: 0;
|
||||
display: -webkit-box;
|
||||
-webkit-line-clamp: 2;
|
||||
-webkit-box-orient: vertical;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
/* 详细 / 下载:紧跟在描述文字后面 */
|
||||
.op {
|
||||
flex: none;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 3px;
|
||||
font-size: 14px;
|
||||
color: #a9832f;
|
||||
cursor: pointer;
|
||||
white-space: nowrap;
|
||||
|
||||
&:hover {
|
||||
color: #8a6d3b;
|
||||
text-decoration: underline;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 720px) {
|
||||
.special-item {
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
Vendored
+12
@@ -6,6 +6,18 @@ declare module '*.vue' {
|
||||
export default component
|
||||
}
|
||||
|
||||
/* wordcloud2(Canvas 词云),官方包未提供 TS 声明 */
|
||||
declare module 'wordcloud' {
|
||||
interface WordCloudFn {
|
||||
// canvas 或普通容器(DOM 模式)均可
|
||||
(element: HTMLElement, options: Record<string, unknown>): void
|
||||
stop(): void
|
||||
isSupported: boolean
|
||||
}
|
||||
const WordCloud: WordCloudFn
|
||||
export default WordCloud
|
||||
}
|
||||
|
||||
interface ImportMetaEnv {
|
||||
readonly VITE_APP_TITLE: string
|
||||
readonly VITE_API_BASE_URL: string
|
||||
|
||||
Reference in New Issue
Block a user