|
@@ -174,6 +174,7 @@
|
|
//拼接当前定位回显地址
|
|
//拼接当前定位回显地址
|
|
// #ifdef APP-PLUS
|
|
// #ifdef APP-PLUS
|
|
that.position.name = res.address.poiName
|
|
that.position.name = res.address.poiName
|
|
|
|
+ that.position.cityname = res.address.city
|
|
that.position.location = res.longitude + "," + res.latitude
|
|
that.position.location = res.longitude + "," + res.latitude
|
|
uni.setStorage({
|
|
uni.setStorage({
|
|
key: 'setLocaltion',
|
|
key: 'setLocaltion',
|
|
@@ -222,7 +223,8 @@
|
|
pageSize: this.pageSize,
|
|
pageSize: this.pageSize,
|
|
currentPage: this.currentPage,
|
|
currentPage: this.currentPage,
|
|
pcFlag: 2,
|
|
pcFlag: 2,
|
|
- searchType: 2
|
|
|
|
|
|
+ searchType: 2,
|
|
|
|
+ location:that.position.cityname
|
|
}).then(res => {
|
|
}).then(res => {
|
|
if (res.data.code == 200) {
|
|
if (res.data.code == 200) {
|
|
var data = res.data.data.records
|
|
var data = res.data.data.records
|
|
@@ -259,6 +261,7 @@
|
|
})
|
|
})
|
|
},
|
|
},
|
|
getInfo(){
|
|
getInfo(){
|
|
|
|
+ var that = this
|
|
uni.showLoading({
|
|
uni.showLoading({
|
|
title:"正在加载"
|
|
title:"正在加载"
|
|
})
|
|
})
|
|
@@ -267,7 +270,8 @@
|
|
pageSize: this.pageSize,
|
|
pageSize: this.pageSize,
|
|
currentPage: 1,
|
|
currentPage: 1,
|
|
pcFlag: 2,
|
|
pcFlag: 2,
|
|
- searchType: 2
|
|
|
|
|
|
+ searchType: 2,
|
|
|
|
+ location:that.position.cityname
|
|
}).then(res => {
|
|
}).then(res => {
|
|
if (res.data.code == 200) {
|
|
if (res.data.code == 200) {
|
|
this.datalist = res.data.data.records
|
|
this.datalist = res.data.data.records
|