![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
微信小程序
心满意足的知足
开博客是为了把自己学到的新知识写上去,就像是做笔记似的。
展开
-
微信小程序上传多张图片(组件),有参考其他博主的代码,进行了修改。
image-field/index.jsupload() { app.showLoading() WeAppService.upload(this.data.amount - this.data.list.length) .then((imageUrl) => { wx.hideLoading() let list = this.properties.list list.push(...image原创 2020-06-04 18:14:08 · 453 阅读 · 0 评论 -
分析微信小程序的登录和支付
分析微信小程序的登录和支付关于登录 在小程序初始化的时候调用两个方法,一个是检查登录态,另一个则是缓存用户信息。onLaunch checkSession()getUserInfo()检查登录态checkSession() 请求api,wx.checkSession成功则登录态还没过期,失败则重新请求登录。成功–>调用getLoginSession()方法,用于获取localStor原创 2017-09-22 11:52:16 · 1002 阅读 · 0 评论 -
微信小程序多图上传
选择图片wx.chooseImage 上传图片wx.uploadFile点击选择图片chooseImg: function () { var that = this; var selectImg = that.data.selectImg; wx.chooseImage({ count: 5, sizeType: ['original', 'co原创 2017-09-23 18:11:45 · 3481 阅读 · 2 评论