新增小程序后端代码,包括数据库、路由、服务层等。

小程序前后端打通,包括登录、注册、绑定设备、查询绑定信息,修改小朋友名称等功能。
This commit is contained in:
HycJack
2026-04-13 01:54:57 +08:00
parent 33715373b0
commit a22fcafea9
46 changed files with 3713 additions and 268 deletions

View File

@@ -1,4 +1,6 @@
const config = {
const path = require('path')
module.exports = {
projectName: 'banban-mini',
date: '2025-3-3',
designWidth: 750,
@@ -10,34 +12,31 @@ const config = {
sourceRoot: 'src',
outputRoot: 'dist',
plugins: [],
defineConstants: {
},
defineConstants: {},
copy: {
patterns: [
{ from: 'src/assets/tab-icons', to: 'dist/assets/tab-icons' }
],
options: {
}
options: {}
},
framework: 'react',
mini: {
webpackChain(chain) {
chain.resolve.alias.set('@', path.resolve(__dirname, '../src'))
},
postcss: {
pxtransform: {
enable: true,
config: {
}
config: {}
},
url: {
enable: true,
config: {
limit: 1024 // 设定转换尺寸上限
}
config: { limit: 1024 }
},
cssModules: {
enable: false, // 默认为 false如需使用 css modules 功能,则设为 true
enable: false,
config: {
namingPattern: 'module', // 转换模式,取值为 global/module
namingPattern: 'module',
generateScopedName: '[name]__[local]___[hash:base64:5]'
}
}
@@ -46,26 +45,18 @@ const config = {
h5: {
publicPath: '/',
staticDirectory: 'static',
webpackChain(chain) {
chain.resolve.alias.set('@', path.resolve(__dirname, '../src'))
},
postcss: {
autoprefixer: {
enable: true,
config: {
}
},
autoprefixer: { enable: true, config: {} },
cssModules: {
enable: false, // 默认为 false如需使用 css modules 功能,则设为 true
enable: false,
config: {
namingPattern: 'module', // 转换模式,取值为 global/module
namingPattern: 'module',
generateScopedName: '[name]__[local]___[hash:base64:5]'
}
}
}
}
}
module.exports = function (merge) {
if (process.env.NODE_ENV === 'development') {
return merge({}, config, require('./dev'))
}
return merge({}, config, require('./prod'))
}