Commit bde12adc by LJM

bug

parent 025bfed0
.brandxk{
.brand-con{
.brandxk {
.brand-con {
background: #FFFFFF;
border-radius: 4px;
border: 1px solid #E5EBF6;
padding:20px;
padding: 20px;
}
.search-btn{
.search-btn {
cursor: pointer;
width: 76px;
height: 37px;
......@@ -13,17 +14,19 @@
background: #1969F9;
border-radius: 2px;
font-size: 14px;
color:#fff;
color: #fff;
text-align: center;
&:hover{
&:hover {
background: #0050E0;
}
}
.btn-nav{
.btn-nav {
margin-top: 11px;
margin-bottom: 22px;
.dcg{
.dcg {
width: 66px;
height: 26px;
border-radius: 2px;
......@@ -31,29 +34,34 @@
line-height: 26px;
border: 1px solid #1969F9;
background: #E5EEFF;;
color:#1969F9;
color: #1969F9;
margin-right: 10px;
font-size: 14px;
transition: all 0.5s;
&:hover{
&:hover {
background: #1969F9;
cursor: pointer;
color:#fff;
color: #fff;
}
&.delbtn{
border:1px solid #FC1F00;
&.delbtn {
border: 1px solid #FC1F00;
background: #FFE7E3;
color:#FC1F00;
&:hover{
color: #FC1F00;
&:hover {
background: #FF715D;
color:#fff;
color: #fff;
}
}
&.updatex{
&.updatex {
}
}
.updatex{
.updatex {
width: 66px;
height: 26px;
line-height: 26px;
......@@ -61,19 +69,21 @@
background: #FFEEDD;
border: 1px solid #FF870D;
border-radius: 2px;
color:#FF870D;
color: #FF870D;
font-size: 14px;
cursor: pointer;
width: 66px;
&:hover{
&:hover {
background: #FCA955;
color:#fff;
color: #fff;
}
}
}
.brand-img{
.brand-img {
width: 80%;
height: 40px;
......
......@@ -4,31 +4,31 @@
font-size: 20px;
}
color:#666;
color: #666;
&:hover {
color : #1969F9;
color: #1969F9;
cursor: pointer;
}
}
.goods-con {
background : #FFFFFF;
background: #FFFFFF;
border-radius: 4px;
border : 1px solid #E5EBF6;
padding : 20px;
border: 1px solid #E5EBF6;
padding: 20px;
}
.search-btn {
cursor : pointer;
width : 76px;
height : 37px;
line-height : 37px;
background : #1969F9;
cursor: pointer;
width: 76px;
height: 37px;
line-height: 37px;
background: #1969F9;
border-radius: 2px;
font-size : 14px;
color : #fff;
text-align : center;
font-size: 14px;
color: #fff;
text-align: center;
&:hover {
background: #0050E0;
......@@ -36,37 +36,36 @@
}
.btn-nav {
margin-top : 11px;
margin-top: 11px;
margin-bottom: 22px;
.dcg {
width : 66px;
height : 26px;
width: 66px;
height: 26px;
border-radius: 2px;
text-align : center;
line-height : 26px;
border : 1px solid #1969F9;
background : #E5EEFF;
;
color : #1969F9;
text-align: center;
line-height: 26px;
border: 1px solid #1969F9;
background: #E5EEFF;;
color: #1969F9;
margin-right: 10px;
font-size : 14px;
transition : all 0.5s;
font-size: 14px;
transition: all 0.5s;
&:hover {
background: #1969F9;
cursor : pointer;
color : #fff;
cursor: pointer;
color: #fff;
}
&.delbtn {
border : 1px solid #FC1F00;
border: 1px solid #FC1F00;
background: #FFE7E3;
color : #FC1F00;
color: #FC1F00;
&:hover {
background: #FF715D;
color : #fff;
color: #fff;
}
}
......@@ -74,47 +73,49 @@
}
.updatex {
width : 66px;
height : 26px;
line-height : 26px;
text-align : center;
background : #FFEEDD;
border : 1px solid #FF870D;
width: 66px;
height: 26px;
line-height: 26px;
text-align: center;
background: #FFEEDD;
border: 1px solid #FF870D;
border-radius: 2px;
color : #FF870D;
font-size : 14px;
cursor : pointer;
width : 66px;
color: #FF870D;
font-size: 14px;
cursor: pointer;
width: 66px;
&:hover {
background: #FCA955;
color : #fff;
color: #fff;
}
}
}
.brand-img {
width : 80%;
width: 80%;
height: 80;
}
.xktitle{
.xktitle {
border-left: 5px solid #1969F9;
height:38px;
height: 38px;
line-height: 38px;
background: #f3f3f3;
padding-left:20px;
padding-left: 20px;
font-weight: bold;
color:#333;
color: #333;
}
.infoboxpx{
padding:15px;
padding-bottom:30px;
.el-col{
margin-top:15px;
.infoboxpx {
padding: 15px;
padding-bottom: 30px;
.el-col {
margin-top: 15px;
}
}
}
\ No newline at end of file
......@@ -242,13 +242,16 @@ export default {
this.tabs = JSON.parse(tab_arr);
}
let app_ = document.getElementById('app');
this.collapse = false
this.collapse = false;
if (to.path == '/login') {
app_.setAttribute('style', 'padding:0');
} else {
if (this.collapse) {
app_.setAttribute('style', 'padding-left:62px');
} else {
app_.setAttribute('style', 'padding-left:226px');
}
}
}
},
mounted() {
......@@ -267,6 +270,7 @@ export default {
},
tabUi() {
let tab_arr = sessionStorage.getItem('tabs')
if (tab_arr) {
if (tab_arr.length >= 9) {
this.$nextTick(() => {
if (this.$refs.scrollboxinner.clientWidth > this.$refs.scrollbox.clientWidth) {
......@@ -274,6 +278,7 @@ export default {
}
})
}
}
},
tabUrl(item) {
this.$router.push({
......
......@@ -8,6 +8,7 @@ import axios from 'axios'
import {hideLoading, showLoading} from './ajax/loading';
import Util from "./tool";
//加载全局样式
import '@/assets/css/public/common.min.css'
import '@/assets/css/font/iconfont.css'
......@@ -17,7 +18,7 @@ Vue.config.productionTip = false;
Vue.prototype.$ELEMENT = {
size: 'mini',
zIndex: 3000
zIndex: 30000
};
//加载过滤器
......@@ -29,7 +30,7 @@ Vue.use(directive);
//处理顶部导航TAB
router.afterEach((to, from, next) => {
if (to.path == "/" || to.path == "/login" || to.path == '/notfound' || to.path == '/bindError') {
return
return;
}
let tabOldArr = sessionStorage.getItem('tabs');
let tabOldJson;
......@@ -62,21 +63,23 @@ axios.interceptors.request.use((config) => {
if (config.loading) {
showLoading();
}
return config;
}, (err) => {
return Promise.reject(err)
})
axios.interceptors.response.use(res => {
hideLoading();
if (res.data.code == 101) {
//token验证失败
var path_ = window.location.hash
path_ = path_.substr(1)
console.log(path_)
window.location.href = '/#/login?referer=' + encodeURI(path_);
var path = window.location.hash;
path = path.substr(1)
router.push({
path: "/login",
query: {
referer: encodeURI(path)
}
})
}
return res.data;
}, error => {
......@@ -95,7 +98,6 @@ router.beforeEach((to, from, next) => {
} else {
let token = Util.getCookie('token') || '';
if (!token) {
window.userInfo = ""
var path_ = window.location.hash
path_ = path_.substr(1)
......
......@@ -177,8 +177,6 @@ export default {
});
return false;
}
this.$router.push({
path: "/OrderTrackPurAdd",
query: {
......
......@@ -201,4 +201,7 @@ export default {
</script>
<style scoped>
@import "../../assets/css/login/index.min.css";
#app ::v-deep {
padding: 0 !important;
}
</style>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment