This commit is contained in:
尹吉欢
2018-04-10 14:10:23 +08:00
parent 141956e0ee
commit e6b94fe98b
2 changed files with 20 additions and 20 deletions
+11 -13
View File
@@ -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({