This commit is contained in:
2025-09-14 00:21:54 +08:00
commit d40b3bbd62
766 changed files with 36275 additions and 0 deletions

View File

@@ -0,0 +1,36 @@
Page({
onShareAppMessage() {
return {
title: '振动',
path: 'packageAPI/pages/vibrate/vibrate',
};
},
vibrateShort() {
xhs.vibrateShort({
success(res) {
console.log(res);
},
fail(err) {
console.error(err);
},
complete() {
console.log('completed');
},
});
},
vibrateLong() {
xhs.vibrateLong({
success(res) {
console.log(res);
},
fail(err) {
console.error(err);
},
complete() {
console.log('completed');
},
});
},
});

View File

@@ -0,0 +1,3 @@
{
"navigationBarTitleText": "振动"
}

View File

@@ -0,0 +1,10 @@
<view class="container">
<view class="page-body">
<view class="page-section">
<view class="btn-area">
<button type="primary" bindtap="vibrateLong">长振动</button>
<button type="default" bindtap="vibrateShort">短振动</button>
</view>
</view>
</view>
</view>