applyDetail.js 591 B

123456789101112131415161718192021222324252627
  1. var app = getApp()
  2. var that;
  3. Page({
  4. data: {
  5. date: app.globalData.month,
  6. activeIndex:2,
  7. },
  8. onLoad(e) {
  9. that = this;
  10. dd.setNavigationBar({ title: "事件详情" });
  11. that.getDetail(e.event_id);
  12. console.log(e);
  13. },
  14. activeItem(e){
  15. var index=e.target.dataset.index;
  16. this.setData({activeIndex:index})
  17. },
  18. openSearch(){
  19. app.globalData.showToast("暂不支持筛选");
  20. },
  21. getDetail(id) {
  22. app.$get("api/integral/statistics/integral/info", { event_id:533 }).then((res) => {
  23. this.setData({dataDetail: res.data.data })
  24. })
  25. },
  26. });