Commit 5ba40ee2 authored by wuwangwolihui's avatar wuwangwolihui

营地2.0

parent 4bcea01c
f094629e7f9cda64e959846aaa9dc501
\ No newline at end of file
...@@ -2,10 +2,10 @@ ...@@ -2,10 +2,10 @@
<div class="Header" :class="type==1?'all-header':''"> <div class="Header" :class="type==1?'all-header':''">
<div class="H_content com-container"> <div class="H_content com-container">
<div class="image"> <div class="image">
<img v-if="type==1" :src="all_logo" alt=""/> <img v-if="type==1" :src="all_logo" alt="" @click="toHome"/>
<img v-if="type==2" :src="system_logo" alt=""/> <img v-if="type==2" :src="system_logo" alt="" @click="toRecruit"/>
<img v-if="type==3" :src="system_logo" alt="" @click="toRecruit"/> <img v-if="type==3" :src="system_logo" alt="" @click="toRecruit"/>
<img v-if="type==4" :src="all_logo" alt=""/> <img v-if="type==4" :src="all_logo" alt="" @click="toHome"/>
<!--<img v-if="type==4" :src="system_logo?system_logo:all_logo" alt=""/>--> <!--<img v-if="type==4" :src="system_logo?system_logo:all_logo" alt=""/>-->
</div> </div>
<div class="right"> <div class="right">
...@@ -228,6 +228,15 @@ ...@@ -228,6 +228,15 @@
} }
}); });
}, },
// 点击图片跳转到首页
toHome() {
this.$router.push({
path: "/",
query: {
...this.$store.state.query,
}
});
},
}, },
watch: { watch: {
typeFu(val) { typeFu(val) {
......
...@@ -2,7 +2,7 @@ export default [ ...@@ -2,7 +2,7 @@ export default [
{ {
path: '/active', path: '/active',
name: 'base-active', name: 'base-active',
component: () => import(/* webpackChunkName: "login" */ 'v/base/active/Active.vue'), component: () => import(/* webpackChunkName: "base-active" */ 'v/base/active/Active.vue'),
meta: { meta: {
title: '活动中心' title: '活动中心'
} }
...@@ -10,7 +10,7 @@ export default [ ...@@ -10,7 +10,7 @@ export default [
{ {
path: '/active/:id', path: '/active/:id',
name: 'base-active-info', name: 'base-active-info',
component: () => import(/* webpackChunkName: "login" */ 'v/base/active/ActiveInfo.vue'), component: () => import(/* webpackChunkName: "base-active-info" */ 'v/base/active/ActiveInfo.vue'),
meta: { meta: {
title: '活动详情' title: '活动详情'
} }
......
...@@ -2,7 +2,7 @@ export default [ ...@@ -2,7 +2,7 @@ export default [
{ {
path: '/', path: '/',
name: 'base-home', name: 'base-home',
component: () => import(/* webpackChunkName: "login" */ 'v/base/home/Home.vue'), component: () => import(/* webpackChunkName: "base-home" */ 'v/base/home/Home.vue'),
meta: { meta: {
title: '营地中心(CAMP CENTER)' title: '营地中心(CAMP CENTER)'
} }
......
export default [{ export default [{
path: '/baseLogin', path: '/baseLogin',
name: 'base-login', name: 'base-login',
component: () => import(/* webpackChunkName: "login" */ 'v/base/login/Login.vue'), component: () => import(/* webpackChunkName: "base-login" */ 'v/base/login/Login.vue'),
meta: { meta: {
title: '登录' title: '登录'
} }
...@@ -9,7 +9,7 @@ export default [{ ...@@ -9,7 +9,7 @@ export default [{
{ {
path: '/baseRegister', path: '/baseRegister',
name: 'base-register', name: 'base-register',
component: () => import(/* webpackChunkName: "reset" */ 'v/base/login/Register.vue'), component: () => import(/* webpackChunkName: "base-register" */ 'v/base/login/Register.vue'),
meta: { meta: {
title: '新用户注册' title: '新用户注册'
} }
......
export default [{ export default [{
path: '/login', path: '/login',
name: 'index-login', name: 'index-login',
component: () => import(/* webpackChunkName: "login" */ 'v/index/login/Login.vue'), component: () => import(/* webpackChunkName: "index-login" */ 'v/index/login/Login.vue'),
meta: { meta: {
title: '登录' title: '登录'
} }
...@@ -9,7 +9,7 @@ export default [{ ...@@ -9,7 +9,7 @@ export default [{
{ {
path: '/register', path: '/register',
name: 'index-register', name: 'index-register',
component: () => import(/* webpackChunkName: "reset" */ 'v/index/login/Register.vue'), component: () => import(/* webpackChunkName: "index-register" */ 'v/index/login/Register.vue'),
meta: { meta: {
title: '新用户注册' title: '新用户注册'
} }
...@@ -17,7 +17,7 @@ export default [{ ...@@ -17,7 +17,7 @@ export default [{
{ {
path: '/reset', path: '/reset',
name: 'index-reset', name: 'index-reset',
component: () => import(/* webpackChunkName: "reset" */ 'v/index/login/Reset.vue'), component: () => import(/* webpackChunkName: "index-reset" */ 'v/index/login/Reset.vue'),
meta: { meta: {
title: '重置密码' title: '重置密码'
} }
......
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