摘要: 1、在 tabbar 组件 js文件的 ready 方法中加入以下代码 ready() { const query = wx.createSelectorQuery().in(this) query.select('.tab-bar').boundingClientRect((rect) => { 阅读全文
posted @ 2023-01-10 11:44 Rins 阅读(1622) 评论(0) 推荐(0) 编辑
摘要: 使用svg标签的时候,设置颜色 fill: #9374ff; 没有改变 <svg class="icon" aria-hidden="true"> <use xlink:href="#icon-arrowRight"></use> </svg> 解决 应该是图标自带了颜色,在文档中搜索一下svg标签 阅读全文
posted @ 2023-01-10 11:31 Rins 阅读(439) 评论(0) 推荐(0) 编辑
摘要: 项目有一个需求是从h5中跳转回小程序里,在小程序内报了这个错误 =='wx' is not defined== 尝试了下面两种方法都没有用 npm install weixin-js-sdk , 使用这个包没有效果 <script src="http://res.wx.qq.com/open/js/ 阅读全文
posted @ 2023-01-10 11:01 Rins 阅读(153) 评论(0) 推荐(0) 编辑