分享
This commit is contained in:
@@ -57,8 +57,8 @@ $.config = {router: false}
|
||||
<script>
|
||||
document.addEventListener('plusready', onPlusReady, false);
|
||||
var shareUrl = BASE_PATH+"/news/newDetail?newsId=";
|
||||
var sharehrefTitle = "我是一个超级无敌大帅哥";
|
||||
var sharehrefDes = "不信你自己来看看啊!";
|
||||
var sharehrefTitle = "停车坐爱枫林晚,霜叶红于二月花";
|
||||
var sharehrefDes = "客观里面请!";
|
||||
var shareId='';
|
||||
|
||||
function onPlusReady() {
|
||||
@@ -71,7 +71,7 @@ function onPlusReady() {
|
||||
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
|
||||
@@ -83,6 +83,8 @@ function onPlusReady() {
|
||||
var dateStr = date.getFullYear() + '-' + (date.getMonth() + 1) + '-' + date.getDate()
|
||||
$("#create_time").text(dateStr)
|
||||
$("#content").html(data.content)
|
||||
sharehrefTitle = data.title
|
||||
sharehrefDes = data.introduction
|
||||
}
|
||||
},
|
||||
error:function(){
|
||||
|
||||
Reference in New Issue
Block a user