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.
21 lines
454 B
21 lines
454 B
"use strict";
|
|
Component({
|
|
properties: {
|
|
list: {
|
|
type: Array,
|
|
value: []
|
|
}
|
|
},
|
|
data: {
|
|
ifclick: true
|
|
},
|
|
methods: {
|
|
preViewImage: function (e) {
|
|
this.triggerEvent("clickImage", this.data.ifclick);
|
|
wx.previewImage({
|
|
urls: [e.currentTarget.dataset.src],
|
|
current: e.currentTarget.dataset.src
|
|
});
|
|
}
|
|
},
|
|
});
|
|
|