uniapp app端拨打电话

var res = uni.getSystemInfoSync();
if (res.platform == 'ios') {
	uni.makePhoneCall({
		phoneNumber: '187****1234',
	});
} else {
	uni.showActionSheet({
		itemList: ['187****1234', '呼叫'],
		success: function(res) {
		console.log(res);
			if (res.tapIndex == 1) {
				uni.makePhoneCall({
					phoneNumber: '187****1234',
				})
			}
		}
	})
}

你可能感兴趣的:(uniapp,微信小程序,uni-app,微信小程序)