index.js 1010 Bytes
Component({
  /**
   * 组件的属性列表
   */
  properties: {
    list: {
      type: Array,
      value: [],
      observer(n) {

      }
    },
    triggered: {
      type: Boolean,
      value: false
    },
    nothing: {
      type: Boolean,
      value: false
    }
  },

  /**
   * 组件的初始数据
   */
  data: {
    scrollTop: 0
  },

  /**
   * 组件的方法列表
   */
  methods: {
    handleDetail(e) {
      let {
        id,
        infoname,
        channelsource
      } = e.currentTarget.dataset;
      if (infoname == '购物兑换' || infoname == '售后返还') {
        return
      }
      wx.p.router.go(
        '/packageIndex/pages/integral/withdrawalDetail/withdrawalDetail', {
          id,
          channelSource: channelsource
        }
      );
    },
    bindrefresherrefresh() {},
    scrollonReachBottom() {
      this.triggerEvent('scrollonReachBottom')
    },
  },
  pageLifetimes: {
    show() {
      this.setData({
        scrollTop: 0
      })
    }
  }
})