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