Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
offical_web
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhangjie
offical_web
Commits
ebd12b8c
Commit
ebd12b8c
authored
Aug 16, 2023
by
qinjianhui
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://47.99.244.21:9999/zhangjie/offical_web
parents
537432fe
fa2fa877
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
11 deletions
+25
-11
src/views/contact.vue
+23
-9
src/views/login.vue
+2
-2
No files found.
src/views/contact.vue
View file @
ebd12b8c
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
<div
class=
"login_bg"
>
<div
class=
"login_bg"
>
<div
class=
"contact-header"
>
<div
class=
"contact-header"
>
<div
class=
"header-image"
>
<div
class=
"header-image"
>
<img
src=
"../assets/logo.png"
height=
"40px"
/>
<img
src=
"../assets/logo.png"
height=
"40px"
/>
</div>
</div>
<!--
<div
class=
"user-info"
>
<!--
<div
class=
"user-info"
>
<div
class=
"user-msg"
>
<div
class=
"user-msg"
>
...
@@ -16,14 +16,24 @@
...
@@ -16,14 +16,24 @@
</div>
</div>
<div
class=
"login_content"
>
<div
class=
"login_content"
>
<div
class=
"no-authority"
>
<div
class=
"no-authority"
>
<div
style=
"
text-align: center;
color: #fff;
font-size: 50px;
line-height: 100px;
font-family: '微软雅黑';
"
v-if=
"userInfo.erpKey"
>
<a
:href=
"'https://'+userInfo.erpKey+'.jomalls.com'"
target=
"_blank"
style=
"text-decoration: none"
>
{{
userInfo
.
erpKey
+
'.jomalls.com'
}}
</a>
</div>
<h1
<h1
style=
"
style=
"
text-align: center;
text-align: center;
color: #fff;
color: #fff;
font-size: 50px;
font-size: 50px;
line-height: 100px;
line-height: 100px;
font-family: '微软雅黑';
font-family: '微软雅黑';
"
>
"
v-else
>
您尚未开通erp权限,请联系您的商务经理
您尚未开通erp权限,请联系您的商务经理
</h1>
</h1>
<h2
<h2
...
@@ -47,7 +57,7 @@
...
@@ -47,7 +57,7 @@
邮箱:nikki@jomalls.com
邮箱:nikki@jomalls.com
</h2>
</h2>
<el-button
<el-button
style=
"
style=
"
text-align: center;
text-align: center;
font-size: 30px;
font-size: 30px;
width: 160px;
width: 160px;
...
@@ -56,8 +66,8 @@
...
@@ -56,8 +66,8 @@
margin-top: 30px;
margin-top: 30px;
border-radius: 15px;
border-radius: 15px;
"
"
type=
"success"
type=
"success"
@
click=
"goBack"
>
@
click=
"goBack"
>
返回首页
返回首页
</el-button>
</el-button>
</div>
</div>
...
@@ -67,15 +77,18 @@
...
@@ -67,15 +77,18 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
{
mapState
}
from
'vuex'
// import {mapState} from 'vuex'
export
default
{
export
default
{
name
:
'contact'
,
name
:
'contact'
,
components
:
{},
components
:
{},
data
()
{
data
()
{
return
{}
return
{
userInfo
:
JSON
.
parse
(
localStorage
.
getItem
(
'userInfo'
))
}
},
},
computed
:
{
computed
:
{
...
mapState
([
'userInfo'
]),
//
...mapState(['userInfo']),
},
},
methods
:
{
methods
:
{
goBack
()
{
goBack
()
{
...
@@ -92,6 +105,7 @@ export default {
...
@@ -92,6 +105,7 @@ export default {
display
:
flex
;
display
:
flex
;
flex-direction
:
column
;
flex-direction
:
column
;
}
}
.login_content
{
.login_content
{
flex
:
1
;
flex
:
1
;
background
:
url(../assets/contact.jpg)
center
/
cover
no-repeat
;
background
:
url(../assets/contact.jpg)
center
/
cover
no-repeat
;
...
...
src/views/login.vue
View file @
ebd12b8c
...
@@ -293,8 +293,8 @@ export default {
...
@@ -293,8 +293,8 @@ export default {
password
:
passwordHash
,
password
:
passwordHash
,
}
).
then
((
res
)
=>
{
}
).
then
((
res
)
=>
{
if
(
res
.
code
===
200
)
{
if
(
res
.
code
===
200
)
{
localStorage
.
setItem
(
'userInfo'
,
res
.
data
)
localStorage
.
setItem
(
'userInfo'
,
JSON
.
stringify
(
res
.
data
)
)
this
.
setUserInfo
(
res
.
data
)
this
.
setUserInfo
(
JSON
.
parse
(
JSON
.
stringify
(
res
.
data
))
)
this
.
ruleForm
=
{
}
this
.
ruleForm
=
{
}
this
.
$router
.
push
(
'/contact'
)
this
.
$router
.
push
(
'/contact'
)
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment