From e6b94fe98b45eac0f0ed7130ac4624570830df37 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=B9=E5=90=89=E6=AC=A2?= Date: Tue, 10 Apr 2018 14:10:23 +0800 Subject: [PATCH] add --- fangija-zsyf/views/house/houseDetail.html | 16 ++++++++------- fangija-zsyf/views/house/new_file.js | 24 +++++++++++------------ 2 files changed, 20 insertions(+), 20 deletions(-) diff --git a/fangija-zsyf/views/house/houseDetail.html b/fangija-zsyf/views/house/houseDetail.html index 40fe97a..9908f9e 100644 --- a/fangija-zsyf/views/house/houseDetail.html +++ b/fangija-zsyf/views/house/houseDetail.html @@ -1882,7 +1882,12 @@ $.config = {router: false} - + + - -var myFocus = new Vue({ - el:"#myFocus" -}) + \ No newline at end of file diff --git a/fangija-zsyf/views/house/new_file.js b/fangija-zsyf/views/house/new_file.js index e322e09..7468f95 100644 --- a/fangija-zsyf/views/house/new_file.js +++ b/fangija-zsyf/views/house/new_file.js @@ -44,12 +44,10 @@ Vue.component('my_focus',{ }, methods:{ loadMyFocus:function(){ - axios.get("/rest/quotations/userCollectCityInfo", { - params: { - } - }).then(function(response){ - myFocusDatas.myFocusList = response.data.data.results + axios.get("/rest/quotations/userCollectCityInfo").then(function(response){ + myFocusDatas.myFocusList = response.data.data }).catch(function(error){ + alert(error); console.log(error) }) } @@ -60,14 +58,14 @@ Vue.component('my_focus',{ }) //我的关注 -var myFocus = new Vue({ - el:"#myFocus", - data:{ - myfocusList:[{num:1,city:"test1",avgPrice:"123",percent:"",ranking:"1"}, - {num:2,city:"test2",avgPrice:"321",percent:"6.6",ranking:"2"} - ] - } -}) +//var myFocus = new Vue({ +// el:"#myFocus", +// data:{ +// myfocusList:[{num:1,city:"test1",avgPrice:"123",percent:"",ranking:"1"}, +// {num:2,city:"test2",avgPrice:"321",percent:"6.6",ranking:"2"} +// ] +// } +//}) //涨幅榜 var tabCityRanking1 = new Vue({