Commit cee9d138 by 张立顺

feat 冀联logo配置

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