Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录
切换导航
S
shop-new
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
王天霸
shop-new
Commits
ce2551c5
提交
ce2551c5
authored
4月 02, 2021
作者:
huaxinzhu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
云仓新功能
上级
2e5e6aaa
全部展开
隐藏空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
375 行增加
和
322 行删除
+375
-322
App.vue
src/App.vue
+18
-0
index.js
src/router/index.js
+53
-1
login2.vue
src/views/login2.vue
+36
-55
redirect.vue
src/views/redirect.vue
+9
-9
index.vue
src/views/system/freight/freight_list/index.vue
+259
-257
没有找到文件。
src/App.vue
浏览文件 @
ce2551c5
...
@@ -9,3 +9,21 @@ export default {
...
@@ -9,3 +9,21 @@ export default {
name
:
'App'
name
:
'App'
}
}
</
script
>
</
script
>
<
style
>
body
{
font-family
:
”
Microsoft
YaHei
”
,
Arial
,
Helvetica
,
sans-serif
;
}
/* 在全局CSS里引用: */
/* 滚动条宽度 */
::-webkit-scrollbar
{
width
:
10px
;
height
:
10px
;
}
/* 滚动条的滑块 */
::-webkit-scrollbar-thumb
{
background-color
:
#c0ccda
;
border-radius
:
6px
;
}
</
style
>
src/router/index.js
浏览文件 @
ce2551c5
...
@@ -4,7 +4,10 @@ import Router from 'vue-router'
...
@@ -4,7 +4,10 @@ import Router from 'vue-router'
Vue
.
use
(
Router
)
Vue
.
use
(
Router
)
/* Layout */
/* Layout */
import
Layout
from
'@/layout'
import
Layout
from
'@/layout'
;
import
Entry
from
'@/views/entry'
;
/**
/**
* Note: 路由配置项
* Note: 路由配置项
...
@@ -57,7 +60,43 @@ export const constantRoutes = [
...
@@ -57,7 +60,43 @@ export const constantRoutes = [
component
:
(
resolve
)
=>
require
([
'@/views/error/401'
],
resolve
),
component
:
(
resolve
)
=>
require
([
'@/views/error/401'
],
resolve
),
hidden
:
true
hidden
:
true
},
},
// 阅读协议
{
path
:
'/agreement'
,
component
:
(
resolve
)
=>
require
([
'@/views/entry/agreement'
],
resolve
),
hidden
:
true
},
// 主体信息 fillStoreInf
{
path
:
'/fillMainInf'
,
component
:
(
resolve
)
=>
require
([
'@/views/entry/fillMainInf'
],
resolve
),
hidden
:
true
},
// 品牌信息
{
path
:
'/fillBrandInf'
,
component
:
(
resolve
)
=>
require
([
'@/views/entry/fillBrandInf'
],
resolve
),
hidden
:
true
},
// 店铺信息
{
path
:
'/fillShopInf'
,
component
:
(
resolve
)
=>
require
([
'@/views/entry/fillShopInf'
],
resolve
),
hidden
:
true
},
// 提交审核
{
path
:
'/reviewing'
,
component
:
(
resolve
)
=>
require
([
'@/views/entry/reviewing'
],
resolve
),
hidden
:
true
},
// 审核失败
{
{
path
:
'/reviewFail'
,
component
:
(
resolve
)
=>
require
([
'@/views/entry/reviewFail'
],
resolve
),
hidden
:
true
},
/*{
path: '',
path: '',
component: Layout,
component: Layout,
redirect: 'index',
redirect: 'index',
...
@@ -69,6 +108,19 @@ export const constantRoutes = [
...
@@ -69,6 +108,19 @@ export const constantRoutes = [
meta: { title: '首页', icon: 'dashboard', noCache: true, affix: true }
meta: { title: '首页', icon: 'dashboard', noCache: true, affix: true }
}
}
]
]
},*/
{
path
:
''
,
component
:
Entry
,
redirect
:
'index'
,
children
:
[
{
path
:
'index'
,
component
:
(
resolve
)
=>
require
([
'@/views/index'
],
resolve
),
name
:
'首页'
,
meta
:
{
title
:
'首页'
,
icon
:
'dashboard'
,
noCache
:
true
,
affix
:
true
}
}
]
},
},
{
{
path
:
'/user'
,
path
:
'/user'
,
...
...
src/views/login2.vue
浏览文件 @
ce2551c5
...
@@ -3,65 +3,46 @@
...
@@ -3,65 +3,46 @@
<
script
>
<
script
>
export
default
{
export
default
{
name
:
"Login2"
,
name
:
"Login2"
,
created
()
{
created
()
{
this
.
gotosso
()
this
.
gotosso
()
},
},
methods
:
{
methods
:
{
getCookie
()
{
getCookie
()
{
var
de
=
this
.
$store
.
commit
(
"SET_TOKEN"
)
var
de
=
this
.
$store
.
commit
(
"SET_TOKEN"
)
console
.
log
(
"SET_TOKEN"
,
de
)
},
// const password = Cookies.get("password");
gotosso
()
{
// const rememberMe = Cookies.get('rememberMe')
var
ticket
=
this
.
$route
.
query
.
ticket
// this.loginForm = {
this
.
$store
.
dispatch
(
'Login'
,
{
"ticket"
:
ticket
}).
then
((
res
)
=>
{
// username: username === undefined ? this.loginForm.username : username,
if
(
res
.
token
!=
""
)
{
// password: password === undefined ? this.loginForm.password : decrypt(password),
this
.
$router
.
push
({
path
:
'/'
})
// rememberMe: rememberMe === undefined ? false : Boolean(rememberMe)
}
else
{
// };
this
.
$store
.
dispatch
(
'Statistic'
)
},
this
.
$store
.
dispatch
(
'FedLogOut'
)
gotosso
(){
var
ssa
=
window
.
location
.
host
var
ticket
=
this
.
$route
.
query
.
ticket
setTimeout
(
function
()
{
// let data = this.getUrlParam('ticket')
if
(
ssa
==
'localhost:1024'
)
{
// this.loading = true
window
.
location
.
href
=
'http://sso.jxhh.com/logout?redirect=http://'
+
ssa
+
'/login'
this
.
$store
.
dispatch
(
'Login'
,
{
"ticket"
:
ticket
}).
then
((
res
)
=>
{
}
else
{
// console.log(123456)
window
.
location
.
href
=
'http://sso.jxhh.com/logout?redirect=http://'
+
ssa
+
'/login'
// console.log(res)
}
// return false
},
1000
)
// debugger
}
if
(
res
.
token
!=
""
){
this
.
loading
=
false
this
.
$router
.
push
({
path
:
'/'
})
})
}
else
{
.
catch
(()
=>
{
this
.
$store
.
dispatch
(
'Statistic'
)
this
.
$store
.
dispatch
(
'FedLogOut'
)
this
.
$store
.
dispatch
(
'FedLogOut'
)
var
ssa
=
window
.
location
.
host
var
ssa
=
window
.
location
.
host
setTimeout
(
function
()
{
setTimeout
(
function
(){
if
(
ssa
==
'localhost:1024'
)
{
if
(
ssa
==
'localhost:1024'
){
window
.
location
.
href
=
'http://sso.jxhh.com/logout?redirect=http://'
+
ssa
+
'/login'
window
.
location
.
href
=
'http://sso.jxhh.com/logout?redirect=http://'
+
ssa
+
'/login'
}
else
{
}
else
{
window
.
location
.
href
=
'http://sso.jxhh.com/logout?redirect=http://'
+
ssa
+
'/login'
window
.
location
.
href
=
'http://sso.jxhh.com/logout?redirect=http://'
+
ssa
+
'/login'
}
}
},
1000
)
},
1000
)
this
.
loading
=
false
})
}
},
this
.
loading
=
false
})
.
catch
(()
=>
{
debugger
console
.
log
(
222222222222
)
this
.
$store
.
dispatch
(
'FedLogOut'
)
var
ssa
=
window
.
location
.
host
setTimeout
(
function
(){
if
(
ssa
==
'localhost:1024'
){
window
.
location
.
href
=
'http://sso.jxhh.com/logout?redirect=http://'
+
ssa
+
'/login'
}
else
{
window
.
location
.
href
=
'http://sso.jxhh.com/logout?redirect=http://'
+
ssa
+
'/login'
}
},
1000
)
this
.
loading
=
false
})
},
}
}
};
};
...
...
src/views/redirect.vue
浏览文件 @
ce2551c5
<
script
>
<
script
>
export
default
{
export
default
{
created
()
{
created
()
{
const
{
params
,
query
}
=
this
.
$route
const
{
params
,
query
}
=
this
.
$route
const
{
path
}
=
params
const
{
path
}
=
params
;
this
.
$router
.
replace
({
path
:
'/'
+
path
,
query
})
this
.
$router
.
replace
({
path
:
'/'
+
path
,
query
})
},
},
render
:
function
(
h
)
{
render
:
function
(
h
)
{
return
h
()
// avoid warning message
return
h
()
}
}
}
}
</
script
>
</
script
>
src/views/system/freight/freight_list/index.vue
浏览文件 @
ce2551c5
差异被折叠。
点击展开。
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论