Commit 21b973bc by 李伟康

长按海报增加活动回调

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