@ -1,34 +0,0 @@
// refresh.js
Page({
/**
* 页面的初始数据
*/
data: {
refresherState: false
},
onRefresh(e) {
console.log('onRefresh>>>')
this.setData({
refresherState: true
})
setTimeout(() => {
}, 3000)
onLoad() {
onPulling(e) {
console.log(e)
}
@ -1,5 +0,0 @@
{
"usingComponents": {
"refresh-view": "/components/refresher/index"
@ -1,8 +0,0 @@
<view style="height:150rpx;width:100%">
</view>
<refresh-view bind:refresh="onRefresh" triggered="{{ refresherState }}" bind:scrolltolower="onRefresh">
<view class="test-block">师德师风</view>
</refresh-view>
@ -1,10 +0,0 @@
.test-block {
width: 100vw;
height: 500px;
background: pink;
/*
.yoo {
height: 400px;
} */