Commit 42ff409a by 刘泽奇

123

parent 4f73ec9d
......@@ -56,13 +56,13 @@
<body>
<div id="app" v-loading.fullscreen.lock="loading" customClass="global-loading"
element-loading-background="rgba(0, 0, 0, 0.8)" class="app-main" style="visibility:hidden">
<div class="jd_header_box">
<div class="jd_header_box" v-show="selfHeaderShow">
<div class="jc_hd"></div>
</div>
<transition name="slide-fade">
<router-view></router-view>
</transition>
<div class="jd_footer_box">
<div class="jd_footer_box" v-show="selfFooterShow">
<div class="jdc-footer"></div>
</div>
</div>
......
......@@ -74,10 +74,6 @@ axios.get("/web/common/metaCtl/getRouteConfig").then(d => {
});
router.beforeEach((to, from, next) => {
console.log(from, "vvvvvvvvvvvvvvvvvvvvvvvvv");
console.log(to, "vvvvvvvvvvvvvvvvvvvvvvvvv");
console.log(router, location.hostname);
if (to.path == "/" && location.hostname == "tm.plus.jdcloud.com") {
router.replace({ path: '/jd/jdtrademark' });
}
......@@ -162,10 +158,9 @@ axios.get("/web/common/metaCtl/getRouteConfig").then(d => {
showPhoneNum: false,
rsData: [],
channelUserId: "",
headerHidden: null,
channelName: '',
selfFooterShow: true,
selfHeaderShow: true,
};
},
created() {
......@@ -175,6 +170,7 @@ axios.get("/web/common/metaCtl/getRouteConfig").then(d => {
$("#app").css("visibility", 'visible');
this.loading = false;
this.channelName = location.hash.split('/')[1];
},
updated() {
......@@ -198,29 +194,34 @@ axios.get("/web/common/metaCtl/getRouteConfig").then(d => {
},
handleHeader() {
this.$nextTick(() => {
if (location.hash.split('/')[1] == "jd") {
console.log("xxxxxxxxxxxxxxxxxxxx", location.hash.split('/')[1], this.headerHidden);
$('.jd_footer_box').show();
var selftmreg = location.hash.includes('/selftmreg');
var OAjdlist = location.hash.includes('/OAjdlist');
var jdindentlist = location.hash.includes('/jdindentlist');
var jdindentdetail = location.hash.includes('/jdindentdetail');
var OAjddetails = location.hash.includes('/OAjddetails');
var OAjdcompany = location.hash.includes('/OAjdcompany');
console.log(find, "lllllllllllllllllllllllllllllll");
if (OAjdlist || selftmreg || jdindentlist || jdindentdetail || OAjddetails || OAjdcompany) {
$('.jd_footer_box').hide();
}
if (OAjdlist || jdindentlist || jdindentdetail || OAjddetails || OAjdcompany) {
$('.jd_header_box').hide();
}
} else {
$('.jd_header_box').hide();
$('.jd_footer_box').hide();
console.log("zzzzzzzzzzzzzzz", location.hash.split('/')[1], this.headerHidden);
let hideHeader = location.hash.split('/')[1];
switch (hideHeader) {
case "jd":
console.log("xxxxxxxxxxxxxxxxxxxx", location.hash.split('/')[1], location);
var selftmreg = location.hash.includes('/selftmreg');
var OAjdlist = location.hash.includes('/OAjdlist');
var jdindentlist = location.hash.includes('/jdindentlist');
var jdindentdetail = location.hash.includes('/jdindentdetail');
var OAjddetails = location.hash.includes('/OAjddetails');
var OAjdcompany = location.hash.includes('/OAjdcompany');
if (OAjdlist || selftmreg || jdindentlist || jdindentdetail || OAjddetails || OAjdcompany) {
this.selfFooterShow = false;
}
if (OAjdlist || jdindentlist || jdindentdetail || OAjddetails || OAjdcompany) {
this.selfHeaderShow = false;
}
break;
default:
if (location.hostname != "tm.plus.jdcloud.com") {
this.selfHeaderShow = false;
this.selfFooterShow = false;
}
break;
}
})
});
},
// 处理参数方法
copyParams(actionBody, actionType, url, isUser = "no", isDecryptUser = "no") {
......
......@@ -150,7 +150,6 @@
},
centeredSlides: false,
});
$('.jd_footer_box').show();
},
created: function() {
......
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 to comment