update
This commit is contained in:
@@ -8,7 +8,7 @@ Vue.component('near-dist-component', {
|
||||
<div class="cardNearbyWin">
|
||||
|
||||
<div class="card cardNearby" v-for="(dist,index) in nearDists" @click="showDistrict(index)">
|
||||
<div class="card-header">{{dist.name}}</div>
|
||||
<div class="card-header">{{dist.sname}}</div>
|
||||
<div class="card-content">
|
||||
<div class="card-content-inner">{{dist.avgPrice}}元/㎡</div>
|
||||
</div>
|
||||
@@ -46,7 +46,7 @@ Vue.component('near-dist-component', {
|
||||
if(length > 5){
|
||||
textStr = textName.substr(0,5)+ "...";
|
||||
}
|
||||
o.name=textStr;
|
||||
o.sname=textStr;
|
||||
if(ret.length <= 5){
|
||||
ret.push(o);
|
||||
}
|
||||
|
||||
@@ -535,6 +535,7 @@ $(document).ready(function () {
|
||||
|
||||
$("a[href='#tabQuotation1'],a[href='#tabQuotation0']").click(function(){
|
||||
$("#tabCityDiv a").removeClass("active");
|
||||
$("#contentTabDiv > .tab").removeClass("active");
|
||||
})
|
||||
|
||||
function clickCity(val){
|
||||
@@ -593,9 +594,12 @@ function markFocus(){
|
||||
|
||||
function addFocus(city){
|
||||
axios.get("/rest/quotations/collectCity",{params:{city:city}}).then(function(response){
|
||||
}).catch(function(error){
|
||||
|
||||
createData(city, myDatasVue.$data.cityDatas.length);
|
||||
|
||||
}).catch(function(error){
|
||||
console.log(error)
|
||||
})
|
||||
})
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user