uni模板

<template>
	<view class="content">
		
	</view>
</template>

<script>
	export default {
		components:{
		},
		data () {
			return {}
		},
		onLoad () {},
		onPullDownRefresh() {
			console.log('下拉刷新---');
			setTimeout(function () {
			   uni.stopPullDownRefresh();
			}, 1000);
		},
		onReachBottom() {
			console.log('上拉加载');
		},
		methods:{}
	}
</script>

<style lang="scss" scoped>
	.content {
		overflow: hidden;
		min-height: 100vh;
	}
</style>

  

原文地址:https://www.cnblogs.com/fdxjava/p/15572666.html