随笔分类 - 小程序
摘要:参考 https://developers.weixin.qq.com/miniprogram/dev/devtools/npm.html 中的原理介绍 总的来说是因为js运行时的不一样 构建npm的过程,是为了让原始的npm包(放在node_modules里的)能够在小程序的运行时上跑起来: 类似
阅读全文
摘要:// 在app.js里写下以下代码 onLaunch () { if (wx.canIUse('getUpdateManager')) { const updateManager = wx.getUpdateManager() updateManager.onCheckForUpdate(funct
阅读全文
摘要:1.corpid、secret、agentid三个参数 企业微信小程序开发必备 获取方法https://jingyan.baidu.com/article/9f7e7ec01cb1172f28155483.html 2.获取access_token是调用企业微信API接口的第一步 获取方法https
阅读全文
摘要:实现效果:扫码后(小程序)呼叫对应管理员(app),小程序端唤起安卓端app,进行一对一通话 1.腾讯云音视频模式是:创建一个房间,然后让其他人加入,如果房间里没有人,则在0秒后销毁房间 2.扫描二维码后,进入通话页面,发送https请求(接口A)给后端,后端理由mq把消息下发给移动端app,移动端
阅读全文
摘要:wx.login({ success(res) { if (res.code) { let code = res.code let appid = "wxe6f1a9f821d5c821" let secret = "a47225a7bfaeb8a47839969c80a59a6f" //发起网络请
阅读全文
摘要:const innerAudioContext = wx.createInnerAudioContext() //创建实例 innerAudioContext.autoplay = true //是否自动 innerAudioContext.loop = true //是否循环 innerAudio
阅读全文
摘要:微信小程序里的定时器 clearTimeout(timerName) var timerName = setTimeout(function() { that.getParkList() }, 3000) 微信小程序里的循环定时器 var that = this; var times = 0 let
阅读全文
摘要:<view> <view class="ripple" style="{{changeStyle}}"></view> <view class="container" bindtouchstart="containerTap">测试</view> </view> .container{ width:
阅读全文
摘要:(踩坑填坑的过程) 1.合法域名,到现在为止,还只支持https。 可以在设置里勾选不校验域名以调通接口,真机调试打开调试模式也可以跳过微信的校验拦截。但上线之前务必要配置好合法域名。 a.配置域名的时候也可以这样配置: globalData: { userInfo: null, url: "htt
阅读全文