Explorar el Código

优化

master
ljc hace 5 años
padre
commit
890031c2b4
Se han modificado 1 ficheros con 1 adiciones y 14 borrados
  1. +1
    -14
      laomenkuang_project/pages/shop/shop.js

+ 1
- 14
laomenkuang_project/pages/shop/shop.js Ver fichero

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

Cargando…
Cancelar
Guardar