|
@@ -73,11 +73,18 @@ export default {
|
|
|
|
|
|
getqueryShopList(){
|
|
|
uni.showLoading({ });
|
|
|
- this.$http('worldKeepCar/worldHome/getWorldShopInfoList', {
|
|
|
- lat:this.location.lat,
|
|
|
- lng:this.location.lng,
|
|
|
- cityCode:this.location.cityCode,
|
|
|
- },'GET').then(res => {
|
|
|
+ var params={}
|
|
|
+ if(this.location.lat){
|
|
|
+ params={
|
|
|
+ lat:this.location.lat,
|
|
|
+ lng:this.location.lng,
|
|
|
+ cityCode:this.location.cityCode,
|
|
|
+ }
|
|
|
+
|
|
|
+ }else{
|
|
|
+
|
|
|
+ }
|
|
|
+ this.$http('worldKeepCar/worldHome/getWorldShopInfoList', params,'GET').then(res => {
|
|
|
uni.hideLoading();
|
|
|
this.queryShopList=res.data
|
|
|
})
|