转发图片

This commit is contained in:
hubingliang
2018-03-27 16:38:34 +08:00
parent 51dd554193
commit 4e3d2db3e3
2 changed files with 4 additions and 2 deletions
+2 -2
View File
@@ -36,8 +36,8 @@ function shareAction(sb,bh) {
msg.content=sharehrefDes;
}
}
msg.thumbs=["_www/logo.png"];
msg.pictures=["_www/logo.png"];
msg.thumbs=[picUrl];
msg.pictures=[picUrl];
}else{
if(pic&&pic.realUrl){
msg.pictures=[pic.realUrl];
+2
View File
@@ -60,6 +60,7 @@ var shareUrl = BASE_PATH+"/news/newDetail?newsId=";
var sharehrefTitle = "停车坐爱枫林晚,霜叶红于二月花";
var sharehrefDes = "客观里面请!";
var shareId='';
var picUrl = '';
function onPlusReady() {
var self = plus.webview.currentWebview();
@@ -85,6 +86,7 @@ function onPlusReady() {
$("#content").html(data.content)
sharehrefTitle = data.title
sharehrefDes = data.introduction
picUrl = data.coverImg
}
},
error:function(){