xuwei il y a 4 ans
Parent
commit
abfbe7eb9b

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

@@ -62,7 +62,7 @@
     .Listitem:nth-of-type(4) {margin-right: 0;}
     .mainTab li {height: 9.6vw;line-height: 9.6vw;text-align: center;color: #627386;cursor: pointer;}
     .active {color: #E15621;}
-    .line{width: 10vw;margin:0 auto;height: .48vw;background-color: #e15616;display: block}
+    .secondTitle .ClassA .line{width: 10vw;margin:0 auto;height: .48vw;background-color: #e15616;display: block}
     .mainTab li.addstyle{color: #e15616;}
     .itemImg{width:31.2vw;height:31.2vw;float: left;background: #000;}
     .activeImg{opacity: 0.5;}

+ 6 - 3
src/main/resources/static/js/flea-market/list.js

@@ -5,7 +5,8 @@ var fleaMarketList = new Vue({
          currentId:1,
          currentID2:0,
          isShow:false,
-         requestFlag: true,
+         listLoading:true,
+         requestFlag:false,
          showflag:false,
          mainflag:false,
          userID:JSON.parse(localStorage.getItem('userInfo')),
@@ -124,10 +125,12 @@ var fleaMarketList = new Vue({
                                    }
                                }
                            }
-                            _this.requestFlag = false;
+                            _this.listLoading = false;
+                            _this.requestFlag = true;
                          }else{
                              CAIMEI.Alert(res.msg, '确定', false);
-                              _this.requestFlag = true;
+                              _this.requestFlag = false;
+                              _this.listLoading = true;
                          }
                 })
           },

+ 1 - 1
src/main/resources/templates/flea-market/list.html

@@ -12,7 +12,7 @@
 
 <!-- 二手商品列表 -->
 <div id="fleaMarketList">
-     <div v-if="requestFlag" class="loading">
+     <div v-if="listLoading" class="loading">
             <img src="/img/base/loading.gif">
      </div>
      <template v-else>