- 云开发 用 skip() 没效果是什么原因能帮我看一下代码吗?数据还是获取第一条开始
var that = this; skp = that.data.List.length var skp = that.data.List.length .log(skp) console.log(skp) now = const now = new Date(); wx.hideToast(); wx.hideToast(); (that.data.riqi === if (that.data.riqi === '今天出发') { // 转换今天现在的时间毫秒 nowTimestamp = now.getTime(); const nowTimestamp = now.getTime(); tomorrowStart = (now.getFullYear(), now.getMonth(), now.getDate() + , , , ).getTime(); const tomorrowStart = new Date(now.getFullYear(), now.getMonth(), now.getDate() + 1, 0, 0, 0).getTime(); listCollection = db.collection( const listCollection = db.collection('List') watcher = listCollection const watcher = listCollection .orderBy(, .orderBy('time', 'desc') .where({ .where({ : that.data.type, type: that.data.type, : _.gte(nowTimestamp).and(_.lt(tomorrowStart)) riqitime: _.gte(nowTimestamp).and(_.lt(tomorrowStart)) }) .skip(skp) .skip(skp) .watch({ .watch({ : onChange: function (snapshot) { post = snapshot.docs; var post = snapshot.docs; that.setData({ that.setData({ : that.data.List.concat(post).map( List: that.data.List.concat(post).map(maps => { maps.tim = that.formatTime(maps.time); maps.tim = that.formatTime(maps.time); maps.timses = that.formatTime1(maps.riqitime); maps.timses = that.formatTime1(maps.riqitime); maps.riqixiaoshi = that.riqixiaoshi(maps.time); maps.riqixiaoshi = that.riqixiaoshi(maps.time); maps; return maps; }) }); },}, : onError: function (err) {} }); } [图片]
2024-03-19 - 云开发用pull想移除同样的对象为啥那么不生效?
[图片] [图片]
2024-03-18 - geometry 云开发获取用户经纬度和数据的经纬度报错怎么解决各位?
[图片][图片][图片] [图片] 把或者错误怎么解决
2024-01-20 - 云开发地理位置排序用户附近到远为什么一直报错或者不生效 太难了
[图片] [图片]
2024-01-20 - canvas加载第三方字体在电脑端很正常可是在手机端一直报错
https://developers.weixin.qq.com/miniprogram/dev/api/ui/font/wx.loadFontFace.html App({ onLaunch: function (options) { wx.loadFontFace({ global:true, family: 'ziti', source:'TTF', scopes:['webview','native'], source: 'url("https://636c-cloud1-3gqurxmi0fd1f3e4-1323164857.tcb.qcloud.la/%E6%88%91%E7%9A%84%E6%96%87%E6%A1%A3/ziti.ttf?sign=c5c1db73e357332db854dc014264b671&")', //自己的云开发储存下载url success: res=>{ console.log(11111111111111,res) } }) } }) 我把这个代码我想在canvas上用第三方字体 , 在电脑端特别正常识别第三方字体样式有效果 , 但是我手机苹果端就不识别了还是默认字体样式,在网上找了很多方法多没有解决,该怎么办都不知道 还有 把自己加载一直报错自己的云开发url还报错了 [图片] [图片] 不知道在哪里出问题
2024-01-12