diff --git a/src/App.vue b/src/App.vue index 47afd76..0297ae3 100644 --- a/src/App.vue +++ b/src/App.vue @@ -17,11 +17,11 @@ export default { // watch $route 决定使用哪种过渡 watch: { '$route'(to, from) { - let noAnimation = ['/', '/home', '/me', '/attention', '/message'] + let noAnimation = ['/', '/home', '/me', '/attention', '/message', '/publish'] if (noAnimation.indexOf(from.path) !== -1 && noAnimation.indexOf(to.path) !== -1) { return this.transitionName = '' } - const routeDeep = ['/message', '/attention', '/home', '/me', + const routeDeep = ['/message', '/attention', '/home', '/me', '/publish', '/edit-userinfo', '/edit-userinfo-item', '/video-detail', diff --git a/src/components/Footer.vue b/src/components/Footer.vue index 4a5c1de..aa01a20 100644 --- a/src/components/Footer.vue +++ b/src/components/Footer.vue @@ -39,6 +39,7 @@ export default { this.$router.push('/attention') break case 3: + this.$nav('/publish') break case 4: this.$router.push('/message') diff --git a/src/components/Search.vue b/src/components/Search.vue index 050a776..8eac7e1 100644 --- a/src/components/Search.vue +++ b/src/components/Search.vue @@ -14,7 +14,10 @@ export default { type: String, default: '搜索' }, - modelValue: String, + modelValue: { + type: String, + default: '' + }, }, methods: { clear() { diff --git a/src/pages/home/Publish.vue b/src/pages/home/Publish.vue new file mode 100644 index 0000000..81efc2c --- /dev/null +++ b/src/pages/home/Publish.vue @@ -0,0 +1,173 @@ + + + + diff --git a/src/pages/home/Test.vue b/src/pages/home/Test.vue new file mode 100644 index 0000000..10aacea --- /dev/null +++ b/src/pages/home/Test.vue @@ -0,0 +1,32 @@ + + + + diff --git a/src/router/index.js b/src/router/index.js index a2b8022..4d598a0 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -17,6 +17,8 @@ import ChooseSchool from "../pages/me/userinfo/ChooseSchool"; import DeclareSchool from "../pages/me/userinfo/DeclareSchool"; import ChooseDepartment from "../pages/me/userinfo/ChooseDepartment"; import DisplayType from "../pages/me/userinfo/DisplayType"; +import Publish from "../pages/home/Publish"; +import Test from "../pages/home/Test"; const routes = [ // {path: '', component: Music}, @@ -24,6 +26,8 @@ const routes = [ {path: '/', component: Index2}, {path: '/home', component: Index}, {path: '/attention', component: Attention}, + {path: '/publish', component: Publish}, + {path: '/test', component: Test}, {path: '/message', component: Message}, {path: '/me', component: Me}, {path: '/edit-userinfo', component: EditUserInfo},