Explorar o código

核销记录数据处理

kk.shi %!s(int64=3) %!d(string=hai) anos
pai
achega
1aad24c75f

+ 6 - 0
pages/welfareMall/writeOff/writeOff.js

@@ -68,6 +68,12 @@ Page({
    * 页面上拉触底事件的处理函数
    */
   onReachBottom: function () {
+    if (this.data.lock || this.data.noMore) {
+      return
+    }
+    this.data.lock = true
+    this.data.page++
+    this.getHexiaoList();
 
   },
 

+ 3 - 1
pages/welfareMall/writeOff/writeOff.wxml

@@ -46,4 +46,6 @@
       <view class="lower-date">核销时间 {{item.usedTime?'item.usedTime': ''}}</view>
     </view>
   </view>
-</view>
+</view>
+<view class="no_result" wx:if="{{noResult}}">———— 抱歉,您暂无核销记录 ————</view>
+<view class="no_result" wx:if="{{noMore}}">—— 人家也是有底线的 ——</view>

+ 8 - 0
pages/welfareMall/writeOff/writeOff.wxss

@@ -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;
+}