$scope.phone = function (phonenumber) {
var hideSheet = $ionicActionSheet.show({
buttons: [
{ text: '<b>通话</b>' },
{ text: '<b>短信</b>' }
],
cancelText: '取消',
cancel: function () {
// add cancel code..
},
buttonClicked: function (index) {
switch (index) {
case 0:
try {
window.location.href = "tel:" + phonenumber;
}
catch (E) { } break;
case 1:
try {
window.location.href = "sms:" + phonenumber;
}
catch (E) { } break;
}
this.hideSheet();
}
});
}
这里是引用
https://www.runoob.com/ionic/ionic-actionsheet.html