|
@@ -208,7 +208,7 @@ export default {
|
|
if (res.data.code === 0) {
|
|
if (res.data.code === 0) {
|
|
let value = []
|
|
let value = []
|
|
// 市
|
|
// 市
|
|
- that.locationList[0] = res.data.data
|
|
|
|
|
|
+ that.locationList[0] = res.data
|
|
value[0] = that.locationList[0].findIndex(i => e.province.includes(i.name))
|
|
value[0] = that.locationList[0].findIndex(i => e.province.includes(i.name))
|
|
that.form.province = that.locationList[0][value[0]].id
|
|
that.form.province = that.locationList[0][value[0]].id
|
|
that.province = that.locationList[0][value[0]].name
|
|
that.province = that.locationList[0][value[0]].name
|
|
@@ -324,12 +324,12 @@ export default {
|
|
this.map.clearMap()
|
|
this.map.clearMap()
|
|
list(this.form).then(res => {
|
|
list(this.form).then(res => {
|
|
if (res.data.code === 0) {
|
|
if (res.data.code === 0) {
|
|
- if (res.data.data.records.length > 0) {
|
|
|
|
- res.data.data.records.map(i => {
|
|
|
|
|
|
+ if (res.data.records.length > 0) {
|
|
|
|
+ res.data.records.map(i => {
|
|
this.list.push(i)
|
|
this.list.push(i)
|
|
this.getMarker(i.longitude, i.latitude)
|
|
this.getMarker(i.longitude, i.latitude)
|
|
})
|
|
})
|
|
- this.hasMore = res.data.data.hasMore
|
|
|
|
|
|
+ this.hasMore = res.data.hasMore
|
|
this.map.setCenter([this.list[0].longitude, this.list[0].latitude])
|
|
this.map.setCenter([this.list[0].longitude, this.list[0].latitude])
|
|
} else {
|
|
} else {
|
|
this.getStoreList()
|
|
this.getStoreList()
|
|
@@ -350,7 +350,7 @@ export default {
|
|
getStoreList() {
|
|
getStoreList() {
|
|
storeList().then(res => {
|
|
storeList().then(res => {
|
|
if (res.data.code === 0) {
|
|
if (res.data.code === 0) {
|
|
- this.storeList = res.data.data
|
|
|
|
|
|
+ this.storeList = res.data
|
|
}
|
|
}
|
|
})
|
|
})
|
|
},
|
|
},
|