Sin descripción

Burt 8d7dbd234f docs(readme.md): degit 不支持 gitee hace 2 años
.hbuilderx 7ba6f95b53 fix: app 打包失败BUG hace 2 años
.husky e9602040a5 build: husky + lint-staged + commitlint hace 2 años
.vscode a6435acf98 build(vscode): add recommend extensions hace 2 años
env b3f485ffd0 chore: add TODO hace 2 años
screenshots a40fd8255e docs: 增加APP运行和发行文档 hace 2 años
src 7ba6c50cf5 feat: 首页增加Uni Icons 图标并加颜色,验证在小程序中颜色丢失 hace 2 años
.editorconfig 47c8ac2b5d build(prettier): add .prettierrc.js hace 2 años
.eslintrc.cjs 992df91a05 feat: 大转盘抽奖 hace 2 años
.gitignore a1f2bef5d1 build: 配置文件一点小优化 hace 2 años
.npmrc 11629b2c11 build(.npmrc): add .npmrc & pnpm i hace 2 años
.prettierrc.cjs c51e7181f8 chore: test file hace 2 años
.stylelintrc.cjs bf8d8f8e68 feat: 动态时钟 hace 2 años
LICENSE 91a50eb764 Create LICENSE hace 2 años
README.md 8d7dbd234f docs(readme.md): degit 不支持 gitee hace 2 años
commitlint.config.cjs e9602040a5 build: husky + lint-staged + commitlint hace 2 años
index.html 0600f6aeb0 build: 优化title配置 hace 2 años
manifest.config.ts 7ba6f95b53 fix: app 打包失败BUG hace 2 años
package.json 47b85322ba feat: 先去掉 vite-plugin-imagemin, 很多人安装失败 hace 2 años
pages.config.ts 1c0b6b2142 feat: add 微信调试 TODO hace 2 años
pnpm-lock.yaml 47b85322ba feat: 先去掉 vite-plugin-imagemin, 很多人安装失败 hace 2 años
shims-uni.d.ts a1f2bef5d1 build: 配置文件一点小优化 hace 2 años
tsconfig.json a266441305 build(uni-helper): 引入 @uni-helper/uni-cloud-types 云开发类型 hace 2 años
uni-pages.d.ts 7ba6c50cf5 feat: 首页增加Uni Icons 图标并加颜色,验证在小程序中颜色丢失 hace 2 años
uno.config.ts 3c6321ad88 fix(unocss): 处理unocss在小程序中报错 hace 2 años
vite.config.ts bd67776dcf chore: 注释优化 hace 2 años

README.md

vue3-uniapp-template

特性

业务功能 TODO LIST

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

环境

  • pnpm>=8.12
  • node>=18

拉取代码

  • git 拉取

    • github:git clone https://github.com/fly-vue3-templates/vue3-uniapp-template fly-uniapp

    • gitee:git clone https://gitee.com/fly-vue3-templates/vue3-uniapp-template.git fly-uniapp

  • degit 拉取(不包含git,需要自己git init)

    • npx degit https://github.com/fly-vue3-templates/vue3-uniapp-template fly-uniapp

    • npx degit https://gitee.com/fly-vue3-templates/vue3-uniapp-template fly-uniapp(degit 不支持 gitee)

  • github template Github template

运行

  • 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官网 vite.base
  • weixin平台:pnpm build:h5, 打包后的文件在 dist/build/mp-weixin,然后通过微信开发者工具导入,并点击右上角的“上传”按钮进行上传。
  • APP平台:pnpm build:app, 然后打开 HBuilderX,导入刚刚生成的dist/build/app 文件夹,选择发行 - APP云打包。

app发行