Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-base
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit de5c2177
authored
Jun 02, 2023
by
李敏
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'privacy_check' into 'master'
审计要求隐私协议布局调整 See merge request
!4
2 parents
65e2853f
a5f6087a
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
43 additions
and
18 deletions
src/config/index.js
src/main.js
src/plugins/element.js
src/views/Login.vue
vue.config.js
src/config/index.js
View file @
de5c217
...
...
@@ -4,12 +4,11 @@
* @Author: limin
* @Date: 2021-06-07 14:12:32
* @LastEditors: limin
* @LastEditTime: 2023-05-
05 09:36:16
* @LastEditTime: 2023-05-
31 16:06:51
*/
// 根据环境引入不同配置 process.env.VUE_APP_ENV
let
cfg
=
require
(
'./conf.js'
)
import
{
Http
}
from
'glsx-common'
import
{
utils
}
from
'glsx-common'
import
{
Http
,
utils
}
from
'glsx-common'
import
{
constants
}
from
'@/common'
import
router
from
'../router'
const
sw
=
!!+
process
.
env
.
VUE_APP_CONFIG_SWITCH_LOCAL
...
...
src/main.js
View file @
de5c217
...
...
@@ -9,7 +9,7 @@ import '@/common/reg-prototype.js'
import
'@/common/error-handler.js'
import
{
fetchConfig
,
config
}
from
'@/config/index'
import
'@/assets/style/index.scss'
import
'@/assets/images/sprite/sprite.css'
//
import '@/assets/images/sprite/sprite.css'
import
'./components'
import
'./filters'
import
{
Message
}
from
'./plugins/element.js'
...
...
src/plugins/element.js
View file @
de5c217
import
Vue
from
'vue'
import
{
Message
,
Button
,
ButtonGroup
,
Container
,
Aside
,
Menu
,
MenuItem
,
Submenu
,
MenuItemGroup
,
Header
,
Main
,
Footer
,
Avatar
,
Badge
,
Dropdown
,
DropdownMenu
,
DropdownItem
,
Scrollbar
,
Carousel
,
CarouselItem
,
Form
,
FormItem
,
Input
,
Image
,
Tabs
,
TabPane
,
Loading
,
Dialog
,
Alert
,
Popover
,
Tooltip
}
from
'element-ui'
;[
Button
,
ButtonGroup
,
Container
,
Aside
,
Menu
,
MenuItem
,
Submenu
,
MenuItemGroup
,
Header
,
Main
,
Footer
,
Avatar
,
Badge
,
Dropdown
,
DropdownMenu
,
DropdownItem
,
Scrollbar
,
Carousel
,
CarouselItem
,
Form
,
FormItem
,
Input
,
Image
,
Tabs
,
TabPane
,
Loading
,
Dialog
,
Alert
,
Popover
,
Tooltip
].
forEach
(
component
=>
Vue
.
use
(
component
))
import
{
Message
,
Button
,
ButtonGroup
,
Container
,
Aside
,
Menu
,
MenuItem
,
Submenu
,
MenuItemGroup
,
Header
,
Main
,
Footer
,
Avatar
,
Badge
,
Dropdown
,
DropdownMenu
,
DropdownItem
,
Scrollbar
,
Carousel
,
CarouselItem
,
Form
,
FormItem
,
Input
,
Image
,
Tabs
,
TabPane
,
Loading
,
Dialog
,
Alert
,
Popover
,
Tooltip
,
Checkbox
}
from
'element-ui'
;[
Button
,
ButtonGroup
,
Container
,
Aside
,
Menu
,
MenuItem
,
Submenu
,
MenuItemGroup
,
Header
,
Main
,
Footer
,
Avatar
,
Badge
,
Dropdown
,
DropdownMenu
,
DropdownItem
,
Scrollbar
,
Carousel
,
CarouselItem
,
Form
,
FormItem
,
Input
,
Image
,
Tabs
,
TabPane
,
Loading
,
Dialog
,
Alert
,
Popover
,
Tooltip
,
Checkbox
].
forEach
(
component
=>
Vue
.
use
(
component
))
export
{
Message
}
src/views/Login.vue
View file @
de5c217
...
...
@@ -55,16 +55,17 @@
</el-button>
</el-form-item>
<div
class=
"privacy"
v-if=
"$config.isStandard"
>
登录即表明您同意
<a
:href=
"`$
{$config.cdn}/html/agreement.html`" target="_blank">
<el-checkbox
v-model=
"isPrivacyChecked"
></el-checkbox>
请阅读并同意
<a
:href=
"`$
{$config.cdn}/html/privacy.html`" target="_blank">
<i
class=
"el-icon-d-arrow-left"
></i>
<span>
{{
$config
.
customized
.
title
||
''
}}
用户服务
协议
</span>
<span>
隐私
协议
</span>
<i
class=
"el-icon-d-arrow-right"
></i>
</a>
及
<a
:href=
"`$
{$config.cdn}/html/
privacy
.html`" target="_blank">
<a
:href=
"`$
{$config.cdn}/html/
agreement
.html`" target="_blank">
<i
class=
"el-icon-d-arrow-left"
></i>
<span>
隐私声明
</span>
<span>
用户协议
</span>
<i
class=
"el-icon-d-arrow-right"
></i>
</a>
</div>
...
...
@@ -127,7 +128,8 @@ export default {
mobile
:
'13800138000'
},
//登录成功后,短信验证前保存的登录数据
loginSuccessData
:
{}
loginSuccessData
:
{},
isPrivacyChecked
:
true
}
},
watch
:
{
...
...
@@ -140,7 +142,7 @@ export default {
},
computed
:
{
disabled
()
{
return
!
this
.
loginForm
.
userName
||
!
this
.
loginForm
.
password
||
!
this
.
loginForm
.
codeToken
||
!
this
.
loginForm
.
code
||
this
.
isLogin
return
!
this
.
loginForm
.
userName
||
!
this
.
loginForm
.
password
||
!
this
.
loginForm
.
codeToken
||
!
this
.
loginForm
.
code
||
this
.
isLogin
||
!
this
.
isPrivacyChecked
},
...
mapGetters
([
'app'
])
},
...
...
@@ -436,9 +438,13 @@ $border-radius: 20px;
}
.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
;
...
...
@@ -505,8 +511,11 @@ $border-radius: 20px;
/
deep
/
.el-form
{
width
:
342px
;
.el-form-item__content
{
margin-top
:
10
px
;
margin-top
:
8
px
;
.el-input__inner
{
font-family
:
$
font-family
;
font-weight
:
200
;
letter-spacing
:
1px
;
&:focus
{
border-color
:
$
main-color
;
}
...
...
@@ -553,7 +562,7 @@ $border-radius: 20px;
}
}
.welcome
{
width
:
101px
;
//
width
:
101px
;
height
:
33px
;
font-size
:
24px
;
font-weight
:
500
;
...
...
@@ -564,11 +573,28 @@ $border-radius: 20px;
}
}
.privacy
{
margin-top
:
-8px
;
//
margin-top
:
-8px
;
font-size
:
12px
;
font-weight
:
6
00
;
font-weight
:
5
00
;
color
:
#999
;
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
;
background-color
:
$
main-color
;
}
}
}
a
{
cursor
:
pointer
;
color
:
$
main-color
;
...
...
vue.config.js
View file @
de5c217
...
...
@@ -4,7 +4,7 @@ const resolve = dir => path.join(__dirname, dir)
const
SpritesmithPlugin
=
require
(
'webpack-spritesmith'
)
const
CDN_DOMAIN
=
'https://img02.glsx.com.cn/ajax/libs'
const
cdn
=
{
css
:
[
`
${
CDN_DOMAIN
}
/element-ui/2.11.1/theme-chalk/index.css`
,
'https://img02.glsx.com.cn/gl-iconfont/iconfont.css'
],
css
:
[
`
${
CDN_DOMAIN
}
/element-ui/2.11.1/theme-chalk/index.css`
,
'https://img02.glsx.com.cn/gl-iconfont/iconfont.css'
,
'https://img02.glsx.com.cn/weapp/resource/saas/scrm/assets/images/icons/sprite.css'
],
js
:
[
`
${
CDN_DOMAIN
}
/rxjs/7.3.0/rxjs.umd.min.js`
]
}
module
.
exports
=
{
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment