| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190 | <template>	<view>		<view class="top">			<image class="top-img" mode="scaleToFill" src="@/static/icon/index/phb_bg.jpg"></image>			<view class="top-wrapper">				<text class="top-title">排行榜</text>				<text class="top-content">最后更新于 {{listData.update_time}}</text>			</view>		</view>		<view class="flex space" style="display:flex; flex-wrap:wrap; padding: 30upx 30upx 0px 30upx;">			<block v-for="(value,key) in listData.data" :key="key">				<view class="box pb10 mb15" style="width:31%; border-radius:20rpx;" @click="detail(value)">					<image class="integral-mall-goods" mode="aspectFill" :src="value.cover_image"></image>					<view class="mt8 plr10 ft14 ftw400 text-center text-over cl-main">{{value.name}}</view>				</view>			</block>		</view>		<!-- <uni-load-more :status="status" :content-text="contentText" /> -->		<view style="width: 100%; height: 30upx;"></view>		<!-- <com-footer model="tuan"></com-footer> -->	</view></template><script>	import uniLoadMore from '@/components/uni-load-more/uni-load-more.vue';	import {		getMiniprogramRank	} from '@/common/apis/index.js'	import cellGroup from '../../../uni_modules/uview-ui/libs/config/props/cellGroup';	export default {		components: {			uniLoadMore		},		data() {			return {				banners: [],				searchValue: '',				total: 0,				selectIndex: 0,				scrollTop: 0,				keytext: '',				listData: [],				last_id: 0,				reload: true,				status: 'more',				contentText: {					contentdown: '上拉加载更多',					contentrefresh: '加载中',					contentnomore: '没有数据了'				}			}		},		onLoad(e) {			if (e.selectIndex) {				this.selectIndex = e.selectIndex * 1			}			this.status = 'more';			this.getList();			this.banners = uni.getStorageSync("config").banner		},		onPageScroll(e) {			this.scrollTop = e.scrollTop;		},		onReachBottom() {			this.status = 'more';			this.getList();		},		methods: {			detail(value) {				uni.navigateTo({					url: '/pages/video/index?video_id=' + value.video_id				})			},			getList() {				getMiniprogramRank().then(res => {					console.log(res, 'getMiniprogramRecentvideogetMiniprogramRecentvideogetMiniprogramRecentvideo')					this.listData = res				})			},			getdata() {				this.last_id = 0				this.reload = true				this.getList()			},			search(res) {				this.listData = [];				this.last_id = 0;				this.keytext = res.value;				this.type = '';				this.getList(0)			},			cancel(res) {				this.keytext = '';				this.type = '';				this.getList(0)			}		}	}</script><style lang="scss" scoped>	.top {		position: relative;		.top-img {			width: 100%;			height: 250rpx;		}		.top-wrapper {			display: flex;			flex-direction: column;			position: absolute;			color: #FDF6EC;			margin-left: 25rpx;			bottom: 20px;			.top-title {				font-size: 36px;				font-weight: bolder;				margin-bottom: 35rpx;				font-family: Georgia, 'Times New Roman', Times, serif;			}			.top-content {				font-size: 16px;				font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;			}		}	}	.integral-mall-goods {		width: 100%;		height: 280rpx;		object-fit: contain;		background: #F2F2F2;		border-radius: 16upx;	}	.user-not-vip {		width: 100%;		height: 80rpx;		background: #FDF6EC;		border-radius: 40rpx;		border: 2rpx solid #EFC381;		text-align: center;		line-height: 76rpx;		font-size: 24rpx;		color: #000000;		font-weight: bold;	}	.tuan-product-l {		width: 320rpx;		height: 240rpx;		border-radius: 16rpx;		background: #F2F2F2;	}	.tuan-product-r {		width: calc(100% - 320rpx);	}	.search-result {		padding-top: 10px;		padding-bottom: 20px;		text-align: center;	}	.search-result-text {		text-align: center;		font-size: 14px;		color: #666;	}	.example-body {		/* #ifndef APP-NVUE */		display: block;		/* #endif */		padding: 0px;	}	.uni-mt-10 {		margin-top: 10px;	}</style>
 |