From 1c5c3c677373c7c3d462bdaaee55a91ae8efc74a Mon Sep 17 00:00:00 2001
From: NCJOAQ <2627723488@qq.com>
Date: Sat, 8 Nov 2025 20:37:38 +0800
Subject: [PATCH] =?UTF-8?q?=E5=9F=BA=E6=9C=AC=E8=B7=AF=E7=94=B1=E7=BB=93?=
=?UTF-8?q?=E6=9E=84=E5=AE=8C=E6=88=90=EF=BC=8C=E5=86=85=E5=AE=B9=E5=BE=85?=
=?UTF-8?q?=E8=A1=A5=E5=85=85......?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/pages/{movie => }/index.vue | 0
src/pages/movie/cinema/cinema.vue | 13 ++++++++++
src/pages/movie/components/MyNav.vue | 24 ++++++++++++++++---
src/pages/movie/hot/MyMovies.vue | 6 ++---
src/pages/movie/hot/components/MyMain.vue | 12 +++++++---
.../movie/hot/components/MyMostPopular.vue | 6 ++---
.../movie/hot/components/MyMovieList.vue | 9 +++----
src/pages/movie/wait/wait.vue | 13 ++++++++++
src/pages/search/index.vue | 15 ++++++++++++
src/router/index.js | 23 ++++++++++++++----
10 files changed, 98 insertions(+), 23 deletions(-)
rename src/pages/{movie => }/index.vue (100%)
create mode 100644 src/pages/movie/cinema/cinema.vue
create mode 100644 src/pages/movie/wait/wait.vue
create mode 100644 src/pages/search/index.vue
diff --git a/src/pages/movie/index.vue b/src/pages/index.vue
similarity index 100%
rename from src/pages/movie/index.vue
rename to src/pages/index.vue
diff --git a/src/pages/movie/cinema/cinema.vue b/src/pages/movie/cinema/cinema.vue
new file mode 100644
index 0000000..c5ca5fd
--- /dev/null
+++ b/src/pages/movie/cinema/cinema.vue
@@ -0,0 +1,13 @@
+
+
+ 电影页面
+
+
+
+
\ No newline at end of file
diff --git a/src/pages/movie/components/MyNav.vue b/src/pages/movie/components/MyNav.vue
index c80bfe5..db284d1 100644
--- a/src/pages/movie/components/MyNav.vue
+++ b/src/pages/movie/components/MyNav.vue
@@ -4,8 +4,8 @@
杭州
- - {{ item
- }}
+
-
+ {{ item }}
@@ -23,6 +23,21 @@ export default {
}, methods: {
setIndex(i) {
this.activeIndex = i;
+ console.log(this.activeIndex)
+ switch (this.activeIndex) {
+ case 0:
+ this.$router.push("/movie/movies/hot")
+ break
+ case 1:
+ this.$router.push("/movie/movies/cinema")
+ break
+ case 2:
+ this.$router.push("/movie/movies/wait")
+ break
+
+
+ }
+ console.log("case")
}
}
}
@@ -66,12 +81,15 @@ export default {
>ul {
position: relative;
- >li {
+ li {
+
width: 44px;
padding: 0 5px;
margin: 0 5px;
+
}
+
>.redline {
@lineheight: 3px;
width: 20px;
diff --git a/src/pages/movie/hot/MyMovies.vue b/src/pages/movie/hot/MyMovies.vue
index 928b53d..9201af1 100644
--- a/src/pages/movie/hot/MyMovies.vue
+++ b/src/pages/movie/hot/MyMovies.vue
@@ -1,8 +1,6 @@
-
-
-
-
+
+
+
\ No newline at end of file
diff --git a/src/pages/search/index.vue b/src/pages/search/index.vue
new file mode 100644
index 0000000..a5f352d
--- /dev/null
+++ b/src/pages/search/index.vue
@@ -0,0 +1,15 @@
+
+ 搜索
+
+ 搜索页
+
+
+
+
\ No newline at end of file
diff --git a/src/router/index.js b/src/router/index.js
index 41b73de..9cb7058 100644
--- a/src/router/index.js
+++ b/src/router/index.js
@@ -1,13 +1,17 @@
-import { createRouter, createWebHistory } from "vue-router";
-import Movie from "@/pages/movie/index.vue";
+import { createRouter, createWebHashHistory } from "vue-router";
+import Main from "@/pages/index.vue";
import City from "@/pages/city/index.vue";
import Video from "@/pages/video/index.vue";
import Show from "@/pages/show/index.vue";
import User from "@/pages/user/index.vue";
import Movies from "@/pages/movie/hot/MyMovies.vue";
+import Search from "@/pages/search/index.vue";
import MyMain from "@/pages/movie/hot/components/MyMain.vue";
+import Cinema from "@/pages/movie/cinema/cinema.vue";
+import Wait from "@/pages/movie/wait/wait.vue";
+import { compile } from "ejs";
const routers = {
- history: createWebHistory(),
+ history: createWebHashHistory(),
routes: [
{
path: "/",
@@ -16,11 +20,11 @@ const routers = {
{
path: "/movie",
- component: Movie,
+ component: Main,
children: [
{
path: "/movie",
- redirect: "/movie/hot",
+ redirect: "/movie/movies",
},
{
path: "/movie/movies",
@@ -36,6 +40,11 @@ const routers = {
},
{
path: "/movie/movies/cinema",
+ component: Cinema,
+ },
+ {
+ path: "/movie/movies/wait",
+ component: Wait,
},
],
},
@@ -57,6 +66,10 @@ const routers = {
path: "/city",
component: City,
},
+ {
+ path: "/search",
+ component: Search,
+ },
],
};