workDetail.js 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. var app = getApp()
  2. var that;
  3. Page({
  4. data: {
  5. date: app.globalData.month,
  6. activeIndex: 1,
  7. },
  8. onLoad(e) {
  9. that = this;
  10. dd.setNavigationBar({ title: "事件详情" });
  11. // that.getDetail(e.event_id);
  12. },
  13. bindPickerChange(e) {
  14. dd.confirm({
  15. title: '删除任务',
  16. content: '删除此任务将会删除其相关记录和积分数据,确认删除吗?',
  17. confirmButtonText: '确定',
  18. cancelButtonText: '取消',
  19. success: (result) => {
  20. if (result.confirm) {
  21. }
  22. },
  23. });
  24. },
  25. //显示图片
  26. showImg(e) {
  27. var index = e.target.dataset.index;
  28. var item = e.target.dataset.item
  29. dd.previewImage({
  30. current: index,
  31. urls: item
  32. });
  33. },
  34. activeItem(e) {
  35. var index = e.target.dataset.index;
  36. this.setData({ activeIndex: index })
  37. },
  38. openSearch() {
  39. app.globalData.showToast("暂不支持筛选");
  40. },
  41. getDetail(id) {
  42. app.$get("api/integral/statistics/integral/info", { event_id: 533 }).then((res) => {
  43. this.setData({ dataDetail: res.data.data })
  44. })
  45. },
  46. openSchedule(){
  47. dd.navigateTo({
  48. url: '../schedule/schedule'
  49. })
  50. },
  51. });