Files
marry-wx/README.md

41 lines
979 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 婚礼请柬小程序 (marry-wx)
基于 uni-app 构建的微信小程序婚礼请柬
## 功能特性
- ✅ 6 页轮播展示欢迎页、3 页照片、酬谢页、信息页)
- ✅ 背景音乐播放
- ✅ 微信地图定位
- ✅ 上下滑动切换页面
- ✅ 页码指示器
## 开发
```bash
# 安装依赖
npm install
# 开发模式(微信小程序)
npm run dev:mp-weixin
# 构建生产版本
npm run build:mp-weixin
```
## 使用微信开发者工具导入
1. 克隆/复制项目到本地
2. 打开微信开发者工具
3. 导入项目,选择 `marry-wx` 目录
4. AppID 可以使用测试号或填写自己的 AppID
5. 编译预览
## 注意事项
- 静态资源在 `/static` 目录
- 音乐文件:`/static/Audio/bgm.mp3`
- 图片文件:`/static/photo/photo1.jpg``/static/photo/photo2.jpg``/static/photo/photo3.jpg`
- 装饰元素:`/static/elements/` 目录
- 需要在微信公众平台配置服务器域名(如果需要线上访问)