![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
微信小程序
允乐.��
这个作者很懒,什么都没留下…
展开
-
微信小程序——通讯录索引实现
文章目录前言展示效果代码分析wxml总结前言实现通讯录索引的关键就是使用好3个触发事件 bindtouchstart、bindtouchend和bindtouchmove。展示效果代码分析bindtouchstart 显示字母栏选中效果 //点击开始 getIndex: function (e) { console.log('点击开始') console.log(e) this.setData({ showSus: true, tempI原创 2020-11-27 16:53:32 · 1303 阅读 · 2 评论 -
微信小程序——拍照、压缩转换base64(不留存照片在本地相册)
文章目录前言展示效果jswxmlcompress.js总结前言通常使用wx.chooseImage这个api去拍照时通常会留下照片在本地相册,在一些需求情况下不需要留存照片所以在这里我们使用另一个wx.createCameraContext()展示效果jsvar compress = require('../../../../libs/compress.js');const app = getApp()Page({ /** * 页面的初始数据 */ data: {原创 2020-11-26 10:45:45 · 1711 阅读 · 6 评论