81a093120c
按地图口径把 HBuilderX 工程改成官方 #vite(JS 版)CLI 工程: - 业务代码 git mv 进 src/(176 个 rename,逐文件字节比对零内容改动): App.vue / main.js / manifest.json / pages.json / uni.scss / pages/ / packageMine/ / components/ / utils/ / static/ / uni_modules/ / uni.promisify.adaptor.js - 新增官方骨架:package.json(@dcloudio/* 同版本 pin 3.0.0-5020620260917001,vite 精确 5.2.8,vue ^3.4.21;只留 h5 与 mp-weixin 脚本)、vite.config.js、shims-uni.d.ts;补 sass devDependency 以支持既有 lang="scss" - index.html 沿用本仓文件,入口改为 /src/main.js - manifest.json 删除 app-plus / quickapp / mp-alipay / mp-baidu / mp-toutiao 五个死平台段,只留 mp-weixin - .gitignore 加 dist/ - pnpm-workspace.yaml 新增 allowBuilds 白名单:pnpm 12 起 onlyBuiltDependencies 已被移除,且 strictDepBuilds 默认 true 会把 「未复核构建脚本」判成非零退出。白名单只列传递依赖 esbuild / @parcel/watcher / core-js / core-js-pure。 未使用 shamefully-hoist 或 node-linker=hoisted。 验收:pnpm build:mp-weixin 退出码 0,产物 app.json 的 pages / subPackages / tabBar / window 与改造前基线逐项一致; project.config.json 落产物且 appid = wxf7ee9cd5801bf7a6。
238 lines
4.6 KiB
JSON
238 lines
4.6 KiB
JSON
{
|
|
"easycom": {
|
|
"autoscan": true,
|
|
"custom": {
|
|
"^zero-markdown-view$": "@/uni_modules/zero-markdown-view/components/zero-markdown-view/zero-markdown-view.vue"
|
|
}
|
|
},
|
|
"pages": [
|
|
{
|
|
"path": "pages/index/index",
|
|
"style": {
|
|
"navigationBarTitleText": "首页",
|
|
"navigationStyle": "custom"
|
|
}
|
|
},
|
|
{
|
|
"path": "pages/assistant/index",
|
|
"style": {
|
|
"navigationBarTitleText": "助手",
|
|
"navigationStyle": "custom"
|
|
}
|
|
},
|
|
{
|
|
"path": "pages/mine/index",
|
|
"style": {
|
|
"navigationBarTitleText": "我的",
|
|
"navigationStyle": "custom"
|
|
}
|
|
}
|
|
],
|
|
"subPackages": [
|
|
{
|
|
"root": "pages/gxmu",
|
|
"pages": [
|
|
{
|
|
"path": "index",
|
|
"style": {
|
|
"navigationBarTitleText": "五四评优",
|
|
"navigationStyle": "custom"
|
|
}
|
|
},
|
|
{
|
|
"path": "form",
|
|
"style": {
|
|
"navigationBarTitleText": "申报表",
|
|
"navigationStyle": "custom"
|
|
}
|
|
},
|
|
{
|
|
"path": "tzbcy",
|
|
"style": {
|
|
"navigationBarTitleText": "挑战杯申报",
|
|
"navigationStyle": "custom"
|
|
}
|
|
},
|
|
{
|
|
"path": "qmgc",
|
|
"style": {
|
|
"navigationBarTitleText": "青马工程申报",
|
|
"navigationStyle": "custom"
|
|
}
|
|
},
|
|
{
|
|
"path": "wxxzx",
|
|
"style": {
|
|
"navigationBarTitleText": "未来学术之星申报",
|
|
"navigationStyle": "custom"
|
|
}
|
|
},
|
|
{
|
|
"path": "stats",
|
|
"style": {
|
|
"navigationBarTitleText": "数据统计与报表中心",
|
|
"navigationStyle": "custom"
|
|
}
|
|
},
|
|
{
|
|
"path": "cross-school-board",
|
|
"style": {
|
|
"navigationBarTitleText": "跨校活动情报看板",
|
|
"navigationStyle": "custom"
|
|
}
|
|
},
|
|
{
|
|
"path": "tzb-database",
|
|
"style": {
|
|
"navigationBarTitleText": "创新竞赛历史项目数据库",
|
|
"navigationStyle": "custom"
|
|
}
|
|
},
|
|
{
|
|
"path": "tzb-project-list",
|
|
"style": {
|
|
"navigationBarTitleText": "挑战杯项目库",
|
|
"navigationStyle": "custom"
|
|
}
|
|
},
|
|
{
|
|
"path": "tzb-talent-list",
|
|
"style": {
|
|
"navigationBarTitleText": "挑战杯人才库",
|
|
"navigationStyle": "custom"
|
|
}
|
|
},
|
|
{
|
|
"path": "review-list",
|
|
"style": {
|
|
"navigationBarTitleText": "审核列表",
|
|
"navigationStyle": "custom"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"root": "packageMine",
|
|
"pages": [
|
|
{
|
|
"path": "profile",
|
|
"style": {
|
|
"navigationBarTitleText": "用户资料",
|
|
"navigationStyle": "custom"
|
|
}
|
|
},
|
|
{
|
|
"path": "qingma",
|
|
"style": {
|
|
"navigationBarTitleText": "我的青马",
|
|
"navigationStyle": "custom"
|
|
}
|
|
},
|
|
{
|
|
"path": "manuscripts",
|
|
"style": {
|
|
"navigationBarTitleText": "我的稿件",
|
|
"navigationStyle": "custom"
|
|
}
|
|
},
|
|
{
|
|
"path": "declare",
|
|
"style": {
|
|
"navigationBarTitleText": "我的申报",
|
|
"navigationStyle": "custom"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"root": "pages/tygl",
|
|
"pages": [
|
|
{
|
|
"path": "index",
|
|
"style": {
|
|
"navigationBarTitleText": "团员档案管理",
|
|
"navigationStyle": "custom"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"root": "pages/manuscript",
|
|
"pages": [
|
|
{
|
|
"path": "index",
|
|
"style": {
|
|
"navigationBarTitleText": "文稿工作台"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"root": "pages/activity-outline",
|
|
"pages": [
|
|
{
|
|
"path": "index",
|
|
"style": {
|
|
"navigationBarTitleText": "活动策划大纲"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"root": "pages/creative-assistant",
|
|
"pages": [
|
|
{
|
|
"path": "index",
|
|
"style": {
|
|
"navigationBarTitleText": "AI创意助手"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"root": "pages/login",
|
|
"pages": [
|
|
{
|
|
"path": "index",
|
|
"style": {
|
|
"navigationBarTitleText": "登录"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"globalStyle": {
|
|
"navigationBarTextStyle": "white",
|
|
"navigationBarTitleText": "智慧团委",
|
|
"navigationBarBackgroundColor": "#1496F2",
|
|
"backgroundColor": "#F4FAFF"
|
|
},
|
|
"tabBar": {
|
|
"color": "#7D7672",
|
|
"selectedColor": "#1496F2",
|
|
"backgroundColor": "#FFFFFF",
|
|
"borderStyle": "black",
|
|
"list": [
|
|
{
|
|
"pagePath": "pages/index/index",
|
|
"iconPath": "static/tabbar/home.png",
|
|
"selectedIconPath": "static/tabbar/home-active.png",
|
|
"text": "首页"
|
|
},
|
|
{
|
|
"pagePath": "pages/assistant/index",
|
|
"iconPath": "static/tabbar/chat.png",
|
|
"selectedIconPath": "static/tabbar/chat-active.png",
|
|
"text": "助手"
|
|
},
|
|
{
|
|
"pagePath": "pages/mine/index",
|
|
"iconPath": "static/tabbar/user.png",
|
|
"selectedIconPath": "static/tabbar/user-active.png",
|
|
"text": "我的"
|
|
}
|
|
]
|
|
},
|
|
"uniIdRouter": {}
|
|
}
|