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.

37 lines
724 B

Component({
options: {
addGlobalClass: true,
},
properties: {
data: {
type: Object,
observer(data) {
if (!data) {
return;
}
this.setData({ images: data });
},
},
},
data: {
images: {},
data: {},
},
methods: {
smallImgClick(e) {
let _data = {};
_data.prompt_id = Number(e.currentTarget.id);
_data.model_id = this.data.data.model_id;
this.triggerEvent('smallImgClick', { data: _data });
},
bigImgClick(e) {
let _data = {};
_data.prompt_id = Number(e.currentTarget.id);
_data.model_id = this.data.data.model_id;
this.triggerEvent('bigImgClick', { data: _data });
},
},
});