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

This commit is contained in:
尹吉欢
2018-04-14 10:47:01 +08:00
+8 -13
View File
@@ -170,15 +170,10 @@ function onPlusReady() {
id = self.newsId; id = self.newsId;
shareId = id shareId = id
shareUrl = shareUrl+id shareUrl = shareUrl+id
$.ajax({
type : 'get', axios.get("/rest/news/detail",{params:{newsId:id}}).then(function(response){
url : BASE_PATH + "/rest/news/detail", if(response.data.code==200){
data:{newsId:id}, data = response.data.data
dataType:'json',
async:false,
success:function(result){
if(result.code==200){
data = result.data
$("#title").text(data.title) $("#title").text(data.title)
$("#title2").text(data.title) $("#title2").text(data.title)
$("#source").text(data.source==null?"":"来源:"+data.source) $("#source").text(data.source==null?"":"来源:"+data.source)
@@ -200,10 +195,10 @@ function onPlusReady() {
//是否收藏 //是否收藏
isCollect(); isCollect();
} }
},
error:function(){ }).catch(function(error){
} console.log(error)
}) });
getPosition(); getPosition();
updateSerivces(); updateSerivces();
} }