import UserApi from './../../apis/user'
import { loadViewHistory } from '../../utils/storage'
const app = getApp()

Page({

  /**
   * 页面的初始数据
   */
  data: {
    house_list: [],
    user_id: app.globalData.userinfo.user_id
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {
    this.setData({
      house_list: loadViewHistory()
    })
  },
  fetchReadHistory () {
    UserApi.fetchReadHistory({page_size: 10, page: 1, user_id: this.data.user_id}).then(res => {
      
    })
  }
})