This commit is contained in:
蔡同学
2025-08-25 11:20:35 +08:00
parent 25df08ec69
commit 6df8112e7b
251 changed files with 34346 additions and 0 deletions
+134
View File
@@ -0,0 +1,134 @@
<template>
<view>
<!-- <view style="margin:10upx 30upx 0 30upx;box-shadow: 0px 4px 20px 0px rgba(0,0,0,0.04);">
<home-banner :banners="banners"></home-banner>
</view> -->
<view class="" style="padding: 30upx 30upx 0px 30upx;">
<block v-for="(value,key) in listData" :key="key">
<view @click="detail(value.vid,value.mid)" style="position: relative;" class="flex alcenter mb16">
<image mode="aspectFill" class="tuan-product-l" :src="value.img"></image>
<!-- <view class="btn-mini" style="position: absolute; top: 40upx; left: 280upx; border-radius: 10upx;font-size: 18upx;width: 60upx; height: 36upx;" :style="getBtnStyle">{{value.lxname}}</view> -->
<view class="tuan-product-r pl15">
<view class="ft16 ftw600 cl-main text-over2">{{value.vname}}</view>
<view class="mt16">
<text class="ft14 cl-orange" style="color: #09D89E;">{{value.dqname}}</text>
</view>
<view class="mt16 flex space alcenter">
<view class="ft14 cl-notice">{{value.mname}}</view>
<view class="btn-vip-adviser ml15">继续观看</view>
</view>
</view>
</view>
</block>
</view>
<uni-load-more :status="status" />
<view style="width: 100%; height: 30rpx;"></view>
</view>
</template>
<script>
export default {
data(){
return {
banners:[],
searchValue:'',
pages:{
currentPage:1,
pageSize:20,
isNextPage:true
},
tabs:[
{name:'全部'},
{name:'视频'},
{name:'音频'},
{name:'小说'},
{name:'壁纸'},
],
selectIndex:0,
scrollTop:0,
type:'',
listData: [],
status: 'more',
}
},
onLoad(e){
//console.log(111)
if(e.selectIndex){
this.selectIndex=e.selectIndex*1
}
this.status = 'more';
this.getList();
this.banners=uni.getStorageSync("config").banner
},
onReachBottom() {
this.status = 'more';
this.getList();
},
methods:{
detail(vid,mid){
uni.navigateTo({
url:'/pagesA/player/detailPlayer?vid='+vid+'&mid='+mid
})
},
getList() {
let that = this;
if (that.pages.isNextPage) {
that.status = 'loading';
that.$httpRequest({
url: "/api/video/recordlist",
methods: "GET",
data: {
limit: that.pages.pageSize,
page: that.pages.currentPage
}
}).then(res => {
that.status = '';
if (that.pages.currentPage == 1) {
that.listData = res.rows;
} else if (res.rows.length > 0) {
that.listData = that.listData.concat(res.rows);
} else {
that.status = 'noMore';
that.pages.isNextPage = false;
}
that.pages.currentPage += 1;
}).catch(err => {
that.status = '';
console.log(err)
})
}
},
}
}
</script>
<style scoped>
.tuan-product-l{
width: 150rpx;
height: 200rpx;
border-radius: 16rpx;
background: #F2F2F2;
}
.tuan-product-r{
width: calc(100% - 150rpx);
}
.btn-vip-adviser{
width: 150rpx;
height: 60rpx;
border-radius: 20rpx;
display: flex;
justify-content: center;
align-items: center;
font-size: 28rpx;
/* font-weight: 600; */
border-radius: 12rpx;
border: 2rpx solid #09D89E;
color: #09D89E;
}
</style>