소스 검색

优化

master
ljc 5 년 전
부모
커밋
890031c2b4
1개의 변경된 파일1개의 추가작업 그리고 14개의 파일을 삭제
  1. +1
    -14
      laomenkuang_project/pages/shop/shop.js

+ 1
- 14
laomenkuang_project/pages/shop/shop.js 파일 보기

}, },


searchShop: function (search){//搜索 searchShop: function (search){//搜索
console.log(this.data.provinceArr)
if (search) { if (search) {
var province = ""; var province = "";
var city = ""; var city = "";
this.data.pageNum = 1; this.data.pageNum = 1;
this.data.dataArr = []; this.data.dataArr = [];
this.searchShop(true); 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(){//清空搜索框 deleteVal:function(){//清空搜索框
this.setData({ this.setData({
this.data.pageNum = 1; this.data.pageNum = 1;
this.data.dataArr = []; this.data.dataArr = [];
this.searchShop(true); 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){//打开地图 openAddress:function(e){//打开地图
var index = e.target.dataset.index; var index = e.target.dataset.index;

Loading…
취소
저장