Q3学习计划
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

98 lines
3.6 KiB

  1. ## 项目简介
  2. 小兔鲜儿项目包含从首页浏览商品,商品详情,微信登录,加入购物车,提交订单,微信支付,订单管理等功能。
  3. 当前仓库为小兔鲜儿的**项目模板**。
  4. ### 技术栈
  5. - 前端框架:[uni-app](https://uniapp.dcloud.net.cn/) (Vue3 + TS + Setup)
  6. - 状态管理:[pinia](https://pinia.vuejs.org/zh/)
  7. - 组件库:[uni-ui](https://uniapp.dcloud.net.cn/component/uniui/uni-ui.html)
  8. ## 资料说明
  9. ### 📀 视频学习
  10. [https://www.bilibili.com/video/BV1Bp4y1379L/](https://www.bilibili.com/video/BV1Bp4y1379L/?share_source=copy_web&vd_source=2ac50d29193927b3c8597537dc4bc81d)
  11. ### 📗 接口文档
  12. [https://www.apifox.cn/apidoc/shared-0e6ee326-d646-41bd-9214-29dbf47648fa/](https://www.apifox.cn/apidoc/shared-0e6ee326-d646-41bd-9214-29dbf47648fa/)
  13. ### ✏️ 在线笔记
  14. [https://megasu.atomgit.net/uni-app-shop-note/](https://megasu.atomgit.net/uni-app-shop-note/)
  15. ### 📦 项目源码
  16. [https://gitee.com/Megasu/uniapp-shop-vue3-ts/](https://gitee.com/Megasu/uniapp-shop-vue3-ts/)
  17. ## 运行程序
  18. 1. 安装依赖
  19. ```shell
  20. # npm
  21. npm i --registry=https://registry.npmmirror.com
  22. # pnpm
  23. pnpm i --registry=https://registry.npmmirror.com
  24. ```
  25. 2. 运行程序
  26. ```shell
  27. # 微信小程序端
  28. npm run dev:mp-weixin
  29. # H5端
  30. npm run dev:h5
  31. # App端
  32. 需 HbuilderX 工具,运行 - 运行到手机或模拟器
  33. ```
  34. 3. 微信开发者工具导入 `/dist/dev/mp-weixin` 目录
  35. ### 工程结构解析
  36. ```
  37. ├── .husky # Git Hooks
  38. ├── .vscode # VS Code 插件 + 设置
  39. ├── dist # 打包文件夹(可删除重新打包)
  40. ├── src # 源代码
  41. │ ├── components # 全局组件
  42. │ ├── composables # 组合式函数
  43. │ ├── pages # 主包页面
  44. │ ├── index # 首页
  45. │ ├── category # 分类页
  46. │ ├── cart # 购物车
  47. │ ├── my # 我的
  48. │ └── login # 登录页
  49. │ ├── services # 所有请求
  50. │ ├── static # 存放应用引用的本地静态资源的目录
  51. │ ├── images # 普通图片
  52. │ └── tabs # tabBar 图片
  53. │ ├── stores # 全局 pinia store
  54. │ ├── modules # 模块
  55. │ └── index.ts # store 入口
  56. │ ├── styles # 全局样式
  57. │ └── fonts.scss # 字体图标
  58. │ ├── types # 类型声明文件
  59. │ └── component.d.ts # 全局组件类型声明
  60. │ ├── utils # 全局方法
  61. │ ├── App.vue # 入口页面
  62. │ ├── main.ts # Vue初始化入口文件
  63. │ ├── pages.json # 配置页面路由等页面类信息
  64. │ ├── manifest.json # 配置appid等打包信息
  65. │ └── uni.scss # uni-app 内置的常用样式变量
  66. ├── .editorconfig # editorconfig 配置
  67. ├── .eslintrc.cjs # eslint 配置
  68. ├── .prettierrc.json # prettier 配置
  69. ├── .gitignore # git 忽略文件
  70. ├── index.html # H5 端首页
  71. ├── package.json # package.json 依赖
  72. ├── tsconfig.json # typescript 配置
  73. └── vite.config.ts # vite 配置
  74. ```