From 0ab0304cb027c55d2c2249fe5abf2e2933750b75 Mon Sep 17 00:00:00 2001 From: "jqtmviyu@gmail.com" Date: Sun, 21 Feb 2021 22:34:54 +0800 Subject: [PATCH] =?UTF-8?q?=E8=8E=B7=E5=8F=96=E6=A5=BC=E5=B1=82=E6=95=B0?= =?UTF-8?q?=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/index/index.vue | 32 ++++++++++++++++++++++++++++++-- 1 file changed, 30 insertions(+), 2 deletions(-) diff --git a/src/pages/index/index.vue b/src/pages/index/index.vue index c8ffa03..52a75a7 100644 --- a/src/pages/index/index.vue +++ b/src/pages/index/index.vue @@ -12,12 +12,31 @@ - + + + + + + + + + + + + + + + + + + + + @@ -26,7 +45,8 @@ data() { return { swiperList: [], - catitems: [] + catitems: [], + floordata:[] } }, // 页面生命周期 @@ -35,6 +55,8 @@ this.getSwiper() // 获取导航图 this.getCatitems() + // 获取楼层数据 + this.getFloordata() }, methods: { // getSwiper(){ @@ -54,6 +76,12 @@ async getCatitems(){ const { message } = await this.$u.api.getCatitems() this.catitems = message + }, + + // 楼层 + async getFloordata(){ + const { message } = await this.$u.api.getFloordata() + this.floordata = message } } }