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,29 @@
//放程序的你如接口地址
var confi = {
devBaserl: 'http://127.0.0.1:3000/api/json', //开发阶段
testBaserl: 'http://127.0.0.1:3000/api/json/text', //测试阶段
pordBaserl: 'http://127.0.0.1:3000/api/json', //上线阶段
stage: 'test', //用以筛选是什么阶段
urlList:{ //不同接口调用不同字段
classList:"/classList",
info:"/getinfo", //url(confi.getBaseUrl)
},
getBaseUrl: function () {
switch (this.stage) {
case "dev":
return this.devBaserl
break;
case "test":
return this.testBaserl
break;
case "pord":
return this.pordBaserl
break;
default:
break;
}
}
}