Loading

随笔分类 -  微信小程序

摘要:完整错误 jsEnginScriptError: Component is not found in path "components/comp/comp.js" (using by pages/index/index); onAppRoute Error: Component is not fou 阅读全文
posted @ 2020-02-05 12:26 GoodCoder666 阅读(524) 评论(0) 推荐(0)
摘要:Collection.orderBy / Query.orderBy 指定查询排序条件 方法签名如下: function orderBy(fieldName: string, order: string): Collection | Query 方法接受一个必填字符串参数fieldName用于定义需 阅读全文
posted @ 2020-02-04 15:53 GoodCoder666 阅读(139) 评论(0) 推荐(0)
摘要:因为仅有onPullDownRefresh是不行的,需要配置: 如果是单个页面需要onPullDownRefresh,在对应页面的json文件中设置"enablePullDownRefresh": true,如: { "backgroundTextStyle": "light", "navigati 阅读全文
posted @ 2020-02-04 13:10 GoodCoder666 阅读(615) 评论(0) 推荐(0)
摘要:报错: -501007 invalid parameters | errMsg: Invalid Key Name: _openid 原因: 不能设置_openid,它是云服务器根据用户的openID自动设置的 解决: 不要设置openID 错误代码 wx.cloud.database().coll 阅读全文
posted @ 2020-02-03 21:07 GoodCoder666 阅读(96) 评论(0) 推荐(0)
摘要:如未开通云开发,请看这篇 基础库版本需为2.3.3以上,建议设为最新版本 新建云函数: 右击cloudfunctions,选择新建Node.js云函数 输入login 现在云开发控制台的样子: 此函数会保存openID至本地存储,并在出错时调用error: function saveOpenID(e 阅读全文
posted @ 2020-02-03 17:57 GoodCoder666 阅读(66) 评论(0) 推荐(0)
摘要:wx.showToast({ title: '成功', icon: 'fail', duration: 2000, success: func }) wx.showToast({ title: '成功', icon: 'fail', duration: 2000, success: res => { 阅读全文
posted @ 2020-02-02 15:43 GoodCoder666 阅读(33) 评论(0) 推荐(0)
摘要:错误 Uncaught (in promise) thirdScriptError errCode: -401003 api parameter type error | errMsg: parameter.data should be object instead of undefined; Er 阅读全文
posted @ 2020-02-02 11:17 GoodCoder666 阅读(100) 评论(0) 推荐(0)
摘要:为什么要自制键盘? 我最近在开发一款微信小程序,现在需要用户输入一个数字。 使用系统键盘带来的不便 如果使用系统键盘,有以下几个问题: 数字键太小,不方便; 无法阻止用户输入不合法字符(如:“&”); 小数点在一些手机上很难找到; 用户需要点击输入框; 无法控制按钮样式。 理想的自制键盘效果 123 阅读全文
posted @ 2020-01-31 10:30 GoodCoder666 阅读(394) 评论(0) 推荐(0)