初始化仓库

This commit is contained in:
wangxiaowei
2026-04-14 16:54:04 +08:00
commit 967c25b397
553 changed files with 106514 additions and 0 deletions

41
config/app.js Normal file
View File

@ -0,0 +1,41 @@
// 开发者环境:开|关 【注:方便微信小程序发行测试】
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://php-b2b2c.yixiangonline.com',
// // 生产环境 https://b2b2c.likeshop.cn
// production: IS_H5 ? location.origin : ''
// }
const baseURLMap = {
// 开发环境
development: process.env.VUE_APP_BASE_API,
// 生产环境
production: IS_H5
? location.origin
: process.env.VUE_APP_BASE_API
? process.env.VUE_APP_BASE_API
: '[baseUrl]'
}
// const baseURL = SWITCH_DEVELOPMENT ? baseURLMap['development'] : baseURLMap[process.env.NODE_ENV]
const baseURL = baseURLMap[process.env.NODE_ENV]
/** E API BaseURL **/
module.exports = {
version: '3.1.5', // 版本号
baseURL, // API Base URL
basePath: '/mobile'
}

8
config/cachekey.js Normal file
View File

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

22
config/color.js Normal file
View File

@ -0,0 +1,22 @@
const color = {
//主题色
primary: '#FF2C3C',
//主要边框颜色
border: '#E5E5E5',
//黑色
black: '#101010',
//字体主色
normal: '#333333',
//白色
white: '#ffffff',
//字体浅色
lighter: '#666666',
//字体更浅色
muted: '#999999',
//背景色
body: '#F6F6F6'
}
export default color