"use strict"; var app = getApp(); Component({ data: { imageUrl: "../../../../images/uploadImg3.png" }, properties: { activityItemObj: { type: Object, value: {} }, actType: { type: String, value: "tab0" } }, lifetimes: { attached: function () { } }, pageLifetimes: { show: function () { } }, methods: { previewImage: function (e) { app.globalData.previewImage = true; wx.previewImage({ urls: [e.currentTarget.dataset.src] }); }, toDetail: function (e) { this.triggerEvent("toDetail", { detailId: e.currentTarget.dataset.detailid, actCurrentState: e.currentTarget.dataset.state }); } } });