咨询分享增加次数
This commit is contained in:
@@ -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=[];
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user