1、拨打电话
uni.makePhoneCall({
phoneNumber: '12345678910', //仅为示例,并非真实的电话号码
success: function() {
uni.showToast({
title: '请稍等,拨通中',
duration: 2000
});
},
fail: function() {
uni.showToast({
title: '您已取消拨打',
duration: 2000
});
}
})
2、消息弹窗
uni.showToast({
title: '密码错误',//显示内容
icon:'none', //图标
duration:1000, //弹窗秒数
});
uni.showModal({
title: '账户不能为空',
content: data[0],
showCancel:false,
success: function (res) {
if (res.confirm) {
console.log('用户点击确定');
} else if (res.cancel) {
console.log('用户点击取消');
}
}
});
3、复制黏贴
<view style="display: flex;align-items: center;justify-content: space-between;"