Merge branch 'YOUFANGAPP1.1' of 192.168.0.27:dev0/youfang-app into YOUFANGAPP1.1
Conflicts: fangija-zsyf/config.js fangija-zsyf/manifest.json fangija-zsyf/views/news/newsDetail.html
This commit is contained in:
@@ -23,6 +23,9 @@
|
||||
<button class="button button-link button-nav pull-left" onclick="back(),plus.nativeUI.closeWaiting();">
|
||||
<span class="mui-icon mui-icon mui-icon-arrowleft"></span>
|
||||
</button>
|
||||
<button class="button button-link button-nav pull-right open-popover" onclick="shareHref()">
|
||||
<span class="icon icon-path"></span>
|
||||
</button>
|
||||
<h1 class="title"></h1>
|
||||
</header>
|
||||
<div class="content contentText infinite-scroll infinite-scroll-bottom" data-distance="40">
|
||||
@@ -94,18 +97,26 @@ $.config = {router: false}
|
||||
<script type="text/javascript" src="../../js/common.js" ></script>
|
||||
<script type="text/javascript" src="../../js/axios.min.js"></script>
|
||||
|
||||
<script type="text/javascript" src="../../js/shara/sharaMine.js" ></script>
|
||||
<script>
|
||||
document.addEventListener('plusready', onPlusReady, false);
|
||||
var id = "183627425584775168";
|
||||
var shareUrl = BASE_PATH+"/news/newDetail?newsId=";
|
||||
var sharehrefTitle = "停车坐爱枫林晚,霜叶红于二月花";
|
||||
var sharehrefDes = "客观里面请!";
|
||||
var shareId='';
|
||||
|
||||
function onPlusReady() {
|
||||
var self = plus.webview.currentWebview();
|
||||
id = self.newsId;
|
||||
shareId = id
|
||||
shareUrl = shareUrl+id
|
||||
$.ajax({
|
||||
type : 'get',
|
||||
url : BASE_PATH + "/rest/news/detail",
|
||||
data:{newsId:id},
|
||||
dataType:'json',
|
||||
async:true,
|
||||
async:false,
|
||||
success:function(result){
|
||||
if(result.code==200){
|
||||
data = result.data
|
||||
@@ -120,11 +131,14 @@ function onPlusReady() {
|
||||
$("#newsPraise").text(data.thumbsUpCount);
|
||||
//预先加载20条
|
||||
|
||||
sharehrefTitle = data.title
|
||||
sharehrefDes = data.introduction
|
||||
}
|
||||
},
|
||||
error:function(){
|
||||
}
|
||||
})
|
||||
updateSerivces();
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user