|
@@ -8,13 +8,10 @@
|
|
|
<cube-button slot="append" :primary="true" @click="search">搜索</cube-button>
|
|
|
</cube-input>
|
|
|
</div>
|
|
|
- <div class="position-wrapper">
|
|
|
- <div class="position" v-for="item in result" @click="callback(item)">
|
|
|
- <a>{{item.name}}</a>
|
|
|
- <p>
|
|
|
- {{item.city}}
|
|
|
- {{item.district}}
|
|
|
- </p>
|
|
|
+ <div class="position-wrapper border-top-1px">
|
|
|
+ <div class="position border-bottom-1px" v-for="item in result" @click="callback(item)">
|
|
|
+ <p>{{item.city}} {{item.district}}</p>
|
|
|
+ <div>{{item.name}}</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -54,12 +51,12 @@
|
|
|
region: this.userLocation,
|
|
|
query: this.location
|
|
|
})
|
|
|
- .then(res => {
|
|
|
- setTimeout(() => {
|
|
|
- toast.hide();
|
|
|
- }, 300);
|
|
|
- this.result = res.result;
|
|
|
- });
|
|
|
+ .then(res => {
|
|
|
+ setTimeout(() => {
|
|
|
+ toast.hide();
|
|
|
+ }, 300);
|
|
|
+ this.result = res.result;
|
|
|
+ });
|
|
|
},
|
|
|
callback(info) {
|
|
|
const addressPosition = {
|
|
@@ -95,5 +92,8 @@
|
|
|
margin: 0 5px
|
|
|
.position-wrapper
|
|
|
.position
|
|
|
+ padding 5px 0
|
|
|
margin: 10px
|
|
|
+ div
|
|
|
+ padding-top 5px
|
|
|
</style>
|