H5,uniapp 打开手机发送短信页面
作者:互联网
methods: {
// 3,发短信
plusReady(){
console.log("err")
},
//短信
sendCode(phone){
var msg = plus.messaging.createMessage(plus.messaging.TYPE_SMS);
msg.to = [phone];
msg.body = '要发送的消息';
plus.messaging.sendMessage(msg);
},
},
onLoad() {
if(window.plus){
plusReady();
}else{
document.addEventListener('plusready', plusReady, false);
}
}
标签:uniapp,plusReady,短信,H5,phone,plus,msg,messaging,页面 来源: https://www.cnblogs.com/shoolnight/p/15131842.html