Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
SuperMan
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
罗超
SuperMan
Commits
1da1b894
Commit
1da1b894
authored
Jun 03, 2019
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
aee08197
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
29 deletions
+25
-29
SupplierIndex.vue
src/components/SupplierIndex.vue
+1
-5
SupplierLogin.vue
src/components/SupplierLogin.vue
+1
-1
index.js
src/plug/index.js
+23
-23
No files found.
src/components/SupplierIndex.vue
View file @
1da1b894
...
...
@@ -87,7 +87,6 @@
},
created
()
{
this
.
userInfo
=
this
.
getLocalStorageSupplier
();
console
.
log
(
"this.userinfo"
,
this
.
userInfo
);
let
language
=
localStorage
.
language
;
if
(
!
language
)
{
this
.
language
=
'zh-CN'
;
...
...
@@ -104,9 +103,6 @@
methods
:
{
goUrl
(
url
,
id
,
index
)
{
console
.
log
(
"url"
,
url
);
console
.
log
(
"id"
,
id
);
console
.
log
(
"index"
,
index
);
this
.
chosenIndex
=
id
;
if
(
localStorage
.
openMode
&&
localStorage
.
openMode
==
1
)
this
.
$router
.
push
({
...
...
@@ -128,7 +124,7 @@
this
.
$store
.
dispatch
(
"logout"
)
localStorage
.
removeItem
(
"userInfo"
);
localStorage
.
removeItem
(
"previousPathInfo"
);
location
.
href
=
'/SupplierLogin'
;
this
.
$router
.
push
({
path
:
"/SupplierLogin"
})
;
},
settingSys
:
function
()
{
this
.
MsgBus
.
$emit
(
'settingOpen'
)
...
...
src/components/SupplierLogin.vue
View file @
1da1b894
...
...
@@ -293,7 +293,7 @@
//登录成功
var
userData
=
jsonData
.
data
;
var
userJson
=
JSON
.
stringify
(
userData
);
localStorage
.
Suppli
erInfo
=
userJson
;
localStorage
.
us
erInfo
=
userJson
;
this
.
$router
.
push
({
path
:
"/SupplierIndex"
});
...
...
src/plug/index.js
View file @
1da1b894
...
...
@@ -118,11 +118,7 @@ export default {
Vue
.
prototype
.
domainManager
=
function
()
{
let
domainUrl
=
''
;
let
locationName
=
window
.
location
.
hostname
;
domainUrl
=
"http://192.168.2.214:8082"
;
//214主域名
domainUrl
=
"http://192.168.2.65:8025"
;
//214主域名
// domainUrl = "http://192.168.0.119:8082";
domainUrl
=
"http://192.168.2.16:8083"
;
// domainUrl = "http://reborn.oytour.com"
domainUrl
=
"http://192.168.2.214:8082"
;
if
(
locationName
.
indexOf
(
'oytour'
)
!==
-
1
)
{
domainUrl
=
"http://reborn.oytour.com"
;
}
else
if
(
locationName
.
indexOf
(
'viitto'
)
!==
-
1
)
{
...
...
@@ -312,25 +308,23 @@ export default {
if
(
msg
==
null
||
msg
==
""
)
{
msg
=
{}
}
var
apiNewurl
=
this
.
domainManager
().
Domain
Url
;
var
apiNewurl
=
this
.
domainManager
().
Post
Url
;
var
timestamp
=
(
new
Date
()).
valueOf
();
apiNewurl
=
apiNewurl
+
"/Api/Trip/"
+
cmd
;
if
(
this
.
$route
.
path
.
toLowerCase
()
==
"/signature"
)
{
this
.
$router
.
push
({
path
:
'/signature'
})
}
else
{
if
(
!
localStorage
.
userInfo
&&
localStorage
.
userInfo
!=
""
&&
this
.
$route
.
path
.
toLowerCase
()
!=
"/login"
)
{
if
(
!
this
.
getLocalStorageSupplier
().
userInfo
&&
this
.
getLocalStorageSupplier
().
userInfo
!=
""
&&
this
.
$route
.
path
.
toLowerCase
()
!=
"/supplierlogin"
)
{
}
else
{
this
.
$router
.
push
({
path
:
'/
l
ogin'
path
:
'/
SupplierL
ogin'
})
}
}
var
token
=
""
;
var
key
=
""
;
if
(
this
.
getLocalStorage
()
!=
null
)
{
token
=
this
.
getLocalStorage
().
t
oken
;
key
=
this
.
getLocalStorage
().
SecretKey
;
if
(
this
.
getLocalStorage
Supplier
()
!=
null
)
{
token
=
this
.
getLocalStorage
Supplier
().
T
oken
;
key
=
this
.
getLocalStorage
Supplier
().
SecretKey
;
}
var
encodeMsg
=
encodeURIComponent
(
JSON
.
stringify
(
msg
)).
toLowerCase
();
var
md5Str
=
md5
(
`cmd=
${
cmd
}
&msg=
${
encodeMsg
}
×tamp=
${
timestamp
}
&token=
${
token
}
&key=
${
key
}
`
);
...
...
@@ -340,7 +334,7 @@ export default {
"timestamp"
:
timestamp
,
"token"
:
token
,
"sign"
:
md5Str
,
"uid"
:
this
.
getLocalStorage
().
Employee
Id
"uid"
:
this
.
getLocalStorage
Supplier
().
SupplierAccount
Id
}
this
.
$http
.
post
(
apiNewurl
,
postData
,
{
...
...
@@ -352,10 +346,8 @@ export default {
.
then
(
res
=>
{
if
(
res
.
data
.
resultCode
==
10000
||
res
.
data
.
resultCode
==
10001
)
{
this
.
$router
.
push
({
path
:
'/
l
ogin'
path
:
'/
SupplierL
ogin'
});
}
else
if
(
res
.
resultCode
==
10005
)
{
this
.
$router
.
go
(
-
1
);
}
else
{
successCall
(
res
);
}
...
...
@@ -465,6 +457,14 @@ export default {
}
},
Vue
.
prototype
.
getLocalStorageSupplier
=
function
()
{
var
localStorageData
=
window
.
localStorage
[
"SupplierInfo"
];
if
(
localStorageData
!==
undefined
&&
localStorageData
!=
'SupplierInfo'
)
{
return
JSON
.
parse
(
localStorageData
);
}
else
{
return
null
;
}
},
//PDF预览
Vue
.
prototype
.
previewPDF
=
function
(
url
)
{
...
...
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