2024-01-03 11:17:16 +08:00
2024-01-09 09:45:13 +08:00
2024-01-03 10:55:45 +08:00
2023-12-21 15:27:12 +08:00
2023-12-21 16:08:47 +08:00
2024-01-03 10:17:27 +08:00
2024-01-03 11:17:16 +08:00
2024-01-09 10:29:22 +08:00

vue3-uniapp-template

特性

业务功能 TODO LIST

  • 页面下拉刷新
  • 导航栏返回or去首页
  • 导航栏渐变(微信+h5)
  • 自定义导航栏顶部机型适配
  • 微信小程序分享(好友+朋友圈)
  • 页面悬浮球(floating bubble)
  • 多tab列表功能
  • 抽奖转盘

环境

  • pnpm>=8.12
  • node>=18

拉取代码

  • git 拉取

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

    • giteegit 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

  • github template Github template

运行

  • web平台 pnpm dev:h5, 然后打开 http://localhost:9000/
  • weixin平台pnpm dev:mp-weixin 然后打开微信开发者工具,导入本地文件夹,选择本项目的dist/dev/mp-weixin 文件。

发布

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

文件整理

可以把不要的文件统统删除,或者留着当做参考。

Description
unibest
Readme MIT 81 MiB
Languages
TypeScript 81.3%
Vue 12%
SCSS 2.5%
CSS 1.8%
JavaScript 1.6%
Other 0.8%