摘要: base64Save(base64File){ const fsm = uni.getFileSystemManager();//获取全局文件管理器 let extName = base64File.match(/data\:\S+\/(\S+);/) if (extName) { //获取文件后缀 阅读全文
posted @ 2023-02-22 11:47 。啊月 阅读(27) 评论(0) 推荐(0) 编辑
摘要: 组件中,加一个isShow <popup-notice v-if="isShow" /> mounted 钩子中使用 this.isShow = false this.$nextTick(() => { setTimeout(() => { this.isShow = true }, 200) }) 阅读全文
posted @ 2022-07-01 09:35 。啊月 阅读(149) 评论(0) 推荐(0) 编辑
摘要: 效果图如下: 单个轨迹查询 多条轨迹查询 1.创建地图 <div class="mapBox"> <div id="container" style="width:87vw;height:85vh" /> </div> 2.创建自定义窗体 ,代码我放在最后面 import createInfoWin 阅读全文
posted @ 2022-06-23 10:32 。啊月 阅读(791) 评论(0) 推荐(0) 编辑
摘要: 1.官网实例 <u-navbar title="个人中心" :autoBack="true"> </u-navbar> 2. 实际使用 <u-navbar title="个人中心" :autoBack="true" placeholder> </u-navbar> 注意:一定要加上 placehol 阅读全文
posted @ 2022-06-23 09:38 。啊月 阅读(437) 评论(0) 推荐(0) 编辑
摘要: 关于 清除git 缓存 一、总结 git rm --cached "文件路径",不删除物理文件,仅将该文件从缓存中删除; git rm --f "文件路径",不仅将该文件从缓存中删除,还会将物理文件删除(不会回收到垃圾桶) 二、使用 清除git缓存 ,并更新 .gitignore 文件 git rm 阅读全文
posted @ 2022-06-23 09:25 。啊月 阅读(108) 评论(0) 推荐(0) 编辑
摘要: 第一步 cnpm install --save qrcode2 第二步 import QRCode from 'qrcode2' 第三步 <div id="qrcode" ref="qrcode" /> 第四步 lookqr(text) { this.dialogVisible = true /* 阅读全文
posted @ 2022-06-10 10:31 。啊月 阅读(651) 评论(0) 推荐(0) 编辑
摘要: 一、准备工作 1.准备npm 账号 2.写好的组件 二、上传组件 1.在写好的组件目录下 shift + 鼠标右键 ,打开 windows powerShell 窗口 2. npm init 创建,是否创建 y 执行完上面操作后将会生成 package.json 这个文件 3.因为我的组件是仅供内部 阅读全文
posted @ 2022-04-14 16:59 。啊月 阅读(558) 评论(0) 推荐(0) 编辑
摘要: 苹果手机获取手机电量和充电状态 var UIDevice = plus.ios.import('UIDevice') var dev = UIDevice.currentDevice() if (!dev.isBatteryMonitoringEnabled()) { dev.setBatteryM 阅读全文
posted @ 2022-04-12 14:32 。啊月 阅读(1053) 评论(0) 推荐(0) 编辑
摘要: 1. 如果要要使用中国地图,必须使用china.js。可以去其它官方地方下载,我的这个js改了点 /* eslint-disable no-undef */ (function(root, factory) { if (typeof define 'function' && define.amd) 阅读全文
posted @ 2022-04-11 15:12 。啊月 阅读(336) 评论(0) 推荐(0) 编辑
摘要: 1. 引用高德的js <script type="text/javascript" src="https://webapi.amap.com/maps?v=2.0&key=945bxxxxxxxe5432f&&plugin=AMap.Geocoder,AMap.AutoComplete,AMap.P 阅读全文
posted @ 2022-04-11 14:41 。啊月 阅读(755) 评论(0) 推荐(0) 编辑