顶部样式

init
zhusiyu 3 years ago
parent 300aa44f8d
commit 1c3ae1bc49

@ -33,6 +33,8 @@
this.isPartyCenter = false
}
},
deep: true,
immediate: true
},
},
created(){
@ -40,14 +42,14 @@
},
mounted(){
this.timeFn();
// this.getHref();
//this.getHref();
},
methods: {
timeFn() {
this.timing = setInterval(() => {
this.dateDay = formatTime(new Date(), 'HH: mm')
this.dateYear = formatTime(new Date(), 'yyyy-MM-dd')
// this.dateWeek = this.weekday[new Date().getDay()]
//this.dateWeek = this.weekday[new Date().getDay()]
}, 100)
},
getHref(){

@ -87,6 +87,7 @@
layoutData: {},
showWorkBenchButton: true,//
isPartyCenter: false,
href: '',
}
},
computed: {
@ -106,11 +107,13 @@
this.topImgUrl = topImgPartyBuild
this.isPartyCenter = true
} else {
this.topImgUrl = topImg01
this.isPartyCenter = false
}
},
//
deep: true
deep: true,
immediate: true,
}
},
beforeMount(){
@ -133,12 +136,12 @@
},
methods: {
getHref(){
let href = window.location.href
href = window.location.href.slice(window.location.href.indexOf('#') + 1)
if (href === '/partyCenter/party') {
this.href = window.location.hash
if (this.href === '#/partyCenter/party') {
this.topImgUrl = topImgPartyBuild
this.isPartyCenter = true
} else {
this.topImgUrl = topImg01
this.isPartyCenter = false
}
},
@ -205,6 +208,9 @@
this.topImgUrl = topImg02;
this.showWorkBenchButton = true;
}
} else if (this.href === '#/partyCenter/party') {
this.topImgUrl = topImgPartyBuild
this.isPartyCenter = true
} else {
this.rightWidth = 30;
this.topImgUrl = topImg01;

Loading…
Cancel
Save