You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
844 B
36 lines
844 B
"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 });
|
|
}
|
|
}
|
|
});
|
|
|