1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- var app = getApp()
- var that;
- Page({
- data: {
- date: app.globalData.month,
- activeIndex: 1,
- },
- onLoad(e) {
- that = this;
- dd.setNavigationBar({ title: "事件详情" });
- // that.getDetail(e.event_id);
- },
- 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'
- })
- },
- });
|