介绍
一款基于UNIAPP开发的手机壳DIY小程序(前端示例代码),兼容抖音和微信小程序,在线案例:
Github:GitHub - friend-nicen/DIY: DIY小程序,DIY手机壳,手机壳DIY,DIY制作,相关的小程序前端示例代码,基于UNIAPP,已兼容抖音、微信小程序;
Gitee:https://gitee.com/friend-nicen/DIY
使用方法
- 下载HBuilderX,导入项目
- 修改
manifest.json
中的appid
为你的小程序的appid
- 安装依赖 "
npm i -D
" - 运行到微信或抖音小程序(无后端代码,需要模拟接口)
项目结构
├─.hbuilderx // HBuilderX配置文件
├─assets // 静态资源
│ ├─css
│ └─image
├─common // 公共方法
│ ├─canvas
│ └─util
├─components // 自定义组件
│ └─driver
├─pages // 页面
│ ├─creative
│ ├─custom-goods
│ ├─index
│ │ ├─addText
│ │ ├─Footer
│ │ ├─Headers
│ │ └─sidebar
│ ├─list
│ ├─make
│ ├─models
│ ├─show
│ └─user
├─service // 接口
├─sotre // 全局状态
├─static // 静态资源
│ └─tabbar
└─uni_modules // uni-app组件
原文:https://nicen.cn/5618.html