咨询分享增加次数

This commit is contained in:
尹吉欢
2018-05-25 10:39:46 +08:00
parent aa3cb1d1a4
commit aaa2a8274b
2 changed files with 12 additions and 1 deletions
+11 -1
View File
@@ -63,7 +63,9 @@ function shareAction(sb,bh) {
function shareMessage(msg,s){
s.send( msg, function(){
plus.nativeUI.alert("分享到\""+s.description+"\"成功! " );
if(shareType == "news"){
addNewsShareCount();
}
}, function(e){
console.log(e.code+"========="+e.message)
plus.nativeUI.alert( "分享到\""+s.description+"\"失败 !");
@@ -71,6 +73,14 @@ function shareMessage(msg,s){
} );
}
function addNewsShareCount() {
axios.get("/rest/news/share",{params:{newsId:shareId}}).then(function(response){
}).catch(function(error){
console.log(error)
});
}
// 分析链接
function shareHref(){
var shareBts=[];
+1
View File
@@ -138,6 +138,7 @@ var id = "202852336950816768";
var shareUrl = BASE_PATH+"/news/newDetail?newsId=";
var sharehrefTitle = "停车坐爱枫林晚,霜叶红于二月花";
var sharehrefDes = "客观里面请!";
var shareType = "news";
var shareId='';
var province;
var city;