2022年3月16日
摘要: 需求: 点击底部tab页 跳转到页面中时 弹窗提示 然后页面返回某一页 很简单的需求 uni.showToast({ icon: 'error', title: '页面开发中...', duration: 1000, mask: true }) setTimeout(()=>{ uni.switch 阅读全文
posted @ 2022-03-16 10:59 贲风 阅读(941) 评论(0) 推荐(0) 编辑
  2022年3月10日
摘要: 百度后发现是由于该组件的样式是全局样式 修改时不能加 scoped 否则就会无法生效 阅读全文
posted @ 2022-03-10 16:41 贲风 阅读(249) 评论(0) 推荐(0) 编辑
摘要: 需求: 点击时出现 弹出框 点击表单中的选择后 关闭 弹出框 在弹出框上 定义 ref eg: ref="popover" 点击选择后 this.$refs.popover.showPopper = false 就可以了~ 还是百度牛蛙 参考: /jer 阅读全文
posted @ 2022-03-10 11:40 贲风 阅读(380) 评论(0) 推荐(0) 编辑
  2022年3月1日
摘要: <script> var is_mobi = navigator.userAgent.toLowerCase().match(/(ipod|iphone|android|coolpad|mmp|smartphone|midp|wap|xoom|symbian|j2me|blackberry|winc 阅读全文
posted @ 2022-03-01 14:15 贲风 阅读(66) 评论(0) 推荐(0) 编辑
摘要: 操作思路: 触发事件时 一般是请求后 拿到pdf 的地址 然后通过navigator 跳转到新页面 同时页面传参url 在新页面写一个 web-view 标签 :src = "url" 即可 .then(res=>{ that.pdfUrl = res.data.data.url uni.navig 阅读全文
posted @ 2022-03-01 11:56 贲风 阅读(634) 评论(0) 推荐(0) 编辑
  2022年1月27日
摘要: 1. 先在 JS 文件中引入 import wxParse from '../../wxParse/wxParse.js'; 写相对路径 2. 获取到 html 字符串后随便赋个值 let str = xxx // xxx 即为 获取到的html字符串 str 为自定义名字 3. 使用 wxPars 阅读全文
posted @ 2022-01-27 13:17 贲风 阅读(371) 评论(0) 推荐(0) 编辑
  2022年1月14日
摘要: 问题原因:安装的 scss-loader 版本过高 (发现 stylus / less 也会有这个问题 不列举了) npm uninstall --save sass-loader // 卸载npm i -D sass-loader@8.x // 安装npm uninstall --save nod 阅读全文
posted @ 2022-01-14 11:32 贲风 阅读(2141) 评论(0) 推荐(0) 编辑
  2022年1月12日
摘要: // 原生复制功能 // 创建 - 赋值 - 增加 - 选择 - 执行浏览器复制 - 移除 let oInput = document.createElement('input') oInput.value = str document.body.appendChild(oInput) oInput 阅读全文
posted @ 2022-01-12 10:50 贲风 阅读(184) 评论(0) 推荐(0) 编辑
  2021年12月22日
摘要: https://blog.csdn.net/yan_hai_/article/details/115915204 阅读全文
posted @ 2021-12-22 09:24 贲风 阅读(204) 评论(0) 推荐(0) 编辑
摘要: https://www.jianshu.com/p/c35b12ffc0f1 阅读全文
posted @ 2021-12-22 09:11 贲风 阅读(94) 评论(0) 推荐(0) 编辑