初始化仓库

This commit is contained in:
wangxiaowei
2025-04-18 17:00:38 +08:00
commit 5d4a682c16
424 changed files with 56737 additions and 0 deletions

29
config/app.js Normal file
View File

@ -0,0 +1,29 @@
// 开发者环境:开|关 【注:方便微信小程序发行测试】
const SWITCH_DEVELOPMENT = false
/** S 是否H5端 **/
// #ifdef H5
const IS_H5 = true
// #endif
// #ifndef H5
const IS_H5 = false
// #endif
/** E 是否H5端 **/
/** S API BaseURL **/
const baseURLMap = {
// 开发环境
development: 'https://likeshop-open.yixiangonline.com',
// 生产环境https://php-b2c.likeshop.cn
production: IS_H5 ? location.origin : ''
}
const baseURL = SWITCH_DEVELOPMENT ? baseURLMap['development'] : baseURLMap[process.env.NODE_ENV]
/** E API BaseURL **/
module.exports = {
version: '3.0.3', // 版本号
baseURL, // API Base URL
basePath: '/mobile'
}

6
config/cachekey.js Normal file
View File

@ -0,0 +1,6 @@
module.exports = {
USER_INFO: 'USER_INFO',
TOKEN: 'TOKEN',
BACK_URL: 'BACK_URL',
CONFIG: 'CONFIG'
}