Commit cee9d138 by 张立顺

feat 冀联logo配置

1 parent 1b32a953
...@@ -21,7 +21,7 @@ export const fetchConfig = (isEnv = sw) => { ...@@ -21,7 +21,7 @@ export const fetchConfig = (isEnv = sw) => {
const _pathname = location.pathname const _pathname = location.pathname
const _login_path = _session?.loginpath const _login_path = _session?.loginpath
const _constRoutes = router.constantRoutes.map(({ path }) => path) const _constRoutes = router.constantRoutes.map(({ path }) => path)
// 如果存在配置缓存,并且当前路径不是用以区分不同产品的路由(oss:运营版,login:基础版,sp:服务商版).说明是刷新页面,则直接返回缓存的配置.另外如果当前路由与登录时缓存的路由一致,也直接返回缓存配置. // 如果存在配置缓存,并且当前路径不是用以区分不同产品的路由(oss:运营版,login:基础版,sp:服务商版 jl:冀联版).说明是刷新页面,则直接返回缓存的配置.另外如果当前路由与登录时缓存的路由一致,也直接返回缓存配置.
if ((_config && !_constRoutes.includes(_pathname)) || _pathname === _login_path || (_pathname === '/' && _login_path === '/login')) { if ((_config && !_constRoutes.includes(_pathname)) || _pathname === _login_path || (_pathname === '/' && _login_path === '/login')) {
return Promise.resolve(_config) return Promise.resolve(_config)
} }
......
...@@ -10,7 +10,8 @@ const Path = Object.freeze({ ...@@ -10,7 +10,8 @@ const Path = Object.freeze({
LOGIN: '/login', LOGIN: '/login',
E404: '/404', E404: '/404',
OSS: '/oss', OSS: '/oss',
SP: '/sp' //Service Provider SP: '/sp', //Service Provider
JL: '/jl'
}) })
// 路由 // 路由
let constantRoutes = Object.freeze([ let constantRoutes = Object.freeze([
...@@ -39,6 +40,12 @@ let constantRoutes = Object.freeze([ ...@@ -39,6 +40,12 @@ let constantRoutes = Object.freeze([
meta: { title: '服务商登录' } meta: { title: '服务商登录' }
}, },
{ {
path: Path.JL,
name: 'jl',
component: Login,
meta: { title: '冀联登录' }
},
{
path: '/', path: '/',
redirect: Path.LOGIN // 默认加载的路由 redirect: Path.LOGIN // 默认加载的路由
} }
......
...@@ -58,13 +58,15 @@ ...@@ -58,13 +58,15 @@
<div class="privacy" v-if="$config.isStandard"> <div class="privacy" v-if="$config.isStandard">
<el-checkbox v-model="isPrivacyChecked"></el-checkbox> <el-checkbox v-model="isPrivacyChecked"></el-checkbox>
请阅读并同意 请阅读并同意
<a :href="`${$config.cdn}/html/privacy.html`" target="_blank"> <!-- :src="`${$config.cdn}/assets/${$config.customized.assets}/logo_login.png`" -->
<!-- <a :href="`${$config.cdn}/html/privacy.html`" target="_blank"> -->
<a :href="`${$config.cdn}/${$config.customized.privacy || 'html'}/privacy.html`" target="_blank">
<i class="el-icon-d-arrow-left"></i> <i class="el-icon-d-arrow-left"></i>
<span>隐私协议</span> <span>隐私协议</span>
<i class="el-icon-d-arrow-right"></i> <i class="el-icon-d-arrow-right"></i>
</a> </a>
及 及
<a :href="`${$config.cdn}/html/agreement.html`" target="_blank"> <a :href="`${$config.cdn}/${$config.customized.privacy || 'html'}/agreement.html`" target="_blank">
<i class="el-icon-d-arrow-left"></i> <i class="el-icon-d-arrow-left"></i>
<span>用户协议</span> <span>用户协议</span>
<i class="el-icon-d-arrow-right"></i> <i class="el-icon-d-arrow-right"></i>
...@@ -346,6 +348,7 @@ export default { ...@@ -346,6 +348,7 @@ export default {
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
$border-radius: 20px; $border-radius: 20px;
.scrm-base-home { .scrm-base-home {
min-height: 100%; min-height: 100%;
box-sizing: border-box; box-sizing: border-box;
...@@ -355,9 +358,11 @@ $border-radius: 20px; ...@@ -355,9 +358,11 @@ $border-radius: 20px;
background: url('https://img02.glsx.com.cn/weapp/resource/saas/scrm/assets/images/bg.png') no-repeat; background: url('https://img02.glsx.com.cn/weapp/resource/saas/scrm/assets/images/bg.png') no-repeat;
background-size: 100% 100%; background-size: 100% 100%;
flex-direction: column; flex-direction: column;
.login-header { .login-header {
text-align: center; text-align: center;
margin: 87px 0 44px 0; margin: 87px 0 44px 0;
h2 { h2 {
margin-top: 15px; margin-top: 15px;
font-size: 14px; font-size: 14px;
...@@ -367,6 +372,7 @@ $border-radius: 20px; ...@@ -367,6 +372,7 @@ $border-radius: 20px;
letter-spacing: 1px; letter-spacing: 1px;
} }
} }
.login-wrap { .login-wrap {
width: 984px; width: 984px;
height: 500px; height: 500px;
...@@ -374,6 +380,7 @@ $border-radius: 20px; ...@@ -374,6 +380,7 @@ $border-radius: 20px;
box-shadow: 15px 18px 64px 0px rgba(210, 210, 210, 0.13); box-shadow: 15px 18px 64px 0px rgba(210, 210, 210, 0.13);
border-radius: $border-radius; border-radius: $border-radius;
overflow: hidden; overflow: hidden;
.forback { .forback {
position: absolute; position: absolute;
top: 20px; top: 20px;
...@@ -382,11 +389,13 @@ $border-radius: 20px; ...@@ -382,11 +389,13 @@ $border-radius: 20px;
z-index: 1234; z-index: 1234;
padding: 10px; padding: 10px;
cursor: pointer; cursor: pointer;
&:hover { &:hover {
background-color: #f1f1f1; background-color: #f1f1f1;
border-radius: 50%; border-radius: 50%;
} }
} }
.merchants { .merchants {
position: absolute; position: absolute;
width: 100%; width: 100%;
...@@ -396,16 +405,19 @@ $border-radius: 20px; ...@@ -396,16 +405,19 @@ $border-radius: 20px;
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
/deep/.el-scrollbar__wrap { /deep/.el-scrollbar__wrap {
overflow-x: hidden; overflow-x: hidden;
margin-bottom: 0 !important ; margin-bottom: 0 !important;
} }
.wrap { .wrap {
width: 556px; width: 556px;
height: 352px; height: 352px;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
align-items: center; align-items: center;
.title { .title {
font-size: 24px; font-size: 24px;
color: #3a3a3a; color: #3a3a3a;
...@@ -413,10 +425,12 @@ $border-radius: 20px; ...@@ -413,10 +425,12 @@ $border-radius: 20px;
font-weight: 700; font-weight: 700;
margin-bottom: 40px; margin-bottom: 40px;
} }
.item-wrap { .item-wrap {
height: 288px; height: 288px;
box-sizing: border-box; box-sizing: border-box;
} }
.merchant-item { .merchant-item {
width: 556px; width: 556px;
height: 73px; height: 73px;
...@@ -428,18 +442,22 @@ $border-radius: 20px; ...@@ -428,18 +442,22 @@ $border-radius: 20px;
box-sizing: border-box; box-sizing: border-box;
padding-left: 18px; padding-left: 18px;
cursor: pointer; cursor: pointer;
.merchant-info { .merchant-info {
display: flex; display: flex;
justify-content: center; justify-content: center;
flex-direction: column; flex-direction: column;
} }
& + .merchant-item { & + .merchant-item {
margin-top: 30px; margin-top: 30px;
} }
i.i { i.i {
transform: scale(0.5); transform: scale(0.5);
margin: 20px 6px 0 0; margin: 20px 6px 0 0;
} }
&-name { &-name {
font-size: 16px; font-size: 16px;
color: #8d8d8d; color: #8d8d8d;
...@@ -449,6 +467,7 @@ $border-radius: 20px; ...@@ -449,6 +467,7 @@ $border-radius: 20px;
word-wrap: break-word; word-wrap: break-word;
word-break: break-all; word-break: break-all;
} }
&-code { &-code {
font-size: 12px; font-size: 12px;
color: #adadad; color: #adadad;
...@@ -456,6 +475,7 @@ $border-radius: 20px; ...@@ -456,6 +475,7 @@ $border-radius: 20px;
font-weight: 500; font-weight: 500;
margin-top: 6px; margin-top: 6px;
} }
&-level { &-level {
border: 1px solid #5850ff; border: 1px solid #5850ff;
border-radius: 4px; border-radius: 4px;
...@@ -468,29 +488,36 @@ $border-radius: 20px; ...@@ -468,29 +488,36 @@ $border-radius: 20px;
line-height: 22px; line-height: 22px;
margin: 14px 0 0 10px; margin: 14px 0 0 10px;
} }
i.icon { i.icon {
position: absolute; position: absolute;
top: 27px; top: 27px;
right: 20px; right: 20px;
} }
&:hover { &:hover {
background-color: #f1f1f1; background-color: #f1f1f1;
} }
} }
} }
.login-merchants-scroll { .login-merchants-scroll {
height: 290px; height: 290px;
} }
} }
.login-form { .login-form {
display: flex; display: flex;
height: 100%; height: 100%;
.left { .left {
flex: 0 0 492px; flex: 0 0 492px;
border-radius: $border-radius 0 0 $border-radius; border-radius: $border-radius 0 0 $border-radius;
.el-image { .el-image {
height: 100%; height: 100%;
} }
/deep/.el-carousel { /deep/.el-carousel {
.el-carousel__button { .el-carousel__button {
width: 12px; width: 12px;
...@@ -499,6 +526,7 @@ $border-radius: 20px; ...@@ -499,6 +526,7 @@ $border-radius: 20px;
background-color: #fff; background-color: #fff;
opacity: 0.8; opacity: 0.8;
} }
.el-carousel__indicator { .el-carousel__indicator {
&.is-active { &.is-active {
.el-carousel__button { .el-carousel__button {
...@@ -506,10 +534,12 @@ $border-radius: 20px; ...@@ -506,10 +534,12 @@ $border-radius: 20px;
opacity: 1; opacity: 1;
} }
} }
padding: 17px 4px; padding: 17px 4px;
} }
} }
} }
.right { .right {
flex: 0 0 492px; flex: 0 0 492px;
background-color: #fff; background-color: #fff;
...@@ -519,6 +549,7 @@ $border-radius: 20px; ...@@ -519,6 +549,7 @@ $border-radius: 20px;
flex-direction: column; flex-direction: column;
position: relative; position: relative;
border-radius: 0 $border-radius $border-radius 0; border-radius: 0 $border-radius $border-radius 0;
.el-alert { .el-alert {
position: absolute; position: absolute;
top: 12px; top: 12px;
...@@ -529,6 +560,7 @@ $border-radius: 20px; ...@@ -529,6 +560,7 @@ $border-radius: 20px;
padding: 2px 16px; padding: 2px 16px;
min-height: 35px; min-height: 35px;
} }
.error-tip { .error-tip {
display: flex; display: flex;
align-items: center; align-items: center;
...@@ -545,27 +577,34 @@ $border-radius: 20px; ...@@ -545,27 +577,34 @@ $border-radius: 20px;
top: 20px; top: 20px;
position: absolute; position: absolute;
box-sizing: border-box; box-sizing: border-box;
i.el-icon-error { i.el-icon-error {
color: #eb4e4e; color: #eb4e4e;
margin-right: 4px; margin-right: 4px;
} }
i.el-icon-close { i.el-icon-close {
color: #000; color: #000;
cursor: pointer; cursor: pointer;
} }
} }
/deep/.el-form { /deep/.el-form {
width: 342px; width: 342px;
.el-form-item__content { .el-form-item__content {
margin-top: 8px; margin-top: 8px;
.el-input__inner { .el-input__inner {
font-family: $font-family; font-family: $font-family;
font-weight: 200; font-weight: 200;
letter-spacing: 1px; letter-spacing: 1px;
&:focus { &:focus {
border-color: $main-color; border-color: $main-color;
} }
} }
.el-input__suffix-inner { .el-input__suffix-inner {
.code-suffix { .code-suffix {
.el-image { .el-image {
...@@ -575,6 +614,7 @@ $border-radius: 20px; ...@@ -575,6 +614,7 @@ $border-radius: 20px;
} }
} }
} }
.el-button--primary { .el-button--primary {
width: 341px; width: 341px;
height: 42px; height: 42px;
...@@ -583,22 +623,26 @@ $border-radius: 20px; ...@@ -583,22 +623,26 @@ $border-radius: 20px;
font-size: 18px; font-size: 18px;
text-indent: 1em; text-indent: 1em;
border: 2px solid rgba(254, 145, 26, 0.1); border: 2px solid rgba(254, 145, 26, 0.1);
&.is-disabled, &.is-disabled,
&.is-disabled:hover { &.is-disabled:hover {
background: #e9e9e9; background: #e9e9e9;
border-color: #e9e9e9; border-color: #e9e9e9;
color: #999; color: #999;
} }
&.is-disabled.isLogin { &.is-disabled.isLogin {
background: $main-color; background: $main-color;
border: 2px solid rgba(254, 145, 26, 0.1); border: 2px solid rgba(254, 145, 26, 0.1);
color: rgba($color: #fff, $alpha: 0.6); color: rgba($color: #fff, $alpha: 0.6);
} }
&:hover, &:hover,
&:focus { &:focus {
border-color: #7777f3; border-color: #7777f3;
background-color: #7777f3; background-color: #7777f3;
} }
span.login-text { span.login-text {
position: relative; position: relative;
letter-spacing: 1em; letter-spacing: 1em;
...@@ -607,6 +651,7 @@ $border-radius: 20px; ...@@ -607,6 +651,7 @@ $border-radius: 20px;
} }
} }
} }
.welcome { .welcome {
// width: 101px; // width: 101px;
height: 33px; height: 33px;
...@@ -618,6 +663,7 @@ $border-radius: 20px; ...@@ -618,6 +663,7 @@ $border-radius: 20px;
margin-bottom: 30px; margin-bottom: 30px;
} }
} }
.privacy { .privacy {
// margin-top: -8px; // margin-top: -8px;
font-size: 12px; font-size: 12px;
...@@ -626,14 +672,18 @@ $border-radius: 20px; ...@@ -626,14 +672,18 @@ $border-radius: 20px;
line-height: 20px; line-height: 20px;
display: flex; display: flex;
align-items: center; align-items: center;
/deep/.el-checkbox { /deep/.el-checkbox {
margin-right: 6px !important; margin-right: 6px !important;
&__inner { &__inner {
border-color: #c0c4cc; border-color: #c0c4cc;
&:hover { &:hover {
border-color: $main-color; border-color: $main-color;
} }
} }
&__input.is-checked { &__input.is-checked {
.el-checkbox__inner { .el-checkbox__inner {
border-color: $main-color; border-color: $main-color;
...@@ -641,6 +691,7 @@ $border-radius: 20px; ...@@ -641,6 +691,7 @@ $border-radius: 20px;
} }
} }
} }
a { a {
cursor: pointer; cursor: pointer;
color: $main-color; color: $main-color;
...@@ -649,6 +700,7 @@ $border-radius: 20px; ...@@ -649,6 +700,7 @@ $border-radius: 20px;
} }
} }
} }
/deep/.el-dialog { /deep/.el-dialog {
&__header, &__header,
&__body, &__body,
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!