|
@@ -3,10 +3,10 @@
|
|
|
<view class="main">
|
|
|
<view class="one">
|
|
|
<view class="one_1">
|
|
|
- <input type="text" placeholder="搜索视频" @tap="toCommon('')">
|
|
|
+ <input type="text" placeholder="搜索视频" @tap="toCommon('pagesVideo/search/index','')">
|
|
|
</view>
|
|
|
<view class="one_2">
|
|
|
- <button size="mini">筛选</button>
|
|
|
+ <button size="mini" @tap="toCommon('pagesVideo/search/index','')">筛选</button>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="two">
|
|
@@ -14,7 +14,8 @@
|
|
|
<view class="list-scroll-view">
|
|
|
<view class="two_0 two_1">
|
|
|
<swiper class="swiper" :autoplay="true" :interval="3000" :duration="1000">
|
|
|
- <swiper-item class="list" v-for="(item,index) in bannerList" :key="index" @tap="toWeb(item)">
|
|
|
+ <swiper-item class="list" v-for="(item,index) in bannerList" :key="index"
|
|
|
+ @tap="toWeb(item)">
|
|
|
<image class="image"
|
|
|
:src="item.img_url&&item.img_url.length>0?item.img_url[0].url:''" mode="">
|
|
|
</image>
|
|
@@ -22,7 +23,8 @@
|
|
|
</swiper>
|
|
|
</view>
|
|
|
<view class="two_0 two_2">
|
|
|
- <view class="list textOver" v-for="(item,index) in linkList" :key="index" @tap="toWeb(item)">
|
|
|
+ <view class="list textOver" v-for="(item,index) in linkList" :key="index"
|
|
|
+ @tap="toWeb(item)">
|
|
|
<image class="image" :src="item.img_url&&item.img_url.length>0?item.img_url[0].url:''"
|
|
|
mode="">
|
|
|
</image>
|
|
@@ -34,20 +36,23 @@
|
|
|
<view class="two_0 two_4">
|
|
|
<view class="top">
|
|
|
<view class="top_1 textOver">
|
|
|
- <span>最新</span>
|
|
|
+ <span>{{one_title}}</span>
|
|
|
</view>
|
|
|
<view class="top_2">
|
|
|
- <span>更多<uni-icons color="var(--rgbfff)" size="12" type="forward"></uni-icons>
|
|
|
+ <span
|
|
|
+ @tap="toCommon('pagesVideo/more/index','head_actor=63f7175721efa85eb49b8ccd')">
|
|
|
+ 更多
|
|
|
+ <uni-icons color="var(--rgbfff)" size="12" type="forward"></uni-icons>
|
|
|
</span>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="info">
|
|
|
- <view class="list" v-for="(item,index) in videoList" :key="index">
|
|
|
+ <view class="list" v-for="(item,index) in oneList" :key="index">
|
|
|
<image class="image"
|
|
|
:src="item.img_url&&item.img_url.length>0?item.img_url[0].url:''" mode="">
|
|
|
</image>
|
|
|
<view class="name textOver">
|
|
|
- {{item.name}}
|
|
|
+ {{item.title}}
|
|
|
</view>
|
|
|
<view class="other">
|
|
|
<view class="other_1">
|
|
@@ -61,26 +66,30 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="btn">
|
|
|
- <button>查看更多</button>
|
|
|
+ <button
|
|
|
+ @tap="toCommon('pagesVideo/more/index','head_actor=63f7175721efa85eb49b8ccd')">查看更多</button>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="two_0 two_5">
|
|
|
<view class="top">
|
|
|
<view class="top_1 textOver">
|
|
|
- <span>Hot</span>
|
|
|
+ <span>{{two_title}}</span>
|
|
|
</view>
|
|
|
<view class="top_2">
|
|
|
- <span>更多<uni-icons color="var(--rgbfff)" size="12" type="forward"></uni-icons>
|
|
|
+ <span
|
|
|
+ @tap="toCommon('pagesVideo/more/index','head_actor=63f7177221efa85eb49b8cdd')">
|
|
|
+ 更多
|
|
|
+ <uni-icons color="var(--rgbfff)" size="12" type="forward"></uni-icons>
|
|
|
</span>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="info">
|
|
|
- <view class="list" v-for="(item,index) in videoList" :key="index">
|
|
|
+ <view class="list" v-for="(item,index) in twoList" :key="index">
|
|
|
<image class="image"
|
|
|
:src="item.img_url&&item.img_url.length>0?item.img_url[0].url:''" mode="">
|
|
|
</image>
|
|
|
<view class="name textOver">
|
|
|
- {{item.name}}
|
|
|
+ {{item.title}}
|
|
|
</view>
|
|
|
<view class="other">
|
|
|
<view class="other_1">
|
|
@@ -94,26 +103,27 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="btn">
|
|
|
- <button>查看更多</button>
|
|
|
+ <button
|
|
|
+ @tap="toCommon('pagesVideo/more/index','head_actor=63f7177221efa85eb49b8cdd')">查看更多</button>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="two_0 two_5">
|
|
|
<view class="top">
|
|
|
<view class="top_1 textOver">
|
|
|
- <span>恐怖</span>
|
|
|
+ <span>{{thr_title}}</span>
|
|
|
</view>
|
|
|
<view class="top_2">
|
|
|
- <span>更多<uni-icons color="var(--rgbfff)" size="12" type="forward"></uni-icons>
|
|
|
+ <span @tap="toCommon('pagesVideo/more/index','head_actor=63f7177f21efa85eb49b8ced')">更多<uni-icons color="var(--rgbfff)" size="12" type="forward"></uni-icons>
|
|
|
</span>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="info">
|
|
|
- <view class="list" v-for="(item,index) in videoList" :key="index">
|
|
|
+ <view class="list" v-for="(item,index) in thrList" :key="index">
|
|
|
<image class="image"
|
|
|
:src="item.img_url&&item.img_url.length>0?item.img_url[0].url:''" mode="">
|
|
|
</image>
|
|
|
<view class="name textOver">
|
|
|
- {{item.name}}
|
|
|
+ {{item.title}}
|
|
|
</view>
|
|
|
<view class="other">
|
|
|
<view class="other_1">
|
|
@@ -127,26 +137,26 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="btn">
|
|
|
- <button>查看更多</button>
|
|
|
+ <button @tap="toCommon('pagesVideo/more/index','head_actor=63f7177f21efa85eb49b8ced')">查看更多</button>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="two_0 two_6">
|
|
|
<view class="top">
|
|
|
<view class="top_1 textOver">
|
|
|
- <span>动作</span>
|
|
|
+ <span>{{four_title}}</span>
|
|
|
</view>
|
|
|
<view class="top_2">
|
|
|
- <span>更多<uni-icons color="var(--rgbfff)" size="12" type="forward"></uni-icons>
|
|
|
+ <span @tap="toCommon('pagesVideo/more/index','head_actor=63f729ff3271105df0a88859')">更多<uni-icons color="var(--rgbfff)" size="12" type="forward"></uni-icons>
|
|
|
</span>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="info">
|
|
|
- <view class="list" v-for="(item,index) in videoList" :key="index">
|
|
|
+ <view class="list" v-for="(item,index) in fourList" :key="index">
|
|
|
<image class="image"
|
|
|
:src="item.img_url&&item.img_url.length>0?item.img_url[0].url:''" mode="">
|
|
|
</image>
|
|
|
<view class="name textOver">
|
|
|
- {{item.name}}
|
|
|
+ {{item.title}}
|
|
|
</view>
|
|
|
<view class="other">
|
|
|
<view class="other_1">
|
|
@@ -160,40 +170,7 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="btn">
|
|
|
- <button>查看更多</button>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- <view class="two_0 two_6">
|
|
|
- <view class="top">
|
|
|
- <view class="top_1 textOver">
|
|
|
- <span>科幻</span>
|
|
|
- </view>
|
|
|
- <view class="top_2">
|
|
|
- <span>更多<uni-icons color="var(--rgbfff)" size="12" type="forward"></uni-icons>
|
|
|
- </span>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- <view class="info">
|
|
|
- <view class="list" v-for="(item,index) in videoList" :key="index">
|
|
|
- <image class="image"
|
|
|
- :src="item.img_url&&item.img_url.length>0?item.img_url[0].url:''" mode="">
|
|
|
- </image>
|
|
|
- <view class="name textOver">
|
|
|
- {{item.name}}
|
|
|
- </view>
|
|
|
- <view class="other">
|
|
|
- <view class="other_1">
|
|
|
- <uni-icons type="eye" color="var(--rgbfff)" size="12"></uni-icons>
|
|
|
- {{item.view_num}}
|
|
|
- </view>
|
|
|
- <view class="other_2">
|
|
|
- {{item.time_num}}
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- <view class="btn">
|
|
|
- <button>查看更多</button>
|
|
|
+ <button @tap="toCommon('pagesVideo/more/index','head_actor=63f729ff3271105df0a88859')">查看更多</button>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
@@ -213,23 +190,14 @@
|
|
|
return {
|
|
|
bannerList: [],
|
|
|
linkList: [],
|
|
|
- videoList: [ // 视频
|
|
|
- {
|
|
|
- name: '哈哈哈哈',
|
|
|
- img_url: [ //
|
|
|
- {
|
|
|
- id: "20230216100918",
|
|
|
- name: "头像.jpg",
|
|
|
- status: "success",
|
|
|
- uid: 1676513358695,
|
|
|
- uri: "/files/projectadmin/imgurl/20230216100918.jpg",
|
|
|
- url: "http://47.93.34.200/files/projectadmin/imgurl/20230216100918.jpg"
|
|
|
- }
|
|
|
- ],
|
|
|
- view_num: 0,
|
|
|
- time_num: '00:00:00'
|
|
|
- }
|
|
|
- ]
|
|
|
+ one_title: '',
|
|
|
+ oneList: [],
|
|
|
+ two_title: '',
|
|
|
+ twoList: [],
|
|
|
+ thr_title: '',
|
|
|
+ thrList: [],
|
|
|
+ four_title: '',
|
|
|
+ fourList: [],
|
|
|
};
|
|
|
},
|
|
|
onLoad() {
|
|
@@ -257,6 +225,54 @@
|
|
|
if (res.errcode == '0') {
|
|
|
that.$set(that, `linkList`, res.data)
|
|
|
}
|
|
|
+ // 顾红伟
|
|
|
+ res = await that.$api('scenedata/63f7175721efa85eb49b8ccd', 'GET', {});
|
|
|
+ if (res.errcode == '0') {
|
|
|
+ that.$set(that, `one_title`, res.data.title);
|
|
|
+ res = await that.$api('videos', 'GET', {
|
|
|
+ skip: 0,
|
|
|
+ limit: 6,
|
|
|
+ is_use: '0',
|
|
|
+ head_actor: res.data._id
|
|
|
+ })
|
|
|
+ if (res.errcode == '0') that.$set(that, `oneList`, res.data)
|
|
|
+ }
|
|
|
+ // 成龙
|
|
|
+ res = await that.$api('scenedata/63f7177221efa85eb49b8cdd', 'GET', {});
|
|
|
+ if (res.errcode == '0') {
|
|
|
+ that.$set(that, `two_title`, res.data.title);
|
|
|
+ res = await that.$api('videos', 'GET', {
|
|
|
+ skip: 0,
|
|
|
+ limit: 4,
|
|
|
+ is_use: '0',
|
|
|
+ head_actor: res.data._id
|
|
|
+ })
|
|
|
+ if (res.errcode == '0') that.$set(that, `twoList`, res.data)
|
|
|
+ }
|
|
|
+ // 李连杰
|
|
|
+ res = await that.$api('scenedata/63f7177f21efa85eb49b8ced', 'GET', {});
|
|
|
+ if (res.errcode == '0') {
|
|
|
+ that.$set(that, `thr_title`, res.data.title);
|
|
|
+ res = await that.$api('videos', 'GET', {
|
|
|
+ skip: 0,
|
|
|
+ limit: 6,
|
|
|
+ is_use: '0',
|
|
|
+ head_actor: res.data._id
|
|
|
+ })
|
|
|
+ if (res.errcode == '0') that.$set(that, `thrList`, res.data)
|
|
|
+ }
|
|
|
+ // 李小龙
|
|
|
+ res = await that.$api('scenedata/63f729ff3271105df0a88859', 'GET', {});
|
|
|
+ if (res.errcode == '0') {
|
|
|
+ that.$set(that, `four_title`, res.data.title);
|
|
|
+ res = await that.$api('videos', 'GET', {
|
|
|
+ skip: 0,
|
|
|
+ limit: 4,
|
|
|
+ is_use: '0',
|
|
|
+ head_actor: res.data._id
|
|
|
+ })
|
|
|
+ if (res.errcode == '0') that.$set(that, `fourList`, res.data)
|
|
|
+ }
|
|
|
},
|
|
|
toWeb(e) {
|
|
|
const that = this;
|
|
@@ -270,6 +286,11 @@
|
|
|
})
|
|
|
}
|
|
|
},
|
|
|
+ toCommon(route, query) {
|
|
|
+ uni.navigateTo({
|
|
|
+ url: `/${route}?${query}`
|
|
|
+ })
|
|
|
+ },
|
|
|
// 跳转页面
|
|
|
toPath(e) {
|
|
|
let url = `/${e.route}`;
|