Nenhuma descrição

Burt d59cf9ce56 chore(.gitignore): update .gitignore 2 anos atrás
.hbuilderx 7ba6f95b53 fix: app 打包失败BUG 2 anos atrás
.husky e9602040a5 build: husky + lint-staged + commitlint 2 anos atrás
.vscode 5d6b158d0d feat: 根据 cqh 的提示优化代码 2 anos atrás
env 3a9da21d06 chore(gitignore): git rm -r --cached 2 anos atrás
screenshots a40fd8255e docs: 增加APP运行和发行文档 2 anos atrás
src 3a9da21d06 chore(gitignore): git rm -r --cached 2 anos atrás
.editorconfig 47c8ac2b5d build(prettier): add .prettierrc.js 2 anos atrás
.eslintrc.cjs 992df91a05 feat: 大转盘抽奖 2 anos atrás
.gitignore d59cf9ce56 chore(.gitignore): update .gitignore 2 anos atrás
.npmrc 11629b2c11 build(.npmrc): add .npmrc & pnpm i 2 anos atrás
.prettierrc.cjs c51e7181f8 chore: test file 2 anos atrás
.stylelintrc.cjs bf8d8f8e68 feat: 动态时钟 2 anos atrás
LICENSE 91a50eb764 Create LICENSE 2 anos atrás
README.md 0f467eefdc docs(readme): update readme.md 2 anos atrás
commitlint.config.cjs e9602040a5 build: husky + lint-staged + commitlint 2 anos atrás
index.html 0600f6aeb0 build: 优化title配置 2 anos atrás
manifest.config.ts 7ba6f95b53 fix: app 打包失败BUG 2 anos atrás
package.json 47b85322ba feat: 先去掉 vite-plugin-imagemin, 很多人安装失败 2 anos atrás
pages.config.ts 1c0b6b2142 feat: add 微信调试 TODO 2 anos atrás
pnpm-lock.yaml 47b85322ba feat: 先去掉 vite-plugin-imagemin, 很多人安装失败 2 anos atrás
shims-uni.d.ts a1f2bef5d1 build: 配置文件一点小优化 2 anos atrás
tsconfig.json a266441305 build(uni-helper): 引入 @uni-helper/uni-cloud-types 云开发类型 2 anos atrás
uno.config.ts 3c6321ad88 fix(unocss): 处理unocss在小程序中报错 2 anos atrás
vite.config.ts 5d6b158d0d feat: 根据 cqh 的提示优化代码 2 anos atrás

README.md

unifly

(原名 vue3-uniapp-template)

由 Vue3 & Ts & Vite4 & uni-app & UnoCss & UniUI 驱动的跨端快速启动模板,VS Code + Prettier +ESLint + husky + lint-staged + commitlint

特性

业务功能 TODO LIST

  • 页面下拉刷新(全局+局部)
  • 页面上拉加载
  • 导航栏返回or去首页
  • 导航栏渐变(微信+h5)
  • 自定义导航栏顶部机型适配
  • 微信小程序分享(好友+朋友圈)
  • 微信登录
  • 微信一键登录(基于手机号)
  • 仿BOSS直聘-个人中心
  • 仿华为商城-个人中心
  • 页面悬浮球(floating bubble)
  • 多tab列表功能
  • 瀑布流
  • 头像上传
  • 图片剪辑
  • 抽奖-九宫格抽奖
  • 抽奖-大转盘抽奖
  • 仿网易云音乐APP(独立项目)

环境

  • pnpm>=8.12
  • node>=18

仓库地址

  • github

    • https://github.com/fly-vue3-templates/vue3-uniapp-template (旧地址)

    • https://github.com/codercup/unifly (新地址)

  • gitee

    • https://gitee.com/fly-vue3-templates/vue3-uniapp-template.git fly (旧地址)

    • https://gitee.com/codercup/unifly (新地址)

旧地址也可以访问,会自动跳转到新地址

运行

  • web平台: pnpm dev:h5, 然后打开 http://localhost:9000/
  • weixin平台:pnpm dev:mp-weixin 然后打开微信开发者工具,导入本地文件夹,选择本项目的dist/dev/mp-weixin 文件。
  • APP平台:pnpm dev:app, 然后打开 HBuilderX,导入刚刚生成的dist/dev/app 文件夹,选择运行到模拟器,或者运行的安卓/ios基座。 app运行

发布

  • web平台: pnpm build:h5,打包后的文件在 dist/build/h5,可以放到web服务器,如nginx运行。如果最终不是放在根目录,可以在 vite.config.tsbase 属性进行配置。vite官网
  • weixin平台:pnpm build:h5, 打包后的文件在 dist/build/mp-weixin,然后通过微信开发者工具导入,并点击右上角的“上传”按钮进行上传。
  • APP平台:pnpm build:app, 然后打开 HBuilderX,导入刚刚生成的dist/build/app 文件夹,选择发行 - APP云打包。

app发行