Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录
切换导航
S
shop-new
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
王天霸
shop-new
Commits
d2e33f3d
提交
d2e33f3d
authored
3月 25, 2022
作者:
郑伟娜
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
优化接口
上级
6f53016f
显示空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
62 行增加
和
33 行删除
+62
-33
index.html
public/index.html
+33
-33
user.js
src/store/modules/user.js
+29
-0
没有找到文件。
public/index.html
浏览文件 @
d2e33f3d
...
@@ -205,38 +205,38 @@
...
@@ -205,38 +205,38 @@
</div>
</div>
</body>
</body>
<script>
<script>
window
.
onload
=
function
()
{
//
window.onload = function() {
var
op
=
'open'
//
var op = 'open'
var
ssa
=
window
.
location
.
host
//
var ssa = window.location.host
var
xhttp
=
new
XMLHttpRequest
();
//
var xhttp = new XMLHttpRequest();
xhttp
.
onreadystatechange
=
function
()
{
//
xhttp.onreadystatechange = function() {
if
(
xhttp
.
readyState
==
4
&&
xhttp
.
status
==
200
)
{
//
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
)
{
//
if (channel_id == 0) {
var
link
=
document
.
querySelector
(
"link[rel*='icon']"
)
||
document
.
createElement
(
'link'
);
//
var link = document.querySelector("link[rel*='icon']") || document.createElement('link');
link
.
type
=
'image/x-inon'
;
//
link.type = 'image/x-inon';
link
.
rel
=
'icon'
;
//
link.rel = 'icon';
link
.
href
=
'<%= BASE_URL %>icon.ico'
//
link.href = '
<%=
BASE_URL
%>
icon
.
ico
'
document
.
getElementsByTagName
(
'head'
)[
0
].
appendChild
(
link
);
//
document.getElementsByTagName('
head
')[0].appendChild(link);
}
else
{
//
} else {
var
link
=
document
.
querySelector
(
"link[rel*='icon']"
)
||
document
.
createElement
(
'link'
);
//
var link = document.querySelector("link[rel*='
icon
']") || document.createElement('
link
');
link
.
type
=
'image/x-inon'
;
//
link.type = '
image
/
x
-
inon
';
link
.
rel
=
'icon'
;
//
link.rel = '
icon
';
link
.
href
=
'<%= BASE_URL %>favicon.ico'
//
link.href = '
<%=
BASE_URL
%>
favicon
.
ico
'
document
.
getElementsByTagName
(
'head'
)[
0
].
appendChild
(
link
);
//
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", '
//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", '//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("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
);
//
xhttp.open("post", '//sysapi.jxhh.com/api/v1/channelSite/domain/info', true);
let
data
=
{
//
let data = {
domain
:
ssa
,
//
domain: ssa,
type
:
1
,
//
type: 1,
site_type
:
4
//
site_type: 4
}
//
}
xhttp
.
send
(
JSON
.
stringify
(
data
));
//
xhttp.send(JSON.stringify(data));
}
//
}
</script>
</script>
</html>
</html>
src/store/modules/user.js
浏览文件 @
d2e33f3d
...
@@ -126,6 +126,35 @@ const user = {
...
@@ -126,6 +126,35 @@ const user = {
commit
(
'SET_SELLERID'
,
user
.
SellerId
)
commit
(
'SET_SELLERID'
,
user
.
SellerId
)
commit
(
'SET_APPLYSTATE'
,
user
.
state
)
// 记录 商户入驻后的审核状态
commit
(
'SET_APPLYSTATE'
,
user
.
state
)
// 记录 商户入驻后的审核状态
commit
(
'SET_AVATAR'
,
avatar
)
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
)
resolve
(
res
)
}).
catch
(
error
=>
{
}).
catch
(
error
=>
{
reject
(
error
)
reject
(
error
)
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论