fix:修改样式

This commit is contained in:
lz-ui 2025-09-17 11:04:09 +08:00
parent d2a4940482
commit aaa6e169a0
22 changed files with 199 additions and 45 deletions

View File

@ -54,4 +54,4 @@ yarn dev
Copyright ©2025 北京数维无穹科技有限公司 Copyright ©2025 北京数维无穹科技有限公司

BIN
src/assets/images/login.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 653 KiB

View File

@ -4,7 +4,7 @@
@use './sidebar.scss'; @use './sidebar.scss';
@use './btn.scss'; @use './btn.scss';
@use './ruoyi.scss'; @use './ruoyi.scss';
@use './reset.scss';
body { body {
height: 100%; height: 100%;
margin: 0; margin: 0;

View File

@ -0,0 +1,125 @@
:root{
--app-header-height: 80px;
--app-nav-bj: #F4F8FF;
--el-text-color-primary: #1f2329;
}
#app .sidebar-container .el-menu,
#app .main-container{
background-color: var(--app-nav-bj) !important;
}
#app .app-main{
border-radius: 16px;
box-sizing: border-box;
background-color: #fff;
}
#app .sidebar-container .svg-icon{
margin-right: 8px;
}
/* flex */
.flex {
display: flex;
}
.flex-center {
display: flex;
align-items: center;
justify-content: center;
}
.flex-between {
display: flex;
justify-content: space-between;
align-items: center;
}
.flex-wrap {
display: flex;
flex-wrap: wrap;
align-content: space-between;
}
.flex-direction-column {
display: flex;
flex-direction: column;
}
.align-center {
align-items: center;
}
.align-baseline {
align-items: baseline;
}
.justify-center {
justify-content: center;
}
.text-left {
text-align: left;
}
.text-center {
text-align: center;
}
.text-right {
text-align: right;
}
.vertical-middle {
vertical-align: middle;
}
.cursor {
cursor: pointer;
}
.mr-6{
margin-right: 6px;
}
.mb-20{
margin-bottom: 20px;
}
/* 重置tabs */
.res-el-tab {
--el-tabs-header-height: 60px;
height: 100%;
.el-tabs__nav-wrap:after {
height: 0 !important;
}
.el-tabs__active-bar {
height: 4px;
border-radius: 4px 4px 0 0;
}
}
/* 重置message */
.el-message-box{
padding: 24px;
--el-messagebox-font-size: 16px;
--el-messagebox-width: 475px;
.el-message-box__headerbtn{
right: 10px;
top: 15px;
.el-message-box__close {
font-size: 20px;
}
}
.el-message-box__header,
.el-message-box__btns{
padding: 0;
}
.el-message-box__content {
padding: 24px 0;
font-weight: 400;
}
.el-message-box__message{
color: var(--el-text-color-primary);
}
}

View File

@ -78,7 +78,7 @@
.el-table__header-wrapper, .el-table__fixed-header-wrapper { .el-table__header-wrapper, .el-table__fixed-header-wrapper {
th { th {
word-break: break-word; word-break: break-word;
background-color: #f8f8f9 !important; background-color: var(--app-nav-bj) !important;
color: #515a6e; color: #515a6e;
height: 40px !important; height: 40px !important;
font-size: 13px; font-size: 13px;
@ -151,7 +151,7 @@
/** 表格更多操作下拉样式 */ /** 表格更多操作下拉样式 */
.el-table .el-dropdown-link { .el-table .el-dropdown-link {
cursor: pointer; cursor: pointer;
color: #409EFF; color: #3067EF;
margin-left: 10px; margin-left: 10px;
} }

View File

@ -24,8 +24,12 @@
left: 0; left: 0;
z-index: 1001; z-index: 1001;
overflow: hidden; overflow: hidden;
-webkit-box-shadow: 2px 0 6px rgba(0,21,41,.35); // -webkit-box-shadow: 2px 0 6px rgba(0,21,41,.35);
box-shadow: 0px 0px 8px 0px rgba(0, 0, 0, 0.1); // box-shadow: 0px 0px 8px 0px rgba(0, 0, 0, 0.1);
background-color: var(--app-nav-bj) !important;
.sidebar-logo-container{
background-color: var(--app-nav-bj) !important;
}
// reset element-ui css // reset element-ui css
.horizontal-collapse-transition { .horizontal-collapse-transition {
@ -84,7 +88,7 @@
.sub-menu-title-noDropdown, .sub-menu-title-noDropdown,
.el-sub-menu__title { .el-sub-menu__title {
&:hover { &:hover {
background-color: rgba(0, 0, 0, 0.06) !important; background-color: var(--app-nav-bj) !important;
} }
} }
@ -97,7 +101,7 @@
min-width: vars.$base-sidebar-width !important; min-width: vars.$base-sidebar-width !important;
&:hover { &:hover {
background-color: rgba(0, 0, 0, 0.06) !important; background-color: var(--app-nav-bj) !important;
} }
} }
@ -213,7 +217,7 @@
.el-menu-item { .el-menu-item {
&:hover { &:hover {
// you can use $sub-menuHover // you can use $sub-menuHover
background-color: rgba(0, 0, 0, 0.06) !important; background-color: var(--app-nav-bj) !important;
} }
} }

View File

@ -10,7 +10,7 @@ $panGreen: #30B08F;
// 默认主题变量 // 默认主题变量
$menuText: #bfcbd9; $menuText: #bfcbd9;
$menuActiveText: #409eff; $menuActiveText: #3067EF;
$menuBg: #304156; $menuBg: #304156;
$menuHover: #263445; $menuHover: #263445;
@ -18,7 +18,7 @@ $menuHover: #263445;
$menuLightBg: #ffffff; $menuLightBg: #ffffff;
$menuLightHover: #f0f1f5; $menuLightHover: #f0f1f5;
$menuLightText: #303133; $menuLightText: #303133;
$menuLightActiveText: #409EFF; $menuLightActiveText: #3067EF;
// 基础变量 // 基础变量
$base-sidebar-width: 200px; $base-sidebar-width: 200px;
@ -32,7 +32,7 @@ $base-sub-menu-background: #1f2d3d;
$base-sub-menu-hover: #001528; $base-sub-menu-hover: #001528;
// 组件变量 // 组件变量
$--color-primary: #409EFF; $--color-primary: #3067EF;
$--color-success: #67C23A; $--color-success: #67C23A;
$--color-warning: #E6A23C; $--color-warning: #E6A23C;
$--color-danger: #F56C6C; $--color-danger: #F56C6C;

View File

@ -38,7 +38,7 @@ function addIframe() {
<style lang="scss" scoped> <style lang="scss" scoped>
.app-main { .app-main {
/* 50= navbar 50 */ /* 50= navbar 50 */
min-height: calc(100vh - 50px); min-height: calc(100vh - var(--app-header-height));
width: 100%; width: 100%;
position: relative; position: relative;
overflow: hidden; overflow: hidden;
@ -47,7 +47,7 @@ function addIframe() {
.fixed-header + .app-main { .fixed-header + .app-main {
overflow-y: auto; overflow-y: auto;
scrollbar-gutter: auto; scrollbar-gutter: auto;
height: calc(100vh - 50px); height: calc(100vh - var(--app-header-height));
min-height: 0px; min-height: 0px;
} }
@ -56,18 +56,18 @@ function addIframe() {
} }
.fixed-header + .app-main { .fixed-header + .app-main {
margin-top: 50px; margin-top: var(--app-header-height);
} }
.hasTagsView { .hasTagsView {
.app-main { .app-main {
/* 84 = navbar + tags-view = 50 + 34 */ /* 84 = navbar + tags-view = 50 + 34 */
min-height: calc(100vh - 84px); min-height: calc(100vh - var(--app-header-height) - 34px);
} }
.fixed-header + .app-main { .fixed-header + .app-main {
margin-top: 84px; margin-top: var(--app-header-height) + 34px;
height: calc(100vh - 84px); height: calc(100vh - var(--app-header-height) - 34px);
min-height: 0px; min-height: 0px;
} }
} }

View File

@ -1,7 +1,7 @@
<template> <template>
<div class="navbar"> <div class="navbar">
<hamburger id="hamburger-container" :is-active="appStore.sidebar.opened" class="hamburger-container" @toggleClick="toggleSideBar" /> <hamburger id="hamburger-container" :is-active="appStore.sidebar.opened" class="hamburger-container" @toggleClick="toggleSideBar" />
<breadcrumb v-if="!settingsStore.topNav" id="breadcrumb-container" class="breadcrumb-container" /> <breadcrumb v-if="settingsStore.topNav" id="breadcrumb-container" class="breadcrumb-container" />
<top-nav v-if="settingsStore.topNav" id="topmenu-container" class="topmenu-container" /> <top-nav v-if="settingsStore.topNav" id="topmenu-container" class="topmenu-container" />
<div class="right-menu"> <div class="right-menu">
@ -102,14 +102,14 @@ function toggleTheme() {
<style lang='scss' scoped> <style lang='scss' scoped>
.navbar { .navbar {
height: 50px; height: var(--app-header-height);
overflow: hidden; overflow: hidden;
position: relative; position: relative;
background: var(--navbar-bg); background: var(--app-nav-bj);
box-shadow: 0 1px 4px rgba(0, 21, 41, 0.08); // box-shadow: 0 1px 4px rgba(0, 21, 41, 0.08);
.hamburger-container { .hamburger-container {
line-height: 46px; line-height: 60px;
height: 100%; height: 100%;
float: left; float: left;
cursor: pointer; cursor: pointer;
@ -117,7 +117,7 @@ function toggleTheme() {
-webkit-tap-highlight-color: transparent; -webkit-tap-highlight-color: transparent;
&:hover { &:hover {
background: rgba(0, 0, 0, 0.025); background-color: var(--app-nav-bj);
} }
} }
@ -158,7 +158,7 @@ function toggleTheme() {
transition: background 0.3s; transition: background 0.3s;
&:hover { &:hover {
background: rgba(0, 0, 0, 0.025); background-color: var(--app-nav-bj);
} }
} }
@ -181,7 +181,8 @@ function toggleTheme() {
padding-right: 0px; padding-right: 0px;
.avatar-wrapper { .avatar-wrapper {
margin-top: 10px; margin-top: 20px;
margin-right: 10px;
right: 8px; right: 8px;
position: relative; position: relative;

View File

@ -106,7 +106,7 @@ const showSettings = ref(false)
const theme = ref(settingsStore.theme) const theme = ref(settingsStore.theme)
const sideTheme = ref(settingsStore.sideTheme) const sideTheme = ref(settingsStore.sideTheme)
const storeSettings = computed(() => settingsStore) const storeSettings = computed(() => settingsStore)
const predefineColors = ref(["#409EFF", "#ff4500", "#ff8c00", "#ffd700", "#90ee90", "#00ced1", "#1e90ff", "#c71585"]) const predefineColors = ref(["#3067EF", "#ff4500", "#ff8c00", "#ffd700", "#90ee90", "#00ced1", "#1e90ff", "#c71585"])
/** 是否需要topnav */ /** 是否需要topnav */
function topNavChange(val) { function topNavChange(val) {

View File

@ -59,8 +59,8 @@ const getLogoTextColor = computed(() => {
.sidebar-logo-container { .sidebar-logo-container {
position: relative; position: relative;
width: 100%; width: 100%;
height: 50px; height: 65px;
line-height: 50px; line-height: 65px;
background: v-bind(getLogoBackground); background: v-bind(getLogoBackground);
text-align: center; text-align: center;
overflow: hidden; overflow: hidden;

View File

@ -91,7 +91,7 @@ const activeMenu = computed(() => {
color: v-bind(getMenuTextColor); color: v-bind(getMenuTextColor);
&.is-active { &.is-active {
color: var(--menu-active-text, #409eff); color: var(--menu-active-text, #3067EF);
background-color: var(--menu-hover, rgba(0, 0, 0, 0.06)) !important; background-color: var(--menu-hover, rgba(0, 0, 0, 0.06)) !important;
} }
} }

View File

@ -12,17 +12,22 @@ export default {
/** /**
* 是否系统布局配置 * 是否系统布局配置
*/ */
showSettings: true, showSettings: false,
/** /**
* 是否显示顶部导航 * 是否显示顶部导航
*/ */
topNav: false, topNav: false,
/**
* 是否显示汉堡菜单
*/
showHamburger: true,
/** /**
* 是否显示 tagsView * 是否显示 tagsView
*/ */
tagsView: true, tagsView: false,
/** /**
* 显示页签图标 * 显示页签图标
@ -32,7 +37,7 @@ export default {
/** /**
* 是否固定头部 * 是否固定头部
*/ */
fixedHeader: false, fixedHeader: true,
/** /**
* 是否显示logo * 是否显示logo

View File

@ -14,7 +14,7 @@ const useSettingsStore = defineStore(
{ {
state: () => ({ state: () => ({
title: '', title: '',
theme: storageSetting.theme || '#409EFF', theme: storageSetting.theme || '#3067EF',
sideTheme: storageSetting.sideTheme || sideTheme, sideTheme: storageSetting.sideTheme || sideTheme,
showSettings: showSettings, showSettings: showSettings,
topNav: storageSetting.topNav === undefined ? topNav : storageSetting.topNav, topNav: storageSetting.topNav === undefined ? topNav : storageSetting.topNav,

View File

@ -59,7 +59,7 @@
</el-form> </el-form>
<!-- 底部 --> <!-- 底部 -->
<div class="el-login-footer"> <div class="el-login-footer">
<span>Copyright ©2025 北京数维无穹科技有限公司</span> <span>Copyright ©2025 北京数维无穹科技有限公司</span>
</div> </div>
</div> </div>
</template> </template>
@ -169,7 +169,7 @@ getCookie()
justify-content: center; justify-content: center;
align-items: center; align-items: center;
height: 100%; height: 100%;
background-image: url("../assets/images/login-background.jpg"); background-image: url("../assets/images/login.png");
background-size: cover; background-size: cover;
} }
.title { .title {

View File

@ -70,7 +70,7 @@
</el-form> </el-form>
<!-- 底部 --> <!-- 底部 -->
<div class="el-register-footer"> <div class="el-register-footer">
<span>Copyright ©2025 北京数维无穹科技有限公司</span> <span>Copyright ©2025 北京数维无穹科技有限公司</span>
</div> </div>
</div> </div>
</template> </template>
@ -161,7 +161,7 @@ getCode()
justify-content: center; justify-content: center;
align-items: center; align-items: center;
height: 100%; height: 100%;
background-image: url("../assets/images/login-background.jpg"); background-image: url("../assets/images/login.png");
background-size: cover; background-size: cover;
} }
.title { .title {

View File

@ -1,11 +1,19 @@
<template> <template>
<div class="app-container" v-loading="loading"> <div class="app-container" v-loading="loading">
<!--顶部-->
<div class="flex align-center mb-20">
<el-icon @click="proxy.$router.go(-1)" class="mr-6 cursor">
<ArrowLeftBold />
</el-icon>
{{ data && data.reportTime }}
</div>
<el-row :gutter="20"> <el-row :gutter="20">
<el-col :xs="24" :sm="24" :md="24" :lg="24"> <el-col :xs="24" :sm="24" :md="24" :lg="24">
<el-card class="update-log"> <el-card class="update-log">
<template v-slot:header> <template v-slot:header>
<div class="clearfix"> <div class="clearfix">
<span>赛事分析 {{ data && data.reportTime }}</span> <span>赛事分析 {{ data && data.matchCode }}</span>
</div> </div>
</template> </template>
<div class="body"> <div class="body">
@ -24,6 +32,8 @@
import { reportDetail } from '@/api/tc/eventAnalysisReport' import { reportDetail } from '@/api/tc/eventAnalysisReport'
const route = useRoute() const route = useRoute()
let { proxy } = getCurrentInstance()
const id = ref(0) const id = ref(0)
const data = ref({}) const data = ref({})
const loading = ref(false) const loading = ref(false)

View File

@ -1,6 +1,6 @@
<template> <template>
<div class="app-container"> <div class="app-container">
<el-tabs v-model="activeName" class="demo-tabs" @tab-click="handleClick"> <el-tabs v-model="activeName" class="res-el-tab" @tab-click="handleClick">
<el-tab-pane label="竞彩足球" name="soccer"><soccer /></el-tab-pane> <el-tab-pane label="竞彩足球" name="soccer"><soccer /></el-tab-pane>
<el-tab-pane label="竞彩篮球" name="basketball"><basketball /></el-tab-pane> <el-tab-pane label="竞彩篮球" name="basketball"><basketball /></el-tab-pane>
</el-tabs> </el-tabs>

View File

@ -1,11 +1,18 @@
<template> <template>
<div class="app-container" v-loading="loading"> <div class="app-container" v-loading="loading">
<!--顶部-->
<div class="flex align-center mb-20">
<el-icon @click="proxy.$router.go(-1)" class="mr-6 cursor">
<ArrowLeftBold />
</el-icon>
{{ data && data.scriptTime }}
</div>
<el-row :gutter="20"> <el-row :gutter="20">
<el-col :xs="24" :sm="24" :md="24" :lg="24"> <el-col :xs="24" :sm="24" :md="24" :lg="24">
<el-card class="update-log"> <el-card class="update-log">
<template v-slot:header> <template v-slot:header>
<div class="clearfix"> <div class="clearfix">
<span>短视频脚本 {{ data && data.scriptTime }}</span> <span>短视频脚本 {{ data && data.matchCode }}</span>
</div> </div>
</template> </template>
<div class="body"> <div class="body">
@ -24,6 +31,8 @@
import { scriptDetail } from '@/api/tc/videoScript' import { scriptDetail } from '@/api/tc/videoScript'
const route = useRoute() const route = useRoute()
let { proxy } = getCurrentInstance()
const id = ref(0) const id = ref(0)
const data = ref({}) const data = ref({})
const loading = ref(false) const loading = ref(false)

View File

@ -1,6 +1,6 @@
<template> <template>
<div class="app-container"> <div class="app-container">
<el-tabs v-model="activeName" class="demo-tabs" @tab-click="handleClick"> <el-tabs v-model="activeName" class="res-el-tab" @tab-click="handleClick">
<el-tab-pane label="竞彩足球" name="soccer"><soccer /></el-tab-pane> <el-tab-pane label="竞彩足球" name="soccer"><soccer /></el-tab-pane>
<el-tab-pane label="竞彩篮球" name="basketball"><basketball /></el-tab-pane> <el-tab-pane label="竞彩篮球" name="basketball"><basketball /></el-tab-pane>
</el-tabs> </el-tabs>

View File

@ -844,7 +844,7 @@ function tagChange(tagIcon) {
} }
.select-item.sortable-chosen { .select-item.sortable-chosen {
border: 1px dashed #409eff; border: 1px dashed #3067EF;
} }
.select-line-icon { .select-line-icon {
@ -878,7 +878,7 @@ function tagChange(tagIcon) {
top: 0; top: 0;
left: 0; left: 0;
cursor: pointer; cursor: pointer;
background: #409eff; background: #3067EF;
z-index: 1; z-index: 1;
border-radius: 0 0 6px 0; border-radius: 0 0 6px 0;
justify-content: center; justify-content: center;

View File

@ -307,7 +307,7 @@ onMounted(() => {
</script> </script>
<style lang='scss'> <style lang='scss'>
$lighterBlue: #409EFF; $lighterBlue: #3067EF;
.container { .container {
position: relative; position: relative;