Are you sure you want to delete this task? Once this task is deleted, it cannot be recovered.
SongLove 8a3e440b7c | 8 months ago | |
---|---|---|
Pics | 11 months ago | |
cloudfunctions | 8 months ago | |
miniprogram | 11 months ago | |
.eslintrc.js | 1 year ago | |
.gitignore | 11 months ago | |
LICENSE | 1 year ago | |
README.md | 11 months ago | |
package-lock.json | 11 months ago | |
project.config.json | 11 months ago | |
project.private.config.json | 1 year ago |
这是使用云开发能力构建的情侣互动小程序,可以跟女朋友互动哦,其中使用了云开发基础能力的使用:
打个比方:
主页
完成小程序信息
和类目
管理
中的版本管理
与成员管理
中发布小程序体验版并邀请对象使用开发
中的开发工具
里下载微信开发者工具云开发
->按照提示开通云开发(这里可以选择免费的,不过限量,我开发用的多,6块够用了)MarketList
, MissionList
, StorageList
, UserList
UserList
中添加两个默认记录, 在两个记录中分别添加两个字段:字段 = _openid | 类型 = string | 值 = 先不填
字段 = credit | 类型 = number | 值 = 0
概览
选项->复制环境IDminiprogram/envList.js
将内容全部替换成如下,注意替换环境IDmodule.exports = {
envList: [{
envId:'上述步骤中你获得的环境ID (保留单引号)'
}]
}
cloudfunctions
中的每个文件夹并选择云函数云端安装依赖上传 (有点麻烦但是这是一定要做的)cloudfunctions/Install-WX-Server-SDK.bat
npm install --save wx-server-sdk@latest
missionlist
数据库集合->找自己和女朋友的_openid
变量并记录_openid
拷贝到云开发控制台UserList
数据集合里刚刚没填的_openid
变量中_openid
拷贝到miniprogram/app.js
里的_openidA
和_openidB
的值里(A是卡比,B是瓦豆)miniprogram/app.js
里把userA
和userB
改成自己和女朋友的名字miniprogram/pages/MainPage/index.js
和miniprogram/pages/MissionAdd/index.js
里把模板号换成自己想要的模板号cloudfunctions/information/index.js
里把UserA和UserB的openid值进行修改就能使用消息提醒功能了No Description
JavaScript SVG
Dear OpenI User
Thank you for your continuous support to the Openl Qizhi Community AI Collaboration Platform. In order to protect your usage rights and ensure network security, we updated the Openl Qizhi Community AI Collaboration Platform Usage Agreement in January 2024. The updated agreement specifies that users are prohibited from using intranet penetration tools. After you click "Agree and continue", you can continue to use our services. Thank you for your cooperation and understanding.
For more agreement content, please refer to the《Openl Qizhi Community AI Collaboration Platform Usage Agreement》