提交 ce2551c5 authored 作者: huaxinzhu's avatar huaxinzhu

云仓新功能

上级 2e5e6aaa
...@@ -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>
...@@ -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',
......
...@@ -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
})
},
} }
}; };
......
<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>
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论