Commit ce85ab93 by xinla

Merge branch 'xxj-v4.x-ui-2023.02.14' into develop

2 parents 15e7063b 879d233c
...@@ -570,8 +570,8 @@ export default { ...@@ -570,8 +570,8 @@ export default {
border: 1px dashed #d9d9d9; border: 1px dashed #d9d9d9;
transition: all 0.3s; transition: all 0.3s;
&:hover { &:hover {
border-color: $blue; border-color: var(--color);
color: $blue; color: var(--color);
} }
} }
.progress { .progress {
......
...@@ -118,7 +118,7 @@ export default { ...@@ -118,7 +118,7 @@ export default {
margin-left: 10px; margin-left: 10px;
} }
.home { .home {
color: $blue; color: var(--color);
} }
::v-deep .el-breadcrumb__separator { ::v-deep .el-breadcrumb__separator {
margin: 0 5px; margin: 0 5px;
......
// 显隐侧边栏按钮 // 显隐侧边栏按钮
<template> <template>
<!-- <i class="el-icon-s-fold" :class="{ 'is-active': $store.state.app.sidebar.opened }" @click="toggleClick"></i> --> <!-- <i class="el-icon-s-fold" :class="{ 'open': $store.state.app.sidebar.opened }" @click="toggle"></i> -->
<svg-icon <!-- <svg-icon
iconClass="nested" iconClass="nested"
class="el-icon-s-fold" class="el-icon-s-fold"
:class="{ 'is-active': $store.state.app.sidebar.opened }" :class="{ 'open': $store.state.app.sidebar.opened }"
@click="toggleClick"></svg-icon> @click="toggle"></svg-icon> -->
<div class="toggle" :class="{ open: $store.state.app.sidebar.opened }" @click="toggle">
<div class="toggle-line"></div>
<div class="toggle-line line-middle"></div>
<div class="toggle-line"></div>
</div>
</template> </template>
<script> <script>
...@@ -20,7 +25,7 @@ export default { ...@@ -20,7 +25,7 @@ export default {
// }, // },
// }, // },
methods: { methods: {
toggleClick() { toggle() {
this.$store.dispatch('app/toggleSideBar') this.$store.dispatch('app/toggleSideBar')
}, },
}, },
...@@ -28,10 +33,37 @@ export default { ...@@ -28,10 +33,37 @@ export default {
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.el-icon-s-fold { // .el-icon-s-fold {
font-size: 20px; // font-size: 20px;
&.is-active { // &.open {
transform: rotate(180deg); // transform: rotate(180deg);
// }
// }
.toggle {
position: relative;
cursor: pointer;
.toggle-line {
position: relative;
left: 0;
width: 18px;
height: 2px;
background: #4e5969;
border-radius: 8px;
transition: all 0.3s;
}
.line-middle {
position: relative;
margin: 4px 0;
left: -5px;
}
&.open {
.toggle-line {
// transform: rotateY(360deg);
left: 3px;
}
.line-middle {
left: 8px;
}
} }
} }
</style> </style>
...@@ -120,7 +120,7 @@ export default { ...@@ -120,7 +120,7 @@ export default {
} }
// background-color: $subMenuBg !important; // background-color: $subMenuBg !important;
&:hover { &:hover {
color: $blue; color: var(--color);
background-color: transparent !important; background-color: transparent !important;
} }
} }
...@@ -136,7 +136,7 @@ export default { ...@@ -136,7 +136,7 @@ export default {
} }
// 当前激活菜单 // 当前激活菜单
.el-menu-item.is-active { .el-menu-item.is-active {
background: linear-gradient(to right, $blue 0%, $light-blue 100%); background: linear-gradient(to right, var(--color) 0%, $light-blue 100%);
box-shadow: 0px 13px 16px 0px rgba(7, 168, 85, 0.2); box-shadow: 0px 13px 16px 0px rgba(7, 168, 85, 0.2);
border-radius: 8px; border-radius: 8px;
color: #fff !important; color: #fff !important;
...@@ -145,7 +145,7 @@ export default { ...@@ -145,7 +145,7 @@ export default {
// 当前激活菜单所属上级菜单标题目录 // 当前激活菜单所属上级菜单标题目录
.is-active > .el-submenu__title { .is-active > .el-submenu__title {
color: $blue !important; color: var(--color) !important;
} }
} }
......
...@@ -105,11 +105,11 @@ export default { ...@@ -105,11 +105,11 @@ export default {
top: 0; top: 0;
} }
.top-wrap { .top-wrap {
height: 64px; height: var(--top-nav-heght);
} }
.main-wrap { .main-wrap {
height: calc(100vh - 64px); height: calc(100vh - var(--top-nav-heght));
background: #edf2f9; background: #edf2f9;
.main { .main {
height: 100%; height: 100%;
......
...@@ -220,8 +220,8 @@ ...@@ -220,8 +220,8 @@
cursor: default; cursor: default;
} }
&.is-checked .el-radio__inner { &.is-checked .el-radio__inner {
background-color: $blue; background-color: var(--color);
border-color: $blue; border-color: var(--color);
cursor: default; cursor: default;
&::after { &::after {
...@@ -237,9 +237,9 @@ ...@@ -237,9 +237,9 @@
} }
.diy-theme { .diy-theme {
.el-date-table td.in-range div { // .el-date-table td.in-range div {
// background-color: #e6f8ef; // background-color: #e6f8ef;
} // }
// .el-input__inner, // .el-input__inner,
// .tag-input { // .tag-input {
// background-color: transparent; // background-color: transparent;
...@@ -247,6 +247,7 @@ ...@@ -247,6 +247,7 @@
// .tag-input { // .tag-input {
// } // }
// 分页
.el-pagination.is-background .btn-prev, .el-pagination.is-background .btn-prev,
.el-pagination.is-background .btn-next, .el-pagination.is-background .btn-next,
.el-pagination.is-background .el-pager li { .el-pagination.is-background .el-pager li {
...@@ -257,8 +258,8 @@ ...@@ -257,8 +258,8 @@
} }
.el-pagination.is-background .el-pager li:not(.disabled).active { .el-pagination.is-background .el-pager li:not(.disabled).active {
background-color: transparent; background-color: transparent;
border-color: $blue; border-color: var(--color);
color: $blue; color: var(--color);
} }
// to fixed https://github.com/ElemeFE/element/issues/2461 // to fixed https://github.com/ElemeFE/element/issues/2461
// .el-dialog { // .el-dialog {
...@@ -268,6 +269,7 @@ ...@@ -268,6 +269,7 @@
// margin: 0 auto; // margin: 0 auto;
// } // }
// 弹窗
.el-dialog { .el-dialog {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
...@@ -297,15 +299,83 @@ ...@@ -297,15 +299,83 @@
color: #86909c; color: #86909c;
} }
} }
// 按钮
.el-button--default { .el-button--default {
border-color: $blue; border-color: var(--color);
color: $blue; color: var(--color);
} }
.el-button--default.el-button--primary { .el-button--default.el-button--primary {
color: #fff; color: #fff;
} }
} .el-button--small:not(.el-button--text) {
.el-button--small:not(.el-button--text) { padding: 9px 19px;
padding: 9px 19px; border-radius: var(--border-radius-small);
border-radius: var(--border-radius-small); }
// 步骤条
.el-step__icon {
width: 40px;
height: 40px;
border: 0;
}
.el-step.is-center .el-step__main {
position: absolute;
top: 1px;
left: calc(50% + 30px);
}
.el-step.is-horizontal .el-step__line {
height: 1px;
top: 20px;
left: 120px;
right: 10px;
background: #e8e9ed;
}
.el-step.is-center .el-step__line {
top: 20px;
left: calc(50% + 30px + 80px);
right: calc(-50% + 30px);
}
.el-step__head.is-success .el-step__icon.is-text {
background: #c7eddb; // 图标背景
}
.el-step__title.is-process {
color: #86909c; // 标题颜色
}
.el-step__head.is-process {
color: #fff; // 数字颜色
.el-step__icon.is-text {
background: var(--color);
}
}
.el-step__head.is-wait {
color: #86909c;
.el-step__icon.is-text {
background: #e8e9ed;
}
}
// 抽屉
.el-drawer.rtl {
top: var(--top-nav-heght);
height: auto;
box-shadow: -4px 0px 40px 0px rgba(29, 33, 41, 0.1);
border-radius: 16px 0px 0px 0px;
}
// 标签页选中高亮线
.el-tabs__active-bar {
display: none;
}
.el-tabs__item.is-active::after {
content: '';
display: inline-block;
position: absolute;
width: 40px;
height: 2px;
bottom: 0;
left: calc(50% - 10px);
transform: translateX(-50%);
background: var(--color);
}
} }
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
**/ **/
/* theme color */ /* theme color */
$--color-primary: $blue; $--color-primary: #07c160;
$--color-success: #07c160; $--color-success: #07c160;
$--color-warning: #faad14; $--color-warning: #faad14;
$--color-danger: #eb5e12; $--color-danger: #eb5e12;
......
...@@ -59,7 +59,7 @@ a:hover { ...@@ -59,7 +59,7 @@ a:hover {
} }
a:hover { a:hover {
// 提高hover权重,其他地方的ahover如需改变,也使用important // 提高hover权重,其他地方的ahover如需改变,也使用important
color: $blue !important; color: var(--color) !important;
} }
div:focus { div:focus {
...@@ -363,7 +363,7 @@ aside { ...@@ -363,7 +363,7 @@ aside {
margin-left: 5px; margin-left: 5px;
} }
.el-icon-edit-outline { .el-icon-edit-outline {
color: $blue; color: var(--color);
} }
.el-icon-circle-plus-outline { .el-icon-circle-plus-outline {
color: $green; color: $green;
...@@ -386,7 +386,7 @@ aside { ...@@ -386,7 +386,7 @@ aside {
color: #333; color: #333;
padding: 0 20px; padding: 0 20px;
background: #fff; background: #fff;
border-radius: 4px 4px 0 0; border-radius: var(--border-radius-big) var(--border-radius-big) 0 0;
.desc { .desc {
font-weight: 400; font-weight: 400;
margin-left: 5px; margin-left: 5px;
...@@ -394,7 +394,7 @@ aside { ...@@ -394,7 +394,7 @@ aside {
color: #999; color: #999;
} }
& + .g-card { & + .g-card {
border-radius: 0 0 4px 4px; border-radius: 0 0 var(--border-radius-big) var(--border-radius-big);
margin-top: 0; margin-top: 0;
} }
} }
...@@ -403,14 +403,14 @@ aside { ...@@ -403,14 +403,14 @@ aside {
@extend .g-title; @extend .g-title;
font-size: 16px; font-size: 16px;
& + .g-card { & + .g-card {
border-radius: 0 0 4px 4px; border-radius: 0 0 var(--border-radius-big) var(--border-radius-big);
margin-top: 0; margin-top: 0;
} }
} }
// 卡片样式 // 卡片样式
&card { &card {
margin-top: 10px; margin-top: 16px;
border-radius: var(--border-radius-big); border-radius: var(--border-radius-big);
background: #fff; background: #fff;
overflow: auto; overflow: auto;
......
...@@ -8,9 +8,9 @@ ...@@ -8,9 +8,9 @@
--border-radius: 8px; --border-radius: 8px;
--border-radius-small: 4px; --border-radius-small: 4px;
--border-radius-big: 16px; --border-radius-big: 16px;
--top-nav-heght: 64px;
} }
// base color // base color
$blue: #07c160;
$light-blue: #90de45; $light-blue: #90de45;
$red: #eb5e12; $red: #eb5e12;
$pink: #eb5e12; $pink: #eb5e12;
...@@ -26,7 +26,7 @@ $sub-text-color: #999; ...@@ -26,7 +26,7 @@ $sub-text-color: #999;
} }
// sidebar // sidebar
// $menuText: #333; // $menuText: #333;
// $menuActiveText: $blue; // $menuActiveText: var(--color);
// $subMenuActiveText: #333; // https://github.com/ElemeFE/element/issues/12951 // $subMenuActiveText: #333; // https://github.com/ElemeFE/element/issues/12951
// $menuBg: #fff; // $menuBg: #fff;
...@@ -56,7 +56,7 @@ $border-radius: 4px; ...@@ -56,7 +56,7 @@ $border-radius: 4px;
} }
.bglg { .bglg {
background: linear-gradient(to left, $blue 0%, $light-blue 100%); background: linear-gradient(to left, var(--color) 0%, $light-blue 100%);
box-shadow: 0px 13px 16px 0px rgba(7, 168, 85, 0.2); box-shadow: 0px 13px 16px 0px rgba(7, 168, 85, 0.2);
} }
.border-radius-small { .border-radius-small {
......
<template> <template>
<div> <div>
<div class="tab"> <div class="g-card g-pad20">
<el-steps style="margin-top:10px;" :active="active" align-center> <el-steps :active="active" align-center>
<el-step title="活码设置"></el-step> <el-step title="活码设置"></el-step>
<el-step title="生成活码"></el-step> <el-step title="生成活码"></el-step>
</el-steps> </el-steps>
...@@ -18,86 +17,85 @@ ...@@ -18,86 +17,85 @@
</div> </div>
<div class="ac"> <div class="ac">
<template v-if="active === 0"> <template v-if="active === 0">
<el-button @click="$router.back()"> 取消 </el-button> <el-button @click="$router.back()">取消</el-button>
<el-button type="primary" v-loading="loading" :disabled="loading" @click="handleGroupCode"> 下一步 </el-button> <el-button type="primary" v-loading="loading" :disabled="loading" @click="handleGroupCode">下一步</el-button>
</template> </template>
<template v-else> <template v-else>
<!-- <el-button @click="prev"> 上一步 </el-button> --> <!-- <el-button @click="prev"> 上一步 </el-button> -->
<el-button type="primary" @click="finished"> 完成 </el-button> <el-button type="primary" @click="finished">完成</el-button>
</template> </template>
</div> </div>
</div> </div>
</div> </div>
</template> </template>
<script> <script>
import BaseInfo from './baseInfo' import BaseInfo from './baseInfo'
import GroupCode from './groupCode' import GroupCode from './groupCode'
export default { export default {
components: { components: {
BaseInfo, BaseInfo,
GroupCode GroupCode,
}, },
data () { data() {
return { return {
loading: false, loading: false,
// 当前群活码ID // 当前群活码ID
groupCodeId: null, groupCodeId: null,
// 当前激活的步骤 // 当前激活的步骤
active: 0, active: 0,
baseInfo: {} baseInfo: {},
}
},
created() {
if (this.$route.query.groupCodeId) this.groupCodeId = this.$route.query.groupCodeId
},
methods: {
// 下一步
next(groupCodeId, info) {
this.loading = false
if (groupCodeId || info) {
if (groupCodeId) this.groupCodeId = groupCodeId
this.baseInfo = info
this.active += 1
if (this.active > 3) this.active = 1
} }
}, },
created () { // 上一步
if (this.$route.query.groupCodeId) this.groupCodeId = this.$route.query.groupCodeId prev() {
this.active -= 1
if (this.active < 0) this.active = 0
}, },
methods: { // 完成
// 下一步 finished() {
next (groupCodeId, info) { this.next()
this.loading = false this.$router.back()
if (groupCodeId || info) { },
if (groupCodeId) this.groupCodeId = groupCodeId // 新增或更新群活码
this.baseInfo = info handleGroupCode() {
this.active += 1 if (!this.$refs.baseInfo.handleValidateFn()) return
if (this.active > 3) this.active = 1 this.loading = true
} this.$refs.baseInfo.submit()
}, },
// 上一步 // 管理实际群活码
prev () { handleRealCode() {
this.active -= 1 this.next()
if (this.active < 0) this.active = 0 },
}, },
// 完成 }
finished () {
this.next()
this.$router.back()
},
// 新增或更新群活码
handleGroupCode () {
if (!this.$refs.baseInfo.handleValidateFn()) return
this.loading = true
this.$refs.baseInfo.submit()
},
// 管理实际群活码
handleRealCode () {
this.next()
}
}
}
</script> </script>
<style scoped lang="scss"> <style scoped lang="scss">
.tab { .tab {
height: 78px; height: 78px;
background: #fff; background: #fff;
border-top: 1px solid #f1f1f1; border-top: 1px solid #f1f1f1;
border-bottom-left-radius: 4px; border-bottom-left-radius: 4px;
border-bottom-right-radius: 4px; border-bottom-right-radius: 4px;
} }
.page-content { .page-content {
padding-top: 50px; padding-top: 50px;
padding-bottom: 20px; padding-bottom: 20px;
} }
</style> </style>
...@@ -197,7 +197,7 @@ export default { ...@@ -197,7 +197,7 @@ export default {
<style lang="scss" scoped> <style lang="scss" scoped>
.el-icon-copy-document { .el-icon-copy-document {
&:hover { &:hover {
color: $blue; color: var(--color);
} }
} }
</style> </style>
...@@ -311,7 +311,7 @@ export default { ...@@ -311,7 +311,7 @@ export default {
<style lang="scss" scoped> <style lang="scss" scoped>
.theme { .theme {
color: $blue; color: var(--color);
} }
.list-wrap { .list-wrap {
display: flex; display: flex;
......
...@@ -276,7 +276,7 @@ export default { ...@@ -276,7 +276,7 @@ export default {
<style lang="scss" scoped> <style lang="scss" scoped>
.theme { .theme {
color: $blue; color: var(--color);
} }
::v-deep.detail-form { ::v-deep.detail-form {
.el-input.is-disabled .el-input__inner, .el-input.is-disabled .el-input__inner,
...@@ -300,8 +300,8 @@ export default { ...@@ -300,8 +300,8 @@ export default {
cursor: default; cursor: default;
} }
&.is-checked .el-radio__inner { &.is-checked .el-radio__inner {
background-color: $blue; background-color: var(--color);
border-color: $blue; border-color: var(--color);
cursor: default; cursor: default;
&::after { &::after {
......
...@@ -198,7 +198,7 @@ export default { ...@@ -198,7 +198,7 @@ export default {
<style lang="scss" scoped> <style lang="scss" scoped>
.theme { .theme {
color: $blue; color: var(--color);
} }
.list-wrap { .list-wrap {
display: flex; display: flex;
......
...@@ -9,16 +9,8 @@ ...@@ -9,16 +9,8 @@
<h3 class="title">{{ lwConfig.SYSTEM_NAME }}</h3> <h3 class="title">{{ lwConfig.SYSTEM_NAME }}</h3>
<template v-if="loginType === 'account'"> <template v-if="loginType === 'account'">
<el-form-item prop="username"> <el-form-item prop="username">
<el-input <el-input v-model="loginForm.username" type="text" auto-complete="off" placeholder="账号">
v-model="loginForm.username" <svg-icon style="height: 33px" slot="prefix" icon-class="user" class="el-input__icon input-icon" />
type="text"
auto-complete="off"
placeholder="账号">
<svg-icon
style="height: 33px"
slot="prefix"
icon-class="user"
class="el-input__icon input-icon" />
</el-input> </el-input>
</el-form-item> </el-form-item>
<el-form-item prop="password"> <el-form-item prop="password">
...@@ -28,11 +20,7 @@ ...@@ -28,11 +20,7 @@
auto-complete="off" auto-complete="off"
placeholder="密码" placeholder="密码"
@keyup.enter.native="handleLogin"> @keyup.enter.native="handleLogin">
<svg-icon <svg-icon style="height: 33px" slot="prefix" icon-class="password" class="el-input__icon input-icon" />
style="height: 33px"
slot="prefix"
icon-class="password"
class="el-input__icon input-icon" />
</el-input> </el-input>
</el-form-item> </el-form-item>
<el-form-item prop="code"> <el-form-item prop="code">
...@@ -160,14 +148,10 @@ export default { ...@@ -160,14 +148,10 @@ export default {
} }
}) })
window.lwConfig.IS_PUBLISH_DIALOG && window.lwConfig.IS_PUBLISH_DIALOG &&
this.$alert( this.$alert('LinkWeChat V2.5 已正式发布,遇到使用上的问题欢迎提交 Issue,我们将光速修复。', '提示', {
'LinkWeChat V2.5 已正式发布,遇到使用上的问题欢迎提交 Issue,我们将光速修复。', confirmButtonText: '确定',
'提示', cancelButtonText: '取消',
{ })
confirmButtonText: '确定',
cancelButtonText: '取消',
},
)
}, },
methods: { methods: {
changeLoginType(type) { changeLoginType(type) {
...@@ -346,7 +330,7 @@ export default { ...@@ -346,7 +330,7 @@ export default {
z-index: 20; z-index: 20;
} }
.link { .link {
color: $blue; color: var(--color);
font-size: 14px; font-size: 14px;
float: right; float: right;
padding-right: 25px; padding-right: 25px;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!