@@ -68,6 +68,12 @@ Page({
* 页面上拉触底事件的处理函数
*/
onReachBottom: function () {
+ if (this.data.lock || this.data.noMore) {
+ return
+ }
+ this.data.lock = true
+ this.data.page++
+ this.getHexiaoList();
},
@@ -46,4 +46,6 @@
<view class="lower-date">核销时间 {{item.usedTime?'item.usedTime': ''}}</view>
</view>
-</view>
+</view>
+<view class="no_result" wx:if="{{noResult}}">———— 抱歉,您暂无核销记录 ————</view>
+<view class="no_result" wx:if="{{noMore}}">—— 人家也是有底线的 ——</view>
@@ -208,3 +208,11 @@ page{
.search-date{
justify-content: space-between;
}
+
+.no_result {
+ font-size: 24rpx;
+ color: #B1B1B1;
+ line-height: 100rpx;
+ font-weight: 1000;
+ text-align: center;
+}