123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 |
- var app = getApp()
- var that;
- Page({
- data: {
- date: app.globalData.month,
- activeIndex: 1,
- array: ['删除任务'],
- },
- onLoad(e) {
- that = this;
- dd.setNavigationBar({ title: "任务详情" });
- // that.getDetail(e.event_id);
- },
- //显示图片
- showImg(e) {
- var index = e.target.dataset.index;
- var item = e.target.dataset.item
- dd.previewImage({
- current: index,
- urls: item
- });
- },
- bindPickerChange(e) {
- dd.confirm({
- title: '删除任务',
- content: '删除此任务将会删除其相关记录和积分数据,确认删除吗?',
- confirmButtonText: '确定',
- cancelButtonText: '取消',
- success: (result) => {
- if (result.confirm) {
- }
- },
- });
- },
- //显示图片
- showImg(e) {
- var index = e.target.dataset.index;
- var item = e.target.dataset.item
- dd.previewImage({
- current: index,
- urls: item
- });
- },
- activeItem(e) {
- var index = e.target.dataset.index;
- this.setData({ activeIndex: index })
- },
- openSearch() {
- app.globalData.showToast("暂不支持筛选");
- },
- getDetail(id) {
- app.$get("api/integral/statistics/integral/info", { event_id: 533 }).then((res) => {
- this.setData({ dataDetail: res.data.data })
- })
- },
- openSchedule() {
- dd.navigateTo({
- url: '../schedule/schedule'
- })
- },
- });
|