随笔分类 -  Weixin

摘要:wx.switchTab({ url: ‘../index/index’, success: function (e) { var page = getCurrentPages().pop(); if (page == undefined || page == null) return; page. 阅读全文
posted @ 2023-07-29 17:18 lezuw 阅读(398) 评论(0) 推荐(0)
摘要:wx.showToast({ title: '成功', icon: 'success', duration: 2000, success:function(){ console.log('haha'); setTimeout(function () { //要延时执行的代码 wx.switchTab 阅读全文
posted @ 2020-02-25 17:05 lezuw 阅读(567) 评论(0) 推荐(0)
摘要:问题1:网页授权access_token与分享的jssdk中的access_token一样吗? 答:不一样。网页授权access_token 是一次性的,而基础支持的access_token的是有时间限制的:7200s。 问题2:网页授权access_token与基础支持的access_token不 阅读全文
posted @ 2019-12-17 09:14 lezuw 阅读(477) 评论(0) 推荐(0)
摘要:/** * 用户点击右上角分享 */ onShareAppMessage: function(options) { let image = this.data.shareInfo.imagePath ? this.data.shareInfo.imagePath : '/assets/images/ 阅读全文
posted @ 2019-12-11 09:27 lezuw 阅读(286) 评论(0) 推荐(0)
摘要:官方文档更新了函数,但没有对文档进行更新。4.1配置函数已经由jssdk升级为js$app->js->setUrl($url); $app->js->config(['updateAppMessageShareData','updateTimelineShareData'], $debug = fa 阅读全文
posted @ 2019-07-10 10:23 lezuw 阅读(2125) 评论(0) 推荐(0)