shish 4 년 전
부모
커밋
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
+      })
     }
   }
 };