Merge branch 'YOUFANGAPP1.1' of 192.168.0.27:dev0/youfang-app into YOUFANGAPP1.1
This commit is contained in:
@@ -170,15 +170,10 @@ function onPlusReady() {
|
||||
id = self.newsId;
|
||||
shareId = id
|
||||
shareUrl = shareUrl+id
|
||||
$.ajax({
|
||||
type : 'get',
|
||||
url : BASE_PATH + "/rest/news/detail",
|
||||
data:{newsId:id},
|
||||
dataType:'json',
|
||||
async:false,
|
||||
success:function(result){
|
||||
if(result.code==200){
|
||||
data = result.data
|
||||
|
||||
axios.get("/rest/news/detail",{params:{newsId:id}}).then(function(response){
|
||||
if(response.data.code==200){
|
||||
data = response.data.data
|
||||
$("#title").text(data.title)
|
||||
$("#title2").text(data.title)
|
||||
$("#source").text(data.source==null?"":"来源:"+data.source)
|
||||
@@ -200,10 +195,10 @@ function onPlusReady() {
|
||||
//是否收藏
|
||||
isCollect();
|
||||
}
|
||||
},
|
||||
error:function(){
|
||||
}
|
||||
})
|
||||
|
||||
}).catch(function(error){
|
||||
console.log(error)
|
||||
});
|
||||
getPosition();
|
||||
updateSerivces();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user