Selaa lähdekoodia

二手列表tab收回

Administrator 4 vuotta sitten
vanhempi
commit
1e0433b138
1 muutettua tiedostoa jossa 5 lisäystä ja 1 poistoa
  1. 5 1
      src/main/resources/static/js/flea-market/list.js

+ 5 - 1
src/main/resources/static/js/flea-market/list.js

@@ -72,17 +72,21 @@ var fleaMarketList = new Vue({
          handle: function (item) {//一級分类
                var _this = this;
                _this.currentId = item.value;
-               _this.currentID2 = 0;
+               // _this.currentID2 = 0;
                if ( _this.currentId==1){
                _this.mainflag = true;
                }else {
                _this.mainflag=false;
+                _this.currentID2 = 0;
                }
                _this.gettabList();
           },
            handleChild:function(item){ //二级分类
                var _this = this;
                _this.currentID2 = item.value;
+                if (_this.currentID2==item.value){
+                    _this.mainflag=false;
+                }
                _this.gettabList();
           },
            gettabList:function () {