百色农校完成
This commit is contained in:
@@ -1,16 +1,20 @@
|
||||
<template>
|
||||
<div class="xl:w-screen-xl m-auto py-4 px-4 sm:px-0">
|
||||
<div class="text-center flex flex-col items-center z-0 relative">
|
||||
<h2 class="text-4xl font-bold tracking-tight text-gray-800 dark:text-white">
|
||||
{{ title || '热点新闻' }}
|
||||
</h2>
|
||||
<div class="sub-title">
|
||||
<p class="text-gray-400 text-sm dark:text-gray-400 py-3">
|
||||
{{ comments || 'Unlimited Scenery' }}
|
||||
</p>
|
||||
</div>
|
||||
<div class="text-center flex justify-between items-center z-0 relative my-5">
|
||||
<el-space class="text-3xl font-bold text-green-600 flex items-center"><el-icon><CameraFilled /></el-icon>校园风光</el-space>
|
||||
<nuxt-link :to="`/article/4145.html`" class="font-normal text-sm text-gray-400 flex items-center cursor-pointer">查看更多<el-icon><ArrowRight /></el-icon></nuxt-link>
|
||||
</div>
|
||||
<el-row :gutter="24" id="container" class="clearfix">
|
||||
<!-- <div class="text-center flex flex-col items-center z-0 relative">-->
|
||||
<!-- <nuxt-link to="/article/4145.html">-->
|
||||
<!-- <span class="text-4xl font-bold tracking-tight text-gray-800 dark:text-white">{{ title }}</span>-->
|
||||
<!-- </nuxt-link>-->
|
||||
<!-- <div class="sub-title">-->
|
||||
<!-- <p class="text-gray-400 text-sm dark:text-gray-400 py-3">-->
|
||||
<!-- {{ comments || 'Unlimited Scenery' }}-->
|
||||
<!-- </p>-->
|
||||
<!-- </div>-->
|
||||
<!-- </div>-->
|
||||
<el-row :gutter="24" class="clearfix">
|
||||
<el-col v-for="(item,index) in list" :key="index" :xs="12" :span="6" class="left mb-6">
|
||||
<el-card shadow="hover" :body-style="{ padding: '0px' }" class=" hover:bg-gray-50 cursor-pointer" @click="navigateTo(`/detail/${item.articleId}.html`)">
|
||||
<el-image
|
||||
@@ -31,7 +35,7 @@
|
||||
<div class="text-gray-400 gap-1 flex items-center"><el-icon><View /></el-icon><span>{{ getViews(item) }}</span></div>
|
||||
</el-space>
|
||||
<div class="text-gray-400">
|
||||
{{ dayjs(item.createTime).format('YYYY-MM-DD') }}
|
||||
{{ dayjs(item.createTime).format('YYYY.MM.DD') }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -52,6 +56,11 @@ import type {CmsArticle} from "~/api/cms/cmsArticle/model";
|
||||
import {listCmsArticle, pageCmsArticle} from "~/api/cms/cmsArticle";
|
||||
import type {CmsArticleParam} from "~/api/cms/cmsArticle/model";
|
||||
import {getImage} from "~/utils/common";
|
||||
import {
|
||||
ArrowRight,
|
||||
Tickets,
|
||||
CameraFilled
|
||||
} from '@element-plus/icons-vue'
|
||||
|
||||
const props = withDefaults(
|
||||
defineProps<{
|
||||
|
||||
Reference in New Issue
Block a user