Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录
切换导航
S
shop-new
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
王天霸
shop-new
Commits
8a7e558f
提交
8a7e558f
authored
2月 23, 2022
作者:
郑伟娜
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
接口优化
上级
2c25e951
隐藏空白字符变更
内嵌
并排
正在显示
10 个修改的文件
包含
39 行增加
和
20 行删除
+39
-20
webSite.js
src/api/webSite.js
+3
-3
Navbar.vue
src/layout/components/Navbar.vue
+4
-2
Logo.vue
src/layout/components/Sidebar/Logo.vue
+1
-0
permission.js
src/permission.js
+5
-5
user.js
src/store/modules/user.js
+2
-2
newyuncang.vue
src/views/entry/newyuncang.vue
+16
-4
process.vue
src/views/entry/process.vue
+1
-1
login.vue
src/views/login.vue
+3
-1
platformlogin.vue
src/views/platformlogin.vue
+3
-1
index.vue
src/views/system/order/index.vue
+1
-1
没有找到文件。
src/api/webSite.js
浏览文件 @
8a7e558f
...
...
@@ -44,11 +44,11 @@ export function getallCloudList(params) {
//获取sso域名
export
function
getssoUrl
(
data
)
{
return
request
({
url
:
'/
/sysapi.jxhh.com/api/v1/oem/webSite/ssoChannel
'
,
url
:
'/
channelSite/domain/info
'
,
// url: '//192.168.26.179:6601/api/v1/oem/webSite/ssoChannel',
// url: '//newsys.jxhh.com/api/v1/oem/webSite/ssoChannel',
method
:
'
ge
t'
,
params
:
data
method
:
'
pos
t'
,
data
})
}
...
...
src/layout/components/Navbar.vue
浏览文件 @
8a7e558f
...
...
@@ -110,7 +110,7 @@ export default {
const
data
=
{
type
:
2
,
site_type
:
4
,
domain
:
ssa
,
//
domain: ssa,
}
indexInfo
(
data
).
then
(
res
=>
{
if
(
res
.
code
==
1
)
{
...
...
@@ -125,11 +125,13 @@ export default {
ssooutinfo
(){
var
ssa
=
window
.
location
.
host
let
data
=
{
type
:
2
,
site_type
:
7
,
domain
:
ssa
}
this
.
$store
.
dispatch
(
'getssourl'
,
data
).
then
((
res
)
=>
{
if
(
res
.
code
==
1
){
this
.
ssourl
=
res
.
data
.
sso_url
this
.
ssourl
=
res
.
data
.
channel_site
[
0
].
domain
this
.
logout
()
}
})
...
...
src/layout/components/Sidebar/Logo.vue
浏览文件 @
8a7e558f
...
...
@@ -47,6 +47,7 @@ export default {
if
(
res
.
code
==
1
)
{
this
.
title
=
res
.
data
.
channel_site
[
0
].
base_setting_res
.
name
this
.
logo
=
res
.
data
.
channel_site
[
0
].
base_setting_res
.
logo
document
.
title
=
res
.
data
.
channel_site
[
0
].
base_setting_res
.
title
}
})
}
...
...
src/permission.js
浏览文件 @
8a7e558f
...
...
@@ -16,11 +16,11 @@ router.beforeEach((to, from, next) => {
const
hasToken
=
getToken
()
// console.log("getToken()",getToken())
if
(
hasToken
)
{
if
(
sessionStorage
.
getItem
(
'saveTitle'
))
{
document
.
title
=
sessionStorage
.
getItem
(
'saveTitle'
)
}
else
{
getPageTitle
()
}
//
if (sessionStorage.getItem('saveTitle')) {
//
document.title = sessionStorage.getItem('saveTitle')
//
} else {
//
getPageTitle()
//
}
/* has token*/
if
(
to
.
path
===
'/platformlogin'
)
{
...
...
src/store/modules/user.js
浏览文件 @
8a7e558f
...
...
@@ -54,10 +54,10 @@ const user = {
getssourl
({
commit
},
data
){
return
new
Promise
((
resolve
,
reject
)
=>
{
getssoUrl
(
data
).
then
(
response
=>
{
const
date
=
response
.
data
const
date
=
response
.
data
.
channel_site
[
0
]
//debugger
if
(
response
.
code
==
1
)
{
commit
(
'SET_SSOURL'
,
date
.
access_toke
n
)
commit
(
'SET_SSOURL'
,
date
.
domai
n
)
}
resolve
(
response
)
}).
catch
(
error
=>
{
...
...
src/views/entry/newyuncang.vue
浏览文件 @
8a7e558f
...
...
@@ -613,7 +613,7 @@
// console.log(222,navigator.userAgent);
},
mounted
()
{
this
.
getIndexInfo
()
//
this.getIndexInfo()
window
.
addEventListener
(
'scroll'
,
this
.
handleScroll
,
true
);
},
destroyed
()
{
...
...
@@ -624,11 +624,23 @@
/** 动态获取 sso 配置域名 */
getssourl
()
{
var
ssa
=
window
.
location
.
host
let
data
=
{
domain
:
ssa
}
let
data
=
{
type
:
2
,
site_type
:
7
,
domain
:
ssa
}
this
.
$store
.
dispatch
(
'getssourl'
,
data
)
.
then
((
res
)
=>
{
if
(
res
.
code
==
1
)
{
this
.
ssourl
=
res
.
data
.
sso_url
this
.
ssourl
=
res
.
data
.
channel_site
[
0
].
domain
this
.
channel_id
=
res
.
data
.
channel
.
id
this
.
keyTitle
=
res
.
data
.
channel_site
[
0
].
title
;
this
.
keyWords
=
res
.
data
.
channel_site
[
0
].
keywords
;
this
.
keyDescriptions
=
res
.
data
.
channel_site
[
0
].
describe
;
this
.
getWebSite
()
this
.
getDomain
()
this
.
getAllcloud
()
//this.gotosso()
}
}).
catch
(()
=>
{
...
...
@@ -653,7 +665,7 @@
// domain: 'newsys.jxhh.com',
type
:
2
,
site_type
:
4
,
domain
:
ssa
,
//
domain: ssa,
// field: op
}
indexInfo
(
data
).
then
(
res
=>
{
...
...
src/views/entry/process.vue
浏览文件 @
8a7e558f
...
...
@@ -52,7 +52,7 @@
const
data
=
{
type
:
2
,
site_type
:
4
,
domain
:
ssa
,
//
domain: ssa,
}
indexInfo
(
data
).
then
(
res
=>
{
if
(
res
.
code
==
1
)
{
...
...
src/views/login.vue
浏览文件 @
8a7e558f
...
...
@@ -45,12 +45,14 @@ export default {
var
ssa
=
window
.
location
.
host
// var ssa = 'scm.jxhh.com'
let
data
=
{
type
:
2
,
site_type
:
7
,
domain
:
ssa
}
this
.
$store
.
dispatch
(
'getssourl'
,
data
)
.
then
((
res
)
=>
{
if
(
res
.
code
==
1
){
this
.
ssourl
=
res
.
data
.
sso_url
this
.
ssourl
=
res
.
data
.
channel_site
[
0
].
domain
this
.
tiaozuan
()
}
})
...
...
src/views/platformlogin.vue
浏览文件 @
8a7e558f
...
...
@@ -20,12 +20,14 @@
var
ssa
=
window
.
location
.
host
// var ssa = 'scm.jxhh.com'
let
data
=
{
type
:
2
,
site_type
:
7
,
domain
:
ssa
}
this
.
$store
.
dispatch
(
'getssourl'
,
data
)
.
then
((
res
)
=>
{
if
(
res
.
code
==
1
){
this
.
ssourl
=
res
.
data
.
sso_url
this
.
ssourl
=
res
.
data
.
channel_site
[
0
].
domain
this
.
gotosso
()
}
})
...
...
src/views/system/order/index.vue
浏览文件 @
8a7e558f
...
...
@@ -410,7 +410,7 @@
const
data
=
{
type
:
2
,
site_type
:
4
,
domain
:
ssa
,
//
domain: ssa,
}
indexInfo
(
data
).
then
(
res
=>
{
if
(
res
.
code
==
1
)
{
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论