From 854c9cbca73fdbae2056f24412e330c378eb9430 Mon Sep 17 00:00:00 2001 From: admin Date: Thu, 23 Apr 2026 16:31:17 +0800 Subject: [PATCH] =?UTF-8?q?Initial=20commit:=20=E5=A9=9A=E7=A4=BC=E8=AF=B7?= =?UTF-8?q?=E6=9F=AC=E5=BE=AE=E4=BF=A1=E5=B0=8F=E7=A8=8B=E5=BA=8F=EF=BC=88?= =?UTF-8?q?=E4=BB=A3=E7=A0=81=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 10 + App.vue | 17 ++ README.md | 40 +++ main.js | 11 + manifest.json | 18 ++ package.json | 16 ++ pages.json | 18 ++ pages/index/index.vue | 573 ++++++++++++++++++++++++++++++++++++++++++ project.config.json | 8 + static/SVG/静音-F.svg | 1 + static/SVG/音量-F.svg | 1 + static/favicon.svg | 1 + static/icons.svg | 24 ++ styles/global.css | 15 ++ uni.scss | 6 + vite.config.js | 6 + 16 files changed, 765 insertions(+) create mode 100644 .gitignore create mode 100644 App.vue create mode 100644 README.md create mode 100644 main.js create mode 100644 manifest.json create mode 100644 package.json create mode 100644 pages.json create mode 100644 pages/index/index.vue create mode 100644 project.config.json create mode 100644 static/SVG/静音-F.svg create mode 100644 static/SVG/音量-F.svg create mode 100644 static/favicon.svg create mode 100644 static/icons.svg create mode 100644 styles/global.css create mode 100644 uni.scss create mode 100644 vite.config.js diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..145671d --- /dev/null +++ b/.gitignore @@ -0,0 +1,10 @@ +node_modules/ +dist/ +*.mp3 +*.aac +*.jpg +*.png +*.webp +*.ttf +*.woff +*.woff2 diff --git a/App.vue b/App.vue new file mode 100644 index 0000000..7d3c9e0 --- /dev/null +++ b/App.vue @@ -0,0 +1,17 @@ + + + diff --git a/README.md b/README.md new file mode 100644 index 0000000..2a861d8 --- /dev/null +++ b/README.md @@ -0,0 +1,40 @@ +# 婚礼请柬小程序 (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/` 目录 +- 需要在微信公众平台配置服务器域名(如果需要线上访问) diff --git a/main.js b/main.js new file mode 100644 index 0000000..7f88dd0 --- /dev/null +++ b/main.js @@ -0,0 +1,11 @@ +import Vue from 'vue' +import App from './App' + +Vue.config.productionTip = false + +App.mpType = 'app' + +const app = new Vue({ + ...App +}) +app.$mount() diff --git a/manifest.json b/manifest.json new file mode 100644 index 0000000..8ad015e --- /dev/null +++ b/manifest.json @@ -0,0 +1,18 @@ +{ + "name": "marry-wx", + "appid": "__UNI__MARRIAGE", + "description": "婚礼请柬小程序", + "versionName": "1.0.0", + "versionCode": "100", + "transformPx": false, + "mp-weixin": { + "appid": "", + "setting": { + "urlCheck": false, + "es6": true, + "postcss": true, + "minified": true + }, + "usingComponents": true + } +} diff --git a/package.json b/package.json new file mode 100644 index 0000000..6e46eb6 --- /dev/null +++ b/package.json @@ -0,0 +1,16 @@ +{ + "name": "marry-wx", + "version": "1.0.0", + "private": true, + "scripts": { + "dev:mp-weixin": "uni -p mp-weixin", + "build:mp-weixin": "uni build -p mp-weixin" + }, + "devDependencies": { + "@dcloudio/uni-cli": "^3.0.0", + "@dcloudio/uni-app": "^3.0.0", + "@dcloudio/uni-components": "^3.0.0", + "@dcloudio/vite-plugin-uni": "^3.0.0", + "vite": "^5.0.0" + } +} diff --git a/pages.json b/pages.json new file mode 100644 index 0000000..9496e66 --- /dev/null +++ b/pages.json @@ -0,0 +1,18 @@ +{ + "pages": [ + { + "path": "pages/index/index", + "style": { + "navigationBarTitleText": "婚礼请柬", + "navigationBarBackgroundColor": "#faf6f0", + "navigationBarTextStyle": "black" + } + } + ], + "globalStyle": { + "navigationBarTextStyle": "black", + "navigationBarTitleText": "婚礼请柬", + "navigationBarBackgroundColor": "#faf6f0", + "backgroundColor": "#faf6f0" + } +} diff --git a/pages/index/index.vue b/pages/index/index.vue new file mode 100644 index 0000000..733b3a0 --- /dev/null +++ b/pages/index/index.vue @@ -0,0 +1,573 @@ + + + + + \ No newline at end of file diff --git a/project.config.json b/project.config.json new file mode 100644 index 0000000..057a9ae --- /dev/null +++ b/project.config.json @@ -0,0 +1,8 @@ +{ + "name": "marry-wx", + "appid": "__UNI__MARRIAGE", + "description": "婚礼请柬小程序", + "versionName": "1.0.0", + "versionCode": "100", + "transformPx": false +} diff --git a/static/SVG/静音-F.svg b/static/SVG/静音-F.svg new file mode 100644 index 0000000..c1e4ba6 --- /dev/null +++ b/static/SVG/静音-F.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/static/SVG/音量-F.svg b/static/SVG/音量-F.svg new file mode 100644 index 0000000..2bc35f0 --- /dev/null +++ b/static/SVG/音量-F.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/static/favicon.svg b/static/favicon.svg new file mode 100644 index 0000000..6893eb1 --- /dev/null +++ b/static/favicon.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/static/icons.svg b/static/icons.svg new file mode 100644 index 0000000..e952219 --- /dev/null +++ b/static/icons.svg @@ -0,0 +1,24 @@ + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/styles/global.css b/styles/global.css new file mode 100644 index 0000000..43c8c6e --- /dev/null +++ b/styles/global.css @@ -0,0 +1,15 @@ +/* 全局样式 */ +page { + background-color: #faf6f0; + font-family: 'WeddingFont', 'Noto Serif SC', 'Source Han Serif SC', 'STSong', 'SimSun', serif; + font-size: 14px; + color: #7a5a42; +} + +:root { + --red: #8B4513; + --text-golden: #8B6914; + --text-muted: #7a5a42; + --gold: #c9a86c; + --gold-light: #e8d4a8; +} diff --git a/uni.scss b/uni.scss new file mode 100644 index 0000000..f336997 --- /dev/null +++ b/uni.scss @@ -0,0 +1,6 @@ +/* uni-app 变量 */ +$red: #8B4513; +$text-golden: #8B6914; +$text-muted: #7a5a42; +$gold: #c9a86c; +$gold-light: #e8d4a8; diff --git a/vite.config.js b/vite.config.js new file mode 100644 index 0000000..c77da27 --- /dev/null +++ b/vite.config.js @@ -0,0 +1,6 @@ +import { defineConfig } from 'vite' +import uni from '@dcloudio/vite-plugin-uni' + +export default defineConfig({ + plugins: [uni()] +})