Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录
切换导航
S
shop-new
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
王天霸
shop-new
Commits
2c25e951
提交
2c25e951
authored
2月 22, 2022
作者:
郑伟娜
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
接口优化
上级
d4270343
隐藏空白字符变更
内嵌
并排
正在显示
9 个修改的文件
包含
47 行增加
和
28 行删除
+47
-28
index.html
public/index.html
+9
-3
user.js
src/api/system/user.js
+4
-4
webSite.js
src/api/webSite.js
+8
-8
Navbar.vue
src/layout/components/Navbar.vue
+3
-1
Logo.vue
src/layout/components/Sidebar/Logo.vue
+4
-3
get-page-title.js
src/utils/get-page-title.js
+7
-3
newyuncang.vue
src/views/entry/newyuncang.vue
+6
-4
process.vue
src/views/entry/process.vue
+3
-1
index.vue
src/views/system/order/index.vue
+3
-1
没有找到文件。
public/index.html
浏览文件 @
2c25e951
...
...
@@ -211,7 +211,7 @@
var
xhttp
=
new
XMLHttpRequest
();
xhttp
.
onreadystatechange
=
function
()
{
if
(
xhttp
.
readyState
==
4
&&
xhttp
.
status
==
200
)
{
var
channel_id
=
JSON
.
parse
(
xhttp
.
response
).
data
.
channel
_
id
var
channel_id
=
JSON
.
parse
(
xhttp
.
response
).
data
.
channel
.
id
if
(
channel_id
==
0
)
{
var
link
=
document
.
querySelector
(
"link[rel*='icon']"
)
||
document
.
createElement
(
'link'
);
link
.
type
=
'image/x-inon'
;
...
...
@@ -227,10 +227,16 @@
}
}
};
xhttp
.
open
(
"GET"
,
'//sysapi.jxhh.com/api/v1/oem/webSite/domainChannel?domain='
+
ssa
+
'&field='
+
op
,
true
);
// 正式环境
//
xhttp.open("GET", '//sysapi.jxhh.com/api/v1/oem/webSite/domainChannel?domain='+ssa+'&field='+op, true); // 正式环境
// xhttp.open("GET", '//newsys.jxhh.com/api/v1/oem/webSite/domainChannel?domain='+ssa+'&field='+op, true); // 内网开发
// xhttp.open("GET", '//192.168.26.179:6601/api/v1/oem/webSite/domainChannel?domain='+ssa+'&field='+op, true); // 测试环境
xhttp
.
send
();
xhttp
.
open
(
"post"
,
'//'
+
ssa
+
'/api/v1/channelSite/domain/info'
,
true
);
let
data
=
{
domain
:
ssa
,
type
:
2
,
site_type
:
4
}
xhttp
.
send
(
JSON
.
stringify
(
data
));
}
</script>
</html>
src/api/system/user.js
浏览文件 @
2c25e951
...
...
@@ -137,10 +137,10 @@ export function importTemplate() {
})
}
export
function
getBaseSettingTitle
(
params
)
{
export
function
getBaseSettingTitle
(
data
)
{
return
request
({
url
:
'/system/
oem/getBaseSettingTitle
'
,
method
:
'
get
'
,
params
url
:
'/system/
channelSite/info
'
,
method
:
'
POST
'
,
data
:
data
})
}
src/api/webSite.js
浏览文件 @
2c25e951
import
request
from
'@/utils/request'
// 获取渠道id
export
function
indexInfo
(
params
)
{
export
function
indexInfo
(
data
)
{
return
request
({
url
:
'/
/sysapi.jxhh.com/api/v1/oem/webSite/domainChannel
'
,
url
:
'/
system/channelSite/info
'
,
// url: '//192.168.26.179:6601/api/v1/oem/webSite/domainChannel',
// url: '//newsys.jxhh.com/api/v1/oem/webSite/domainChannel',
method
:
'
ge
t'
,
params
method
:
'
pos
t'
,
data
})
}
// 获取所有域名
...
...
@@ -53,10 +53,10 @@ export function getssoUrl(data) {
}
// 获取logo
export
function
backDetailsView
(
params
)
{
export
function
backDetailsView
(
data
)
{
return
request
({
url
:
'/
local/oem/backDetails
'
,
method
:
'
ge
t'
,
params
url
:
'/
system/channelSite/info
'
,
method
:
'
pos
t'
,
data
})
}
src/layout/components/Navbar.vue
浏览文件 @
2c25e951
...
...
@@ -108,11 +108,13 @@ export default {
getChannelId
()
{
let
ssa
=
window
.
location
.
host
const
data
=
{
type
:
2
,
site_type
:
4
,
domain
:
ssa
,
}
indexInfo
(
data
).
then
(
res
=>
{
if
(
res
.
code
==
1
)
{
this
.
channel_id
=
res
.
data
.
channel
_
id
this
.
channel_id
=
res
.
data
.
channel
.
id
}
});
},
...
...
src/layout/components/Sidebar/Logo.vue
浏览文件 @
2c25e951
...
...
@@ -40,12 +40,13 @@ export default {
methods
:
{
getBackDetailsView
()
{
let
params
=
{
type
:
'SHOP'
,
type
:
2
,
site_type
:
4
}
backDetailsView
(
params
).
then
(
res
=>
{
if
(
res
.
code
==
1
)
{
this
.
title
=
res
.
data
[
0
][
'SHOP'
].
shop_
name
this
.
logo
=
res
.
data
[
0
][
'SHOP'
].
shop_
logo
this
.
title
=
res
.
data
.
channel_site
[
0
].
base_setting_res
.
name
this
.
logo
=
res
.
data
.
channel_site
[
0
].
base_setting_res
.
logo
}
})
}
...
...
src/utils/get-page-title.js
浏览文件 @
2c25e951
...
...
@@ -5,10 +5,14 @@ import { getBaseSettingTitle } from '@/api/system/user'
const
title
=
defaultSettings
.
title
||
'胜天半子'
export
default
function
getPageTitle
()
{
getBaseSettingTitle
({
type
:
'SHOP'
}).
then
(
res
=>
{
let
params
=
{
type
:
2
,
site_type
:
4
}
getBaseSettingTitle
(
params
).
then
(
res
=>
{
if
(
res
.
code
==
1
)
{
document
.
title
=
res
.
data
sessionStorage
.
setItem
(
'saveTitle'
,
res
.
data
)
document
.
title
=
res
.
data
.
channel_site
[
0
].
base_setting_res
.
title
sessionStorage
.
setItem
(
'saveTitle'
,
res
.
data
.
channel_site
[
0
].
base_setting_res
.
title
)
}
})
}
\ No newline at end of file
src/views/entry/newyuncang.vue
浏览文件 @
2c25e951
...
...
@@ -651,15 +651,17 @@
}
const
data
=
{
// domain: 'newsys.jxhh.com',
type
:
2
,
site_type
:
4
,
domain
:
ssa
,
// field: op
}
indexInfo
(
data
).
then
(
res
=>
{
if
(
res
.
code
==
1
)
{
this
.
channel_id
=
res
.
data
.
channel
_
id
this
.
keyTitle
=
res
.
data
.
title
;
this
.
keyWords
=
res
.
data
.
keywords
;
this
.
keyDescriptions
=
res
.
data
.
describe
;
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
()
...
...
src/views/entry/process.vue
浏览文件 @
2c25e951
...
...
@@ -50,11 +50,13 @@
let
op
=
'open'
let
ssa
=
window
.
location
.
host
const
data
=
{
type
:
2
,
site_type
:
4
,
domain
:
ssa
,
}
indexInfo
(
data
).
then
(
res
=>
{
if
(
res
.
code
==
1
)
{
this
.
channel_id
=
res
.
data
.
channel
_
id
this
.
channel_id
=
res
.
data
.
channel
.
id
this
.
getWebSite
()
}
})
...
...
src/views/system/order/index.vue
浏览文件 @
2c25e951
...
...
@@ -408,11 +408,13 @@
getChannelId
()
{
let
ssa
=
window
.
location
.
host
const
data
=
{
type
:
2
,
site_type
:
4
,
domain
:
ssa
,
}
indexInfo
(
data
).
then
(
res
=>
{
if
(
res
.
code
==
1
)
{
this
.
channel_id
=
res
.
data
.
channel
_
id
this
.
channel_id
=
res
.
data
.
channel
.
id
}
});
},
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论