diff --git a/src/core/utils.js b/src/core/utils.js index 389925e..b7dba6f 100644 --- a/src/core/utils.js +++ b/src/core/utils.js @@ -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, }