Kaynağa Gözat

二手列表tab收回

Administrator 4 yıl önce
ebeveyn
işleme
1e0433b138

+ 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 () {