|
|
@ -102,14 +102,15 @@
|
|
|
|
watch: {
|
|
|
|
watch: {
|
|
|
|
$route: {
|
|
|
|
$route: {
|
|
|
|
handler(val, oldval){
|
|
|
|
handler(val, oldval){
|
|
|
|
|
|
|
|
console.log("val:",val)
|
|
|
|
this.emitRouteChange(val.path);
|
|
|
|
this.emitRouteChange(val.path);
|
|
|
|
if (val.path === '/partyCenter/party') {
|
|
|
|
// if (val.path === '/partyCenter/party') {
|
|
|
|
this.topImgUrl = topImgPartyBuild
|
|
|
|
// this.topImgUrl = topImgPartyBuild
|
|
|
|
this.isPartyCenter = true
|
|
|
|
// this.isPartyCenter = true
|
|
|
|
} else {
|
|
|
|
// } else {
|
|
|
|
this.topImgUrl = topImg01
|
|
|
|
// this.topImgUrl = topImg01
|
|
|
|
this.isPartyCenter = false
|
|
|
|
// this.isPartyCenter = false
|
|
|
|
}
|
|
|
|
// }
|
|
|
|
},
|
|
|
|
},
|
|
|
|
// 深度观察监听
|
|
|
|
// 深度观察监听
|
|
|
|
deep: true,
|
|
|
|
deep: true,
|
|
|
@ -137,6 +138,7 @@
|
|
|
|
methods: {
|
|
|
|
methods: {
|
|
|
|
getHref(){
|
|
|
|
getHref(){
|
|
|
|
this.href = window.location.hash
|
|
|
|
this.href = window.location.hash
|
|
|
|
|
|
|
|
console.log(this.$route.path)
|
|
|
|
if (this.href === '#/partyCenter/party') {
|
|
|
|
if (this.href === '#/partyCenter/party') {
|
|
|
|
this.topImgUrl = topImgPartyBuild
|
|
|
|
this.topImgUrl = topImgPartyBuild
|
|
|
|
this.isPartyCenter = true
|
|
|
|
this.isPartyCenter = true
|
|
|
@ -196,10 +198,12 @@
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
changeBackImg: function (path) {
|
|
|
|
changeBackImg: function (path) {
|
|
|
|
if (this.href === '#/partyCenter/party') {
|
|
|
|
if (path === '/partyCenter/party') {
|
|
|
|
this.topImgUrl = topImgPartyBuild
|
|
|
|
this.topImgUrl = topImgPartyBuild
|
|
|
|
this.isPartyCenter = true
|
|
|
|
this.isPartyCenter = true;
|
|
|
|
|
|
|
|
this.showWorkBenchButton = false;
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
|
|
|
|
this.isPartyCenter = false;
|
|
|
|
if (path.indexOf("workBench") > 0) {
|
|
|
|
if (path.indexOf("workBench") > 0) {
|
|
|
|
//工作台
|
|
|
|
//工作台
|
|
|
|
if (path === "/workBench/application") {
|
|
|
|
if (path === "/workBench/application") {
|
|
|
|