first commit

This commit is contained in:
编码猿
2024-09-27 02:06:13 +08:00
commit 852d94fbb9
36760 changed files with 3274413 additions and 0 deletions

View File

@@ -0,0 +1,54 @@
var config = {
// 开发阶段的请求基地址
devBaseUrl: 'http://127.0.0.1:3000/api',
// 测试阶段的请求基地址
testBaseUrl: 'http://127.0.0.1:3000/test/api',
// 上线阶段的请求基地址
prodBaseUrl: 'http://127.0.0.1:3000/prod/api',
stage: "dev", // dev test prod
apiList: {
threeMeals: '/index/threeMeals', // 每日三餐
saerch:'/search/list',//搜索
banner1:'/index/banner',
typee:'/index/type',//九宫格
threeMealss:'/index/threeMeals',//每日三餐
indexType:'/index/class', // 首页获取分类数据接口
videoList:'/video/list' ,// 菜谱视频大全列表
indexx:'/index/class',
videoList:'/video/list', // 菜谱视频大全列表
indexBanner:'/index/banner', // 获取banner图
indexInfo:'/index/info',//详情
type:'/type/leftMenu', //分类左
typer:'/type/rightMenu', //分类右
typerl:'/type/rightMenuList', //分类右小分类
},
// 底部导航
footerArr: [
{ title: '首页', icon: 'icon-home', path: 'index.html' },
{ title: '视频', icon: 'icon-jigou', path: 'video.html' },
{ title: '分类', icon: 'icon-me', path: 'type.html' },
{ title: '收藏', icon: 'icon-wo', path: 'like.html' },
],
checkStage: function () {
switch (this.stage) {
case "dev":
return this.devBaseUrl;
break;
case "test":
return this.testBaseUrl;
break;
case "prod":
return this.prodBaseUrl;
break;
}
}
}