1 Star 2 Fork 0

Russell/uniapp-WXMiniProgram-develop-template

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

开发环境

  • node>=18
  • pnpm>=7.30
  • TypeScript<=5.5.4

快速开始

执行 pnpm i 安装依赖

执行 pnpm run devpnpm run dev:mp-weixin 运行 微信小程序

打包运行(支持热更新)

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

代码发布

  • weixin平台:pnpm build:mp-weixin, 打包后的文件在 dist/build/mp-weixin,然后通过微信开发者工具导入,并点击右上角的“上传”按钮进行上传。

UI组件库

  • Wot-design-Uni https://wot-design-uni.cn/
  • 自定义UI库主题颜色 src/style/index.scss
  • 因为使用了 @uni-helper/vite-plugin-uni-components 自动引入组件,每当使用新的未注册的组件时需要重启项目来进行UI组件引入

样式

  • 自定义样式/主题颜色 src/style/theme.scss
  • 混合样式 src/style/mixin.scss

跳转拦截

  • 在图片指示位置进行登录校验,文件地址 src/utils/route.ts

输入图片说明

常见问题

  1. 打包时warning Deprecation Warning: Sass @import rules are deprecated and will be removed in Dart Sass 3.0.0.:
    • 运行时出现一下问题,因为Wot-design-Uni版本与sass版本兼容性问题
    • 解决方案: 将sass版本降到1.79一下

技术讨论

有任何的问题、修改意见或者技术交流都可以扫码添加联系方式

输入图片说明

MIT License Copyright (c) 2025 Russell Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

基于Uniapp VUE3+TS版本,wot-design-ui组件库的微信小程序开发模板 展开 收起
README
MIT
取消

发行版 (1)

全部
19天前

贡献者 (2)

全部

近期动态

19天前推送了新的 v1.0.0 标签
3个月前推送了新的提交到 master 分支,1dc7de2...bcb5dd4
3个月前推送了新的提交到 master 分支,ae17c35...1dc7de2
3个月前推送了新的提交到 master 分支,b3a7128...ae17c35
3个月前推送了新的提交到 master 分支,aedfacd...b3a7128
加载更多
不能加载更多了
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
TypeScript
1
https://gitee.com/ybssl/uniapp-WXMiniProgram-develop-template.git
git@gitee.com:ybssl/uniapp-WXMiniProgram-develop-template.git
ybssl
uniapp-WXMiniProgram-develop-template
uniapp-WXMiniProgram-develop-template
master

搜索帮助