956 lines
30 KiB
PHP
956 lines
30 KiB
PHP
{include file="component/head" /}
|
|
<link href="__STATIC__/css/lightbox.min.css" rel="stylesheet">
|
|
<link href="__CSS__/swiper-bundle.min.css" rel="stylesheet">
|
|
<script src="__JS__/jquery.min.js"></script>
|
|
<script src="__JS__/lightbox.min.js"></script>
|
|
<script src="__JS__/swiper-bundle.min.js"></script>
|
|
{include file="component/header-simple" /}
|
|
<div class="main">
|
|
<div class="main-top">
|
|
<div class="main-top-main">
|
|
<div class="main-title">
|
|
<?php echo $resources['title']; ?>
|
|
</div>
|
|
<div class="location">
|
|
<div class="container">
|
|
<div class="location-item">
|
|
<a href="/">首页</a>
|
|
<span>></span>
|
|
<a href="/index/resources/list" id="cateLink"><?php echo $cateName; ?></a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="detail-main">
|
|
<div class="detail-top">
|
|
<div class="detail-top-left">
|
|
<div class="detail-top-card">
|
|
<div class="detail-top-card-left">
|
|
<div class="article-cover">
|
|
<div class="swiper resources-swiper">
|
|
<div class="swiper-wrapper">
|
|
{php}
|
|
// 兼容字符串和数组
|
|
$images = isset($resources['images']) ? $resources['images'] : [];
|
|
if (is_string($images)) {
|
|
$images = explode(',', $images);
|
|
}
|
|
$images = array_filter($images); // 移除空值
|
|
if (empty($images) && !empty($resources['icon'])) {
|
|
$images = [$resources['icon']];
|
|
}
|
|
{/php}
|
|
{volist name="images" id="image"}
|
|
<div class="swiper-slide">
|
|
<a href="<?php $img = trim($image, ', ');
|
|
echo (strpos($img, 'http') === 0 ? $img : request()->domain() . $img); ?>"
|
|
data-lightbox="resources-gallery">
|
|
<img src="<?php $img = trim($image, ', ');
|
|
echo (strpos($img, 'http') === 0 ? $img : request()->domain() . $img); ?>"
|
|
alt="<?php echo $resources['title']; ?>">
|
|
</a>
|
|
</div>
|
|
{/volist}
|
|
</div>
|
|
<div class="swiper-button-prev"></div>
|
|
<div class="swiper-button-next"></div>
|
|
<div class="swiper-pagination"></div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="detail-top-card-right">
|
|
<!-- <div class="detail-top-card-right-top">
|
|
<div class="collect-btn">
|
|
<button class="btn btn-primary" id="collectBtn"
|
|
data-resources-id="<?php echo $resources['id']; ?>">
|
|
<i class="fa-solid fa-heart"></i> 收藏
|
|
</button>
|
|
</div>
|
|
<div class="report-btn">
|
|
<button class="btn btn-primary" id="reportBtn" style="margin-left: 20px;">
|
|
<i class="fa-solid fa-flag"></i> 举报
|
|
</button>
|
|
</div>
|
|
</div> -->
|
|
<div class="detail-top-card-right-middle">
|
|
<div class="resources-info">
|
|
<div class="title">Free</div>
|
|
<div class="infos">
|
|
<div style="display: flex;">
|
|
<div class="infoitem">
|
|
<span>程序编号:</span>
|
|
<span class="infoitem-value"><?php echo $resources['number']; ?></span>
|
|
</div>
|
|
<div class="infoitem">
|
|
<span>所属分类:</span>
|
|
<span class="infoitem-value"><?php echo $cateName; ?></span>
|
|
</div>
|
|
</div>
|
|
<div style="display: flex;">
|
|
<div class="infoitem">
|
|
<span>更新时间:</span>
|
|
<span
|
|
class="infoitem-value"><?php echo date('Y-m-d', $resources['create_time']); ?></span>
|
|
</div>
|
|
<div class="infoitem">
|
|
<span>查看:</span>
|
|
<span class="infoitem-value"><?php echo $resources['views']; ?></span>
|
|
<span>次</span>
|
|
</div>
|
|
<div class="infoitem">
|
|
<span>下载:</span>
|
|
<span class="infoitem-value"><?php echo $resources['downloads']; ?></span>
|
|
<span>次</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="detail-top-card-right-bottom">
|
|
<div class="resources-actions1">
|
|
<div style="display: flex;gap: 30px;}">
|
|
<button id="downloadBtn" class="btn btn-primary">
|
|
<i class="fa-solid fa-download"></i> 立即下载
|
|
</button>
|
|
<button id="codeBtn" class="codebtn">
|
|
<i class="fa-solid fa-download"></i> 分享码:<?php echo $resources['code']; ?>
|
|
</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="detail-top-right">
|
|
<div class="aboutauthor-main">
|
|
<div class="aboutauthor-main-top">
|
|
<div class="aboutauthor-avatar">
|
|
<img src="{$authorInfo.avatar}" alt="作者头像">
|
|
</div>
|
|
<div class="aboutauthor-info">
|
|
<div class="author-name">{$authorInfo.name}</div>
|
|
</div>
|
|
</div>
|
|
<div class="aboutauthor-main-middle">
|
|
<div class="author-stats">
|
|
|
|
<div class="author-stats-item">
|
|
<h6>资源</h6>
|
|
<span class="count">{$authorInfo.resource_count}</span>
|
|
</div>
|
|
<div class="author-stats-item">
|
|
<h6>文章</h6>
|
|
<span class="count">{$authorInfo.article_count}</span>
|
|
</div>
|
|
<div class="author-stats-item">
|
|
<h6>粉丝</h6>
|
|
<span class="count">
|
|
0
|
|
</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="aboutauthor-btn">
|
|
<button class="follow-btn">
|
|
<i class="fa fa-user-plus"></i> 关注他
|
|
</button>
|
|
<button class="message-btn">
|
|
<i class="fa fa-envelope"></i> 发私信
|
|
</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="detail-middle">
|
|
<div class="detial-middle-left">
|
|
<div class="resources-detail">
|
|
<div class="resources-info">
|
|
<div class="resources-content">
|
|
<div class="resources-desc">
|
|
<?php echo $resources['content']; ?>
|
|
</div>
|
|
</div>
|
|
<div class="resources-actions">
|
|
<div style="display: flex;gap: 30px;}">
|
|
<button id="downloadBtn" class="btn btn-primary">
|
|
<i class="fa-solid fa-download"></i> 立即下载
|
|
</button>
|
|
<button id="codeBtn" class="codebtn">
|
|
<i class="fa-solid fa-download"></i> 分享码:<?php echo $resources['code']; ?>
|
|
</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="disclaimers">
|
|
<div class="disclaimer-item">
|
|
<div class="disclaimer-title">免责声明:</div>
|
|
<div class="disclaimer-content">
|
|
<?php echo $config['disclaimers'] ?>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="resources-navigation">
|
|
<div class="prev-resources" id="prevResources">
|
|
</div>
|
|
<div class="next-resources" id="nextResources">
|
|
</div>
|
|
</div>
|
|
|
|
<!-- 相关资源 -->
|
|
<?php if (!empty($relatedResourcess)): ?>
|
|
<div class="related-resourcess">
|
|
<h3>相关资源</h3>
|
|
<div class="resources-list">
|
|
<?php foreach ($relatedResourcess as $related): ?>
|
|
<div class="resources-item"
|
|
onclick="window.location.href='/index/resources/detail?id=<?php echo $related['id']; ?>'">
|
|
<div class="resources-cover">
|
|
<img src="<?php echo $related['icon'] ?: '/static/images/default-resources.png'; ?>"
|
|
alt="<?php echo $related['title']; ?>">
|
|
</div>
|
|
<div class="resources-info">
|
|
<h4 class="resources-title-1"><?php echo $related['title']; ?></h4>
|
|
</div>
|
|
</div>
|
|
<?php endforeach; ?>
|
|
</div>
|
|
</div>
|
|
<?php endif; ?>
|
|
</div>
|
|
</div>
|
|
<div class="detial-middle-right">
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<!-- 返回顶部按钮 -->
|
|
<div class="go-to-top" id="goToTop">
|
|
<i class="layui-icon layui-icon-top"></i>
|
|
</div>
|
|
|
|
{include file="component/footer" /}
|
|
|
|
<script>
|
|
// 页面加载完成后执行
|
|
document.addEventListener('DOMContentLoaded', function () {
|
|
|
|
// 获取资源ID
|
|
const resourcesId = new URLSearchParams(window.location.search).get('id');
|
|
if (!resourcesId) {
|
|
alert('资源ID不存在');
|
|
return;
|
|
}
|
|
|
|
// 获取资源详情
|
|
fetch('/index/resources/detail?id=' + resourcesId, {
|
|
headers: {
|
|
'X-Requested-With': 'XMLHttpRequest'
|
|
}
|
|
})
|
|
.then(response => response.json())
|
|
.then(result => {
|
|
if (result.code === 1) {
|
|
// 渲染上一篇
|
|
const prevResources = document.getElementById('prevResources');
|
|
if (result.data.prevResources) {
|
|
prevResources.innerHTML = `
|
|
<a href="/index/resources/detail?id=${result.data.prevResources.id}">
|
|
<i class="fa fa-arrow-left"></i> 上一篇:${result.data.prevResources.title}
|
|
</a>
|
|
`;
|
|
} else {
|
|
prevResources.innerHTML = '<span class="disabled"><i class="fa fa-arrow-left"></i> 没有上一篇了</span>';
|
|
}
|
|
|
|
// 渲染下一篇
|
|
const nextResources = document.getElementById('nextResources');
|
|
if (result.data.nextResources) {
|
|
nextResources.innerHTML = `
|
|
<a href="/index/resources/detail?id=${result.data.nextResources.id}">
|
|
下一篇:${result.data.nextResources.title} <i class="fa fa-arrow-right"></i>
|
|
</a>
|
|
`;
|
|
} else {
|
|
nextResources.innerHTML = '<span class="disabled">没有下一篇了 <i class="fa fa-arrow-right"></i></span>';
|
|
}
|
|
}
|
|
})
|
|
.catch(error => {
|
|
console.error('获取资源详情失败:', error);
|
|
});
|
|
|
|
// 更新访问次数
|
|
updateResourcesViews(resourcesId);
|
|
|
|
// 下载功能
|
|
const downloadBtn = document.getElementById('downloadBtn');
|
|
if (downloadBtn) {
|
|
downloadBtn.addEventListener('click', function () {
|
|
fetch('/index/resources/downloadurl?id=' + resourcesId, {
|
|
method: 'GET',
|
|
headers: {
|
|
'X-Requested-With': 'XMLHttpRequest'
|
|
}
|
|
})
|
|
.then(response => {
|
|
if (!response.ok) {
|
|
throw new Error('网络响应失败');
|
|
}
|
|
return response.json();
|
|
})
|
|
.then(data => {
|
|
if (data.code === 1) {
|
|
const downloadsElement = document.getElementById('resourcesDownloads');
|
|
if (downloadsElement) {
|
|
let downloads = parseInt(downloadsElement.textContent);
|
|
downloadsElement.textContent = downloads + 1;
|
|
}
|
|
|
|
// 直接使用返回的URL
|
|
if (data.data && data.data.url) {
|
|
window.open(data.data.url, '_blank');
|
|
} else {
|
|
alert('下载地址不存在');
|
|
}
|
|
} else {
|
|
alert('下载失败:' + data.msg);
|
|
}
|
|
})
|
|
.catch(error => {
|
|
console.error('下载请求失败:', error);
|
|
alert('下载请求失败,请稍后重试');
|
|
});
|
|
});
|
|
}
|
|
|
|
|
|
const swiper = new Swiper('.resources-swiper', {
|
|
slidesPerView: 1,
|
|
spaceBetween: 30,
|
|
loop: true,
|
|
autoplay: {
|
|
delay: 3000,
|
|
disableOnInteraction: false,
|
|
},
|
|
pagination: {
|
|
el: '.swiper-pagination',
|
|
clickable: true,
|
|
},
|
|
navigation: {
|
|
nextEl: '.swiper-button-next',
|
|
prevEl: '.swiper-button-prev',
|
|
},
|
|
});
|
|
|
|
// 初始化 Lightbox
|
|
lightbox.option({
|
|
'resizeDuration': 200,
|
|
'wrapAround': true,
|
|
'albumLabel': "图片 %1 / %2",
|
|
'fadeDuration': 300,
|
|
'imageFadeDuration': 300,
|
|
'positionFromTop': 100,
|
|
'maxWidth': 1200,
|
|
'maxHeight': 800,
|
|
'disableScrolling': true,
|
|
'showImageNumberLabel': true,
|
|
'alwaysShowNavOnTouchDevices': true
|
|
});
|
|
|
|
//复制分享码
|
|
const codeBtn = document.getElementById('codeBtn');
|
|
if (codeBtn) {
|
|
codeBtn.addEventListener('click', function () {
|
|
const code = '<?php echo $resources['code']; ?>';
|
|
if (code) {
|
|
// 创建一个临时输入框
|
|
const tempInput = document.createElement('input');
|
|
tempInput.value = code;
|
|
document.body.appendChild(tempInput);
|
|
tempInput.select();
|
|
|
|
try {
|
|
// 尝试使用传统的复制方法
|
|
document.execCommand('copy');
|
|
layer.msg('分享码已复制到剪贴板');
|
|
} catch (err) {
|
|
console.error('复制失败:', err);
|
|
layer.msg('复制失败,请手动复制');
|
|
} finally {
|
|
// 移除临时输入框
|
|
document.body.removeChild(tempInput);
|
|
}
|
|
} else {
|
|
layer.msg('分享码不存在');
|
|
}
|
|
});
|
|
}
|
|
|
|
// 返回顶部功能
|
|
const goToTop = document.getElementById('goToTop');
|
|
if (goToTop) {
|
|
window.addEventListener('scroll', function () {
|
|
if (window.pageYOffset > 300) {
|
|
goToTop.classList.add('show');
|
|
} else {
|
|
goToTop.classList.remove('show');
|
|
}
|
|
});
|
|
goToTop.addEventListener('click', function () {
|
|
window.scrollTo({
|
|
top: 0,
|
|
behavior: 'smooth'
|
|
});
|
|
});
|
|
}
|
|
});
|
|
|
|
// 更新资源访问次数
|
|
function updateResourcesViews(resourcesId) {
|
|
fetch('/index/resources/updateViews', {
|
|
method: 'POST',
|
|
headers: {
|
|
'Content-Type': 'application/x-www-form-urlencoded',
|
|
'X-Requested-With': 'XMLHttpRequest'
|
|
},
|
|
body: 'id=' + resourcesId
|
|
})
|
|
.then(response => response.json())
|
|
.then(result => {
|
|
if (result.code === 1) {
|
|
const viewsElement = document.querySelector('.resources-views');
|
|
if (viewsElement) {
|
|
viewsElement.innerHTML = `<i class="fa-solid fa-eye"></i> ${result.data.views}`;
|
|
}
|
|
}
|
|
})
|
|
.catch(error => {
|
|
console.error('更新访问次数失败:', error);
|
|
});
|
|
}
|
|
</script>
|
|
|
|
<style>
|
|
.main-top {
|
|
width: 100%;
|
|
height: 400px;
|
|
background-color: #0081ff;
|
|
/* background: url('/static/images/top-bg.jpg') no-repeat center center; */
|
|
position: relative;
|
|
}
|
|
|
|
.main-top-card {
|
|
max-width: 1400px;
|
|
margin: 0 auto;
|
|
margin-top: 30px;
|
|
border-radius: 8px;
|
|
background-color: #fff;
|
|
height: 300px;
|
|
}
|
|
|
|
.main-top-main {
|
|
max-width: 1400px;
|
|
margin: 0 auto;
|
|
padding-top: 50px;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
position: absolute;
|
|
top: 0;
|
|
left: 50%;
|
|
transform: translateX(-50%);
|
|
width: 100%;
|
|
z-index: 1;
|
|
}
|
|
|
|
.main-top-main .main-title {
|
|
font-size: 30px;
|
|
font-weight: 700;
|
|
max-width: 1000px;
|
|
color: #fff;
|
|
}
|
|
|
|
.detail-top {
|
|
max-width: 1400px;
|
|
/* height: 300px; */
|
|
margin: 30px auto;
|
|
position: relative;
|
|
background-color: #fff;
|
|
border-radius: 8px;
|
|
box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
|
|
display: flex;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
.detail-top-left {
|
|
width: 70%;
|
|
}
|
|
|
|
.detail-top-right {
|
|
width: 30%;
|
|
border-left: 1px solid #eee;
|
|
margin: 20px;
|
|
}
|
|
|
|
.detail-top-card {
|
|
width: 100%;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 20px;
|
|
}
|
|
|
|
|
|
.detail-top-card img {
|
|
width: 350px;
|
|
height: 260px;
|
|
border-radius: 8px;
|
|
object-fit: cover;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.detail-top-card-right {
|
|
/* height: 230px; */
|
|
display: flex;
|
|
width: 100%;
|
|
margin-left: 20px;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.detail-top-card-right-top {
|
|
display: flex;
|
|
margin-top: 25px;
|
|
}
|
|
|
|
.detail-top-card-right-middle {}
|
|
|
|
.detail-top-card-right-middle .resources-info {
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: space-between;
|
|
height: 100%;
|
|
}
|
|
|
|
.detail-top-card-right-middle .resources-info .title {
|
|
font-size: 30px;
|
|
font-weight: 700;
|
|
color: #42d697;
|
|
margin-bottom: 15px;
|
|
}
|
|
|
|
.detail-top-card-right-middle .resources-info .infos {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 20px;
|
|
}
|
|
|
|
.detail-top-card-right-middle .resources-info .infos .infoitem {
|
|
margin-right: 40px;
|
|
}
|
|
|
|
.detail-top-card-right-middle .resources-info .infos .infoitem span {
|
|
color: #7d879c;
|
|
}
|
|
|
|
.detail-middle {
|
|
max-width: 1400px;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
.detail-main {
|
|
position: relative;
|
|
top: -200px;
|
|
left: 0;
|
|
width: 100%;
|
|
z-index: 2;
|
|
}
|
|
|
|
.location {
|
|
color: #fff;
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.location a {
|
|
color: #fff !important;
|
|
}
|
|
|
|
.resources-detail {
|
|
padding: 50px;
|
|
background: #fff;
|
|
box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
|
|
border-radius: 8px;
|
|
}
|
|
|
|
.resources-header {
|
|
margin-bottom: 30px;
|
|
border-bottom: 1px solid #eee;
|
|
padding-bottom: 20px;
|
|
}
|
|
|
|
.resources-title {
|
|
font-size: 30px;
|
|
font-weight: 700;
|
|
color: #333;
|
|
margin-bottom: 15px;
|
|
line-height: 1.4;
|
|
display: -webkit-box;
|
|
-webkit-line-clamp: 2;
|
|
-webkit-box-orient: vertical;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.resources-title-1 {
|
|
font-size: 16px;
|
|
font-weight: 700;
|
|
color: #333;
|
|
margin-bottom: 15px;
|
|
line-height: 1.4;
|
|
display: -webkit-box;
|
|
-webkit-line-clamp: 2;
|
|
-webkit-box-orient: vertical;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.resources-meta {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 20px;
|
|
color: #666;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.resources-meta span {
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.resources-meta i {
|
|
margin-right: 5px;
|
|
}
|
|
|
|
.resources-content {
|
|
line-height: 1.8;
|
|
color: #333;
|
|
font-size: 16px;
|
|
margin-bottom: 30px;
|
|
}
|
|
|
|
.resources-cover {
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.resources-cover img {
|
|
width: 100%;
|
|
height: 300px;
|
|
object-fit: cover;
|
|
border-radius: 8px;
|
|
}
|
|
|
|
.resources-desc {
|
|
margin-bottom: 30px;
|
|
}
|
|
|
|
.resources-actions {
|
|
display: flex;
|
|
justify-content: center;
|
|
gap: 40px;
|
|
margin: 30px 0;
|
|
padding: 20px 0;
|
|
border-top: 1px solid #eee;
|
|
border-bottom: 1px solid #eee;
|
|
}
|
|
|
|
.resources-actions1 {
|
|
display: flex;
|
|
margin: 20px 0;
|
|
}
|
|
|
|
.resources-navigation {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
margin: 30px 0;
|
|
}
|
|
|
|
.prev-resources,
|
|
.next-resources {
|
|
max-width: 45%;
|
|
}
|
|
|
|
.prev-resources a,
|
|
.next-resources a {
|
|
color: #333 !important;
|
|
text-decoration: none;
|
|
}
|
|
|
|
.prev-resources a:hover,
|
|
.next-resources a:hover {
|
|
color: #f57005 !important;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.btn {
|
|
/* background: #f57005; */
|
|
color: #fff;
|
|
padding: 5px 15px;
|
|
border-radius: 8px;
|
|
cursor: pointer;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.btn:hover {
|
|
/* background: #e66600; */
|
|
transform: translateY(-2px);
|
|
}
|
|
|
|
.codebtn {
|
|
color: #0d6efd;
|
|
padding: 15px 30px;
|
|
border-radius: 8px;
|
|
border: 1px solid #0d6efd;
|
|
cursor: pointer;
|
|
transition: all 0.3s ease;
|
|
background-color: #fff;
|
|
}
|
|
|
|
.codebtn:hover {
|
|
transform: translateY(-2px);
|
|
}
|
|
|
|
.related-resourcess {
|
|
margin: 40px 0;
|
|
}
|
|
|
|
.related-resourcess h3 {
|
|
font-size: 20px;
|
|
font-weight: 600;
|
|
margin-bottom: 20px;
|
|
padding-bottom: 10px;
|
|
border-bottom: 1px solid #eee;
|
|
}
|
|
|
|
.related-title {
|
|
font-size: 20px;
|
|
font-weight: 600;
|
|
margin-bottom: 20px;
|
|
padding-bottom: 10px;
|
|
border-bottom: 1px solid #eee;
|
|
}
|
|
|
|
.resources-list {
|
|
display: grid;
|
|
grid-template-columns: repeat(5, 1fr);
|
|
gap: 20px;
|
|
}
|
|
|
|
.resources-item {
|
|
border-radius: 8px;
|
|
overflow: hidden;
|
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
|
|
transition: transform 0.3s;
|
|
}
|
|
|
|
.resources-item:hover {
|
|
transform: translateY(-5px);
|
|
}
|
|
|
|
.resources-item a {
|
|
text-decoration: none;
|
|
color: inherit;
|
|
}
|
|
|
|
.resources-cover img {
|
|
width: 100%;
|
|
height: 150px;
|
|
object-fit: cover;
|
|
}
|
|
|
|
.resources-info {
|
|
padding: 10px;
|
|
}
|
|
|
|
.go-to-top {
|
|
position: fixed;
|
|
right: 30px;
|
|
bottom: 30px;
|
|
width: 40px;
|
|
height: 40px;
|
|
background: #f57005;
|
|
color: #fff;
|
|
border-radius: 50%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
cursor: pointer;
|
|
opacity: 0;
|
|
visibility: hidden;
|
|
transition: all 0.3s ease;
|
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
|
|
z-index: 1000;
|
|
}
|
|
|
|
.go-to-top.show {
|
|
opacity: 1;
|
|
visibility: visible;
|
|
}
|
|
|
|
.go-to-top:hover {
|
|
background: #e66600;
|
|
transform: translateY(-3px);
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.resources-title {
|
|
font-size: 24px;
|
|
}
|
|
|
|
.resources-list {
|
|
grid-template-columns: repeat(1, 1fr);
|
|
}
|
|
|
|
.resources-meta {
|
|
gap: 10px;
|
|
}
|
|
|
|
.go-to-top {
|
|
right: 20px;
|
|
bottom: 20px;
|
|
width: 36px;
|
|
height: 36px;
|
|
}
|
|
}
|
|
|
|
.disclaimers {
|
|
color: #b1b1b1;
|
|
width: 80%;
|
|
margin: 20px auto;
|
|
margin-bottom: 60px;
|
|
}
|
|
|
|
.disclaimer-title {
|
|
font-size: 16px;
|
|
font-weight: 600;
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.disclaimer-content {
|
|
font-size: 14px;
|
|
line-height: 1.6;
|
|
}
|
|
|
|
.disclaimer-content p {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.infoitem-value {
|
|
border: 1px #0d6efd dashed;
|
|
padding: 3px 6px;
|
|
font-size: 13px;
|
|
background-color: #0081ff12;
|
|
border-radius: 5px;
|
|
}
|
|
|
|
.detail-top-card-left {
|
|
width: 350px;
|
|
}
|
|
|
|
.swiper .swiper-button-prev,
|
|
.swiper .swiper-button-next {
|
|
color: #3881fd;
|
|
background: rgba(255, 255, 255, 0.9);
|
|
width: 40px;
|
|
height: 40px;
|
|
border-radius: 50%;
|
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
|
|
}
|
|
|
|
.swiper .swiper-button-prev:after,
|
|
.swiper .swiper-button-next:after {
|
|
font-size: 18px;
|
|
}
|
|
|
|
/* about author css */
|
|
.detail-top-right .aboutauthor-main {
|
|
display: flex;
|
|
flex-direction: column;
|
|
padding: 20px;
|
|
}
|
|
|
|
.detail-top-right .aboutauthor-main .aboutauthor-main-top {
|
|
display: flex;
|
|
align-items: center;
|
|
padding-left: 20px !important;
|
|
padding: 20px 0;
|
|
border-bottom: 1px solid #efefef;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.detail-top-right .aboutauthor-main .aboutauthor-main-top .aboutauthor-avatar {
|
|
margin-right: 12px;
|
|
}
|
|
|
|
.detail-top-right .aboutauthor-main .aboutauthor-main-top .aboutauthor-info .author-name {
|
|
font-size: 20px;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.detail-top-right .aboutauthor-main .aboutauthor-main-top .aboutauthor-avatar img {
|
|
width: 60px;
|
|
height: 60px;
|
|
border-radius: 4px;
|
|
box-sizing: border-box;
|
|
margin: 0px;
|
|
min-width: 0px;
|
|
max-width: 100%;
|
|
background-color: #fff;
|
|
}
|
|
|
|
.detail-top-right .aboutauthor-main .aboutauthor-main-middle {
|
|
/* margin-left: 20px; */
|
|
}
|
|
|
|
.detail-top-right .aboutauthor-main .aboutauthor-main-middle .author-stats {
|
|
display: flex;
|
|
justify-content: space-evenly;
|
|
}
|
|
|
|
.detail-top-right .aboutauthor-main .aboutauthor-main-middle .author-stats .author-stats-item {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
}
|
|
|
|
.detail-top-right .aboutauthor-main .aboutauthor-main-middle .author-stats .author-stats-item .count {
|
|
/* font-size: 30px; */
|
|
font-weight: 700;
|
|
}
|
|
|
|
.detail-top-right .aboutauthor-btn {
|
|
display: flex;
|
|
justify-content: space-evenly;
|
|
padding: 20px 0;
|
|
}
|
|
|
|
.detail-top-right .aboutauthor-btn .follow-btn {
|
|
background-color: #0081ff;
|
|
color: #fff;
|
|
padding: 10px 20px;
|
|
border-radius: 8px;
|
|
border: none;
|
|
}
|
|
|
|
.detail-top-right .aboutauthor-btn .message-btn {
|
|
color: #0081ff;
|
|
padding: 10px 20px;
|
|
border-radius: 8px;
|
|
border: 1px solid #eee;
|
|
}
|
|
</style>
|
|
|
|
{include file="component/foot" /}
|