新增serviceActions方法
This commit is contained in:
parent
aed9276443
commit
7b02977dc1
|
@ -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,
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue