<script>
var source =document.getElementById('entry-template').innerHTML;
var template = Handlebars.compile(source);
var selfWV,tel='0',uid;
mui.plusReady(function() {
mui('#scroll').scroll();
selfWV = plus.webview.currentWebview();
window.addEventListener('newsId',function(event){
var id =event.detail.id;
selfWV.show(animationShow);
if(id){
loaddatelist.tutorone(id, function(rs) {
if(rs.status===1){
if(rs.list.fuwutime){
document.getElementById("mui-scroll").innerHTML=template(rs.list)+rs.list.fuwutime;
}else{
document.getElementById("mui-scroll").innerHTML=template(rs.list);
}
//console.log(JSON.stringify(rs.list.fuwutime));
if(rs.list.is_joint)
tel=rs.list.tel;
document.getElementById("htitle").innerHTML=rs.list.nick;
}else{
document.getElementById("mui-scroll").innerHTML=rs.content;
//mui.toast(rs.content);
}
//console.log(JSON.stringify(rs.list));
});
}else{
mui.toast("参数错误"+id);
}
});
mui('.mui-bar-tab').on('tap', 'a', function(e) {
uid=user.uid();
if(!uid){
mui.toast("您还未登陆,不能咨询");
return;
}
if(tel!=0){
plus.device.dial( tel, false);
}else{
mui.toast("老师没发布电话哦");
return;
}
});
});
</script>
帮我看看如下代码的拨打电话是否有错,返回后就是空白。
电话三星电信p709
0 个回复