Page({ data: { items: [] }, onShow() { this.loadRecords(); }, loadRecords() { const history = wx.getStorageSync('box_history') || []; this.setData({ items: history.reverse() }); } });