小程序
nothing-coder
这个作者很懒,什么都没留下…
展开
-
微信小程序request请求封装 uni-app
微信小程序request请求封装 uni-applet requestCount = 0;// 带loading框的请求,默认post请求// 取tokenconst token = () => uni.getStorageSync('accountInfo').token;// console.log(token);export const AJAX = async (url,...原创 2019-08-02 10:19:42 · 2046 阅读 · 0 评论 -
uni-app 异步上传图片
uni-app 异步上传图片因为执行顺序的原因导致部分手机选中图片无法上传,或者上传完成拿不到返回值async upload(){const [err,{tempFilePaths}] = await uni.chooseImage({count: 9});this.imgList = this.imgList.concat(tempFilePaths);this.uploadTe...原创 2019-09-19 15:04:14 · 1943 阅读 · 0 评论