From e7a60bd9f87495e25d802a70f133e523782e8554 Mon Sep 17 00:00:00 2001 From: Gao xiaosong <704041637@qq.com> Date: Wed, 17 Feb 2021 16:38:04 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9adv=E7=BB=84=E4=BB=B6?= =?UTF-8?q?=E6=97=A0=E6=B3=95=E6=98=BE=E7=A4=BA=E5=86=85=E5=AE=B9=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/sh-adv.vue | 34 +++++++++------------------------- pages/home/index.vue | 3 ++- 2 files changed, 11 insertions(+), 26 deletions(-) diff --git a/components/sh-adv.vue b/components/sh-adv.vue index f848c2a..887c771 100644 --- a/components/sh-adv.vue +++ b/components/sh-adv.vue @@ -81,34 +81,18 @@ components: {}, data() { return { - detail: { - "list": [{ - "image": "https:\/\/wx.yixiang.co\/static\/images\/index001.png", - "name": "", - "path": "/pages/user/coupon/GetCoupon/index", - "path_name": "优惠券", - "path_type": 1 - }, { - "image": "https:\/\/wx.yixiang.co\/static\/images\/index002.png", - "name": "", - "path": "/pages/shop/GoodsList/index", - "path_name": "商品", - "path_type": 1 - }, { - "image": "https:\/\/wx.yixiang.co\/static\/images\/index003.png", - "name": "", - "path": "/pages/user/signIn/Integral/index", - "path_name": "积分", - "path_type": 1 - }], - "name": "", - "style": 3 - } + }; }, - props: {}, + props: { + detail:Object + }, computed: {}, - created() {}, + created() { + }, + mounted() { + console.log(this) + }, methods: { // 路由跳转 jump(path) { diff --git a/pages/home/index.vue b/pages/home/index.vue index 7c16011..7d369d1 100644 --- a/pages/home/index.vue +++ b/pages/home/index.vue @@ -215,7 +215,8 @@ // }); getCanvas().then(res => { }).catch(error => { - this.homeData = JSON.parse(error.data.json) + this.homeData = JSON.parse(error.data.json) + console.log(this.homeData[4]) }) getHomeData().then((res) => { that.logoUrl = res.data.logoUrl;