shish 3 лет назад
Родитель
Сommit
8a1d499e2b
1 измененных файлов с 10 добавлено и 4 удалено
  1. 10 4
      mallApp/src/pages/home/recent.vue

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

@@ -119,6 +119,7 @@ export default {
       }else{
         this.loginStyle = 0
       }
+      this.getShopList()
   },
   onLoad () {
   },
@@ -132,10 +133,15 @@ export default {
     bugHs(item){
       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
+      })
     }
   }
 };