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);
}
}