Commit 21b973bc by 李伟康

长按海报增加活动回调

1 parent 1c6c6811
......@@ -27,7 +27,9 @@ Component({
/**
* 组件的初始数据
*/
data: {},
data: {
_item_: null
},
/**
* 组件的方法列表
......@@ -40,6 +42,9 @@ Component({
item.posterUrl && this.getImageInfo(item)
},
check(n) {
this.setData({
_item_: n
})
const fileList = wx.$storage.get('fileList') || [],
fn = wx.getFileSystemManager(),
{
......@@ -201,8 +206,11 @@ Component({
showAuth: true
})
},
longpress(){
this.triggerEvent('longtouch')
longpress() {
let {
_item_
} = this.data
this.triggerEvent('longtouch', _item_)
}
}
})
\ No newline at end of file
......@@ -189,8 +189,8 @@ Component({
}
},
/**长按海报 */
longtouch(){
console.log('长按海报')
longtouch(e){
console.log('长按海报',e)
}
}
})
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!