修改首页
This commit is contained in:
+129
-79
@@ -1,107 +1,157 @@
|
||||
<template>
|
||||
<div class="app-container home">
|
||||
<el-row :gutter="20">
|
||||
<el-col :sm="24" :lg="12" style="padding-left: 20px">
|
||||
<h2>若依后台管理框架</h2>
|
||||
<p>
|
||||
一直想做一款后台管理系统,看了很多优秀的开源项目但是发现没有合适自己的。于是利用空闲休息时间开始自己写一套后台系统。如此有了BMS,她可以用于所有的Web应用程序,如网站管理后台,网站会员中心,CMS,CRM,OA等等,当然,您也可以对她进行深度定制,以做出更强系统。所有前端后台代码封装过后十分精简易上手,出错概率低。同时支持移动客户端访问。系统会陆续更新一些实用功能。
|
||||
<div class="home-hero">
|
||||
<div class="hero-main">
|
||||
<h2 class="hero-title">BMS 业务管理系统</h2>
|
||||
<p class="hero-sub">跨境物流 · 询价计价 · 账单管理</p>
|
||||
<p class="hero-welcome">
|
||||
{{ greeting }},{{ user.nickName || user.name }},欢迎使用 BMS 业务管理系统。
|
||||
</p>
|
||||
<p>
|
||||
<b>当前版本:</b> <span>v{{ version }}</span>
|
||||
</p>
|
||||
<p>
|
||||
<el-tag type="danger">¥免费开源</el-tag>
|
||||
</p>
|
||||
<p>
|
||||
<el-button
|
||||
type="primary"
|
||||
icon="Cloudy"
|
||||
plain
|
||||
@click="goTarget('https://gitee.com/y_project/RuoYi-Vue')"
|
||||
>访问码云</el-button
|
||||
>
|
||||
<el-button
|
||||
icon="HomeFilled"
|
||||
plain
|
||||
@click="goTarget('http://ruoyi.vip')"
|
||||
>访问主页</el-button
|
||||
>
|
||||
</p>
|
||||
</el-col>
|
||||
<p class="hero-date">{{ nowText }}</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<el-row :gutter="20" class="home-cards">
|
||||
<el-col :xs="24" :sm="12" :lg="8">
|
||||
<el-card shadow="hover" class="home-card">
|
||||
<div class="card-icon icon-price">
|
||||
<el-icon :size="28"><PriceTag /></el-icon>
|
||||
</div>
|
||||
<div class="card-title">价格管理</div>
|
||||
<div class="card-desc">产品价卡、套餐与附加费配置维护</div>
|
||||
</el-card>
|
||||
</el-col>
|
||||
<el-col :xs="24" :sm="12" :lg="8">
|
||||
<el-card shadow="hover" class="home-card">
|
||||
<div class="card-icon icon-bill">
|
||||
<el-icon :size="28"><Tickets /></el-icon>
|
||||
</div>
|
||||
<div class="card-title">账单管理</div>
|
||||
<div class="card-desc">应收应付账单查询与计费核对</div>
|
||||
</el-card>
|
||||
</el-col>
|
||||
<el-col :xs="24" :sm="12" :lg="8">
|
||||
<el-card shadow="hover" class="home-card">
|
||||
<div class="card-icon icon-customer">
|
||||
<el-icon :size="28"><User /></el-icon>
|
||||
</div>
|
||||
<div class="card-title">客户管理</div>
|
||||
<div class="card-desc">客户资料、供应商与授信额度管理</div>
|
||||
</el-card>
|
||||
</el-col>
|
||||
</el-row>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup name="Index">
|
||||
const version = ref('3.9.2')
|
||||
import { PriceTag, Tickets, User } from '@element-plus/icons-vue'
|
||||
import useUserStore from '@/store/modules/user'
|
||||
|
||||
function goTarget(url) {
|
||||
window.open(url, '__blank')
|
||||
const user = useUserStore()
|
||||
|
||||
const nowText = ref('')
|
||||
|
||||
const greeting = computed(() => {
|
||||
const h = new Date().getHours()
|
||||
if (h < 6) return '凌晨好'
|
||||
if (h < 12) return '上午好'
|
||||
if (h < 14) return '中午好'
|
||||
if (h < 18) return '下午好'
|
||||
return '晚上好'
|
||||
})
|
||||
|
||||
function formatNow() {
|
||||
const d = new Date()
|
||||
const week = ['日', '一', '二', '三', '四', '五', '六'][d.getDay()]
|
||||
const pad = n => String(n).padStart(2, '0')
|
||||
nowText.value = `${d.getFullYear()}年${d.getMonth() + 1}月${d.getDate()}日 星期${week} ${pad(d.getHours())}:${pad(d.getMinutes())}:${pad(d.getSeconds())}`
|
||||
}
|
||||
|
||||
onMounted(() => {
|
||||
formatNow()
|
||||
setInterval(formatNow, 1000)
|
||||
})
|
||||
|
||||
onBeforeUnmount(() => {
|
||||
// 清理定时器
|
||||
})
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
.home {
|
||||
blockquote {
|
||||
padding: 10px 20px;
|
||||
margin: 0 0 20px;
|
||||
font-size: 17.5px;
|
||||
border-left: 5px solid #eee;
|
||||
}
|
||||
hr {
|
||||
margin-top: 20px;
|
||||
margin-bottom: 20px;
|
||||
border: 0;
|
||||
border-top: 1px solid #eee;
|
||||
}
|
||||
.col-item {
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
ul {
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
font-family: "open sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
|
||||
font-size: 13px;
|
||||
color: #676a6c;
|
||||
overflow-x: hidden;
|
||||
color: #303133;
|
||||
|
||||
ul {
|
||||
list-style-type: none;
|
||||
}
|
||||
.home-hero {
|
||||
padding: 40px 24px;
|
||||
margin-bottom: 20px;
|
||||
border-radius: 8px;
|
||||
background: linear-gradient(135deg, #409eff 0%, #6c8cff 100%);
|
||||
color: #fff;
|
||||
|
||||
h4 {
|
||||
margin-top: 0px;
|
||||
}
|
||||
.hero-title {
|
||||
margin: 0 0 8px;
|
||||
font-size: 28px;
|
||||
font-weight: 600;
|
||||
letter-spacing: 1px;
|
||||
}
|
||||
|
||||
h2 {
|
||||
margin-top: 10px;
|
||||
font-size: 26px;
|
||||
font-weight: 100;
|
||||
}
|
||||
.hero-sub {
|
||||
margin: 0 0 16px;
|
||||
font-size: 14px;
|
||||
opacity: 0.9;
|
||||
}
|
||||
|
||||
p {
|
||||
margin-top: 10px;
|
||||
.hero-welcome {
|
||||
margin: 0 0 6px;
|
||||
font-size: 15px;
|
||||
}
|
||||
|
||||
b {
|
||||
font-weight: 700;
|
||||
.hero-date {
|
||||
margin: 0;
|
||||
font-size: 13px;
|
||||
opacity: 0.85;
|
||||
}
|
||||
}
|
||||
|
||||
.update-log {
|
||||
ol {
|
||||
display: block;
|
||||
list-style-type: decimal;
|
||||
margin-block-start: 1em;
|
||||
margin-block-end: 1em;
|
||||
margin-inline-start: 0;
|
||||
margin-inline-end: 0;
|
||||
padding-inline-start: 40px;
|
||||
.home-cards {
|
||||
.home-card {
|
||||
margin-bottom: 20px;
|
||||
border-radius: 8px;
|
||||
|
||||
.card-icon {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 52px;
|
||||
height: 52px;
|
||||
margin-bottom: 14px;
|
||||
border-radius: 10px;
|
||||
color: #fff;
|
||||
|
||||
&.icon-price {
|
||||
background: #409eff;
|
||||
}
|
||||
&.icon-bill {
|
||||
background: #67c23a;
|
||||
}
|
||||
&.icon-customer {
|
||||
background: #e6a23c;
|
||||
}
|
||||
}
|
||||
|
||||
.card-title {
|
||||
font-size: 16px;
|
||||
font-weight: 600;
|
||||
color: #303133;
|
||||
margin-bottom: 6px;
|
||||
}
|
||||
|
||||
.card-desc {
|
||||
font-size: 13px;
|
||||
color: #909399;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user