调用宝宝食谱接口

master
chen 2021-12-23 14:40:42 +08:00
parent e38043999c
commit 7c87f8d229
3 changed files with 10 additions and 7 deletions

View File

@ -102,7 +102,7 @@
babyAlbum, babyAlbum,
yiqingmanagement yiqingmanagement
}, },
name: 'header', name: 'v-header',
data() { data() {
return { return {
titleArr: ['首页', '幼儿园介绍', '宝宝活动', '出勤详情', '宝宝相册', '疫情管理'], titleArr: ['首页', '幼儿园介绍', '宝宝活动', '出勤详情', '宝宝相册', '疫情管理'],

View File

@ -235,12 +235,15 @@
chooseMeal(e) { chooseMeal(e) {
this.threeMealIndex = e; this.threeMealIndex = e;
}, },
// //
calssDetailEv(){ babyRecipeEv(){
this.$axios({ this.$axios({
// serviceAPI // serviceAPI
url:this.$https.classDetail, url:this.$https.babyRecipe,
methods:'get', methods:'get',
params:{
EquipmentID:'yaohaotest001'
}
}).then(res =>{ }).then(res =>{
console.log(res.data); console.log(res.data);
}).catch(err => { }).catch(err => {
@ -249,7 +252,7 @@
} }
}, },
mounted() { mounted() {
this.babyRecipeEv();
} }
} }
</script> </script>

View File

@ -1,6 +1,6 @@
const host = 'https://easy-mock.com/mock/5bcd8e154994296c2af093ea/SmileVue/' const host = 'http://47.109.29.153:50012'
const url = { const url = {
classDetail: host + 'index', babyRecipe: host + '/api/admin/electronicclasscard/babyfood',
} }
module.exports = url module.exports = url