|
|
@@ -108,6 +108,7 @@ Page({ |
|
|
|
}, |
|
|
|
|
|
|
|
searchShop: function (search){//搜索 |
|
|
|
console.log(this.data.provinceArr) |
|
|
|
if (search) { |
|
|
|
var province = ""; |
|
|
|
var city = ""; |
|
|
@@ -231,13 +232,6 @@ Page({ |
|
|
|
this.data.pageNum = 1; |
|
|
|
this.data.dataArr = []; |
|
|
|
this.searchShop(true); |
|
|
|
if (this.data.provinceCityArr[0][0] == "") { |
|
|
|
this.data.provinceCityArr[0][0] = "全部" |
|
|
|
} |
|
|
|
|
|
|
|
if (this.data.provinceCityArr[1][0] == "") { |
|
|
|
this.data.provinceCityArr[1][0] = "全部"; |
|
|
|
} |
|
|
|
}, |
|
|
|
deleteVal:function(){//清空搜索框 |
|
|
|
this.setData({ |
|
|
@@ -247,13 +241,6 @@ Page({ |
|
|
|
this.data.pageNum = 1; |
|
|
|
this.data.dataArr = []; |
|
|
|
this.searchShop(true); |
|
|
|
if (this.data.provinceCityArr[0][0] == "") { |
|
|
|
this.data.provinceCityArr[0][0] = "全部" |
|
|
|
} |
|
|
|
|
|
|
|
if (this.data.provinceCityArr[1][0] == "") { |
|
|
|
this.data.provinceCityArr[1][0] = "全部"; |
|
|
|
} |
|
|
|
}, |
|
|
|
openAddress:function(e){//打开地图 |
|
|
|
var index = e.target.dataset.index; |