weibo share
This commit is contained in:
@@ -29,11 +29,11 @@ function shareAction(sb,bh) {
|
|||||||
if(sharehrefTitle&&sharehrefTitle!=""){
|
if(sharehrefTitle&&sharehrefTitle!=""){
|
||||||
msg.title=sharehrefTitle;
|
msg.title=sharehrefTitle;
|
||||||
}
|
}
|
||||||
if(sharehrefDes&&sharehrefDes!=""){
|
if(sharehrefTitle&&sharehrefTitle!=""){
|
||||||
if(sb.title=="新浪微博"){
|
if(sb.title=="新浪微博"){
|
||||||
msg.content=shareUrl+sharehrefDes;
|
msg.content=shareUrl+"\t"+sharehrefTitle;
|
||||||
}else{
|
}else{
|
||||||
msg.content=sharehrefDes;
|
msg.content=sharehrefTitle;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
msg.thumbs=[picUrl];
|
msg.thumbs=[picUrl];
|
||||||
@@ -47,7 +47,6 @@ function shareAction(sb,bh) {
|
|||||||
if ( sb.s.authenticated ) {
|
if ( sb.s.authenticated ) {
|
||||||
shareMessage(msg,sb.s);
|
shareMessage(msg,sb.s);
|
||||||
} else {
|
} else {
|
||||||
plus.nativeUI.alert("---未授权---");
|
|
||||||
sb.s.authorize( function(){
|
sb.s.authorize( function(){
|
||||||
shareMessage(msg,sb.s);
|
shareMessage(msg,sb.s);
|
||||||
},function(e){
|
},function(e){
|
||||||
|
|||||||
Reference in New Issue
Block a user