- 博客(3)
- 收藏
- 关注
原创 使用Promise封装uni.request请求
使用Promise封装uni.request请求 在项目下创建https文件夹 其中baseUrl.js存放的是基础路径 const baseUrl = 'https://xxx.xxx.xx.com'; const imgUrl ='https://xxxx.xxxx.com'; export { baseUrl,// 基础路径地址 imgUrl,//图片查看地址 }; request.js import { baseUrl } from './baseUrl.js' export func
2022-03-30 11:29:00 507
原创 uni-app层级遮挡
uni-app小程序层级遮挡问题 问题描述 点击工具栏失效并在banner处触发点击事件,但是问题只出现在部分苹果手机 原代码 .box { overflow: hidden; margin-top: -288rpx; position: relative; } 解决方法 把margin-top改写成transform .box { overflow: hidden; transform: translateY(-288rpx); position: relative
2022-03-30 10:43:14 656
原创 echarts绑定事件执行多次问题
echarts绑定事件执行多次问题 出现问题原因 视图更新原绑定事件未清除 解决方法 在前面加上off进行解绑 myCharts.off('click'); myCharts.on(‘click',function(params){})
2021-05-25 10:32:41 376
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人