Commit e7a8de73 authored by lixy's avatar lixy

公众号

parent 432d95cf
...@@ -98,7 +98,7 @@ ...@@ -98,7 +98,7 @@
} else { } else {
allPage(this.listQuery) allPage(this.listQuery)
.then(response => { .then(response => {
let listTemp = response.data.data; let listTemp = response.data;
let arr = []; let arr = [];
listTemp.map(function(item){ listTemp.map(function(item){
arr.push(item); arr.push(item);
...@@ -202,7 +202,7 @@ ...@@ -202,7 +202,7 @@
type: 'get', type: 'get',
url: 'https://api.map.baidu.com/geocoder/v2/?ak=wWYw0yCb8ntXmSgTxTx40vKR&callback=renderReverse&location=' + r.point.lat + ',' + r.point.lng + '&output=json&pois=1', url: 'https://api.map.baidu.com/geocoder/v2/?ak=wWYw0yCb8ntXmSgTxTx40vKR&callback=renderReverse&location=' + r.point.lat + ',' + r.point.lng + '&output=json&pois=1',
async: false, async: false,
jsonp: "callback", jsonp: "callback",
dataType: 'jsonp', dataType: 'jsonp',
success: function (data) { success: function (data) {
var addrCity = data.result.addressComponent.adcode var addrCity = data.result.addressComponent.adcode
......
...@@ -328,7 +328,7 @@ ...@@ -328,7 +328,7 @@
} }
}, },
created() { created() {
}, },
computed: { computed: {
...mapGetters([ ...mapGetters([
...@@ -381,7 +381,7 @@ ...@@ -381,7 +381,7 @@
//鼠标释放时候的函数 //鼠标释放时候的函数
end(){ end(){
this.flags = false; this.flags = false;
}, },
close(){ close(){
this.otherProvince = false this.otherProvince = false
this.quanguo() this.quanguo()
...@@ -490,7 +490,7 @@ ...@@ -490,7 +490,7 @@
.then(res => { .then(res => {
this.loading = false; this.loading = false;
let allList = []; let allList = [];
let listTemp = res.data.data; let listTemp = res.data;
//一次读入所有涉及地区,防止多次读取 //一次读入所有涉及地区,防止多次读取
// if (!this.$utils.isEmpty(listTemp)) { // if (!this.$utils.isEmpty(listTemp)) {
// let allRegions = new Set(); // let allRegions = new Set();
...@@ -503,11 +503,11 @@ ...@@ -503,11 +503,11 @@
// } // }
// getRegionByCodes([...allRegions]); // getRegionByCodes([...allRegions]);
// } // }
if(res.data.data){ if(res.data){
res.data.data.forEach(function (item) { res.data.forEach(function (item) {
allList.push(item); allList.push(item);
}); });
if(res.data.data.length< this.listQuery.limit && this.list.length>0){ if(res.data.length< this.listQuery.limit && this.list.length>0){
//已加载全部 //已加载全部
this.nomore = true; this.nomore = true;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment