随笔分类 - uniapp
摘要:使用uni.getFileSystemManager().writeFile去下载base64图片<view class="share-btn" @click="saveAlbum()">保存相册分享</view>//保存相册 saveAlbum(){ uni.getSetting({//获取用户的
阅读全文
摘要://APP.vuegetUser(){//获取客户端标识 消息推送 // #ifdef APP-PLUS var pinf = plus.push.getClientInfo(); var cid = pinf.clientid; //客户端标识 console.log('cid:' + cid);
阅读全文
摘要:要使用第三方百度地图,首先要去百度地图官方申请一个密钥,之后引入百度地图的API文件,参考使用文档即可开发使用。而在uniapp中是没法直接引入百度地图API文件的,我们要结合uniapp中的web-view组件来使用。 web-view 是一个 web 浏览器组件,可以用来承载网页的容器,会自动铺
阅读全文
摘要:一、初始化canvas画布 通过createCanvasContext方法来创建画布 var _this = this; _this.ctx = uni.createCanvasContext('canvasid', this); const C_W = 650; //canvas宽度,使用的手机屏
阅读全文
摘要://scroll-x="true" || scroll-y="true" <view class="scroll-view"> <scroll-view class="scroll_box" scroll-x="true" scroll-left="0"> <view class="scroll_b
阅读全文