소스 검색

优化

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

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

@@ -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;

Loading…
취소
저장