Commit 2e4d9ffb by ext.wangyuman1

Merge branch 'vue3-master' of https://e.coding.net/linkwechat/linkwechat-front/l…

…inkwechat into bs-dev-wangyuman
2 parents 4a407af4 7c47ae09
Showing 76 changed files with 322 additions and 275 deletions
...@@ -359,14 +359,14 @@ li { ...@@ -359,14 +359,14 @@ li {
} }
/* 暗黑模式 Dark mode */ /* 暗黑模式 Dark mode */
@media (prefers-color-scheme: dark) { /* @media (prefers-color-scheme: dark) {
body, body,
img, img,
video { video {
filter: invert(1) brightness(1.5) hue-rotate(180deg); filter: invert(1) brightness(1.5) hue-rotate(180deg);
} }
/* 不使用暗黑模式 */ 不使用暗黑模式
.no-dark { .no-dark {
position: relative; position: relative;
} }
...@@ -378,4 +378,4 @@ li { ...@@ -378,4 +378,4 @@ li {
width: 100%; width: 100%;
backdrop-filter: invert(1) brightness(1.5) hue-rotate(180deg); backdrop-filter: invert(1) brightness(1.5) hue-rotate(180deg);
} }
} } */
html { :root {
--hsl: 149, 93%, 39%; /* 主题色hsl*/ --hsl: 149, 93%, 39%; /* 主题色hsl*/
--hsl-dark: 149, 93%, 34%; /* 深主题色hsl*/ --hsl-dark: 149, 93%, 34%; /* 深主题色hsl*/
...@@ -19,6 +19,15 @@ html { ...@@ -19,6 +19,15 @@ html {
--font-black: #1d2129; /* 通用字体黑色 */ --font-black: #1d2129; /* 通用字体黑色 */
--font-white: #fff; /* 通用字体白色 */ --font-white: #fff; /* 通用字体白色 */
/* 背景色,暗黑模式下为黑色 */
--bg-white: #fff;
}
/* 暗黑模式 */
.dark {
--font-black: var(--font-white);
--bg-white: #1d2129;
} }
/* 项目定制原子类 */ /* 项目定制原子类 */
......
...@@ -87,7 +87,7 @@ export default { ...@@ -87,7 +87,7 @@ export default {
flex: auto; flex: auto;
// min-width: 200px; // min-width: 200px;
max-width: 240px; max-width: 240px;
background: #fff; background: var(--bg-white);
border-radius: var(--border-radius-big); border-radius: var(--border-radius-big);
border: 1px solid #edf2f9; border: 1px solid #edf2f9;
line-height: 1; line-height: 1;
......
...@@ -157,7 +157,7 @@ export default { ...@@ -157,7 +157,7 @@ export default {
// top: 8px; // top: 8px;
// width: 8px; // width: 8px;
// height: 8px; // height: 8px;
// background: #fff; // background: var(--bg-white);
// transform: rotate(45deg); // transform: rotate(45deg);
// border: 1px solid #e1edfc; // border: 1px solid #e1edfc;
// z-index: 888; // z-index: 888;
...@@ -179,7 +179,7 @@ export default { ...@@ -179,7 +179,7 @@ export default {
@extend .mes; @extend .mes;
color: #333; color: #333;
margin-left: 10px; margin-left: 10px;
background-color: #fff; background: var(--bg-white);
border-top-left-radius: 0; border-top-left-radius: 0;
// &::before { // &::before {
// @extend .angle; // @extend .angle;
......
...@@ -187,7 +187,7 @@ export default { ...@@ -187,7 +187,7 @@ export default {
<div class="page"> <div class="page">
<div style="margin-top: 16px"> <div style="margin-top: 16px">
<el-row type="flex" justify="space-between"> <el-row type="flex" justify="space-between">
<el-col :span="5" class="left pad20" style="border-radius: 4px; background: #fff"> <el-col :span="5" class="left pad20" style="border-radius: 4px; background: var(--bg-white)">
<div class="title"> <div class="title">
<div class="title-name">{{ typeTitle[type] }}分组</div> <div class="title-name">{{ typeTitle[type] }}分组</div>
</div> </div>
...@@ -197,8 +197,7 @@ export default { ...@@ -197,8 +197,7 @@ export default {
:class="{ active: groupIndex == key }" :class="{ active: groupIndex == key }"
v-for="(group, key) in groupList" v-for="(group, key) in groupList"
:key="group.id" :key="group.id"
@click="switchGroup(key, group)" @click="switchGroup(key, group)">
>
<div class="name">{{ group.name + ' (' + group.number + ')' }}</div> <div class="name">{{ group.name + ' (' + group.number + ')' }}</div>
</div> </div>
</div> </div>
...@@ -212,8 +211,7 @@ export default { ...@@ -212,8 +211,7 @@ export default {
clearable clearable
prefix-icon="el-icon-search" prefix-icon="el-icon-search"
style="width: 300px" style="width: 300px"
@keyup.enter="search()" @keyup.enter="search()" />
/>
<el-button class="ml10" @click="getList(1)" type="primary">查询</el-button> <el-button class="ml10" @click="getList(1)" type="primary">查询</el-button>
<!-- v-hasPermi="['wecom:material:list']" --> <!-- v-hasPermi="['wecom:material:list']" -->
<el-button @click="resetQuery">重置</el-button> <el-button @click="resetQuery">重置</el-button>
...@@ -227,8 +225,7 @@ export default { ...@@ -227,8 +225,7 @@ export default {
:total="total" :total="total"
v-model:page="query.pageNum" v-model:page="query.pageNum"
v-model:limit="query.pageSize" v-model:limit="query.pageSize"
@pagination="getList()" @pagination="getList()" />
/>
</div> </div>
</el-col> </el-col>
</el-row> </el-row>
......
<template> <template>
<div class="left pad20" style="border-radius: 4px; background: #fff"> <div class="left pad20" style="border-radius: 4px; background: var(--bg-white)">
<!--模板库 --> <!--模板库 -->
<div> <div>
<!-- v-hasPermi="['wecom:tlp:add']" --> <!-- v-hasPermi="['wecom:tlp:add']" -->
......
...@@ -101,7 +101,7 @@ export default { ...@@ -101,7 +101,7 @@ export default {
bottom: 0; bottom: 0;
z-index: 9; z-index: 9;
text-align: right; text-align: right;
background: #fff; background: var(--bg-white);
padding: 15px 5px 20px; padding: 15px 5px 20px;
border-top: 1px solid #f8f8f8; border-top: 1px solid #f8f8f8;
} }
......
...@@ -90,7 +90,7 @@ export default { ...@@ -90,7 +90,7 @@ export default {
} }
.msg { .msg {
min-height: 28px; min-height: 28px;
background-color: #fff; background: var(--bg-white);
border: 1px solid #e4e6e9; border: 1px solid #e4e6e9;
display: inline-block; display: inline-block;
position: relative; position: relative;
...@@ -122,7 +122,7 @@ export default { ...@@ -122,7 +122,7 @@ export default {
} }
.avatar { .avatar {
border: 1px solid #fff; border: 1px solid #fff;
background: #fff; background: var(--bg-white);
border-radius: 6px; border-radius: 6px;
width: 28px; width: 28px;
height: 28px; height: 28px;
......
...@@ -54,7 +54,7 @@ export default { ...@@ -54,7 +54,7 @@ export default {
border-radius: 40px; border-radius: 40px;
box-sizing: content-box; box-sizing: content-box;
overflow: hidden; overflow: hidden;
background: #fff; background: var(--bg-white);
// .preview-status { // .preview-status {
// display: flex; // display: flex;
// justify-content: space-between; // justify-content: space-between;
......
...@@ -131,7 +131,7 @@ export default { ...@@ -131,7 +131,7 @@ export default {
<div> <div>
<el-dialog :title="title" v-model="Pvisible" width="900px" append-to-body :close-on-click-modal="false"> <el-dialog :title="title" v-model="Pvisible" width="900px" append-to-body :close-on-click-modal="false">
<el-row type="flex" justify="space-between"> <el-row type="flex" justify="space-between">
<el-col :span="5" class="left pad20" style="border-radius: 4px; background: #fff"> <el-col :span="5" class="left pad20" style="border-radius: 4px; background: var(--bg-white)">
<div class="title"> <div class="title">
<div class="title-name">活码分组</div> <div class="title-name">活码分组</div>
</div> </div>
......
...@@ -20,7 +20,8 @@ const common = { ...@@ -20,7 +20,8 @@ const common = {
PRIVACY: env.BASE_URL + 'static/PRIVACY.pdf', // 隐私协议pdf PRIVACY: env.BASE_URL + 'static/PRIVACY.pdf', // 隐私协议pdf
IS_PUBLISH_DIALOG: false, // 是否显示发布弹窗 IS_PUBLISH_DIALOG: false, // 是否显示发布弹窗
COOKIEEXPIRES: 0.5, // token在Cookie中存储的天数,默认0.5天 COOKIEEXPIRES: 0.5, // token在Cookie中存储的天数,默认0.5天
WORKWEIXINPAGENAME: 'EnterpriseWechat', // 企业微信设置页面路由name WORK_WEIXIN_CONFIG_ROUTE_NAME: 'EnterpriseWechat', // 企业微信设置页面路由名称, 用于router 通过name判断与跳转,避免使用path不易于扩展
CUSTOMER_DETAIL_ROUTE_NAME: 'customerDetail', // 客户详情页面路由name,同上
DEFAULT_H5_PIC: env.DOMAIN + '/static/PIC.png', DEFAULT_H5_PIC: env.DOMAIN + '/static/PIC.png',
DEFAULT_H5_ART: env.DOMAIN + '/static/ARTICAL.png', // 文章默认封面 DEFAULT_H5_ART: env.DOMAIN + '/static/ARTICAL.png', // 文章默认封面
DEFAULT_H5_TP: env.DOMAIN + '/static/TEXT_PIC.png', // 图文默认封面 DEFAULT_H5_TP: env.DOMAIN + '/static/TEXT_PIC.png', // 图文默认封面
......
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
<!-- </el-scrollbar> --> <!-- </el-scrollbar> -->
</template> </template>
<script> <script>
import { registerMicroApps, start } from 'qiankun' // import { registerMicroApps, start } from 'qiankun'
export default { export default {
name: 'AppMain', name: 'AppMain',
data() { data() {
...@@ -50,32 +50,32 @@ export default { ...@@ -50,32 +50,32 @@ export default {
// }, // },
}, },
mounted() { mounted() {
if (window.lwConfig.MICRO_APPS && window.lwConfig.MICRO_APPS.store) { // if (window.lwConfig.MICRO_APPS && window.lwConfig.MICRO_APPS.store) {
// window.Vue2 = window.Vue // // window.Vue2 = window.Vue
// delete window.Vue // // delete window.Vue
window.lwConfig.MICRO_APPS.store.loader = (loading) => (this.loading = loading) // window.lwConfig.MICRO_APPS.store.loader = (loading) => (this.loading = loading)
registerMicroApps([window.lwConfig.MICRO_APPS.store], { // registerMicroApps([window.lwConfig.MICRO_APPS.store], {
beforeLoad: () => (this.isActiveMicroApp = true), // beforeLoad: () => (this.isActiveMicroApp = true),
afterUnmount: () => (this.isActiveMicroApp = false), // afterUnmount: () => (this.isActiveMicroApp = false),
}) // })
start({ // start({
sandbox: { experimentalStyleIsolation: true }, // sandbox: { experimentalStyleIsolation: true },
}) // })
// 挂在window供下面微服务使用 // // 挂在window供下面微服务使用
window.lwConfig.$store = { // window.lwConfig.$store = {
dispatch: (_, s) => { // dispatch: (_, s) => {
this.$store.setBusininessDesc(s) // this.$store.setBusininessDesc(s)
}, // },
} // }
// 初始化 state // // 初始化 state
// const actions = initGlobalState({ token: getToken() }) // // const actions = initGlobalState({ token: getToken() })
// actions.onGlobalStateChange((state, prev) => { // // actions.onGlobalStateChange((state, prev) => {
// // state: 变更后的状态; prev 变更前的状态 // // // state: 变更后的状态; prev 变更前的状态
// }); // // });
// actions.setGlobalState(state) // // actions.setGlobalState(state)
} // }
// if (window.lwConfig.MICRO_APPS) { // if (window.lwConfig.MICRO_APPS) {
// import('qiankun').then(({ registerMicroApps, start }) => { // import('qiankun').then(({ registerMicroApps, start }) => {
// registerMicroApps(window.lwConfig.MICRO_APPS) // registerMicroApps(window.lwConfig.MICRO_APPS)
......
...@@ -110,7 +110,7 @@ export default { ...@@ -110,7 +110,7 @@ export default {
flex-direction: column; flex-direction: column;
transition: width 0.28s; transition: width 0.28s;
width: var(--side-bar-width) !important; width: var(--side-bar-width) !important;
background-color: #fff; background: var(--bg-white);
bottom: 0; bottom: 0;
z-index: 1001; z-index: 1001;
overflow: hidden; overflow: hidden;
...@@ -185,7 +185,7 @@ export default { ...@@ -185,7 +185,7 @@ export default {
// 当前激活菜单 // 当前激活菜单
.el-menu-item.is-active { .el-menu-item.is-active {
background: linear-gradient(to right, var(--color) 0%, var(--color-sub) 100%); background: linear-gradient(to right, var(--color) 0%, var(--color-sub) 100%);
box-shadow: 0px 13px 16px 0px rgba(7, 168, 85, 0.2); box-shadow: 0px 13px 16px 0px hsl(var(--hsl-dark), 0.2);
border-radius: 8px; border-radius: 8px;
color: var(--font-white, #fff) !important; color: var(--font-white, #fff) !important;
z-index: 1; z-index: 1;
......
...@@ -211,7 +211,7 @@ export default { ...@@ -211,7 +211,7 @@ export default {
.tags-view-container { .tags-view-container {
height: 34px; height: 34px;
width: 100%; width: 100%;
background: #fff; background: var(--bg-white);
border-bottom: 1px solid #d8dce5; border-bottom: 1px solid #d8dce5;
box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.12), 0 0 3px 0 rgba(0, 0, 0, 0.04); box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.12), 0 0 3px 0 rgba(0, 0, 0, 0.04);
.tags-view-wrapper { .tags-view-wrapper {
...@@ -223,7 +223,7 @@ export default { ...@@ -223,7 +223,7 @@ export default {
line-height: 26px; line-height: 26px;
border: 1px solid #d8dce5; border: 1px solid #d8dce5;
color: #495060; color: #495060;
background: #fff; background: var(--bg-white);
padding: 0 8px; padding: 0 8px;
font-size: 12px; font-size: 12px;
margin-left: 5px; margin-left: 5px;
...@@ -240,7 +240,7 @@ export default { ...@@ -240,7 +240,7 @@ export default {
border-color: #42b983; border-color: #42b983;
&::before { &::before {
content: ''; content: '';
background: #fff; background: var(--bg-white);
display: inline-block; display: inline-block;
width: 8px; width: 8px;
height: 8px; height: 8px;
...@@ -253,7 +253,7 @@ export default { ...@@ -253,7 +253,7 @@ export default {
} }
.contextmenu { .contextmenu {
margin: 0; margin: 0;
background: #fff; background: var(--bg-white);
z-index: 3000; z-index: 3000;
position: absolute; position: absolute;
list-style-type: none; list-style-type: none;
......
...@@ -107,7 +107,7 @@ export default { ...@@ -107,7 +107,7 @@ export default {
<style lang="scss" scoped> <style lang="scss" scoped>
.g-bg-lg { .g-bg-lg {
background: linear-gradient(to left, var(--color) 0%, var(--color-sub) 100%); background: linear-gradient(to left, var(--color) 0%, var(--color-sub) 100%);
box-shadow: 0px 13px 16px 0px rgba(7, 168, 85, 0.2); box-shadow: 0px 13px 16px 0px hsl(var(--hsl-dark), 0.2);
} }
// .nav-scrollbar { // .nav-scrollbar {
// width: calc(100% - 580px); // width: calc(100% - 580px);
...@@ -124,7 +124,7 @@ export default { ...@@ -124,7 +124,7 @@ export default {
& > .el-menu-item { & > .el-menu-item {
height: 38px !important; height: 38px !important;
line-height: 38px !important; line-height: 38px !important;
color: #1d2129; color: var(--font-black);
border-radius: 8px; border-radius: 8px;
font-weight: bold; font-weight: bold;
margin: 0 4px !important; margin: 0 4px !important;
......
...@@ -207,7 +207,7 @@ export default { ...@@ -207,7 +207,7 @@ export default {
height: 100%; height: 100%;
overflow: hidden; overflow: hidden;
position: relative; position: relative;
color: #1d2129; color: var(--font-black);
.errLog-container { .errLog-container {
display: inline-block; display: inline-block;
...@@ -218,7 +218,7 @@ export default { ...@@ -218,7 +218,7 @@ export default {
// position: absolute; // position: absolute;
// right: 0; // right: 0;
flex: none; flex: none;
background: #fff; background: var(--bg-white);
&:focus { &:focus {
outline: none; outline: none;
...@@ -296,7 +296,7 @@ export default { ...@@ -296,7 +296,7 @@ export default {
// left: 50%; // left: 50%;
// transform: translateX(-50%); // transform: translateX(-50%);
// border-radius: 6px; // border-radius: 6px;
// background: #fff; // background: var(--bg-white);
// } // }
// } // }
// } // }
...@@ -313,7 +313,7 @@ export default { ...@@ -313,7 +313,7 @@ export default {
background: linear-gradient(225deg, var(--color-sub) 0%, var(--color) 100%); background: linear-gradient(225deg, var(--color-sub) 0%, var(--color) 100%);
box-shadow: 0px 4px 20px 0px rgba(28, 49, 111, 0.1); box-shadow: 0px 4px 20px 0px rgba(28, 49, 111, 0.1);
border-radius: 50%; border-radius: 50%;
// background: #fff; // background: var(--bg-white);
// color: var(--color); // color: var(--color);
.contact-us-icon { .contact-us-icon {
color: var(--font-white, #fff); color: var(--font-white, #fff);
......
...@@ -90,7 +90,7 @@ export default { ...@@ -90,7 +90,7 @@ export default {
flex-direction: column; flex-direction: column;
} }
.breadcrumb-wrap { .breadcrumb-wrap {
background: #fff; background: var(--bg-white);
border-top: 1px solid #eee; border-top: 1px solid #eee;
} }
...@@ -100,7 +100,7 @@ export default { ...@@ -100,7 +100,7 @@ export default {
} }
.top-wrap { .top-wrap {
height: var(--top-nav-heght); height: var(--top-nav-heght);
background: #fff; background: var(--bg-white);
} }
.main-wrap { .main-wrap {
......
...@@ -61,7 +61,7 @@ export default { ...@@ -61,7 +61,7 @@ export default {
height: 100vh; height: 100vh;
background: #e3ebf6; background: #e3ebf6;
.login-top--wrap { .login-top--wrap {
background: #fff; background: var(--bg-white);
padding: 5px 20px; padding: 5px 20px;
box-shadow: 0px 5px 5px rgb(215 215 215 / 35%); box-shadow: 0px 5px 5px rgb(215 215 215 / 35%);
} }
......
...@@ -14,6 +14,10 @@ import ElementPlus, { ElNotification } from 'element-plus' ...@@ -14,6 +14,10 @@ import ElementPlus, { ElNotification } from 'element-plus'
import 'element-plus/dist/index.css' import 'element-plus/dist/index.css'
app.use(ElementPlus, {}) app.use(ElementPlus, {})
// import 'element-plus/theme-chalk/dark/css-vars.css'
// import { useDark, useToggle } from '@vueuse/core'
// useDark()
import '@/styles/index.scss' import '@/styles/index.scss'
// svg图标 // svg图标
......
...@@ -54,13 +54,13 @@ export default function permission(router) { ...@@ -54,13 +54,13 @@ export default function permission(router) {
} else { } else {
// 没有设置企业微信的 // 没有设置企业微信的
let isEnterpriseWechat = router.getRoutes().some((element) => { let isEnterpriseWechat = router.getRoutes().some((element) => {
return element.name === window.lwConfig.WORKWEIXINPAGENAME return element.name === window.lwConfig.WORK_WEIXIN_CONFIG_ROUTE_NAME
}) })
// 若有设置企业微信的页面权限,默认跳转到设置企业微信页面 // 若有设置企业微信的页面权限,默认跳转到设置企业微信页面
if (isEnterpriseWechat) { if (isEnterpriseWechat) {
Message.warning('初次使用,请配置企业微信的id,以使用其他功能') Message.warning('初次使用,请配置企业微信的id,以使用其他功能')
next({ next({
name: window.lwConfig.WORKWEIXINPAGENAME, name: window.lwConfig.WORK_WEIXIN_CONFIG_ROUTE_NAME,
replace: true, replace: true,
}) })
} else { } else {
......
...@@ -113,14 +113,15 @@ export const loadView = (route) => { ...@@ -113,14 +113,15 @@ export const loadView = (route) => {
res = modules[path] res = modules[path]
// 为需要单独使用的路由命名,避免使用绝对路径跳转 // 为需要单独使用的路由命名,避免使用绝对路径跳转
// 组件路径: route name
let routeNames = { let routeNames = {
'customerManage/customerDetail': 'customerDetail', // 客户详情 'customerManage/customerDetail': window.lwConfig.CUSTOMER_DETAIL_ROUTE_NAME, // 客户详情
'drainageCode/staff/list': 'staffCode', // 员工活码 'drainageCode/staff/list': 'staffCode', // 员工活码
'drainageCode/group/list': 'customerGroupCode', // 群活码 'drainageCode/group/list': 'customerGroupCode', // 群活码
'drainageCode/store/list': 'storeCode', //门店活码 'drainageCode/store/list': 'storeCode', //门店活码
'drainageCode/identity/list': 'identityCode', //识客码 'drainageCode/identity/list': 'identityCode', //识客码
'drainageCode/pullNews/list': 'pullNewsCode', //拉新活码 'drainageCode/pullNews/list': 'pullNewsCode', //拉新活码
'enterpriseWechat/list': window.lwConfig.WORKWEIXINPAGENAME, //企微配置 'enterpriseWechat/list': window.lwConfig.WORK_WEIXIN_CONFIG_ROUTE_NAME, //企微配置
} }
routeNames[route.component] && (route.name = routeNames[route.component]) routeNames[route.component] && (route.name = routeNames[route.component])
......
...@@ -80,7 +80,7 @@ ...@@ -80,7 +80,7 @@
.--card { .--card {
padding: 20px 20px; padding: 20px 20px;
border-radius: var(--border-radius-big); border-radius: var(--border-radius-big);
background: #fff; background: var(--bg-white);
} }
// 页面公用搜索 // 页面公用搜索
.top-search { .top-search {
...@@ -344,7 +344,7 @@ ...@@ -344,7 +344,7 @@
} }
.el-radio__input.is-disabled { .el-radio__input.is-disabled {
.el-radio__inner { .el-radio__inner {
background-color: #fff; background: var(--bg-white);
border-color: #dcdfe6; border-color: #dcdfe6;
cursor: default; cursor: default;
} }
...@@ -358,7 +358,7 @@ ...@@ -358,7 +358,7 @@
cursor: default; cursor: default;
&::after { &::after {
background-color: #fff; background: var(--bg-white);
} }
} }
} }
...@@ -541,7 +541,7 @@ ...@@ -541,7 +541,7 @@
// .top-search + .el-table { // .top-search + .el-table {
// @extend .--card; // @extend .--card;
// box-sizing: content-box; // box-sizing: content-box;
// border: 20px solid #fff; border-radius: 20px; background: #fff // border: 20px solid #fff; border-radius: 20px; background: var(--bg-white)
// } // }
.el-table { .el-table {
--el-table-header-bg-color: #f5f7fa; --el-table-header-bg-color: #f5f7fa;
......
...@@ -98,7 +98,7 @@ div:focus { ...@@ -98,7 +98,7 @@ div:focus {
padding: 0 15px; padding: 0 15px;
overflow: hidden; overflow: hidden;
height: 32px; height: 32px;
background-color: #fff; background: var(--bg-white);
.tag-place { .tag-place {
color: #bbb; color: #bbb;
font-size: 14px; font-size: 14px;
...@@ -143,7 +143,7 @@ div:focus { ...@@ -143,7 +143,7 @@ div:focus {
font-weight: 500; font-weight: 500;
color: var(--font-black); color: var(--font-black);
padding: 0 20px; padding: 0 20px;
background: #fff; background: var(--bg-white);
border-radius: var(--border-radius-big) var(--border-radius-big) 0 0; border-radius: var(--border-radius-big) var(--border-radius-big) 0 0;
line-height: 1; line-height: 1;
.desc { .desc {
...@@ -174,7 +174,7 @@ div:focus { ...@@ -174,7 +174,7 @@ div:focus {
// 卡片样式 // 卡片样式
&card { &card {
border-radius: var(--border-radius-big); border-radius: var(--border-radius-big);
background: #fff; background: var(--bg-white);
overflow: auto; overflow: auto;
padding: 20px; padding: 20px;
scroll-behavior: smooth; scroll-behavior: smooth;
...@@ -229,7 +229,7 @@ div:focus { ...@@ -229,7 +229,7 @@ div:focus {
justify-content: center; justify-content: center;
height: 60px; height: 60px;
bottom: 0; bottom: 0;
background: #fff; background: var(--bg-white);
box-shadow: 0px -4px 20px 0px #edf2f9; box-shadow: 0px -4px 20px 0px #edf2f9;
border-radius: var(--border-radius-big); border-radius: var(--border-radius-big);
margin-top: var(--card-margin); margin-top: var(--card-margin);
......
...@@ -2,7 +2,8 @@ ...@@ -2,7 +2,8 @@
/* 可以在此定义适用于自己团队的css 变量*/ /* 可以在此定义适用于自己团队的css 变量*/
/* element-plus var */ /* element-plus var */
:root { :root,
html.dark {
--el-color-primary: hsl(var(--hsl)); --el-color-primary: hsl(var(--hsl));
--el-color-primary-light-3: hsl(var(--hsl), 0.7); --el-color-primary-light-3: hsl(var(--hsl), 0.7);
--el-color-primary-light-5: hsl(var(--hsl), 0.5); --el-color-primary-light-5: hsl(var(--hsl), 0.5);
...@@ -12,21 +13,21 @@ ...@@ -12,21 +13,21 @@
--el-color-primary-dark-2: var(--color-dark); --el-color-primary-dark-2: var(--color-dark);
--el-color-success: hsl(var(--hsl)); --el-color-success: hsl(var(--hsl));
--el-color-warning: #faad14;
--el-color-danger: #eb5e12;
/* // --el-color-info: #fa7216; /* // --el-color-info: #fa7216;
// --el-color-info: #1E1E1E; */ // --el-color-info: #1E1E1E; */
--el-background-color-base: #e6f8ef;
--el-border-color-extra-light: #e6f8ef;
/* --el-datepicker-inrange-background-color: var(--border-color-extra-light); /* --el-datepicker-inrange-background-color: var(--border-color-extra-light);
--el-datepicker-inrange-hover-background-color: var(--border-color-extra-light); */ --el-datepicker-inrange-hover-background-color: var(--border-color-extra-light); */
--el-button-font-weight: 400; --el-button-font-weight: 400;
/* // --el-color-text-regular: #1f2d3d; */ /* // --el-color-text-regular: #1f2d3d; */
}
:root {
--el-color-warning: #faad14;
--el-color-danger: #eb5e12;
--el-border-color-extra-light: #e6f8ef;
--el-border-color-light: #dfe4ed; --el-border-color-light: #dfe4ed;
--el-border-color-lighter: #e6ebf5; --el-border-color-lighter: #e6ebf5;
......
// RSA加密 // RSA加密
import JSEncrypt from 'jsencrypt/bin/jsencrypt.js' // import JSEncrypt from 'jsencrypt/bin/jsencrypt.js'
import JSEncrypt from 'jsencrypt'
// 密钥对生成 http://web.chacuo.net/netrsakeypair // 密钥对生成 http://web.chacuo.net/netrsakeypair
......
...@@ -344,7 +344,7 @@ export default { ...@@ -344,7 +344,7 @@ export default {
.info_title { .info_title {
font-size: 16px; font-size: 16px;
font-weight: 600; font-weight: 600;
color: #1d2129; color: var(--font-black);
margin-bottom: 10px; margin-bottom: 10px;
} }
</style> </style>
...@@ -144,7 +144,7 @@ export default { ...@@ -144,7 +144,7 @@ export default {
.info_title { .info_title {
font-size: 16px; font-size: 16px;
font-weight: 600; font-weight: 600;
color: #1d2129; color: var(--font-black);
margin-bottom: 10px; margin-bottom: 10px;
} }
</style> </style>
...@@ -351,7 +351,7 @@ export default { ...@@ -351,7 +351,7 @@ export default {
.info_title { .info_title {
font-size: 16px; font-size: 16px;
font-weight: 600; font-weight: 600;
color: #1d2129; color: var(--font-black);
margin-bottom: 10px; margin-bottom: 10px;
} }
</style> </style>
...@@ -2,16 +2,15 @@ ...@@ -2,16 +2,15 @@
<div> <div>
<el-tabs v-model="activeName"> <el-tabs v-model="activeName">
<el-tab-pane label="任务信息" name="first"> <el-tab-pane label="任务信息" name="first">
<el-row :gutter="20" type="flex" style="margin-top: 20px;"> <el-row :gutter="20" type="flex" style="margin-top: 20px">
<el-col> <el-col>
<div class="g-card"> <div class="g-card">
<div style="display: flex; justify-content: space-between;"> <div style="display: flex; justify-content: space-between">
<div class="info_title">基本信息</div> <div class="info_title">基本信息</div>
<el-button <el-button
v-if="form.taskStatus == 0" v-if="form.taskStatus == 0"
type="primary" type="primary"
@click="$router.push({ path: './add', query: { id: id } })" @click="$router.push({ path: './add', query: { id: id } })">
>
编辑 编辑
</el-button> </el-button>
</div> </div>
...@@ -23,8 +22,7 @@ ...@@ -23,8 +22,7 @@
v-model="form.taskName" v-model="form.taskName"
show-word-limit show-word-limit
disabled disabled
clearable clearable></el-input>
></el-input>
</el-form-item> </el-form-item>
<el-form-item label="任务状态:"> <el-form-item label="任务状态:">
<el-tag :type="form.taskStatus == 0 ? 'info' : form.taskStatus == 2 ? 'danger' : ''"> <el-tag :type="form.taskStatus == 0 ? 'info' : form.taskStatus == 2 ? 'danger' : ''">
...@@ -32,7 +30,7 @@ ...@@ -32,7 +30,7 @@
</el-tag> </el-tag>
</el-form-item> </el-form-item>
<el-form-item label="推广短链:"> <el-form-item label="推广短链:">
<div style="margin-top: 10px;"> <div style="margin-top: 10px">
<ShowShortLinkVue :data="shortLinkObj"></ShowShortLinkVue> <ShowShortLinkVue :data="shortLinkObj"></ShowShortLinkVue>
</div> </div>
</el-form-item> </el-form-item>
...@@ -43,10 +41,10 @@ ...@@ -43,10 +41,10 @@
</el-radio-group> </el-radio-group>
</el-form-item> </el-form-item>
<el-form-item v-if="form.style == 1" label="推广海报:" prop="materialId"> <el-form-item v-if="form.style == 1" label="推广海报:" prop="materialId">
<div style="margin-top: 10px;" v-if="posterUrl"> <div style="margin-top: 10px" v-if="posterUrl">
<ul class="el-upload-list el-upload-list--picture-card"> <ul class="el-upload-list el-upload-list--picture-card">
<li class="el-upload-list__item is-success"> <li class="el-upload-list__item is-success">
<img style="width: 100%; height: 100%;" :src="posterUrl" /> <img style="width: 100%; height: 100%" :src="posterUrl" />
</li> </li>
</ul> </ul>
</div> </div>
...@@ -54,8 +52,8 @@ ...@@ -54,8 +52,8 @@
</el-form> </el-form>
</div> </div>
</el-col> </el-col>
<el-col style="flex-basis: 370px;"> <el-col style="flex-basis: 370px">
<div class="g-card" style="height: 100%;"> <div class="g-card" style="height: 100%">
<div class="info_title">消息预览</div> <div class="info_title">消息预览</div>
<Preview :value="posterUrl"></Preview> <Preview :value="posterUrl"></Preview>
</div> </div>
...@@ -118,128 +116,128 @@ ...@@ -118,128 +116,128 @@
</template> </template>
<script> <script>
import Statistics from './statistics' import Statistics from './statistics'
import Preview from './components/PreviewInPhone.vue' import Preview from './components/PreviewInPhone.vue'
import ShowShortLinkVue from './components/ShowShortLink.vue' import ShowShortLinkVue from './components/ShowShortLink.vue'
import Step3 from './components/Step3.vue' import Step3 from './components/Step3.vue'
import { getDetail } from './api' import { getDetail } from './api'
export default { export default {
name: 'short-link-popularize-detail', name: 'short-link-popularize-detail',
components: { components: {
Statistics, Statistics,
ShowShortLinkVue, ShowShortLinkVue,
Preview, Preview,
Step3 Step3,
}, },
data() { data() {
return { return {
activeName: 'first', activeName: 'first',
form: { form: {
taskName: '', taskName: '',
shortLinkId: '', shortLinkId: '',
style: 0, style: 0,
materialId: '', materialId: '',
type: null, type: null,
attachments: [] attachments: [],
},
choseDialog: false,
showShortLink: false,
shortLinkObj: [],
posterUrl: '',
posterObj: {},
statusType: [
{ name: '待推广', key: 0 },
{ name: '推广中', key: 1 },
{ name: '已结束', key: 2 }
]
}
},
methods: {
setStatus(data) {
let str = ''
this.statusType.forEach((dd) => {
if (dd.key == data.taskStatus) {
str = dd.name
}
})
return str
}, },
getDetailFn() { choseDialog: false,
getDetail(this.id).then((res) => { showShortLink: false,
this.form = res.data shortLinkObj: [],
if (this.form.shortLinkId) { posterUrl: '',
this.shortLinkObj = [this.form.shortLink] posterObj: {},
} statusType: [
if (this.form.style == 1) { { name: '待推广', key: 0 },
this.posterObj = this.form.weMaterial { name: '推广中', key: 1 },
this.posterUrl = this.posterObj.materialUrl { name: '已结束', key: 2 },
} ],
}) }
} },
methods: {
setStatus(data) {
let str = ''
this.statusType.forEach((dd) => {
if (dd.key == data.taskStatus) {
str = dd.name
}
})
return str
},
getDetailFn() {
getDetail(this.id).then((res) => {
this.form = res.data
if (this.form.shortLinkId) {
this.shortLinkObj = [this.form.shortLink]
}
if (this.form.style == 1) {
this.posterObj = this.form.weMaterial
this.posterUrl = this.posterObj.materialUrl
}
})
}, },
created() { },
this.id = this.$route.query.id created() {
if (this.id) { this.id = this.$route.query.id
this.getDetailFn() if (this.id) {
} this.getDetailFn()
} }
} },
}
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.unit { .unit {
// margin: 0 auto; // margin: 0 auto;
display: flex;
flex-wrap: wrap;
// width: 580px;
justify-content: space-between;
.unit-item {
width: 280px;
// height: 80px;
border-width: 1px;
border-style: solid;
border-color: rgba(242, 242, 242, 1);
border-radius: 5px;
display: flex; display: flex;
flex-wrap: wrap; padding: 17px;
// width: 580px; margin-bottom: 20px;
justify-content: space-between; // cursor: pointer;
.unit-item { .icon-style {
width: 280px; margin-right: 10px;
// height: 80px; margin-top: 7px;
border-width: 1px; font-size: 22px;
border-style: solid; width: 24px;
border-color: rgba(242, 242, 242, 1); // height: 20px;
border-radius: 5px; }
display: flex; .item-title {
padding: 17px; margin-top: 4px;
margin-bottom: 20px; font-size: 16px;
// cursor: pointer; font-family: Source Han Sans CN-Regular, Source Han Sans CN;
.icon-style { font-weight: 400;
margin-right: 10px; color: var(--font-black);
margin-top: 7px; }
font-size: 22px; .item-text {
width: 24px; margin-top: 6px;
// height: 20px; font-size: 12px;
} color: #aaaaaa;
.item-title { line-height: 24px;
margin-top: 4px;
font-size: 16px;
font-family: Source Han Sans CN-Regular, Source Han Sans CN;
font-weight: 400;
color: #1d2129;
}
.item-text {
margin-top: 6px;
font-size: 12px;
color: #aaaaaa;
line-height: 24px;
}
&:hover {
border: 1px solid rgba(7, 193, 96, 1);
background-color: rgba(7, 193, 96, 0.09019607843137255);
}
} }
.active_item { &:hover {
border: 1px solid rgba(7, 193, 96, 1); border: 1px solid rgba(7, 193, 96, 1);
background-color: rgba(7, 193, 96, 0.09019607843137255); background-color: rgba(7, 193, 96, 0.09019607843137255);
} }
} }
.info_title { .active_item {
font-size: 16px; border: 1px solid rgba(7, 193, 96, 1);
font-weight: 600; background-color: rgba(7, 193, 96, 0.09019607843137255);
color: #1d2129;
margin-bottom: 10px;
} }
}
.info_title {
font-size: 16px;
font-weight: 600;
color: var(--font-black);
margin-bottom: 10px;
}
</style> </style>
...@@ -144,7 +144,7 @@ export default { ...@@ -144,7 +144,7 @@ export default {
.info_title { .info_title {
font-size: 16px; font-size: 16px;
font-weight: 600; font-weight: 600;
color: #1d2129; color: var(--font-black);
margin-bottom: 10px; margin-bottom: 10px;
} }
</style> </style>
...@@ -543,7 +543,7 @@ export default { ...@@ -543,7 +543,7 @@ export default {
.total-list { .total-list {
.item { .item {
padding: 10px; padding: 10px;
background-color: #fff; background: var(--bg-white);
} }
} }
.title { .title {
......
...@@ -194,7 +194,7 @@ export default { ...@@ -194,7 +194,7 @@ export default {
goDetail(row) { goDetail(row) {
let { externalUserid, firstUserId: userId } = row let { externalUserid, firstUserId: userId } = row
this.$router.push({ this.$router.push({
path: '/operateCenter/customerManage/customerDetail', name: window.lwConfig.CUSTOMER_DETAIL_ROUTE_NAME,
query: { externalUserid, userId }, query: { externalUserid, userId },
}) })
}, },
......
...@@ -97,7 +97,7 @@ export default { ...@@ -97,7 +97,7 @@ export default {
.total-list { .total-list {
.item { .item {
padding: 10px; padding: 10px;
background-color: #fff; background: var(--bg-white);
} }
} }
.title { .title {
......
...@@ -219,7 +219,7 @@ export default { ...@@ -219,7 +219,7 @@ export default {
.total-list { .total-list {
.item { .item {
padding: 10px; padding: 10px;
background-color: #fff; background: var(--bg-white);
} }
} }
</style> </style>
...@@ -182,7 +182,7 @@ export default { ...@@ -182,7 +182,7 @@ export default {
.total-list { .total-list {
.item { .item {
padding: 10px; padding: 10px;
background-color: #fff; background: var(--bg-white);
} }
} }
</style> </style>
...@@ -98,7 +98,7 @@ export default { ...@@ -98,7 +98,7 @@ export default {
.total-list { .total-list {
.item { .item {
padding: 10px; padding: 10px;
background-color: #fff; background: var(--bg-white);
} }
} }
......
...@@ -249,7 +249,7 @@ ...@@ -249,7 +249,7 @@
show-overflow-tooltip /> show-overflow-tooltip />
<el-table-column label="操作" align="center" class-name="small-padding fixed-width"> <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
<template #default="scope"> <template #default="scope">
<el-button text @click="goDetail(scope.row.id)" v-if="scope.row.isCustomer">客户详情</el-button> <el-button text @click="goDetail(scope.row)" v-if="scope.row.isCustomer">客户详情</el-button>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
...@@ -584,6 +584,13 @@ export default { ...@@ -584,6 +584,13 @@ export default {
this.loading = false this.loading = false
}) })
}, },
goDetail(row) {
let { externalUserid, firstUserId: userId } = row
this.$router.push({
name: window.lwConfig.CUSTOMER_DETAIL_ROUTE_NAME,
query: { externalUserid, userId },
})
},
}, },
mounted() { mounted() {
this.dealLength() this.dealLength()
......
...@@ -252,7 +252,7 @@ export default { ...@@ -252,7 +252,7 @@ export default {
font-size: 16px; font-size: 16px;
font-family: Source Han Sans CN-Regular, Source Han Sans CN; font-family: Source Han Sans CN-Regular, Source Han Sans CN;
font-weight: 400; font-weight: 400;
color: #1d2129; color: var(--font-black);
} }
.item-text { .item-text {
margin-top: 6px; margin-top: 6px;
......
...@@ -50,7 +50,7 @@ export default { ...@@ -50,7 +50,7 @@ export default {
box-shadow: 0px 6px 8px 0px rgba(78, 89, 105, 0.3); box-shadow: 0px 6px 8px 0px rgba(78, 89, 105, 0.3);
border-radius: 8px 8px 8px 8px; border-radius: 8px 8px 8px 8px;
border: 1px solid #fff; border: 1px solid #fff;
background: #fff; background: var(--bg-white);
} }
.shabowbox { .shabowbox {
position: fixed; position: fixed;
...@@ -71,7 +71,7 @@ export default { ...@@ -71,7 +71,7 @@ export default {
top: 50%; top: 50%;
margin-top: -235px; margin-top: -235px;
z-index: 2001; z-index: 2001;
background: #fff; background: var(--bg-white);
} }
.shabowboxaudio { .shabowboxaudio {
......
...@@ -223,7 +223,7 @@ export default { ...@@ -223,7 +223,7 @@ export default {
} }
.chatListClassTab { .chatListClassTab {
padding: 10px 10px 0; padding: 10px 10px 0;
background: #fff; background: var(--bg-white);
text-align: left; text-align: left;
} }
</style> </style>
...@@ -221,7 +221,7 @@ export default { ...@@ -221,7 +221,7 @@ export default {
text-align: center; text-align: center;
.el-tabs { .el-tabs {
background: #fff; background: var(--bg-white);
} }
::v-deep .el-tabs__header { ::v-deep .el-tabs__header {
margin: 0; margin: 0;
......
...@@ -297,7 +297,7 @@ export default { ...@@ -297,7 +297,7 @@ export default {
} }
.employ { .employ {
.el-tabs { .el-tabs {
background: #fff; background: var(--bg-white);
} }
.name { .name {
font-size: 16px; font-size: 16px;
......
...@@ -52,7 +52,7 @@ export default { ...@@ -52,7 +52,7 @@ export default {
.line-height { .line-height {
padding: 5px; padding: 5px;
border-radius: 8px 8px 8px 8px; border-radius: 8px 8px 8px 8px;
background-color: #fff; background: var(--bg-white);
} }
.image { .image {
width: 40px; width: 40px;
...@@ -61,7 +61,7 @@ export default { ...@@ -61,7 +61,7 @@ export default {
box-shadow: 0px 6px 8px 0px rgba(78, 89, 105, 0.3); box-shadow: 0px 6px 8px 0px rgba(78, 89, 105, 0.3);
border-radius: 8px 8px 8px 8px; border-radius: 8px 8px 8px 8px;
border: 1px solid #fff; border: 1px solid #fff;
background: #fff; background: var(--bg-white);
} }
.shabowbox { .shabowbox {
position: fixed; position: fixed;
...@@ -82,7 +82,7 @@ export default { ...@@ -82,7 +82,7 @@ export default {
top: 50%; top: 50%;
margin-top: -235px; margin-top: -235px;
z-index: 2001; z-index: 2001;
background: #fff; background: var(--bg-white);
} }
.shabowboxaudio { .shabowboxaudio {
......
...@@ -219,7 +219,7 @@ export default { ...@@ -219,7 +219,7 @@ export default {
} }
.chatListClassTab { .chatListClassTab {
padding: 10px 10px 0; padding: 10px 10px 0;
background: #fff; background: var(--bg-white);
text-align: left; text-align: left;
} }
</style> </style>
...@@ -398,7 +398,7 @@ export default { ...@@ -398,7 +398,7 @@ export default {
goRoute(row) { goRoute(row) {
let { externalUserid, firstUserId: userId } = row let { externalUserid, firstUserId: userId } = row
this.$router.push({ this.$router.push({
path: 'customerDetail', name: window.lwConfig.CUSTOMER_DETAIL_ROUTE_NAME,
query: { externalUserid, userId }, query: { externalUserid, userId },
}) })
}, },
......
...@@ -113,7 +113,7 @@ export default { ...@@ -113,7 +113,7 @@ export default {
width: 50px; width: 50px;
height: 20px; height: 20px;
font-size: 12px; font-size: 12px;
background-color: #fff; background: var(--bg-white);
border: 1px solid #0079de; border: 1px solid #0079de;
border-radius: 10px; border-radius: 10px;
color: #0079de; color: #0079de;
......
...@@ -75,7 +75,7 @@ ...@@ -75,7 +75,7 @@
v-hasPermi="['customerManage:dimission:edit']" v-hasPermi="['customerManage:dimission:edit']"
@click=" @click="
$router.push({ $router.push({
name: 'customerDetail', name: window.lwConfig.CUSTOMER_DETAIL_ROUTE_NAME,
query: { externalUserid: row.externalUserid, userId: row.firstUserId, isDelete: true } query: { externalUserid: row.externalUserid, userId: row.firstUserId, isDelete: true }
}) })
" "
......
...@@ -276,7 +276,7 @@ export default { ...@@ -276,7 +276,7 @@ export default {
<el-button <el-button
@click=" @click="
$router.push({ $router.push({
path: '/customerManage/customerManage/customer/customerDetail', name: window.lwConfig.CUSTOMER_DETAIL_ROUTE_NAME,
query: { query: {
externalUserid: row.externalUserid, externalUserid: row.externalUserid,
userId: row.firstUserId, userId: row.firstUserId,
......
...@@ -193,7 +193,7 @@ export default { ...@@ -193,7 +193,7 @@ export default {
<div class="page"> <div class="page">
<div style="margin-top: 16px"> <div style="margin-top: 16px">
<el-row type="flex" justify="space-between"> <el-row type="flex" justify="space-between">
<el-col :span="5" class="left pad20" style="border-radius: 4px; background: #fff"> <el-col :span="5" class="left pad20" style="border-radius: 4px; background: var(--bg-white)">
<div class="title"> <div class="title">
<div class="title-name">{{ typeTitle[type] }}分组</div> <div class="title-name">{{ typeTitle[type] }}分组</div>
</div> </div>
......
...@@ -242,6 +242,6 @@ export default { ...@@ -242,6 +242,6 @@ export default {
top: 0; top: 0;
left: 0; left: 0;
z-index: 10; z-index: 10;
background-color: #fff; background: var(--bg-white);
} }
</style> </style>
...@@ -1519,7 +1519,7 @@ export default { ...@@ -1519,7 +1519,7 @@ export default {
font-weight: 500; font-weight: 500;
color: #333; color: #333;
padding: 0 20px; padding: 0 20px;
background: #fff; background: var(--bg-white);
border-top-left-radius: 4px; border-top-left-radius: 4px;
border-top-right-radius: 4px; border-top-right-radius: 4px;
} }
...@@ -1590,7 +1590,7 @@ export default { ...@@ -1590,7 +1590,7 @@ export default {
img { img {
width: 132px; width: 132px;
height: 132px; height: 132px;
background-color: #fff; //设置白色背景色 background: var(--bg-white); //设置白色背景色
padding: 6px; // 利用padding的特性,挤出白边 padding: 6px; // 利用padding的特性,挤出白边
} }
} }
......
...@@ -228,7 +228,7 @@ $selectedColor: #f6f7ff; ...@@ -228,7 +228,7 @@ $selectedColor: #f6f7ff;
right: 56px; right: 56px;
border-color: var(--color); border-color: var(--color);
color: var(--color); color: var(--color);
background: #fff; background: var(--bg-white);
&:hover { &:hover {
background: var(--color); background: var(--color);
color: var(--font-white, #fff); color: var(--font-white, #fff);
...@@ -238,7 +238,7 @@ $selectedColor: #f6f7ff; ...@@ -238,7 +238,7 @@ $selectedColor: #f6f7ff;
right: 24px; right: 24px;
border-color: #f56c6c; border-color: #f56c6c;
color: #f56c6c; color: #f56c6c;
background: #fff; background: var(--bg-white);
&:hover { &:hover {
background: #f56c6c; background: #f56c6c;
color: var(--font-white, #fff); color: var(--font-white, #fff);
......
...@@ -925,7 +925,7 @@ export default { ...@@ -925,7 +925,7 @@ export default {
width: 100%; width: 100%;
height: 100%; height: 100%;
// max-height: 100vh; // max-height: 100vh;
background: #fff; background: var(--bg-white);
} }
.containerPC { .containerPC {
max-width: 350px; max-width: 350px;
......
...@@ -783,7 +783,7 @@ $selectedColor: #f6f7ff; ...@@ -783,7 +783,7 @@ $selectedColor: #f6f7ff;
.logo-wrapper { .logo-wrapper {
position: relative; position: relative;
height: 42px; height: 42px;
background: #fff; background: var(--bg-white);
border-bottom: 1px solid #f1e8e8; border-bottom: 1px solid #f1e8e8;
box-sizing: border-box; box-sizing: border-box;
} }
...@@ -934,7 +934,7 @@ $selectedColor: #f6f7ff; ...@@ -934,7 +934,7 @@ $selectedColor: #f6f7ff;
right: 56px; right: 56px;
border-color: var(--color); border-color: var(--color);
color: var(--color); color: var(--color);
background: #fff; background: var(--bg-white);
&:hover { &:hover {
background: var(--color); background: var(--color);
color: var(--font-white, #fff); color: var(--font-white, #fff);
...@@ -944,7 +944,7 @@ $selectedColor: #f6f7ff; ...@@ -944,7 +944,7 @@ $selectedColor: #f6f7ff;
right: 24px; right: 24px;
border-color: #f56c6c; border-color: #f56c6c;
color: #f56c6c; color: #f56c6c;
background: #fff; background: var(--bg-white);
&:hover { &:hover {
background: #f56c6c; background: #f56c6c;
color: var(--font-white, #fff); color: var(--font-white, #fff);
...@@ -1012,13 +1012,13 @@ $selectedColor: #f6f7ff; ...@@ -1012,13 +1012,13 @@ $selectedColor: #f6f7ff;
border-left: 1px solid #d7d7d7; border-left: 1px solid #d7d7d7;
} }
.smartForms_build_index_liBtn { .smartForms_build_index_liBtn {
background-color: #fff; background: var(--bg-white);
border-left: 0px solid #d7d7d7 !important; border-left: 0px solid #d7d7d7 !important;
border-bottom: none; border-bottom: none;
} }
} }
.drawing-item { .drawing-item {
background-color: #fff !important; background: var(--bg-white) !important;
overflow: inherit !important; overflow: inherit !important;
} }
.sortable-ghost .ssc { .sortable-ghost .ssc {
......
...@@ -317,7 +317,7 @@ export default { ...@@ -317,7 +317,7 @@ export default {
.dataStatistics_optionGraph_li { .dataStatistics_optionGraph_li {
margin-bottom: 10px; margin-bottom: 10px;
width: 49.6%; width: 49.6%;
background-color: #fff; background: var(--bg-white);
padding: 30px; padding: 30px;
} }
} }
......
...@@ -240,7 +240,7 @@ export default { ...@@ -240,7 +240,7 @@ export default {
.dataStatistics_optionGraph_li { .dataStatistics_optionGraph_li {
margin-bottom: 10px; margin-bottom: 10px;
width: 49.6%; width: 49.6%;
background-color: #fff; background: var(--bg-white);
padding: 30px; padding: 30px;
} }
} }
......
...@@ -97,7 +97,7 @@ export default { ...@@ -97,7 +97,7 @@ export default {
justify-content: space-between; justify-content: space-between;
width: 100%; width: 100%;
border-radius: 5px; border-radius: 5px;
background-color: #fff; background: var(--bg-white);
padding: 20px; padding: 20px;
box-sizing: border-box; box-sizing: border-box;
} }
......
...@@ -34,7 +34,7 @@ export default { ...@@ -34,7 +34,7 @@ export default {
.active { .active {
font-weight: 600; font-weight: 600;
color: var(--color) !important; color: var(--color) !important;
background-color: #fff !important; background: var(--bg-white) !important;
box-shadow: 0px 6px 30px 5px rgba(59, 59, 59, 0.05); box-shadow: 0px 6px 30px 5px rgba(59, 59, 59, 0.05);
} }
.card-tab { .card-tab {
......
...@@ -236,7 +236,7 @@ export default { ...@@ -236,7 +236,7 @@ export default {
.total-list { .total-list {
.item { .item {
padding: 10px; padding: 10px;
background-color: #fff; background: var(--bg-white);
} }
} }
......
...@@ -34,7 +34,7 @@ export default { ...@@ -34,7 +34,7 @@ export default {
.active { .active {
font-weight: 600; font-weight: 600;
color: var(--color) !important; color: var(--color) !important;
background-color: #fff !important; background: var(--bg-white) !important;
box-shadow: 0px 6px 30px 5px rgba(59, 59, 59, 0.05); box-shadow: 0px 6px 30px 5px rgba(59, 59, 59, 0.05);
} }
.card-tab { .card-tab {
......
...@@ -34,7 +34,7 @@ export default { ...@@ -34,7 +34,7 @@ export default {
.active { .active {
font-weight: 600; font-weight: 600;
color: var(--color) !important; color: var(--color) !important;
background-color: #fff !important; background: var(--bg-white) !important;
box-shadow: 0px 6px 30px 5px rgba(59, 59, 59, 0.05); box-shadow: 0px 6px 30px 5px rgba(59, 59, 59, 0.05);
} }
.card-tab { .card-tab {
......
...@@ -209,7 +209,7 @@ export default { ...@@ -209,7 +209,7 @@ export default {
<style lang="scss" scoped> <style lang="scss" scoped>
.page { .page {
padding: 30px; padding: 30px;
background-color: #fff; background: var(--bg-white);
border-radius: 8px; border-radius: 8px;
} }
...@@ -237,7 +237,7 @@ export default { ...@@ -237,7 +237,7 @@ export default {
font-weight: 500; font-weight: 500;
color: #333; color: #333;
padding: 0 20px; padding: 0 20px;
background: #fff; background: var(--bg-white);
border-top-left-radius: 4px; border-top-left-radius: 4px;
border-top-right-radius: 4px; border-top-right-radius: 4px;
} }
......
...@@ -636,7 +636,7 @@ export default { ...@@ -636,7 +636,7 @@ export default {
font-weight: 500; font-weight: 500;
color: #333; color: #333;
padding: 0 20px; padding: 0 20px;
background: #fff; background: var(--bg-white);
border-top-left-radius: 4px; border-top-left-radius: 4px;
border-top-right-radius: 4px; border-top-right-radius: 4px;
} }
......
...@@ -466,7 +466,7 @@ export default { ...@@ -466,7 +466,7 @@ export default {
font-weight: 500; font-weight: 500;
color: #333; color: #333;
padding: 0 20px; padding: 0 20px;
background: #fff; background: var(--bg-white);
border-top-left-radius: 4px; border-top-left-radius: 4px;
border-top-right-radius: 4px; border-top-right-radius: 4px;
} }
......
...@@ -70,15 +70,15 @@ export default { ...@@ -70,15 +70,15 @@ export default {
boxData: [ boxData: [
{ {
title: `管理员账号登录企业微信管理后台——进入【应用管理】——点击【${lwConfig.SYSTEM_NAME_MOBILE}】`, title: `管理员账号登录企业微信管理后台——进入【应用管理】——点击【${lwConfig.SYSTEM_NAME_MOBILE}】`,
url: ('@/assets/register/guid/customer-portrait-one.png'), url: '@/assets/register/guid/customer-portrait-one.png',
}, },
{ {
title: `在【${lwConfig.SYSTEM_NAME_MOBILE}】应用内找到“配置到聊天工具栏”功能中的“配置”按钮`, title: `在【${lwConfig.SYSTEM_NAME_MOBILE}】应用内找到“配置到聊天工具栏”功能中的“配置”按钮`,
url: ('@/assets/register/guid/customer-portrait-two.png'), url: '@/assets/register/guid/customer-portrait-two.png',
}, },
{ {
title: '进入“配置到聊天工具栏”功能页后点击“配置页面”按钮配置路径', title: '进入“配置到聊天工具栏”功能页后点击“配置页面”按钮配置路径',
url: ('@/assets/register/guid/customer-portrait-three.png'), url: '@/assets/register/guid/customer-portrait-three.png',
}, },
], ],
boxDataTwo: { boxDataTwo: {
...@@ -87,7 +87,7 @@ export default { ...@@ -87,7 +87,7 @@ export default {
title2: '客户画像', title2: '客户画像',
title3: '输入页面内容:选择“自定义”,内容链接为:', title3: '输入页面内容:选择“自定义”,内容链接为:',
title4: 'https://×××××××', title4: 'https://×××××××',
url: ('@/assets/register/guid/customer-portrait-four.png'), url: '@/assets/register/guid/customer-portrait-four.png',
}, },
buttonData: { buttonData: {
one: '返回上一步', one: '返回上一步',
...@@ -98,7 +98,7 @@ export default { ...@@ -98,7 +98,7 @@ export default {
boxData: [ boxData: [
{ {
title: '在当前页面内点击“继续配置”按钮', title: '在当前页面内点击“继续配置”按钮',
url: ('@/assets/register/guid/chat-material-five.png'), url: '@/assets/register/guid/chat-material-five.png',
}, },
], ],
boxDataTwo: { boxDataTwo: {
...@@ -107,7 +107,7 @@ export default { ...@@ -107,7 +107,7 @@ export default {
title2: '聊天素材', title2: '聊天素材',
title3: '输入页面内容:选择“自定义”,内容链接为:', title3: '输入页面内容:选择“自定义”,内容链接为:',
title4: 'https://×××××××', title4: 'https://×××××××',
url: ('@/assets/register/guid/chat-material-six.png'), url: '@/assets/register/guid/chat-material-six.png',
}, },
buttonData: { buttonData: {
one: '返回上一步', one: '返回上一步',
...@@ -118,7 +118,7 @@ export default { ...@@ -118,7 +118,7 @@ export default {
boxData: [ boxData: [
{ {
title: '在当前页面内点击“继续配置”按钮', title: '在当前页面内点击“继续配置”按钮',
url: ('@/assets/register/guid/keyword-group-seven.png'), url: '@/assets/register/guid/keyword-group-seven.png',
}, },
], ],
boxDataTwo: { boxDataTwo: {
...@@ -127,7 +127,7 @@ export default { ...@@ -127,7 +127,7 @@ export default {
title2: '关键词群', title2: '关键词群',
title3: '输入页面内容:选择“自定义”,内容链接为:', title3: '输入页面内容:选择“自定义”,内容链接为:',
title4: 'https://×××××××', title4: 'https://×××××××',
url: ('@/assets/register/guid/keyword-group-eight.png'), url: '@/assets/register/guid/keyword-group-eight.png',
}, },
buttonData: { buttonData: {
one: '返回上一步', one: '返回上一步',
...@@ -138,7 +138,7 @@ export default { ...@@ -138,7 +138,7 @@ export default {
boxData: [ boxData: [
{ {
title: '在当前页面内点击“继续配置”按钮', title: '在当前页面内点击“继续配置”按钮',
url: ('@/assets/register/guid/red-envelopes-nine.png'), url: '@/assets/register/guid/red-envelopes-nine.png',
}, },
], ],
boxDataTwo: { boxDataTwo: {
...@@ -147,7 +147,7 @@ export default { ...@@ -147,7 +147,7 @@ export default {
title2: '红包', title2: '红包',
title3: '输入页面内容:选择“自定义”,内容链接为:', title3: '输入页面内容:选择“自定义”,内容链接为:',
title4: 'https://×××××××', title4: 'https://×××××××',
url: ('@/assets/register/guid/red-envelopes-ten.png'), url: '@/assets/register/guid/red-envelopes-ten.png',
}, },
buttonData: { buttonData: {
one: '返回上一步', one: '返回上一步',
...@@ -216,7 +216,7 @@ svg.svg-icon { ...@@ -216,7 +216,7 @@ svg.svg-icon {
width: 80%; width: 80%;
height: 146px; height: 146px;
border-radius: 4px; border-radius: 4px;
background-color: #fff; background: var(--bg-white);
padding-top: 20px; padding-top: 20px;
margin-top: 20px; margin-top: 20px;
margin-bottom: 10px; margin-bottom: 10px;
...@@ -228,14 +228,14 @@ svg.svg-icon { ...@@ -228,14 +228,14 @@ svg.svg-icon {
.content-box { .content-box {
width: 80%; width: 80%;
padding: 20px; padding: 20px;
background: #fff; background: var(--bg-white);
padding-bottom: 60px; padding-bottom: 60px;
} }
.content { .content {
// width: 80%; // width: 80%;
} }
.tab { .tab {
background: #fff; background: var(--bg-white);
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;
......
...@@ -26,7 +26,7 @@ export default { ...@@ -26,7 +26,7 @@ export default {
callback: (action) => { callback: (action) => {
sessionStorage.setItem('currentActive', '4') sessionStorage.setItem('currentActive', '4')
this.$router.push({ this.$router.push({
name: window.lwConfig.WORKWEIXINPAGENAME, name: window.lwConfig.WORK_WEIXIN_CONFIG_ROUTE_NAME,
}) })
}, },
}, },
...@@ -41,7 +41,7 @@ export default { ...@@ -41,7 +41,7 @@ export default {
callback: (action) => { callback: (action) => {
sessionStorage.setItem('currentActive', '3') sessionStorage.setItem('currentActive', '3')
this.$router.push({ this.$router.push({
name: window.lwConfig.WORKWEIXINPAGENAME, name: window.lwConfig.WORK_WEIXIN_CONFIG_ROUTE_NAME,
}) })
}, },
}, },
......
...@@ -476,7 +476,7 @@ export default { ...@@ -476,7 +476,7 @@ export default {
.view-item-num { .view-item-num {
font-size: 24px; font-size: 24px;
font-weight: 500; font-weight: 500;
color: #1d2129; color: var(--font-black);
font-family: Bahnschrift-Regular, Bahnschrift; font-family: Bahnschrift-Regular, Bahnschrift;
} }
} }
......
...@@ -327,7 +327,7 @@ export default { ...@@ -327,7 +327,7 @@ export default {
margin: 0 20px 20px 0; margin: 0 20px 20px 0;
padding: 20px 20px 10px; padding: 20px 20px 10px;
border: 1px solid #eee; border: 1px solid #eee;
background: #fff; background: var(--bg-white);
border-radius: 6px; border-radius: 6px;
.el-image { .el-image {
margin-right: 10px; margin-right: 10px;
......
...@@ -207,7 +207,7 @@ export default { ...@@ -207,7 +207,7 @@ export default {
padding: 20px 20px 0; padding: 20px 20px 0;
border: 1px solid #eee; border: 1px solid #eee;
margin: 0 20px 20px 0; margin: 0 20px 20px 0;
background: #fff; background: var(--bg-white);
border-radius: 6px; border-radius: 6px;
.title { .title {
font-size: 16px; font-size: 16px;
......
...@@ -205,7 +205,7 @@ export default { ...@@ -205,7 +205,7 @@ export default {
.login-text { .login-text {
font-size: 32px; font-size: 32px;
font-weight: 700; font-weight: 700;
color: #1d2129; color: var(--font-black);
margin: 26px auto 50px auto; margin: 26px auto 50px auto;
} }
......
...@@ -487,7 +487,7 @@ export default { ...@@ -487,7 +487,7 @@ export default {
} }
.boxCard { .boxCard {
min-width: 300px; min-width: 300px;
background: #fff; background: var(--bg-white);
border-radius: 4px; border-radius: 4px;
margin: 0 10px 20px 0; margin: 0 10px 20px 0;
padding: 22px 20px; padding: 22px 20px;
......
...@@ -178,13 +178,41 @@ export default defineConfig(async ({ command, mode }) => { ...@@ -178,13 +178,41 @@ export default defineConfig(async ({ command, mode }) => {
env._ISCDN && env._ISCDN &&
vitePluginCdnImport({ vitePluginCdnImport({
// prodUrl: 'https://unpkg.com/{name}@{version}/{path}', // prodUrl: 'https://unpkg.com/{name}@{version}/{path}',
prodUrl: 'https://cdn.bootcdn.net/ajax/libs/{name}/{version}/{path}',
modules: [ modules: [
// autoComplete('vue'), // autoComplete('vue'),
// autoComplete('axios'), // autoComplete('axios'),
{ {
name: 'axios', // 包名 name: 'axios', // 包名
var: 'axios', // 对应cdn包导出的变量,如jQuery导出的是$ var: 'axios', // 对应cdn包导出的变量,如jQuery导出的是$
path: '//cdn.bootcdn.net/ajax/libs/axios/1.4.0/axios.min.js', version: '1.4.0',
path: 'axios.min.js',
},
{
name: 'clipboard',
var: 'ClipboardJS',
version: '2.0.11',
path: 'https://cdn.bootcdn.net/ajax/libs/clipboard.js/2.0.11/clipboard.min.js',
},
{
name: 'jsencrypt',
var: 'JSEncrypt',
version: '3.3.2',
path: 'jsencrypt.min.js',
},
{
name: 'crypto-js',
var: 'CryptoJS',
version: '4.1.1',
path: 'crypto-js.min.js',
},
{
name: 'nprogress',
var: 'NProgress',
version: '0.2.0',
path: 'nprogress.min.js',
css: 'nprogress.min.css',
}, },
// { // {
// name: 'element-plus', // name: 'element-plus',
...@@ -199,11 +227,11 @@ export default defineConfig(async ({ command, mode }) => { ...@@ -199,11 +227,11 @@ export default defineConfig(async ({ command, mode }) => {
// version: '2.1.0', // version: '2.1.0',
// path: 'dist/index.iife.min.js', // path: 'dist/index.iife.min.js',
// }, // },
// { {
// name: 'ali-oss', name: 'ali-oss',
// var: 'OSS', var: 'OSS',
// path: 'http://gosspublic.alicdn.com/aliyun-oss-sdk-6.17.1.min.js', path: 'https://gosspublic.alicdn.com/aliyun-oss-sdk-6.17.1.min.js',
// }, },
], ],
}), }),
rollupPluginVisualizer({ rollupPluginVisualizer({
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!