Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录
切换导航
S
shop-new
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
王天霸
shop-new
Commits
85664361
提交
85664361
authored
4月 27, 2022
作者:
王天霸
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'scm_optimize' of
http://120.27.146.32:8888/wangfulong/shop-new
into scm_optimize
上级
48233f8a
452d8880
隐藏空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
71 行增加
和
41 行删除
+71
-41
index.html
public/index.html
+33
-33
webSite.js
src/api/webSite.js
+1
-1
Navbar.vue
src/layout/components/Navbar.vue
+1
-1
user.js
src/store/modules/user.js
+29
-0
newyuncang.vue
src/views/entry/newyuncang.vue
+5
-5
process.vue
src/views/entry/process.vue
+2
-1
没有找到文件。
public/index.html
浏览文件 @
85664361
...
...
@@ -205,38 +205,38 @@
</div>
</body>
<script>
window
.
onload
=
function
()
{
var
op
=
'open'
var
ssa
=
window
.
location
.
host
var
xhttp
=
new
XMLHttpRequest
();
xhttp
.
onreadystatechange
=
function
()
{
if
(
xhttp
.
readyState
==
4
&&
xhttp
.
status
==
200
)
{
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'
;
link
.
rel
=
'icon'
;
link
.
href
=
'<%= BASE_URL %>icon.ico'
document
.
getElementsByTagName
(
'head'
)[
0
].
appendChild
(
link
);
}
else
{
var
link
=
document
.
querySelector
(
"link[rel*='icon']"
)
||
document
.
createElement
(
'link'
);
link
.
type
=
'image/x-inon'
;
link
.
rel
=
'icon'
;
link
.
href
=
'<%= BASE_URL %>favicon.ico'
document
.
getElementsByTagName
(
'head'
)[
0
].
appendChild
(
link
);
}
}
};
// 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
.
open
(
"post"
,
'//'
+
ssa
+
'
/api/v1/channelSite/domain/info'
,
true
);
let
data
=
{
domain
:
ssa
,
type
:
2
,
site_type
:
4
}
xhttp
.
send
(
JSON
.
stringify
(
data
));
}
//
window.onload = function() {
//
var op = 'open'
//
var ssa = window.location.host
//
var xhttp = new XMLHttpRequest();
//
xhttp.onreadystatechange = function() {
//
if (xhttp.readyState == 4 && xhttp.status == 200) {
//
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';
//
link.rel = 'icon';
//
link.href = '
<%=
BASE_URL
%>
icon
.
ico
'
//
document.getElementsByTagName('
head
')[0].appendChild(link);
//
} else {
//
var link = document.querySelector("link[rel*='
icon
']") || document.createElement('
link
');
//
link.type = '
image
/
x
-
inon
';
//
link.rel = '
icon
';
//
link.href = '
<%=
BASE_URL
%>
favicon
.
ico
'
//
document.getElementsByTagName('
head
')[0].appendChild(link);
//
}
//
}
//
};
//
// 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.open("post", '//sysapi.jxhh.com
/api/v1/channelSite/domain/info', true);
//
let data = {
//
domain: ssa,
// type: 1
,
//
site_type: 4
//
}
//
xhttp.send(JSON.stringify(data));
//
}
</script>
</html>
src/api/webSite.js
浏览文件 @
85664361
...
...
@@ -23,7 +23,7 @@ export function getdomain(params) {
// 获取官网设置接口
export
function
webSite
(
data
)
{
return
request
({
url
:
'/
/sysapi.jxhh.com/api/v1/channelSite
/info'
,
url
:
'/
channelSite/domain
/info'
,
// url: '//192.168.26.179:6601/api/v1/oem/common/counsel',
// url: '//newsys.jxhh.com/api/v1/oem/common/counsel',
method
:
'post'
,
...
...
src/layout/components/Navbar.vue
浏览文件 @
85664361
...
...
@@ -109,7 +109,7 @@ export default {
watch
:
{
channelInfo
()
{
if
(
this
.
channelInfo
)
{
this
.
channel_id
=
this
.
channelInfo
.
channel
.
id
this
.
channel_id
=
this
.
channelInfo
.
channel
_site
[
0
].
channel_
id
}
},
},
...
...
src/store/modules/user.js
浏览文件 @
85664361
...
...
@@ -126,6 +126,35 @@ const user = {
commit
(
'SET_SELLERID'
,
user
.
SellerId
)
commit
(
'SET_APPLYSTATE'
,
user
.
state
)
// 记录 商户入驻后的审核状态
commit
(
'SET_AVATAR'
,
avatar
)
let
data
=
{
domain
:
window
.
location
.
host
,
type
:
2
,
site_type
:
4
}
backDetailsView
(
data
).
then
(
response
=>
{
if
(
response
.
code
==
1
)
{
let
channel_id
=
response
.
data
.
channel
.
id
if
(
channel_id
==
0
)
{
var
link
=
document
.
querySelector
(
"link[rel*='icon']"
)
||
document
.
createElement
(
'link'
);
link
.
type
=
'image/x-inon'
;
link
.
rel
=
'icon'
;
link
.
href
=
'<%= BASE_URL %>icon.ico'
document
.
getElementsByTagName
(
'head'
)[
0
].
appendChild
(
link
);
}
else
{
var
link
=
document
.
querySelector
(
"link[rel*='icon']"
)
||
document
.
createElement
(
'link'
);
link
.
type
=
'image/x-inon'
;
link
.
rel
=
'icon'
;
link
.
href
=
'<%= BASE_URL %>favicon.ico'
document
.
getElementsByTagName
(
'head'
)[
0
].
appendChild
(
link
);
}
document
.
title
=
response
.
data
.
channel_site
[
0
].
title
}
})
resolve
(
res
)
}).
catch
(
error
=>
{
reject
(
error
)
...
...
src/views/entry/newyuncang.vue
浏览文件 @
85664361
...
...
@@ -31,7 +31,7 @@
<swiper
:options=
"swiperOption"
v-if=
"bannerList && bannerList.length > 0"
>
<swiper-slide
v-for=
"(item,index) in bannerList"
:key=
"index"
>
<a
:href=
"aLinkRes(item.redirect_url) "
:target=
"returnBlank(item.redirect_url)"
>
<img
style=
"width: 100%;height: 562px;"
:src=
"item.im
age
_url"
alt=
""
>
<img
style=
"width: 100%;height: 562px;"
:src=
"item.im
g
_url"
alt=
""
>
</a>
</swiper-slide>
</swiper>
...
...
@@ -242,7 +242,7 @@
<swiper
class=
"mb-banner-con mobile-content"
:options=
"swiperOption"
v-if=
"bannerList && bannerList.length > 0"
>
<swiper-slide
v-for=
"(item,index) in bannerList"
:key=
"index"
>
<a
:href=
"aLinkRes(item.redirect_url) "
:target=
"returnBlank(item.redirect_url)"
>
<img
:src=
"item.im
age
_url"
alt=
""
>
<img
:src=
"item.im
g
_url"
alt=
""
>
</a>
</swiper-slide>
</swiper>
...
...
@@ -634,7 +634,7 @@
if
(
res
.
code
==
1
)
{
this
.
ssourl
=
res
.
data
.
channel_site
[
0
].
domain
this
.
channel_id
=
res
.
data
.
channel
.
id
this
.
channel_id
=
res
.
data
.
channel
_site
[
0
].
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
;
...
...
@@ -670,7 +670,7 @@
}
indexInfo
(
data
).
then
(
res
=>
{
if
(
res
.
code
==
1
)
{
this
.
channel_id
=
res
.
data
.
channel
.
id
this
.
channel_id
=
res
.
data
.
channel
_site
[
0
].
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
;
...
...
@@ -724,7 +724,7 @@
if
(
res
.
data
.
cloud_banner_lst
&&
res
.
data
.
cloud_banner_lst
.
banners_json
&&
res
.
data
.
cloud_banner_lst
.
banners_json
.
length
>
0
)
{
let
bannerArr
=
[]
res
.
data
.
cloud_banner_lst
.
banners_json
.
forEach
(
element
=>
{
if
(
element
.
im
age
_url
)
{
if
(
element
.
im
g
_url
)
{
bannerArr
.
push
(
element
);
}
});
...
...
src/views/entry/process.vue
浏览文件 @
85664361
...
...
@@ -57,7 +57,8 @@
indexInfo
(
data
).
then
(
res
=>
{
if
(
res
.
code
==
1
)
{
this
.
channel_id
=
res
.
data
.
channel
.
id
this
.
getWebSite
()
this
.
settitle
.
topLogo
=
res
.
data
.
channel_site
[
0
].
logo
// this.getWebSite()
}
})
},
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论