diff --git a/README.md b/README.md
index edaa49b..ff73879 100644
--- a/README.md
+++ b/README.md
@@ -39,9 +39,9 @@
>新增内容:
>
->- 新增新版本线上测试地址: [点击访问](http://1.94.30.26:3600/index)
->- 新增首页轮播组件, (宽度是否满屏待定)
->- 更新部分按钮连接跳转异常问题
+>- 新增PC端播放链接测试页, 可通过右下角工具栏进入: [播放测试](http://1.94.30.26:3600/custom/player)
+>- 修复手机端轮播图滑动切换后无法自动播放的问题
+>- 轮播图海报改用第三方图床进行存储
## 目录结构
diff --git a/client/src/assets/image/banner/banner01.jpg b/client/src/assets/image/banner/banner01.jpg
deleted file mode 100644
index 0f67b3b..0000000
Binary files a/client/src/assets/image/banner/banner01.jpg and /dev/null differ
diff --git a/client/src/assets/image/banner/banner02.jpg b/client/src/assets/image/banner/banner02.jpg
deleted file mode 100644
index 482d8ff..0000000
Binary files a/client/src/assets/image/banner/banner02.jpg and /dev/null differ
diff --git a/client/src/assets/image/banner/banner03.jpg b/client/src/assets/image/banner/banner03.jpg
deleted file mode 100644
index 9f24409..0000000
Binary files a/client/src/assets/image/banner/banner03.jpg and /dev/null differ
diff --git a/client/src/assets/image/banner/banner04.jpeg b/client/src/assets/image/banner/banner04.jpeg
deleted file mode 100644
index 2999a05..0000000
Binary files a/client/src/assets/image/banner/banner04.jpeg and /dev/null differ
diff --git a/client/src/components/index/Util.vue b/client/src/components/index/Util.vue
index dcd9f89..5620cc2 100644
--- a/client/src/components/index/Util.vue
+++ b/client/src/components/index/Util.vue
@@ -1,75 +1,79 @@
-
@@ -77,30 +81,34 @@ const changeStyle = (type:string)=>{
\ No newline at end of file
diff --git a/client/src/router/router.ts b/client/src/router/router.ts
index e108453..9c22d26 100644
--- a/client/src/router/router.ts
+++ b/client/src/router/router.ts
@@ -24,6 +24,7 @@ import FilmClass from "../views/manage/film/FilmClass.vue";
import Film from "../views/manage/film/Film.vue";
import FileUpload from "../views/manage/file/FileUpload.vue";
import FilmAdd from "../views/manage/film/FilmAdd.vue";
+import CustomPlay from "../views/index/CustomPlay.vue";
// 2. 定义一个路由
@@ -39,6 +40,7 @@ const routes = [
{path: 'search', component: SearchFilm},
{path: 'filmClassify', component: FilmClassify},
{path: 'filmClassifySearch', component: FilmClassifySearch},
+ {path: '/custom/player', component: CustomPlay},
]
},
{path: '/login', component: Login},
diff --git a/client/src/style.css b/client/src/style.css
index e021c90..9751096 100644
--- a/client/src/style.css
+++ b/client/src/style.css
@@ -16,17 +16,20 @@
/*公共颜色*/
--bg-light: #ffffff;
+ --text-color-primary: #ffffff;
--content-text-color: #888888;
--paging-parmary-color: #9b49e7d6;
+ --paging-parmary-color-hover: #a574b7;
--border-gray-color: #0000001f;
- --btn-primary-color: #9b49e7;
+ --btn-primary-color: #8636cc;
--btn-pink-color: #d942bf;
--btn-bg-linght: #fff;
--bg-fill-light: #8d00fb1a;
+
}
diff --git a/client/src/views/index/CustomPlay.vue b/client/src/views/index/CustomPlay.vue
new file mode 100644
index 0000000..a343b32
--- /dev/null
+++ b/client/src/views/index/CustomPlay.vue
@@ -0,0 +1,219 @@
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/client/src/views/index/Home.vue b/client/src/views/index/Home.vue
index b599105..053358c 100644
--- a/client/src/views/index/Home.vue
+++ b/client/src/views/index/Home.vue
@@ -1,7 +1,7 @@
-
+
{{ item.name }}
@@ -69,10 +69,7 @@ import {onBeforeMount, reactive, ref} from "vue";
import {ApiGet} from "../../utils/request";
import FilmList from "../../components/index/FilmList.vue";
import {ElMessage} from "element-plus";
-import Banner01 from '../../assets/image/banner/banner01.jpg'
-import Banner02 from '../../assets/image/banner/banner02.jpg'
-import Banner03 from '../../assets/image/banner/banner03.jpg'
-import Banner04 from '../../assets/image/banner/banner04.jpeg'
+
// 轮播数据拟态
@@ -82,32 +79,28 @@ let banners = [
year: 2012,
cName: '动漫',
poster: 'https://img.bfzypic.com/upload/vod/20230424-43/06e79232a4650aea00f7476356a49847.jpg',
- picture: Banner01,
- // picture: 'https://s2.loli.net/2024/02/21/Wt1QDhabdEI7HcL.jpg'
+ picture: 'https://s2.loli.net/2024/02/21/Wt1QDhabdEI7HcL.jpg'
},
{
name: '从零开始的异世界生活',
year: 2016,
cName: '动漫',
poster: 'https://img.bfzypic.com/upload/vod/20230424-29/82e3aec3f43103fa1b7e5a0e7f7c3806.jpg',
- picture: Banner02,
- // picture: 'https://s2.loli.net/2024/02/21/UkpdhIRO12fsy6C.jpg'
+ picture: 'https://s2.loli.net/2024/02/21/UkpdhIRO12fsy6C.jpg'
},
{
name: '五等分的新娘',
year: 2020,
cName: '动漫',
poster: 'https://img.bfzypic.com/upload/vod/20230424-38/dfff403cfd9a5b7d6eed8b4f1b3dedb1.jpg',
- picture: Banner03
- // picture: 'https://s2.loli.net/2024/02/21/wXJr59Zuv4tcKNp.jpg'
+ picture: 'https://s2.loli.net/2024/02/21/wXJr59Zuv4tcKNp.jpg'
},
{
name: '我的青春恋爱物语果然有问题',
year: 2018,
cName: '动漫',
poster: 'https://img.bfzypic.com/upload/vod/20230424-37/e5c9ec121c2cba230243c333447e818a.jpg',
- picture: Banner04,
- // picture: 'https://s2.loli.net/2024/02/21/oMAGzSliK2YbhRu.jpg'
+ picture: 'https://s2.loli.net/2024/02/21/oMAGzSliK2YbhRu.jpg'
},
]
@@ -127,15 +120,16 @@ const touchS = (e:any)=>{
const touchE = (e:any)=>{
data.banner.touch.end = e.changedTouches[0].pageX
let distance = data.banner.touch.end - data.banner.touch.star
- console.log(distance)
if (distance >= 50) {
- let index = data.banner.touch.index - 1
- data.banner.touch.index = index >= 0 ? index : banners.length-1
+ // let index = data.banner.touch.index - 1
+ // data.banner.touch.index = index >= 0 ? index : banners.length-1
+ wrap.value?.prev()
} else if (distance <= -50) {
- let index = data.banner.touch.index + 1
- data.banner.touch.index = index <= banners.length - 1 ? index : 0
+ // let index = data.banner.touch.index + 1
+ // data.banner.touch.index = index <= banners.length - 1 ? index : 0
+ wrap.value?.next()
}
- wrap.value?.setActiveItem(data.banner.touch.index)
+ // wrap.value?.setActiveItem(data.banner.touch.index)
}
const data = reactive({
diff --git a/client/src/views/index/Play.vue b/client/src/views/index/Play.vue
index e15700c..c9c88af 100644
--- a/client/src/views/index/Play.vue
+++ b/client/src/views/index/Play.vue
@@ -213,7 +213,7 @@ const playNext = () => {
}
}
// 主动触发快捷键
-const tiggerKeyMap = (keyCode: number) => {
+const triggerKeyMap = (keyCode: number) => {
let player = document.getElementsByTagName("video")[0]
player.focus()
const event = document.createEvent('HTMLEvents');
@@ -226,7 +226,7 @@ const handleBtn = (e: any) => {
for (let el of btns) {
el.addEventListener('keydown', function (t: any) {
t.preventDefault()
- tiggerKeyMap(t.keyCode)
+ triggerKeyMap(t.keyCode)
})
}
}
diff --git a/client/vite.config.ts b/client/vite.config.ts
index a0f7b1b..354b3df 100644
--- a/client/vite.config.ts
+++ b/client/vite.config.ts
@@ -13,7 +13,6 @@ export default defineConfig({
proxy: {
"/api": {
target: `http://127.0.0.1:3601`,
- // target: `http://1.94.30.26:3601`,
changeOrigin: true, // 允许跨域
rewrite: path => path.replace(/^\/api/, '')
}