Files
ClassContent/历届学生/吴欣阳/项目开发/美食app/config/index.js
2024-09-27 02:06:13 +08:00

27 lines
1.0 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

export default {
devBaseUrl: 'http://192.168.31.100:3000/api',
prodBaseUrl: 'http://127.0.0.1:3000/api',
urlList: {
class:"/index/class",//1.首页获取分类数据接口
hot:"index/hot",//2.热门推荐
threeMeals: '/index/threeMeals',//3.每日三餐接口
banner:"/index/banner",//4.获取banner图
bannerInfo:"/index/bannerInfo",//5.获取banner点击后的详情
video:'/video/list',//6.菜谱视频大全列表
search:'/search/list',//7.搜索接口
leftMenu:"/type/leftMenu",//8:分类页面左侧分类菜单
rightMenu:"/type/rightMenu",//9.分类页面获取右边的小内容
rightMenuList:"/type/rightMenuList",//10.点击右边小分类获取分类列表
info:"/index/info"//11.获取详情
},
checkUrl: function () {
switch (process.env.NODE_ENV) {
case "development":
return this.devBaseUrl;
break;
case "production":
return this.prodBaseUrl;
break;
}
}
}