From f70339381245a5654dd422d7c4b05edd033eb03c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=B9=E5=90=89=E6=AC=A2?= Date: Mon, 16 Apr 2018 17:50:33 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=BE=AE=E5=8D=9A=E9=94=99?= =?UTF-8?q?=E8=AF=AF=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- fangija-zsyf/js/shara/sharaMine.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/fangija-zsyf/js/shara/sharaMine.js b/fangija-zsyf/js/shara/sharaMine.js index aa85060..c2e80fd 100644 --- a/fangija-zsyf/js/shara/sharaMine.js +++ b/fangija-zsyf/js/shara/sharaMine.js @@ -10,7 +10,7 @@ function updateSerivces(){ shares[t.id]=t; } }, function(e){ - alert("获取分享服务列表失败:"+e.message ); + plus.nativeUI.alert("获取分享服务列表失败:"+e.message ); } ); } /** @@ -20,7 +20,7 @@ function updateSerivces(){ */ function shareAction(sb,bh) { if(!sb||!sb.s){ - alert("无效的分享服务!"); + plus.nativeUI.alert("无效的分享服务!"); return; } var msg={content:sharehrefDes,extra:{scene:sb.x}}; @@ -47,11 +47,11 @@ function shareAction(sb,bh) { if ( sb.s.authenticated ) { shareMessage(msg,sb.s); } else { - alert("---未授权---"); + plus.nativeUI.alert("---未授权---"); sb.s.authorize( function(){ shareMessage(msg,sb.s); },function(e){ - alert("认证授权失败:"+e.code+" - "+e.message ); + plus.nativeUI.alert("认证授权失败:"+e.code+" - "+e.message ); }); } @@ -63,11 +63,11 @@ function shareAction(sb,bh) { */ function shareMessage(msg,s){ s.send( msg, function(){ - alert("分享到\""+s.description+"\"成功! " ); + plus.nativeUI.alert("分享到\""+s.description+"\"成功! " ); }, function(e){ console.log(e.code+"========="+e.message) - alert( "分享到\""+s.description+"\"失败 !"); + plus.nativeUI.alert( "分享到\""+s.description+"\"失败 !"); } ); }