repetitive_tasks_detail.js 1.4 KB

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