GithubHelp home page GithubHelp logo

blogwy / wedding-invitation Goto Github PK

View Code? Open in Web Editor NEW
55.0 1.0 15.0 1.21 MB

婚礼邀请函微信小程序,后端使用云开发。不需要服务器和域名

License: Apache License 2.0

JavaScript 100.00%

wedding-invitation's Introduction

Wedding-invitation

婚礼邀请函微信小程序,前端+微信云开发,不需要域名和服务器。

1

前提

  • 申请一个小程序账号

入门

  1. clone本项目,并通过微信开发工具导入,导入时填入你的appid

  2. 开通云开发(选择免费套餐即可)

  3. 新建四个集合,集合名分别是bless photos comment invitation user

  4. 打开sql文件夹,按照集合名称导入数据

  5. 修改根目录app.js文件里面的env字段为你的云开发环境id

wx.cloud.init({
  env: ''
})
  1. 右键点击functions选择当前云开发环境,在get_openId右键选第三项上传并部署:云端安装依赖

  2. 重新编译

数据格式说明

  1. bless好友祝福页面的数据

  2. comment数据表是留言评论页面的数据

  3. photos数据表是甜蜜相册页面数据

  4. user表是用户数据

  5. invitation 数据表(只有一条数据)是基本信息,此数据用于小程序的首页地图页面,数据格式如下

{
  // 新郎姓名
  "boy": "周杰伦",
  // 公历结婚日期
  "date": "2020-10-01 12:00:00",
  // 新娘姓名
  "girl": "昆凌",
  // 结婚地点(酒店教堂名称即可)
  "hotel": "英国约克郡塞尔比教堂",
  // 农历结婚日期
  "lunar": "庚子年八月十五",
  // 背景音乐url
  "music": "https://6465-dev-1goaza5i509ecff5-1258198969.tcb.qcloud.la/audio/ido.mp3?sign=f186b54afeca081690c8c03c2573521c&t=1601797034",
  // 背景音乐是否自动播放
  "autoPlay": false,
  // 首页背景大图
  "image": "https://6465-dev-1goaza5i509ecff5-1258198969.tcb.qcloud.la/photos/cover.jpeg?sign=5ebe072ba028b0a2da8aa54fb82586a0&t=1601799069",
  // 结婚地点地址
  "address": "英国约克郡塞尔比镇",
  // 结婚地点经纬度
  "latitude": 38.446324,
  "longitude": 112.735426,
  // 新郎&新娘手机号
  "boyPhone": "13412344321",
  "girlPhone": "13698766789"
}

注意⚠️⚠️⚠️

  • 如遇到小程序页面显示异常,请关闭ES6转ES5功能

  • 由于小程序用户头像昵称获取规则调整现在已经不能通过调用wx.getUserProfile直接获取用户昵称和头像,所以Wedding-invitation按照官方要求修改,用户在首次使用祝福评论功能时会跳转到填写用户昵称和头像的页面,引导用户填写内容。

  • 需要把云开发的数据库所有表 和 存储 修改为自定义安全规则。规则如下:

xxx

  • 如果你是个人小程序留言评论页面会审核不通过,需要注释掉这个页面😭😭😭

wedding-invitation's People

Contributors

blogwy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

wedding-invitation's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.