Merge branch 'YOUFANGAPP1.1.3' of 192.168.0.27:dev0/youfang-app into xh-YOUFANGAPP1.1.3

This commit is contained in:
xuhe@fangjia.com
2018-05-25 16:40:36 +08:00
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;