admin
2020-12-22 28a4cfadc0a78d1bfec093e0694f420aaf3a725c
pages/lucky-record/lucky-record.js
@@ -1,5 +1,5 @@
var help = require('../../util/help.js');
var api = require('../../util/api.js');
var help = require('/util/help.js');
var api = require('/util/api.js');
var $this;
Page({
  data: {
@@ -33,11 +33,12 @@
    $this.setData({
      page: page,
      isRequesting: true,
      showEmptyDefault:false
      showEmptyDefault: false
    });
    api.getLuckyRecord({
      page: page,
      type: $this.data.type,
      showErrorToast: true,
      showLoading: first,
      success: function (res) {
        console.log(res)
@@ -61,10 +62,6 @@
              showEmptyDefault: true
            })
          }
        } else {
          my.showToast({
            content: res.msg
          });
        }
      },
      fail: function () {
@@ -142,8 +139,8 @@
    }
    this.setData({
      type: newType,
      list:[],
      total:0
      list: [],
      total: 0
    });
    this.requestActivity(1, true);
  }