Commit ce85ab93 by xinla

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

2 parents 15e7063b 879d233c
<script> <script>
import Vue from 'vue' import Vue from 'vue'
import VueAMap from 'vue-amap' import VueAMap from 'vue-amap'
Vue.use(VueAMap) Vue.use(VueAMap)
VueAMap.initAMapApiLoader({ VueAMap.initAMapApiLoader({
key: '32396af00cd726deed804cf5b63ed2d8', key: '32396af00cd726deed804cf5b63ed2d8',
plugin: [ plugin: [
'AMap.Autocomplete', 'AMap.Autocomplete',
...@@ -13,24 +13,24 @@ ...@@ -13,24 +13,24 @@
'AMap.ToolBar', 'AMap.ToolBar',
'AMap.MapType', 'AMap.MapType',
'AMap.PolyEditor', 'AMap.PolyEditor',
'AMap.CircleEditor' 'AMap.CircleEditor',
], ],
v: '1.4.4' v: '1.4.4',
}) })
import Voice from '@/components/Voice' import Voice from '@/components/Voice'
import { parseTime } from '@/utils/common.js' import { parseTime } from '@/utils/common.js'
import { emotion } from '@/utils/index.js' import { emotion } from '@/utils/index.js'
export default { export default {
name: 'ChatContent', name: 'ChatContent',
props: { props: {
message: { message: {
type: Object, type: Object,
default: () => ({}) default: () => ({}),
}, },
queryChat: { queryChat: {
type: Object, type: Object,
default: () => ({}) default: () => ({}),
} },
}, },
components: { Voice }, components: { Voice },
data() { data() {
...@@ -47,7 +47,7 @@ ...@@ -47,7 +47,7 @@
video: 'attachment', video: 'attachment',
voice: 'attachment', voice: 'attachment',
location: 'address', location: 'address',
weapp: 'title' weapp: 'title',
} }
let attr = typeDict[this.message.msgType] let attr = typeDict[this.message.msgType]
if (attr) { if (attr) {
...@@ -55,7 +55,7 @@ ...@@ -55,7 +55,7 @@
} else { } else {
return JSON.parse(this.message.contact) return JSON.parse(this.message.contact)
} }
} },
}, },
watch: {}, watch: {},
created() {}, created() {},
...@@ -66,9 +66,9 @@ ...@@ -66,9 +66,9 @@
}, },
setDate(str) { setDate(str) {
return parseTime(str) return parseTime(str)
} },
} },
} }
</script> </script>
<template> <template>
...@@ -82,14 +82,13 @@ ...@@ -82,14 +82,13 @@
<img <img
v-else v-else
:src="`https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/${setIndex( :src="`https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/${setIndex(
JSON.parse(this.message.contact).content JSON.parse(this.message.contact).content,
)}.gif`" )}.gif`"
alt="" alt="" />
/>
</template> </template>
<template v-else-if="message.msgType === 'revoke'"> 已撤回 </template> <template v-else-if="message.msgType === 'revoke'">已撤回</template>
<template v-else-if="'image,emotion'.includes(message.msgType)"> <template v-else-if="'image,emotion'.includes(message.msgType)">
<el-image style="width: 100px; height: 100px;" :src="content" fit="fit" :preview-src-list="[content]"> </el-image> <el-image style="width: 100px; height: 100px" :src="content" fit="fit" :preview-src-list="[content]"></el-image>
</template> </template>
<a v-else-if="'file'.includes(message.msgType)" class="msgtypefile"> <a v-else-if="'file'.includes(message.msgType)" class="msgtypefile">
<!-- :href="JSON.parse(this.message.contact).attachment" <!-- :href="JSON.parse(this.message.contact).attachment"
...@@ -100,19 +99,18 @@ ...@@ -100,19 +99,18 @@
v-else-if="'docmsg'.includes(message.msgType)" v-else-if="'docmsg'.includes(message.msgType)"
class="msgtypefile" class="msgtypefile"
:href="JSON.parse(this.message.contact).link_url" :href="JSON.parse(this.message.contact).link_url"
target="_black" target="_black">
>
{{ content }} {{ content }}
</a> </a>
<div v-else-if="message.msgType === 'voice'"> <div v-else-if="message.msgType === 'voice'">
<voice :amrUrl="JSON.parse(message.contact)['attachment']"></voice> <voice :amrUrl="JSON.parse(message.contact)['attachment']"></voice>
<span style="font-size: 12px; color: #999;">语音消息</span> <span style="font-size: 12px; color: #999">语音消息</span>
</div> </div>
<div v-else-if="message.msgType === 'meeting_voice_call'"> <div v-else-if="message.msgType === 'meeting_voice_call'">
<voice :amrUrl="JSON.parse(message.contact)['attachment']"></voice> <voice :amrUrl="JSON.parse(message.contact)['attachment']"></voice>
<span style="font-size: 12px; color: #999;" v-if="JSON.parse(message.contact)['endtime']" <span style="font-size: 12px; color: #999" v-if="JSON.parse(message.contact)['endtime']">
>语音通话-结束时间:{{ setDate(JSON.parse(message.contact)['endtime']) }}</span 语音通话-结束时间:{{ setDate(JSON.parse(message.contact)['endtime']) }}
> </span>
</div> </div>
<template v-else-if="message.msgType === 'video'"> <template v-else-if="message.msgType === 'video'">
<video <video
...@@ -123,24 +121,21 @@ ...@@ -123,24 +121,21 @@
playsinline="true" playsinline="true"
:autoplay="false" :autoplay="false"
preload="none" preload="none"
style="height: 100%; width: 100%;" style="height: 100%; width: 100%">
>
<source :src="content" type="video/mp4" /> <source :src="content" type="video/mp4" />
</video> </video>
</template> </template>
<div v-else-if="message.msgType === 'location'" class="msgtypecard"> <div v-else-if="message.msgType === 'location'" class="msgtypecard">
<div class="card-content" style="height: 100%; width: 100%;"> <div class="card-content" style="height: 100%; width: 100%">
<el-amap <el-amap
ref="map" ref="map"
vid="amapDemo" vid="amapDemo"
:center="[JSON.parse(message.contact).longitude, JSON.parse(message.contact).latitude]" :center="[JSON.parse(message.contact).longitude, JSON.parse(message.contact).latitude]"
:zoom="14" :zoom="14"
class="amap-demo" class="amap-demo"
style="height: 120px; width: 250px; pointer-events: none;" style="height: 120px; width: 250px; pointer-events: none">
>
<el-amap-marker <el-amap-marker
:position="[JSON.parse(message.contact).longitude, JSON.parse(message.contact).latitude]" :position="[JSON.parse(message.contact).longitude, JSON.parse(message.contact).latitude]"></el-amap-marker>
></el-amap-marker>
</el-amap> </el-amap>
</div> </div>
<div class="card-foot">{{ content }}</div> <div class="card-foot">{{ content }}</div>
...@@ -151,7 +146,7 @@ ...@@ -151,7 +146,7 @@
</div> </div>
<div v-else-if="message.msgType === 'card'" class="msgtypecard"> <div v-else-if="message.msgType === 'card'" class="msgtypecard">
<div class="card-content"> <div class="card-content">
<span style="flex: none;"> {{ content.corpname }}: </span> <span style="flex: none">{{ content.corpname }}:</span>
<span> <span>
{{ content.userid }} {{ content.userid }}
</span> </span>
...@@ -162,26 +157,22 @@ ...@@ -162,26 +157,22 @@
<div v-else-if="message.msgType === 'link'" class="msgtypecard"> <div v-else-if="message.msgType === 'link'" class="msgtypecard">
<a target="_black" :href="content.link_url"> <a target="_black" :href="content.link_url">
<div class="card-content fxbw"> <div class="card-content fxbw">
<div style="flex: 1;"> <div style="flex: 1">
<div class="card--link-title">{{ content.title }}</div> <div class="card--link-title">{{ content.title }}</div>
<div class="card--link-desc">{{ content.description }}</div> <div class="card--link-desc">{{ content.description }}</div>
</div> </div>
<el-image style="width: 50px; height: 50px;" :src="content.image_url" fit="fit"></el-image> <el-image style="width: 50px; height: 50px" :src="content.image_url" fit="fit"></el-image>
</div> </div>
</a> </a>
</div> </div>
<div v-else-if="message.msgType === 'agree'"> <div v-else-if="message.msgType === 'agree'">客户已同意会话存档</div>
客户已同意会话存档 <div v-else-if="message.msgType === 'disagree'">客户不同意会话存档</div>
</div>
<div v-else-if="message.msgType === 'disagree'">
客户不同意会话存档
</div>
<div v-else>不支持的消息类型:{{ message.msgType }}</div> <div v-else>不支持的消息类型:{{ message.msgType }}</div>
</div> </div>
</template> </template>
<style lang="scss" scoped> <style lang="scss" scoped>
.message { .message {
max-width: 50%; max-width: 50%;
background-color: #fff; background-color: #fff;
position: relative; position: relative;
...@@ -210,15 +201,15 @@ ...@@ -210,15 +201,15 @@
top: 8px; top: 8px;
z-index: 888; z-index: 888;
} }
} }
.message-right { .message-right {
max-width: 50%; max-width: 50%;
position: relative; position: relative;
background-color: #fff; background-color: #fff;
padding: 10px; padding: 10px;
line-height: 14px; line-height: 14px;
border-radius: 5px; border-radius: 5px;
// background: $blue; // background: var(--color);
box-shadow: 0px 2px 6px 0px rgba(60, 136, 240, 0.1); box-shadow: 0px 2px 6px 0px rgba(60, 136, 240, 0.1);
border: 1px solid #e1edfc; border: 1px solid #e1edfc;
color: #333; color: #333;
...@@ -240,8 +231,8 @@ ...@@ -240,8 +231,8 @@
top: 8px; top: 8px;
z-index: 888; z-index: 888;
} }
} }
.msgtypefile { .msgtypefile {
margin: 5px; margin: 5px;
width: 200px; width: 200px;
display: inline-block; display: inline-block;
...@@ -250,9 +241,9 @@ ...@@ -250,9 +241,9 @@
color: #199ed8; color: #199ed8;
// text-indent: 10px; // text-indent: 10px;
// box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.2), 0 1px 4px 0 rgba(0, 0, 0, 0.19); // box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.2), 0 1px 4px 0 rgba(0, 0, 0, 0.19);
} }
.msgtypecard { .msgtypecard {
// width: 320px; // width: 320px;
// height: 140px; // height: 140px;
margin: 10px 5px; margin: 10px 5px;
...@@ -308,5 +299,5 @@ ...@@ -308,5 +299,5 @@
font-weight: bold; font-weight: bold;
width: 100%; width: 100%;
} }
} }
</style> </style>
...@@ -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,44 +17,43 @@ ...@@ -18,44 +17,43 @@
</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 () { created() {
if (this.$route.query.groupCodeId) this.groupCodeId = this.$route.query.groupCodeId if (this.$route.query.groupCodeId) this.groupCodeId = this.$route.query.groupCodeId
}, },
methods: { methods: {
// 下一步 // 下一步
next (groupCodeId, info) { next(groupCodeId, info) {
this.loading = false this.loading = false
if (groupCodeId || info) { if (groupCodeId || info) {
if (groupCodeId) this.groupCodeId = groupCodeId if (groupCodeId) this.groupCodeId = groupCodeId
...@@ -65,39 +63,39 @@ ...@@ -65,39 +63,39 @@
} }
}, },
// 上一步 // 上一步
prev () { prev() {
this.active -= 1 this.active -= 1
if (this.active < 0) this.active = 0 if (this.active < 0) this.active = 0
}, },
// 完成 // 完成
finished () { finished() {
this.next() this.next()
this.$router.back() this.$router.back()
}, },
// 新增或更新群活码 // 新增或更新群活码
handleGroupCode () { handleGroupCode() {
if (!this.$refs.baseInfo.handleValidateFn()) return if (!this.$refs.baseInfo.handleValidateFn()) return
this.loading = true this.loading = true
this.$refs.baseInfo.submit() this.$refs.baseInfo.submit()
}, },
// 管理实际群活码 // 管理实际群活码
handleRealCode () { handleRealCode() {
this.next() 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: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', 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!