新增serviceActions方法

This commit is contained in:
TOP糯米 2023-02-25 18:54:51 +08:00
parent aed9276443
commit 7b02977dc1
1 changed files with 13 additions and 0 deletions

View File

@ -168,6 +168,18 @@ function toast(title, options) {
});
}
function serviceActions() {
uni.showActionSheet({
itemList: ['电话客服', '微信客服', '微信客服二'],
success(res) {
console.log('选中了第' + (res.tapIndex + 1) + '个按钮');
},
fail(res) {
console.log(res.errMsg);
}
});
}
export default {
time,
datetime,
@ -180,4 +192,5 @@ export default {
rpx2px,
toPage,
toast,
serviceActions,
}