Commit 42ff409a by 刘泽奇

123

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