shish %!s(int64=3) %!d(string=hai) anos
pai
achega
8a1d499e2b
Modificáronse 1 ficheiros con 10 adicións e 4 borrados
  1. 10 4
      mallApp/src/pages/home/recent.vue

+ 10 - 4
mallApp/src/pages/home/recent.vue

@@ -119,6 +119,7 @@ export default {
       }else{
       }else{
         this.loginStyle = 0
         this.loginStyle = 0
       }
       }
+      this.getShopList()
   },
   },
   onLoad () {
   onLoad () {
   },
   },
@@ -132,10 +133,15 @@ export default {
     bugHs(item){
     bugHs(item){
       this.pageTo({ url:'/pages/home/category?account='+item.id})
       this.pageTo({ url:'/pages/home/category?account='+item.id})
     },
     },
-    async init () {
-        const { data } = await getNewShop()
-        this.list = data.list
-        this.showGlInfo = data.showGlInfo
+    init () {
+        this.getShopList()
+    },
+    getShopList(){
+      let that = this
+      getNewShop().then(res=>{
+        that.list = res.data.list
+        that.showGlInfo = res.data.showGlInfo
+      })
     }
     }
   }
   }
 };
 };