2023-04-17 16:14:18 +08:00

35 lines
570 B
JavaScript

// pages/UK/hotCard/hotCard.js
Component({
/**
* 组件的属性列表
*/
properties: {
appid:String,
item:Object
},
/**
* 组件的初始数据
*/
data: {
lazyLoad:true
},
/**
* 组件的方法列表
*/
methods: {
loadImg(e){
const query = this.createSelectorQuery();
let that = this;
query.select('#id' + that.properties.item.id).boundingClientRect();
query.exec((res) => {
that.triggerEvent('loadHeight', {
height: res[0].height + 186
}, {})
})
}
}
})