From 7c87f8d22915c04820e56a1225ac4c0a2eebe057 Mon Sep 17 00:00:00 2001 From: chen <2659004835@qq.com> Date: Thu, 23 Dec 2021 14:40:42 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E7=94=A8=E5=AE=9D=E5=AE=9D=E9=A3=9F?= =?UTF-8?q?=E8=B0=B1=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/header.vue | 2 +- src/components/homepage.vue | 11 +++++++---- src/config.js | 4 ++-- 3 files changed, 10 insertions(+), 7 deletions(-) diff --git a/src/components/header.vue b/src/components/header.vue index 1fc2e93..27e9114 100644 --- a/src/components/header.vue +++ b/src/components/header.vue @@ -102,7 +102,7 @@ babyAlbum, yiqingmanagement }, - name: 'header', + name: 'v-header', data() { return { titleArr: ['首页', '幼儿园介绍', '宝宝活动', '出勤详情', '宝宝相册', '疫情管理'], diff --git a/src/components/homepage.vue b/src/components/homepage.vue index 67e4b1b..cd9fde1 100644 --- a/src/components/homepage.vue +++ b/src/components/homepage.vue @@ -235,12 +235,15 @@ chooseMeal(e) { this.threeMealIndex = e; }, - // 班级详情 - calssDetailEv(){ + // 宝宝食谱 + babyRecipeEv(){ this.$axios({ // 调用 serviceAPI - url:this.$https.classDetail, + url:this.$https.babyRecipe, methods:'get', + params:{ + EquipmentID:'yaohaotest001' + } }).then(res =>{ console.log(res.data); }).catch(err => { @@ -249,7 +252,7 @@ } }, mounted() { - + this.babyRecipeEv(); } } diff --git a/src/config.js b/src/config.js index d2a395a..ff74473 100644 --- a/src/config.js +++ b/src/config.js @@ -1,6 +1,6 @@ -const host = 'https://easy-mock.com/mock/5bcd8e154994296c2af093ea/SmileVue/' +const host = 'http://47.109.29.153:50012' const url = { - classDetail: host + 'index', + babyRecipe: host + '/api/admin/electronicclasscard/babyfood', } module.exports = url