随笔分类 - wxchat 微信小程序
摘要:/** wx.chooseLocation({ success: function (res) { console.log("签到", res) if (res.latitude && res.longitude) { that.setData({ 'signInObj.signInName': r
阅读全文
摘要:申请开发者密钥(key):申请密钥 开通webserviceAPI服务:控制台 -> key管理 -> 设置(使用该功能的key)-> 勾选webserviceAPI -> 保存 (小程序SDK需要用到webserviceAPI的部分服务,所以使用该功能的KEY需要具备相应的权限) 下载微信小程序J
阅读全文
摘要:https://youzan.github.io/vant-weapp/#/card
阅读全文
摘要:js import * as echarts from '../../../../components/ec-canvas/echarts.js'; let chart = null; const app = getApp(); Page({ data: { tabs: [ { key: 'tab1
阅读全文
摘要:小程序前端框架 https://www.wuxui.com/#/search-bar
阅读全文
摘要:短信验证码实现流程 1、构造手机验证码,生成一个6位的随机数字串;2、使用接口向短信平台发送手机号和验证码,然后短信平台再把验证码发送到制定手机号上3、将手机号验证码、操作时间存入Session,redis中,作为后面验证使用;4、接收用户填写的验证码、手机号及其他注册数据;5、对比提交的验证码与S
阅读全文
摘要:https://cloud.tencent.com/document/product/866/36214#.E7.A4.BA.E4.BE.8B1-.E5.90.8D.E7.89.87.E8.AF.86.E5.88.AB.E7.A4.BA.E4.BE.8B.E4.BB.A3.E7.A0.81<depe
阅读全文
摘要:"permission": { "scope.userLocation": { "desc": "你的位置信息将用于小程序位置接口的效果展示" } }
阅读全文
摘要:微信小程序在生活中有不少的用处,那么如何注册微信小程序呢?一起跟着我来一步步完成吧,特别的简单哦。 方法/步骤 先打开微信公众号,点立即注册,然后看到有四个类型,我们是要注册微信小程序,就在微信小程序那里圈上。 来到小程序注册页面,要求填写有效邮箱,身份证名和号码,都要如实填写。然后很快收到验证码,
阅读全文
摘要:var hasClike = false; if(hasClike){ return; } hasClike=true; wx.showLoading({ title: '正在加载中', }); ... complete:function(res){ hasClike=false; wx.hideL
阅读全文
摘要:https://www.jianshu.com/p/68ea2c53858f 1.https://natapp.cn/ https://natapp.cn/article/natapp_newbie
阅读全文
摘要:js data{ options3: [], exYsdmList:[], reply:false } /** * 选择颜色状态 */ exysdm() { const that = this; var exYsdmList= that.data.exYsdmList; $wuxSelect('#e
阅读全文
摘要:wx.showModal({ title: '提示', content: '确定要退出!', howCancel: true,//是否显示取消按钮 cancelText:"否",//默认是“取消” cancelColor:'skyblue',//取消文字的颜色 confirmText:"是",//默
阅读全文
摘要:传: 1. JSON.stringify(object); 转String 2.encodeURIComponent编码 var currentObj =encodeURIComponent(JSON.stringify(e.currentTarget.dataset.index)); wx.nav
阅读全文
摘要:js /** * 加载图片 */ onLoadImage:function(){ var that = this; wx.request({ url: that.data.httpUrl+'findImgDataByOne.do', method:'GET', responseType: 'arra
阅读全文
摘要:微信小程序var和let以及const的区别: 在JavaScript中有三种声明变量的方式:var、let、const。 var:声明全局变量,换句话理解就是,声明在for循环中的变量,跳出for循环同样可以使用。 for(var i=0;i<=1000;i++){ var sum=0; sum+
阅读全文
摘要:https://www.cnblogs.com/jiangtengteng/p/10531297.html
阅读全文
摘要:信小程序官方demo以及很多代码中会在函数中经常出现typeof cb == “function” && cb(that.globalData.userInfo)一句。开始很不明白,网上的回答大多也是一知半解,查了官方的api配合demo的代码,终于搞清楚了。代码本身的含义是,判断cb是不是函数类型
阅读全文
摘要:https://developers.weixin.qq.com/miniprogram/design/#%E6%8C%89%E9%92%AE
阅读全文
摘要:{"errcode":40029,"errmsg":"invalid code, hints: [ req_id: LEgfftXIRa-BU8_9 ]"} 过期的code {"session_key":"M00WVpiHL3Fdo3NOCF0efA==","openid":"omQk44_8-cN
阅读全文