微信小程序项目- 实现一些常用效果、封装通用组件和工具类
A new weapp project - 实现一些常用效果、封装通用组件和工具类
代码不定期更新
注:真实开发项目注意按需引用。例如:组件、工具类、app.json
的引用,可通过代码依赖分析做优化。
jh-navbar
、jh-custom-navbar
、jh-capsule-navbar
)jh-lunar-picker
)jh-ymd-time-picker
)jh-time-picker
)jh-string-picker
)jh-input-alert
)jh-input-picker
)jh-loading-toast
)jh-tree
)jh-swiper-view
)jh-time-switch
)jh-dropdown-menu
)base-refresh-view
、refresh
)wx.request
网络请求封装(httpUtils.js
)apiCongfig.js
)dataManager文件夹
)encryptUtils.js
)timeUtils.js
)lunarTimeUtils.js
)checkUtils.js
)authUtils.js
)commonUtils.js
)app.js
、projectConfig.js
)styles文件夹
)app.js
)注:
组件在
jh-components
文件夹
工具类在utils
文件夹
网络请求和API管理在http
文件夹
数据管理在dataManager
文件夹
公共样式在styles
文件夹
建议通过扩展库引入,不占用小程序包体积
# 通过 npm 安装
npm i @vant/weapp -S --production
需下载源码手动导入
# 通过 npm 安装
npm i wux-weapp -S --production
部分页面效果如下: