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
93a266c5
Commit
93a266c5
authored
Aug 12, 2023
by
yangzhi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:erpkey
parent
71100992
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
6 deletions
+22
-6
src/views/contact.vue
+20
-4
src/views/login.vue
+2
-2
No files found.
src/views/contact.vue
View file @
93a266c5
...
@@ -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,6 +16,16 @@
...
@@ -16,6 +16,16 @@
</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=
"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;
...
@@ -23,7 +33,7 @@
...
@@ -23,7 +33,7 @@
font-size: 50px;
font-size: 50px;
line-height: 100px;
line-height: 100px;
font-family: '微软雅黑';
font-family: '微软雅黑';
"
>
"
v-else
>
您尚未开通erp权限,请联系您的商务经理
您尚未开通erp权限,请联系您的商务经理
</h1>
</h1>
<h2
style=
"
<h2
style=
"
...
@@ -54,7 +64,8 @@
...
@@ -54,7 +64,8 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
{
mapState
}
from
'vuex'
import
{
mapState
}
from
'vuex'
export
default
{
export
default
{
name
:
'contact'
,
name
:
'contact'
,
components
:
{},
components
:
{},
...
@@ -64,11 +75,15 @@ export default {
...
@@ -64,11 +75,15 @@ export default {
computed
:
{
computed
:
{
...
mapState
([
'userInfo'
]),
...
mapState
([
'userInfo'
]),
},
},
mounted
()
{
console
.
log
(
this
.
userInfo
,
123
)
},
methods
:
{
methods
:
{
goBack
()
{
goBack
()
{
this
.
$router
.
push
(
'/'
)
this
.
$router
.
push
(
'/'
)
},
},
logout
()
{},
logout
()
{
},
},
},
}
}
...
@@ -80,6 +95,7 @@ export default {
...
@@ -80,6 +95,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 @
93a266c5
...
@@ -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