Commit 724ae533 by xinla

css 与 UI调整

1 parent e5167d02

227 KB | W: | H:

194 KB | W: | H:

linkwe-pc/src/assets/login.png
linkwe-pc/src/assets/login.png
linkwe-pc/src/assets/login.png
linkwe-pc/src/assets/login.png
  • 2-up
  • Swipe
  • Onion skin
......@@ -41,10 +41,10 @@ export default {
.logo-container {
position: relative;
width: 330px;
overflow: hidden;
flex: 0 1 300px;
display: flex;
align-items: center;
padding-right: 10px;
& .sidebar-logo-link {
& .sidebar-logo {
max-height: 44px;
......
......@@ -14,10 +14,8 @@
</div>
</template>
</el-scrollbar> -->
<!-- <el-scrollbar class="nav-scrollar"> -->
<top-nav id="topmenu-container" />
<!-- </el-scrollbar> -->
<div class="right-menu mr20">
<top-nav />
<div class="right-menu mr10">
<template v-if="device !== 'mobile'">
<!-- <search id="header-search" class="right-menu-item" /> -->
<!-- <el-popover placement="right" width="300" trigger="hover">
......@@ -171,14 +169,6 @@ export default {
</script>
<style lang="scss" scoped>
// .topmenu-container {
// margin-left: auto;
// display: inline-block;
// position: absolute;
// right: 100px;
// top: 50%;
// transform: translateY(-50%);
// }
.hover-class {
display: flex;
flex-direction: column;
......@@ -206,6 +196,7 @@ export default {
.navbar {
display: flex;
align-items: center;
justify-content: space-between;
width: 100%;
height: 100%;
overflow: hidden;
......@@ -218,8 +209,9 @@ export default {
}
.right-menu {
position: absolute;
right: 0;
// position: absolute;
// right: 0;
flex: none;
background: #fff;
&:focus {
......@@ -228,7 +220,7 @@ export default {
.right-menu-item {
display: inline-block;
padding: 0 0 0 15px;
padding: 0 0 0 min(2vw - 20px, 15px);
// color: #5a5e66;
vertical-align: middle;
......@@ -276,30 +268,30 @@ export default {
}
}
.nav-scrollbar {
width: calc(100% - 450px);
::v-deep.el-scrollbar__view {
white-space: nowrap;
line-height: 58px;
}
.nav {
display: inline-block;
margin: 0 20px;
flex: none;
position: relative;
cursor: pointer;
&.active::after {
content: '';
display: inline-block;
position: absolute;
bottom: 2px;
width: 42px;
height: 2px;
left: 50%;
transform: translateX(-50%);
border-radius: 6px;
background: #fff;
}
}
}
// .nav-scrollbar {
// width: calc(100% - 450px);
// ::v-deep.el-scrollbar__view {
// white-space: nowrap;
// line-height: 58px;
// }
// .nav {
// display: inline-block;
// margin: 0 20px;
// flex: none;
// position: relative;
// cursor: pointer;
// &.active::after {
// content: '';
// display: inline-block;
// position: absolute;
// bottom: 2px;
// width: 42px;
// height: 2px;
// left: 50%;
// transform: translateX(-50%);
// border-radius: 6px;
// background: #fff;
// }
// }
// }
</style>
<template>
<!-- <el-scrollbar class="nav-scrollbar"> -->
<el-menu :default-active="activeMenu" mode="horizontal" @select="handleSelect">
<el-menu-item v-for="(item, index) in topMenus" :index="item.path" :key="index">{{ item.meta.title }}</el-menu-item>
<el-menu-item v-for="(item, index) in topMenus" :index="item.path" :key="index">
{{ item.meta.title }}
</el-menu-item>
</el-menu>
<!-- </el-scrollbar> -->
</template>
<script>
import { constantRoutes } from '@/router'
import { isExternal } from '@/utils/validate'
export default {
data() {
return {
// name: '',
// 顶部栏初始数
visibleNumber: 5,
// 是否为首次加载
isFrist: false,
// 当前激活菜单的
currentIndex: '',
}
},
computed: {
theme() {
return this.$store.state.settings.theme
},
// 顶部显示菜单
topMenus() {
let topMenus = []
......@@ -50,16 +46,8 @@ export default {
return activePath
},
},
beforeMount() {
window.addEventListener('resize', this.setVisibleNumber)
},
beforeDestroy() {
window.removeEventListener('resize', this.setVisibleNumber)
},
mounted() {
this.setVisibleNumber()
// this.setName()
// this.handleSelect(this.topMenus[0].path)
},
methods: {
// setName() {
......@@ -69,19 +57,12 @@ export default {
// }
// })
// },
// 根据宽度计算设置显示栏数
setVisibleNumber() {
const width = document.body.getBoundingClientRect().width / 3
this.visibleNumber = parseInt(width / 85)
},
// 菜单选择事件
handleSelect(path, keyPath) {
this.currentIndex = path
let index = ''
this.topMenus.map((dd, cc) => {
if (path == dd.path) {
// this.name = dd.meta.title
index = cc
}
})
if (this.ishttp(path)) {
......@@ -114,66 +95,74 @@ export default {
}
</script>
<style lang="scss">
.bglg {
<style lang="scss" scoped>
.g-bg-lg {
background: linear-gradient(to left, var(--color) 0%, var(--color-lighter) 100%);
box-shadow: 0px 13px 16px 0px rgba(7, 168, 85, 0.2);
}
.el-menu {
// .nav-scrollbar {
// width: calc(100% - 580px);
// ::v-deep.el-scrollbar__view {
// white-space: nowrap;
// }
// }
::v-deep.el-menu--horizontal {
background-color: transparent !important;
}
.el-menu.el-menu--horizontal {
border: none !important;
}
.el-menu--horizontal > .el-menu-item {
float: left;
height: 38px !important;
line-height: 38px !important;
color: #1d2129;
border-radius: 8px;
font-weight: bold;
margin: 0 4px !important;
border: 0;
&::after {
content: '';
display: block;
opacity: 0;
position: absolute;
top: 0;
left: 0;
z-index: -1;
width: 100%;
height: 100%;
white-space: nowrap;
flex: 1 1 1200px;
& > .el-menu-item {
height: 38px !important;
line-height: 38px !important;
color: #1d2129;
border-radius: 8px;
transition: opacity 0.3s;
@extend .bglg;
}
&:not(.is-disabled) {
&:hover,
&:focus {
&::after {
opacity: 1;
font-weight: bold;
margin: 0 4px !important;
border: 0;
padding: 0px min(1.1vw, 20px);
float: none;
display: inline-block;
&::after {
content: '';
display: block;
opacity: 0;
position: absolute;
top: 0;
left: 0;
z-index: -1;
width: 100%;
height: 100%;
border-radius: 8px;
transition: opacity 0.3s;
@extend .g-bg-lg;
}
&:not(.is-disabled) {
&:hover,
&:focus {
&::after {
opacity: 1;
}
background-color: transparent;
color: #fff;
}
background-color: transparent;
color: #fff;
}
}
}
.el-menu--horizontal > .el-menu-item.is-active,
.el-menu--horizontal > .el-submenu.is-active .el-submenu__title {
@extend .bglg;
color: #fff;
border: 0;
}
& > .el-menu-item.is-active,
& > .el-submenu.is-active .el-submenu__title {
@extend .g-bg-lg;
color: #fff;
border: 0;
}
/* submenu item */
.el-menu--horizontal > .el-submenu .el-submenu__title {
float: left;
height: 50px !important;
line-height: 50px !important;
color: #999093 !important;
padding: 0 5px !important;
margin: 0 10px !important;
// /* submenu item */
// & > .el-submenu .el-submenu__title {
// float: left;
// height: 50px !important;
// line-height: 50px !important;
// color: #999093 !important;
// padding: 0 5px !important;
// margin: 0 10px !important;
// }
}
</style>
......@@ -11,14 +11,15 @@
line-height: 30px;
}
// 页面公用搜索
.--card {
padding: 20px 20px;
border-radius: var(--border-radius-big);
background: #fff;
}
// 页面公用搜索
.top-search {
@extend .--card;
padding: 10px 20px;
margin-bottom: 16px;
.el-form-item {
margin: 0 !important;
......@@ -252,13 +253,12 @@
.el-form:not(.el-form--inline) {
.el-form-item {
margin: 0 !important;
padding: 10px;
// margin: 0 !important;
// padding: 10px 0;
transition: all 0.2s;
// &:hover {
// background: #e5f1fc;
// border-radius: 10px;
// }
&:last-child {
margin-bottom: 0;
}
}
// 统一页面表单输入框宽度 el-form-item__content
......
......@@ -243,23 +243,6 @@ div:focus {
}
}
.br8 {
border-radius: 8px;
}
.br16 {
border-radius: 16px;
}
.fc {
color: var(--color);
}
.card-group-index + .g-card {
margin-top: 0;
}
// 绿色渐变背景
.bglg {
background: linear-gradient(to left, var(--color) 0%, var(--color-lighter) 100%);
box-shadow: 0px 13px 16px 0px rgba(7, 168, 85, 0.2);
}
html {
--color: #07c160; /* 主题色 */
--rgb: 7, 193, 96; /* 主题色rgb #07c160*/
--color: rgb(var(--rgb)); /* 主题色 #07c160*/
--color-lighter: #90de45; /* 浅主题色 */
--color-success: #07c160;
--color-warning: #faad14;
--color-danger: #eb5e12;
--border-radius: 8px; /* 圆角 */
--border-radius: 8px; /* 常规圆角 */
--border-radius-small: 4px; /* 小圆角 */
--border-radius-big: 16px; /* 大圆角 */
--card-margin: 16px; /* 卡片间距 */
--top-nav-heght: 64px; /* 顶部导航条高度 */
--font-black: #1d2129; /* 通用字体黑色 */
}
/* 项目定制原子类 */
.g-radius {
border-radius: 8px;
}
.g-radius-small {
border-radius: 16px;
}
.g-radius-big {
border-radius: 16px;
}
.g-margin {
margin: var(--card-margin);
}
.g-margin-t {
margin-top: var(--card-margin);
}
.g-margin-r {
margin-right: var(--card-margin);
}
.g-margin-b {
margin-bottom: var(--card-margin);
}
.g-margin-l {
margin-left: var(--card-margin);
}
.g-color {
color: var(--color);
}
/* 渐变背景 */
.g-bg-lg {
background: linear-gradient(to left, var(--color) 0%, var(--color-lighter) 100%);
box-shadow: 0px 13px 16px 0px rgba(7, 168, 85, 0.2);
}
......@@ -223,7 +223,7 @@
>
<!-- 汇总的场景显示名字 -->
<template v-if="!userId">
<div class="name oe bglg">{{ item.userName }}</div>
<div class="name oe .g-bg-lg">{{ item.userName }}</div>
</template>
<template v-if="item.tagNames">
<el-tag v-for="(unit, unique) in item.tagNames.split(',')" :key="unique">{{ unit }}</el-tag>
......@@ -240,7 +240,7 @@
<div v-for="(item, index) of portrayalSum.personTags" :key="index" :class="['flex aic', index && 'mt20']">
<!-- 汇总的场景显示名字 -->
<template v-if="!userId">
<div class="name oe bglg">{{ item.userName }}</div>
<div class="name oe .g-bg-lg">{{ item.userName }}</div>
</template>
<template v-if="item.tagNames">
<el-tag v-for="(unit, unique) in item.tagNames.split(',')" :key="unique">{{ unit }}</el-tag>
......@@ -347,7 +347,7 @@
<div v-for="(item, index) of trackUsers" :key="index" :class="['flex aic', index && 'mt20']">
<!-- 汇总的场景显示名字 -->
<template v-if="!userId">
<div class="name oe bglg">{{ item.userName }}</div>
<div class="name oe .g-bg-lg">{{ item.userName }}</div>
</template>
<template v-if="item.trackState === 1">
<el-steps style="flex: auto;" :active="1">
......
......@@ -218,7 +218,7 @@ export default {
<div class="g-card-title mid-action">
<div class="">
共
<span class="fc" style="color: var(--color)">{{ total }}</span>
<span class="g-color" style="color: var(--color)">{{ total }}</span>
个客户群
</div>
<div>
......
......@@ -28,7 +28,7 @@
<!-- default-expand-all -->
<div class="title mb20">
<div class="title-name">组织列表</div>
<span @click="syncOrganization" class="fc cp">
<span @click="syncOrganization" class="g-color cp">
同步
<i class="el-icon-refresh"></i>
</span>
......
......@@ -142,7 +142,7 @@
</el-form-item>
</el-form>
</div>
<div v-if="currentActive === 2">
<div class="g-margin-t" v-if="currentActive === 2">
<!-- <welcome-detail
v-loading="loading"
showBack
......
......@@ -2,25 +2,20 @@
<div>
<el-form :model="query" ref="queryForm" :inline="true" label-position="left" class="top-search" label-width="70px">
<el-form-item label="群发内容" prop="content">
<el-input
size="mini"
v-model="query.content"
placeholder="请输入群发内容"
clearable
@keyup.enter.native="getList(1)" />
<el-input v-model="query.content" placeholder="请输入群发内容" clearable @keyup.enter.native="getList(1)" />
</el-form-item>
<el-form-item label="群发类型" prop="chatType">
<el-select v-model="query.chatType" placeholder="请选择群发类型" size="mini">
<el-select v-model="query.chatType" placeholder="请选择群发类型">
<el-option v-for="(value, key, index) in pushType" :label="value" :value="key" :key="index"></el-option>
</el-select>
</el-form-item>
<el-form-item label="发送类型" prop="isTask">
<el-select v-model="query.isTask" placeholder="请选择发送类型" size="mini">
<el-select v-model="query.isTask" placeholder="请选择发送类型">
<el-option v-for="(value, key, index) in timedTask" :label="value" :value="key" :key="index"></el-option>
</el-select>
</el-form-item>
<el-form-item label-width="0">
<el-button type="primary" size="mini" @click="getList(1)">查询</el-button>
<el-button type="primary" @click="getList(1)">查询</el-button>
<el-button @click="resetQuery">重置</el-button>
</el-form-item>
</el-form>
......@@ -46,22 +41,18 @@
<el-table-column label="操作" align="center" width="180">
<template slot-scope="scope">
<!-- v-hasPermi="['enterpriseWechat:view']" -->
<el-button
size="mini"
type="text"
@click="goRoute(scope.row.id, scope.row.isTask, scope.row.status, 'detail')">
<el-button type="text" @click="goRoute(scope.row.id, scope.row.isTask, scope.row.status, 'detail')">
详情
</el-button>
<el-button
size="mini"
v-if="scope.row.isTask === 1 && scope.row.status === 0"
type="text"
@click="cancelSend(scope.row)">
取消发送
</el-button>
<!-- <el-button v-hasPermi="['enterpriseWechat:edit']" size="mini" type="text" disabled=""
<!-- <el-button v-hasPermi="['enterpriseWechat:edit']" type="text" disabled=""
@click="goRoute(scope.row, 1)">编辑</el-button>
<el-button v-hasPermi="['enterpriseWechat:edit']" size="mini" type="text"
<el-button v-hasPermi="['enterpriseWechat:edit']" type="text"
@click="syncMsg(scope.row)">同步</el-button> -->
</template>
</el-table-column>
......
......@@ -11,7 +11,7 @@
<span>{{ greetings }},</span>
<span>{{ $store.state.user.name }}</span>
</div>
<div class="role toe bglg">{{ roleGroup }}管理员</div>
<div class="role toe .g-bg-lg">{{ roleGroup || '管理员' }}</div>
</div>
<div class="g-card data-view">
......
......@@ -21,7 +21,7 @@
</el-input>
</el-form-item>
<el-form-item prop="code">
<div style="display: flex">
<div class="fxbw">
<el-input
v-model="loginForm.code"
auto-complete="off"
......@@ -29,20 +29,14 @@
@keyup.enter.native="handleLogin">
<svg-icon slot="prefix" icon-class="validCode" style="height: 33px" class="el-input__icon input-icon" />
</el-input>
<div class="login-code" style="margin-left: 10px">
<img :src="codeUrl" @click="getCode" class="login-code-img" />
</div>
<img class="login-code-img ml10" :src="codeUrl" @click="getCode" />
</div>
</el-form-item>
<el-checkbox class="fr" v-model="loginForm.rememberMe">记住密码</el-checkbox>
<el-checkbox
class="fl"
v-model="isDemonstrationLogin"
@change="changeDemonAccount"
style="margin: 0px 0px 25px 10px">
<el-checkbox class="g-margin-b" v-model="isDemonstrationLogin" @change="changeDemonAccount">
演示账号登录
</el-checkbox>
<el-form-item style="width: 100%">
<el-checkbox class="fr" v-model="loginForm.rememberMe">记住密码</el-checkbox>
<el-form-item>
<el-button
:loading="loading"
size="medium"
......@@ -52,8 +46,8 @@
<span v-if="!loading">登 录</span>
<span v-else>登 录 中...</span>
</el-button>
<div class="link" @click="changeLoginType('url')">企微登录</div>
</el-form-item>
<div class="link" @click="changeLoginType('url')">企微登录</div>
</template>
<div v-else class="ac">
<img class="wechat-code" :src="wechatCodeUrl" alt="" />
......@@ -62,15 +56,12 @@
<a :href="authLink">
<el-button :loading="loading" size="medium" type="primary" style="width: 100%">企业微信登录</el-button>
<!-- <img
src="//wwcdn.weixin.qq.com/node/wwopen/wwopenmng/style/images/independent/brand/300x40_white$4dab5411.png"
/> -->
src="//wwcdn.weixin.qq.com/node/wwopen/wwopenmng/style/images/independent/brand/300x40_white$4dab5411.png" /> -->
</a>
<div class="link" @click="changeLoginType('account')">账号密码登录</div>
</div>
</el-form>
<div>
<img src="@/assets/login.png" class="login-img" alt="" />
</div>
<img src="@/assets/login.png" class="login-img" alt="" />
</div>
</template>
......@@ -198,11 +189,11 @@ export default {
<style rel="stylesheet/scss" lang="scss" scoped>
.login {
position: relative;
max-width: 1234px;
max-height: 878px;
width: min(80%, 1234px);
height: min(80%, 878px);
min-height: 700px;
background: #ffffff;
border-radius: 56px 56px 56px 56px;
border-radius: 56px;
.logo {
position: absolute;
height: 58px;
......@@ -224,13 +215,13 @@ export default {
.login-form {
width: 50%;
padding: 0 calc((50% - 360px) / 2);
.el-input {
height: 38px;
line-height: 38px;
input {
height: 38px;
}
}
// .el-input {
// height: 38px;
// line-height: 38px;
// input {
// height: 38px;
// }
// }
.desc {
text-align: center;
color: #aaa;
......@@ -243,19 +234,16 @@ export default {
margin-left: 2px;
}
}
.login-code {
.login-code-img {
height: 32px;
cursor: pointer;
vertical-align: middle;
}
.login-code-img {
height: 32px;
cursor: pointer;
vertical-align: middle;
}
.link {
color: var(--color);
font-size: 14px;
// padding-left: 25px;
margin-top: 20px;
margin-top: var(--card-margin);
text-align: left;
cursor: pointer;
}
......@@ -270,6 +258,6 @@ export default {
}
.login-img {
padding: 20px;
width: 100%;
height: 100%;
}
</style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!