init
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
Page({
|
||||
onShareAppMessage() {
|
||||
return {
|
||||
title: '用户截屏事件',
|
||||
path: 'packageAPI/pages/capture-screen/capture-screen',
|
||||
};
|
||||
},
|
||||
|
||||
data: {
|
||||
captured: false,
|
||||
},
|
||||
onLoad() {
|
||||
xhs.onUserCaptureScreen(() => {
|
||||
this.setData({
|
||||
captured: true,
|
||||
});
|
||||
});
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user