init
This commit is contained in:
17
xhs-mini-demos/component-case/share-button/share-button.js
Normal file
17
xhs-mini-demos/component-case/share-button/share-button.js
Normal file
@@ -0,0 +1,17 @@
|
||||
Page({
|
||||
onShareAppMessage() {
|
||||
return {
|
||||
title: '转发按钮',
|
||||
path: 'packageAPI/pages/share-button/share-button',
|
||||
};
|
||||
},
|
||||
handleTapShareButton() {
|
||||
if (!((typeof xhs.canIUse === 'function') && xhs.canIUse('button.open-type.share'))) {
|
||||
xhs.showModal({
|
||||
title: '当前版本不支持转发按钮',
|
||||
content: '请升级至最新版本微信客户端',
|
||||
showCancel: false,
|
||||
});
|
||||
}
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user