个人案例
- 计时鸭
计时器功能+数据库统计图表可视化
清单计时器——计时鸭扫码体验
- 微信小程序 wx.getImageInfo 延迟执行了?
wx.getImageInfo({ src: url, complete: (res) => { console.log("这里也很重要", res) this.w = res.width; this.h = res.height; } });
2020-03-10 - 云函数如何根据用户openid 获取云数据库的自身数据?wxContext.OPENID怎么不能赋值
[图片] const cloud = require('wx-server-sdk') cloud.init() const db = cloud.database() const MAX_LIMIT = 100 //.doc(this.data.id_) exports.main = async(event, context) => { const wxContext = cloud.getWXContext() return await db.collection("userlist").where({ _id: wxContext.OPENID }).orderBy('time', 'desc').get({ success: function(res) { // return res } }); return { // data, event, openid: wxContext.OPENID, appid: wxContext.APPID, unionid: wxContext.UNIONID, } }
2020-02-08