// pages/purchased-content/index.js
Page({
  /**
   * 页面的初始数据
   */
  data: {
    tabs: ['全部奖励','已领取', '已失效'],
    testImg: '../../../imgs/testImg/thumbSmallImg2.jpg',
    avatar: '../../../imgs/testImg/1.jpg',
    activeIndex: 0,

    loading: false,
    loadMore: false
  },

  to_search: function () {
    wx.navigateTo({
      url: '../reward_detail/index',
      success: function (res) { },
      fail: function (res) { },
      complete: function (res) { },
    })
  },
  tabClick: function (e) {
    this.setData({
      loading: true,
      activeIndex: e.currentTarget.id
    });

  },
 
});
