Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录
切换导航
S
shop-new
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
王天霸
shop-new
Commits
88748745
提交
88748745
authored
5月 06, 2022
作者:
王天霸
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'scm_optimize'
上级
86fc1d7e
e857357b
隐藏空白字符变更
内嵌
并排
正在显示
20 个修改的文件
包含
258 行增加
和
126 行删除
+258
-126
index.html
public/index.html
+33
-27
user.js
src/api/system/user.js
+4
-4
webSite.js
src/api/webSite.js
+15
-15
Navbar.vue
src/layout/components/Navbar.vue
+27
-13
Logo.vue
src/layout/components/Sidebar/Logo.vue
+35
-11
index.vue
src/layout/index.vue
+7
-0
permission.js
src/permission.js
+12
-7
index.js
src/router/index.js
+6
-6
settings.js
src/settings.js
+1
-1
getters.js
src/store/getters.js
+2
-1
user.js
src/store/modules/user.js
+60
-3
get-page-title.js
src/utils/get-page-title.js
+1
-11
newyuncang.vue
src/views/entry/newyuncang.vue
+28
-12
process.vue
src/views/entry/process.vue
+13
-7
reviewFail.vue
src/views/entry/reviewFail.vue
+1
-1
reviewing.vue
src/views/entry/reviewing.vue
+1
-1
login.vue
src/views/login.vue
+3
-1
platformlogin.vue
src/views/platformlogin.vue
+4
-2
index.vue
src/views/system/order/index.vue
+4
-2
vue.config.js
vue.config.js
+1
-1
没有找到文件。
public/index.html
浏览文件 @
88748745
...
@@ -205,32 +205,38 @@
...
@@ -205,32 +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
.
send
();
// 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>
</script>
</html>
</html>
src/api/system/user.js
浏览文件 @
88748745
...
@@ -137,10 +137,10 @@ export function importTemplate() {
...
@@ -137,10 +137,10 @@ export function importTemplate() {
})
})
}
}
export
function
getBaseSettingTitle
(
params
)
{
export
function
getBaseSettingTitle
(
data
)
{
return
request
({
return
request
({
url
:
'/system/
oem/getBaseSettingTitle
'
,
url
:
'/system/
channelSite/info
'
,
method
:
'
get
'
,
method
:
'
POST
'
,
params
data
:
data
})
})
}
}
src/api/webSite.js
浏览文件 @
88748745
import
request
from
'@/utils/request'
import
request
from
'@/utils/request'
// 获取渠道id
// 获取渠道id
export
function
indexInfo
(
params
)
{
export
function
indexInfo
(
data
)
{
return
request
({
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: '//192.168.26.179:6601/api/v1/oem/webSite/domainChannel',
// url: '//newsys.jxhh.com/api/v1/oem/webSite/domainChannel',
// url: '//newsys.jxhh.com/api/v1/oem/webSite/domainChannel',
method
:
'
ge
t'
,
method
:
'
pos
t'
,
params
data
})
})
}
}
// 获取所有域名
// 获取所有域名
...
@@ -21,13 +21,13 @@ export function getdomain(params) {
...
@@ -21,13 +21,13 @@ export function getdomain(params) {
})
})
}
}
// 获取官网设置接口
// 获取官网设置接口
export
function
webSite
(
params
)
{
export
function
webSite
(
data
)
{
return
request
({
return
request
({
url
:
'/
/sysapi.jxhh.com/api/v1/oem/common/counsel
'
,
url
:
'/
channelSite/domain/info
'
,
// url: '//192.168.26.179:6601/api/v1/oem/common/counsel',
// url: '//192.168.26.179:6601/api/v1/oem/common/counsel',
// url: '//newsys.jxhh.com/api/v1/oem/common/counsel',
// url: '//newsys.jxhh.com/api/v1/oem/common/counsel',
method
:
'
ge
t'
,
method
:
'
pos
t'
,
params
data
})
})
}
}
...
@@ -44,19 +44,19 @@ export function getallCloudList(params) {
...
@@ -44,19 +44,19 @@ export function getallCloudList(params) {
//获取sso域名
//获取sso域名
export
function
getssoUrl
(
data
)
{
export
function
getssoUrl
(
data
)
{
return
request
({
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: '//192.168.26.179:6601/api/v1/oem/webSite/ssoChannel',
// url: '//newsys.jxhh.com/api/v1/oem/webSite/ssoChannel',
// url: '//newsys.jxhh.com/api/v1/oem/webSite/ssoChannel',
method
:
'
ge
t'
,
method
:
'
pos
t'
,
params
:
data
data
})
})
}
}
// 获取logo
// 获取logo
export
function
backDetailsView
(
params
)
{
export
function
backDetailsView
(
data
)
{
return
request
({
return
request
({
url
:
'/
local/oem/backDetails
'
,
url
:
'/
system/channelSite/info
'
,
method
:
'
ge
t'
,
method
:
'
pos
t'
,
params
data
})
})
}
}
src/layout/components/Navbar.vue
浏览文件 @
88748745
...
@@ -91,6 +91,9 @@ export default {
...
@@ -91,6 +91,9 @@ export default {
value
:
val
value
:
val
})
})
}
}
},
channelInfo
()
{
return
this
.
$store
.
getters
.
channelInfo
}
}
},
},
data
(){
data
(){
...
@@ -101,21 +104,30 @@ export default {
...
@@ -101,21 +104,30 @@ export default {
},
},
created
()
{
created
()
{
/** 获取渠道id */
/** 获取渠道id */
this
.
getChannelId
()
//
this.getChannelId()
},
},
methods
:
{
watch
:
{
/** 判断渠道 值=0才显示 查看历史数据 链接 */
channelInfo
()
{
getChannelId
()
{
if
(
this
.
channelInfo
)
{
let
ssa
=
window
.
location
.
host
this
.
channel_id
=
this
.
$store
.
state
.
user
.
channelInfo
.
channel_id
const
data
=
{
domain
:
ssa
,
}
}
indexInfo
(
data
).
then
(
res
=>
{
if
(
res
.
code
==
1
)
{
this
.
channel_id
=
res
.
data
.
channel_id
}
});
},
},
},
methods
:
{
/** 判断渠道 值=0才显示 查看历史数据 链接 */
// 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
// }
// });
// },
toggleSideBar
()
{
toggleSideBar
()
{
this
.
$store
.
dispatch
(
'app/toggleSideBar'
)
this
.
$store
.
dispatch
(
'app/toggleSideBar'
)
...
@@ -123,11 +135,13 @@ export default {
...
@@ -123,11 +135,13 @@ export default {
ssooutinfo
(){
ssooutinfo
(){
var
ssa
=
window
.
location
.
host
var
ssa
=
window
.
location
.
host
let
data
=
{
let
data
=
{
type
:
2
,
site_type
:
7
,
domain
:
ssa
domain
:
ssa
}
}
this
.
$store
.
dispatch
(
'getssourl'
,
data
).
then
((
res
)
=>
{
this
.
$store
.
dispatch
(
'getssourl'
,
data
).
then
((
res
)
=>
{
if
(
res
.
code
==
1
){
if
(
res
.
code
==
1
){
this
.
ssourl
=
res
.
data
.
sso_url
this
.
ssourl
=
res
.
data
.
channel_site
[
0
].
domain
this
.
logout
()
this
.
logout
()
}
}
})
})
...
...
src/layout/components/Sidebar/Logo.vue
浏览文件 @
88748745
...
@@ -34,21 +34,45 @@ export default {
...
@@ -34,21 +34,45 @@ export default {
logo
:
logoImg
logo
:
logoImg
}
}
},
},
computed
:
{
},
watch
:
{
},
created
()
{
const
data
=
{
type
:
2
,
site_type
:
4
}
this
.
$store
.
dispatch
(
'getChannelSiteInfo'
,
data
).
then
(
res
=>
{
this
.
getlog
()
})
},
mounted
()
{
mounted
()
{
this
.
getBackDetailsView
()
},
},
methods
:
{
methods
:
{
getBackDetailsView
()
{
getlog
(){
let
params
=
{
let
logotitle
=
this
.
$store
.
state
.
user
.
channelInfo
type
:
'SHOP'
,
this
.
title
=
logotitle
.
title
}
this
.
logo
=
logotitle
.
imgUrl
backDetailsView
(
params
).
then
(
res
=>
{
document
.
title
=
logotitle
.
documentTitle
if
(
res
.
code
==
1
)
{
this
.
title
=
res
.
data
[
0
][
'SHOP'
].
shop_name
this
.
logo
=
res
.
data
[
0
][
'SHOP'
].
shop_logo
}
})
}
}
// getBackDetailsView() {
// let params = {
// type: 2,
// site_type: 4
// }
// backDetailsView(params).then(res => {
// 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
// }
// })
// }
}
}
}
}
</
script
>
</
script
>
...
...
src/layout/index.vue
浏览文件 @
88748745
...
@@ -49,6 +49,13 @@ export default {
...
@@ -49,6 +49,13 @@ export default {
}
}
}
}
},
},
mounted
()
{
// const data = {
// type: 2,
// site_type: 4
// }
// this.$store.dispatch('getChannelSiteInfo', data)
},
methods
:
{
methods
:
{
handleClickOutside
()
{
handleClickOutside
()
{
this
.
$store
.
dispatch
(
'app/closeSideBar'
,
{
withoutAnimation
:
false
})
this
.
$store
.
dispatch
(
'app/closeSideBar'
,
{
withoutAnimation
:
false
})
...
...
src/permission.js
浏览文件 @
88748745
...
@@ -16,20 +16,25 @@ router.beforeEach((to, from, next) => {
...
@@ -16,20 +16,25 @@ router.beforeEach((to, from, next) => {
const
hasToken
=
getToken
()
const
hasToken
=
getToken
()
// console.log("getToken()",getToken())
// console.log("getToken()",getToken())
if
(
hasToken
)
{
if
(
hasToken
)
{
if
(
sessionStorage
.
getItem
(
'saveTitle'
))
{
//
if (sessionStorage.getItem('saveTitle')) {
document
.
title
=
sessionStorage
.
getItem
(
'saveTitle'
)
//
document.title = sessionStorage.getItem('saveTitle')
}
else
{
//
} else {
getPageTitle
()
//
getPageTitle()
}
//
}
/* has token*/
/* has token*/
if
(
to
.
path
===
'/platformlogin'
)
{
if
(
to
.
path
===
'/platformlogin'
)
{
next
({
path
:
'/
home/
index'
})
next
({
path
:
'/index'
})
NProgress
.
done
()
NProgress
.
done
()
}
else
{
}
else
{
if
(
store
.
getters
.
roles
.
length
===
0
)
{
if
(
store
.
getters
.
roles
.
length
===
0
)
{
//debugger
//debugger
// 判断当前用户是否已拉取完user_info信息
// 判断当前用户是否已拉取完user_info信息
const
data
=
{
type
:
2
,
site_type
:
4
}
store
.
dispatch
(
'getChannelSiteInfo'
,
data
)
store
.
dispatch
(
'GetInfo'
).
then
(
res
=>
{
store
.
dispatch
(
'GetInfo'
).
then
(
res
=>
{
// 拉取user_info
// 拉取user_info
const
roles
=
res
.
data
.
roles
const
roles
=
res
.
data
.
roles
...
@@ -56,7 +61,7 @@ router.beforeEach((to, from, next) => {
...
@@ -56,7 +61,7 @@ router.beforeEach((to, from, next) => {
}).
catch
(
err
=>
{
}).
catch
(
err
=>
{
store
.
dispatch
(
'FedLogOut'
).
then
(()
=>
{
store
.
dispatch
(
'FedLogOut'
).
then
(()
=>
{
Message
.
error
(
err
)
Message
.
error
(
err
)
next
({
path
:
'/
home/
index'
})
next
({
path
:
'/index'
})
})
})
})
})
}
else
{
}
else
{
...
...
src/router/index.js
浏览文件 @
88748745
...
@@ -82,11 +82,11 @@ export const constantRoutes = [
...
@@ -82,11 +82,11 @@ export const constantRoutes = [
component
:
()
=>
import
(
'@/views/returnurl'
),
component
:
()
=>
import
(
'@/views/returnurl'
),
hidden
:
true
hidden
:
true
},
},
{
//
{
path
:
'/'
,
//
path: '/',
component
:
(
resolve
)
=>
require
([
'@/views/entry/newyuncang'
],
resolve
),
//
component: (resolve) => require(['@/views/entry/newyuncang'], resolve),
hidden
:
true
//
hidden: true
},
//
},
// 总体流程
// 总体流程
{
{
path
:
'/process'
,
path
:
'/process'
,
...
@@ -131,7 +131,7 @@ export const constantRoutes = [
...
@@ -131,7 +131,7 @@ export const constantRoutes = [
hidden
:
true
hidden
:
true
},
},
{
{
path
:
'/
home
'
,
path
:
'/'
,
component
:
Layout
,
component
:
Layout
,
redirect
:
'index'
,
redirect
:
'index'
,
children
:
[
children
:
[
...
...
src/settings.js
浏览文件 @
88748745
module
.
exports
=
{
module
.
exports
=
{
title
:
'
云仓管理系统
'
,
title
:
''
,
/**
/**
* 是否系统布局配置
* 是否系统布局配置
...
...
src/store/getters.js
浏览文件 @
88748745
...
@@ -10,6 +10,7 @@ const getters = {
...
@@ -10,6 +10,7 @@ const getters = {
introduction
:
state
=>
state
.
user
.
introduction
,
introduction
:
state
=>
state
.
user
.
introduction
,
roles
:
state
=>
state
.
user
.
roles
,
roles
:
state
=>
state
.
user
.
roles
,
permissions
:
state
=>
state
.
user
.
permissions
,
permissions
:
state
=>
state
.
user
.
permissions
,
permission_routes
:
state
=>
state
.
permission
.
routes
permission_routes
:
state
=>
state
.
permission
.
routes
,
channelInfo
:
state
=>
state
.
user
.
channelInfo
}
}
export
default
getters
export
default
getters
src/store/modules/user.js
浏览文件 @
88748745
import
{
login
,
login2
,
logout
,
getInfo
,
getStatistics
}
from
'@/api/login'
import
{
login
,
login2
,
logout
,
getInfo
,
getStatistics
}
from
'@/api/login'
import
{
getssoUrl
}
from
'@/api/webSite'
import
{
getssoUrl
,
backDetailsView
}
from
'@/api/webSite'
import
{
getToken
,
setToken
,
removeToken
}
from
'@/utils/auth'
import
{
getToken
,
setToken
,
removeToken
}
from
'@/utils/auth'
const
user
=
{
const
user
=
{
...
@@ -18,9 +18,18 @@ const user = {
...
@@ -18,9 +18,18 @@ const user = {
// 3-审核拒绝;
// 3-审核拒绝;
applyState
:
-
1
,
applyState
:
-
1
,
cateFee
:
0
,
cateFee
:
0
,
channelInfo
:
{
title
:
''
,
imgUrl
:
''
,
documentTitle
:
''
,
channel_id
:
''
}
},
},
mutations
:
{
mutations
:
{
SET_CHANNELINFO
:
(
state
,
channelInfo
)
=>
{
state
.
channelInfo
=
channelInfo
},
SET_SSOURL
:(
state
,
ssourl
)
=>
{
SET_SSOURL
:(
state
,
ssourl
)
=>
{
state
.
ssourl
=
ssourl
state
.
ssourl
=
ssourl
},
},
...
@@ -51,13 +60,32 @@ const user = {
...
@@ -51,13 +60,32 @@ const user = {
},
},
actions
:
{
actions
:
{
getChannelSiteInfo
({
commit
},
data
)
{
return
new
Promise
((
resolve
,
reject
)
=>
{
backDetailsView
(
data
).
then
(
response
=>
{
if
(
response
.
code
==
1
)
{
let
date
=
{
title
:
response
.
data
.
channel_site
[
0
].
base_setting_res
.
name
,
imgUrl
:
response
.
data
.
channel_site
[
0
].
base_setting_res
.
logo
,
documentTitle
:
response
.
data
.
channel_site
[
0
].
base_setting_res
.
title
,
channel_id
:
response
.
data
.
channel_site
[
0
].
channel_id
}
document
.
title
=
response
.
data
.
channel_site
[
0
].
base_setting_res
.
name
commit
(
'SET_CHANNELINFO'
,
date
)
resolve
(
response
)
}
}).
catch
(
error
=>
{
reject
(
error
)
})
})
},
getssourl
({
commit
},
data
){
getssourl
({
commit
},
data
){
return
new
Promise
((
resolve
,
reject
)
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
getssoUrl
(
data
).
then
(
response
=>
{
getssoUrl
(
data
).
then
(
response
=>
{
const
date
=
response
.
data
const
date
=
response
.
data
.
channel_site
[
0
]
//debugger
//debugger
if
(
response
.
code
==
1
)
{
if
(
response
.
code
==
1
)
{
commit
(
'SET_SSOURL'
,
date
.
access_toke
n
)
commit
(
'SET_SSOURL'
,
date
.
domai
n
)
}
}
resolve
(
response
)
resolve
(
response
)
}).
catch
(
error
=>
{
}).
catch
(
error
=>
{
...
@@ -114,6 +142,35 @@ const user = {
...
@@ -114,6 +142,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
=
'/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
=
'/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
)
...
...
src/utils/get-page-title.js
浏览文件 @
88748745
import
defaultSettings
from
'@/settings'
import
defaultSettings
from
'@/settings'
import
{
getBaseSettingTitle
}
from
'@/api/system/user'
const
title
=
defaultSettings
.
title
||
'胜天半子'
const
title
=
defaultSettings
.
title
||
'胜天半子'
\ No newline at end of file
export
default
function
getPageTitle
()
{
getBaseSettingTitle
({
type
:
'SHOP'
}).
then
(
res
=>
{
if
(
res
.
code
==
1
)
{
document
.
title
=
res
.
data
sessionStorage
.
setItem
(
'saveTitle'
,
res
.
data
)
}
})
}
\ No newline at end of file
src/views/entry/newyuncang.vue
浏览文件 @
88748745
...
@@ -31,7 +31,7 @@
...
@@ -31,7 +31,7 @@
<swiper
:options=
"swiperOption"
v-if=
"bannerList && bannerList.length > 0"
>
<swiper
:options=
"swiperOption"
v-if=
"bannerList && bannerList.length > 0"
>
<swiper-slide
v-for=
"(item,index) in bannerList"
:key=
"index"
>
<swiper-slide
v-for=
"(item,index) in bannerList"
:key=
"index"
>
<a
:href=
"aLinkRes(item.redirect_url) "
:target=
"returnBlank(item.redirect_url)"
>
<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>
</a>
</swiper-slide>
</swiper-slide>
</swiper>
</swiper>
...
@@ -242,7 +242,7 @@
...
@@ -242,7 +242,7 @@
<swiper
class=
"mb-banner-con mobile-content"
:options=
"swiperOption"
v-if=
"bannerList && bannerList.length > 0"
>
<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"
>
<swiper-slide
v-for=
"(item,index) in bannerList"
:key=
"index"
>
<a
:href=
"aLinkRes(item.redirect_url) "
:target=
"returnBlank(item.redirect_url)"
>
<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>
</a>
</swiper-slide>
</swiper-slide>
</swiper>
</swiper>
...
@@ -613,7 +613,7 @@
...
@@ -613,7 +613,7 @@
// console.log(222,navigator.userAgent);
// console.log(222,navigator.userAgent);
},
},
mounted
()
{
mounted
()
{
this
.
getIndexInfo
()
//
this.getIndexInfo()
window
.
addEventListener
(
'scroll'
,
this
.
handleScroll
,
true
);
window
.
addEventListener
(
'scroll'
,
this
.
handleScroll
,
true
);
},
},
destroyed
()
{
destroyed
()
{
...
@@ -624,11 +624,23 @@
...
@@ -624,11 +624,23 @@
/** 动态获取 sso 配置域名 */
/** 动态获取 sso 配置域名 */
getssourl
()
{
getssourl
()
{
var
ssa
=
window
.
location
.
host
var
ssa
=
window
.
location
.
host
let
data
=
{
domain
:
ssa
}
let
data
=
{
type
:
2
,
site_type
:
7
,
domain
:
ssa
}
this
.
$store
.
dispatch
(
'getssourl'
,
data
)
this
.
$store
.
dispatch
(
'getssourl'
,
data
)
.
then
((
res
)
=>
{
.
then
((
res
)
=>
{
if
(
res
.
code
==
1
)
{
if
(
res
.
code
==
1
)
{
this
.
ssourl
=
res
.
data
.
sso_url
this
.
ssourl
=
res
.
data
.
channel_site
[
0
].
domain
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
;
this
.
getWebSite
()
this
.
getDomain
()
this
.
getAllcloud
()
//this.gotosso()
//this.gotosso()
}
}
}).
catch
(()
=>
{
}).
catch
(()
=>
{
...
@@ -651,15 +663,17 @@
...
@@ -651,15 +663,17 @@
}
}
const
data
=
{
const
data
=
{
// domain: 'newsys.jxhh.com',
// domain: 'newsys.jxhh.com',
domain
:
ssa
,
type
:
2
,
site_type
:
4
,
// domain: ssa,
// field: op
// field: op
}
}
indexInfo
(
data
).
then
(
res
=>
{
indexInfo
(
data
).
then
(
res
=>
{
if
(
res
.
code
==
1
)
{
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
.
title
;
this
.
keyTitle
=
res
.
data
.
channel_site
[
0
].
title
;
this
.
keyWords
=
res
.
data
.
keywords
;
this
.
keyWords
=
res
.
data
.
channel_site
[
0
].
keywords
;
this
.
keyDescriptions
=
res
.
data
.
describe
;
this
.
keyDescriptions
=
res
.
data
.
channel_site
[
0
].
describe
;
this
.
getWebSite
()
this
.
getWebSite
()
this
.
getDomain
()
this
.
getDomain
()
this
.
getAllcloud
()
this
.
getAllcloud
()
...
@@ -669,7 +683,9 @@
...
@@ -669,7 +683,9 @@
/** 获取通用设置 */
/** 获取通用设置 */
getWebSite
()
{
getWebSite
()
{
let
params
=
{
let
params
=
{
channel_ids
:
this
.
channel_id
domain
:
window
.
location
.
host
,
type
:
2
,
site_type
:
4
}
}
webSite
(
params
).
then
(
res
=>
{
webSite
(
params
).
then
(
res
=>
{
if
(
res
.
code
==
1
)
{
if
(
res
.
code
==
1
)
{
...
@@ -708,7 +724,7 @@
...
@@ -708,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
)
{
if
(
res
.
data
.
cloud_banner_lst
&&
res
.
data
.
cloud_banner_lst
.
banners_json
&&
res
.
data
.
cloud_banner_lst
.
banners_json
.
length
>
0
)
{
let
bannerArr
=
[]
let
bannerArr
=
[]
res
.
data
.
cloud_banner_lst
.
banners_json
.
forEach
(
element
=>
{
res
.
data
.
cloud_banner_lst
.
banners_json
.
forEach
(
element
=>
{
if
(
element
.
im
age
_url
)
{
if
(
element
.
im
g
_url
)
{
bannerArr
.
push
(
element
);
bannerArr
.
push
(
element
);
}
}
});
});
...
...
src/views/entry/process.vue
浏览文件 @
88748745
...
@@ -50,25 +50,31 @@
...
@@ -50,25 +50,31 @@
let
op
=
'open'
let
op
=
'open'
let
ssa
=
window
.
location
.
host
let
ssa
=
window
.
location
.
host
const
data
=
{
const
data
=
{
domain
:
ssa
,
type
:
2
,
site_type
:
4
,
// domain: ssa,
}
}
indexInfo
(
data
).
then
(
res
=>
{
indexInfo
(
data
).
then
(
res
=>
{
if
(
res
.
code
==
1
)
{
if
(
res
.
code
==
1
)
{
this
.
channel_id
=
res
.
data
.
channel_id
this
.
channel_id
=
res
.
data
.
channel
.
id
this
.
getWebSite
()
this
.
settitle
.
topLogo
=
res
.
data
.
channel_site
[
0
].
logo
// this.getWebSite()
}
}
})
})
},
},
/** 获取通用设置 */
/** 获取通用设置 */
getWebSite
()
{
getWebSite
()
{
let
params
=
{
let
params
=
{
channel_ids
:
this
.
channel_id
domain
:
window
.
location
.
host
,
type
:
2
,
site_type
:
4
}
}
webSite
(
params
).
then
(
res
=>
{
webSite
(
params
).
then
(
res
=>
{
if
(
res
.
code
==
1
)
{
if
(
res
.
code
==
1
)
{
if
(
res
.
data
.
universal_lst
&&
res
.
data
.
universal_lst
!=
'null'
)
{
// if (res.data.universal_lst && res.data.universal_lst != 'null') {
this
.
settitle
=
res
.
data
.
universal_lst
// this.settitle = res.data.universal_lst
}
// }
this
.
settitle
.
topLogo
=
res
.
data
.
channel_site
[
0
].
logo
}
}
})
})
},
},
...
...
src/views/entry/reviewFail.vue
浏览文件 @
88748745
...
@@ -45,7 +45,7 @@
...
@@ -45,7 +45,7 @@
getInfo
().
then
(
res
=>
{
getInfo
().
then
(
res
=>
{
if
(
res
.
code
==
1
&&
res
.
data
.
user
)
{
if
(
res
.
code
==
1
&&
res
.
data
.
user
)
{
if
(
res
.
data
.
user
.
state
==
1
)
{
if
(
res
.
data
.
user
.
state
==
1
)
{
this
.
$router
.
push
({
path
:
'/
home/
index'
});
this
.
$router
.
push
({
path
:
'/index'
});
}
}
if
(
res
.
data
.
user
.
state
==
2
)
{
if
(
res
.
data
.
user
.
state
==
2
)
{
this
.
$router
.
push
({
path
:
'/reviewing'
})
this
.
$router
.
push
({
path
:
'/reviewing'
})
...
...
src/views/entry/reviewing.vue
浏览文件 @
88748745
...
@@ -39,7 +39,7 @@
...
@@ -39,7 +39,7 @@
getInfo
().
then
(
res
=>
{
getInfo
().
then
(
res
=>
{
if
(
res
.
code
==
1
&&
res
.
data
.
user
)
{
if
(
res
.
code
==
1
&&
res
.
data
.
user
)
{
if
(
res
.
data
.
user
.
state
==
1
)
{
if
(
res
.
data
.
user
.
state
==
1
)
{
this
.
$router
.
push
({
path
:
'/
home/
index'
});
this
.
$router
.
push
({
path
:
'/index'
});
}
}
if
(
res
.
data
.
user
.
state
==
2
)
{
if
(
res
.
data
.
user
.
state
==
2
)
{
this
.
$router
.
push
({
path
:
'/reviewing'
})
this
.
$router
.
push
({
path
:
'/reviewing'
})
...
...
src/views/login.vue
浏览文件 @
88748745
...
@@ -45,12 +45,14 @@ export default {
...
@@ -45,12 +45,14 @@ export default {
var
ssa
=
window
.
location
.
host
var
ssa
=
window
.
location
.
host
// var ssa = 'scm.jxhh.com'
// var ssa = 'scm.jxhh.com'
let
data
=
{
let
data
=
{
type
:
2
,
site_type
:
7
,
domain
:
ssa
domain
:
ssa
}
}
this
.
$store
.
dispatch
(
'getssourl'
,
data
)
this
.
$store
.
dispatch
(
'getssourl'
,
data
)
.
then
((
res
)
=>
{
.
then
((
res
)
=>
{
if
(
res
.
code
==
1
){
if
(
res
.
code
==
1
){
this
.
ssourl
=
res
.
data
.
sso_url
this
.
ssourl
=
res
.
data
.
channel_site
[
0
].
domain
this
.
tiaozuan
()
this
.
tiaozuan
()
}
}
})
})
...
...
src/views/platformlogin.vue
浏览文件 @
88748745
...
@@ -20,12 +20,14 @@
...
@@ -20,12 +20,14 @@
var
ssa
=
window
.
location
.
host
var
ssa
=
window
.
location
.
host
// var ssa = 'scm.jxhh.com'
// var ssa = 'scm.jxhh.com'
let
data
=
{
let
data
=
{
type
:
2
,
site_type
:
7
,
domain
:
ssa
domain
:
ssa
}
}
this
.
$store
.
dispatch
(
'getssourl'
,
data
)
this
.
$store
.
dispatch
(
'getssourl'
,
data
)
.
then
((
res
)
=>
{
.
then
((
res
)
=>
{
if
(
res
.
code
==
1
){
if
(
res
.
code
==
1
){
this
.
ssourl
=
res
.
data
.
sso_url
this
.
ssourl
=
res
.
data
.
channel_site
[
0
].
domain
this
.
gotosso
()
this
.
gotosso
()
}
}
})
})
...
@@ -53,7 +55,7 @@
...
@@ -53,7 +55,7 @@
}
}
break
;
break
;
case
1
:
// 审核成功,要跳转到首页
case
1
:
// 审核成功,要跳转到首页
this
.
$router
.
push
({
path
:
'/
home/
index'
});
this
.
$router
.
push
({
path
:
'/index'
});
break
;
break
;
case
2
:
// 审核中
case
2
:
// 审核中
this
.
$router
.
push
({
path
:
'/reviewing'
});
this
.
$router
.
push
({
path
:
'/reviewing'
});
...
...
src/views/system/order/index.vue
浏览文件 @
88748745
...
@@ -410,11 +410,13 @@
...
@@ -410,11 +410,13 @@
getChannelId
()
{
getChannelId
()
{
let
ssa
=
window
.
location
.
host
let
ssa
=
window
.
location
.
host
const
data
=
{
const
data
=
{
domain
:
ssa
,
type
:
2
,
site_type
:
4
,
// domain: ssa,
}
}
indexInfo
(
data
).
then
(
res
=>
{
indexInfo
(
data
).
then
(
res
=>
{
if
(
res
.
code
==
1
)
{
if
(
res
.
code
==
1
)
{
this
.
channel_id
=
res
.
data
.
channel
_
id
this
.
channel_id
=
res
.
data
.
channel
.
id
}
}
});
});
},
},
...
...
vue.config.js
浏览文件 @
88748745
...
@@ -8,7 +8,7 @@ function resolve(dir) {
...
@@ -8,7 +8,7 @@ function resolve(dir) {
const
name
=
defaultSettings
.
title
||
'云仓'
// 标题
const
name
=
defaultSettings
.
title
||
'云仓'
// 标题
const
port
=
process
.
env
.
port
||
process
.
env
.
npm_config_port
||
808
0
// 端口
const
port
=
process
.
env
.
port
||
process
.
env
.
npm_config_port
||
960
0
// 端口
// vue.config.js 配置说明
// vue.config.js 配置说明
//官方vue.config.js 参考文档 https://cli.vuejs.org/zh/config/#css-loaderoptions
//官方vue.config.js 参考文档 https://cli.vuejs.org/zh/config/#css-loaderoptions
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论