随笔分类 -  uni-app

摘要:1.描述下问题出现的场景: 我们的地步栏是自定义封装的,首页、我的页面、服务页都是自定义组件组件,uni-app中Home.vue就没有onShow方法 先贴一段tabbar代码 <Home v-if="current == 0"></Home> <text v-show="current == 1 阅读全文
posted @ 2021-03-11 11:54 囚龙棒主 阅读(549) 评论(0) 推荐(0)
摘要:1.定义一个SystemSevice类,封装一个errorHanlder方法,处理error interface ICustomError { message?:string title?:string alertType?:string } errorHanlder(e:Error | ICust 阅读全文
posted @ 2021-03-10 15:41 囚龙棒主 阅读(417) 评论(0) 推荐(0)
摘要:request.post('/xcb-oms/api/applyForOrders', { ownerId: UserLoginData.shipownerId ? UserLoginData.shipownerId : '', supplyId: supplyId, emptyShipNum: e 阅读全文
posted @ 2021-03-10 11:14 囚龙棒主 阅读(2080) 评论(0) 推荐(0)
摘要:1.uni.showLoading在使用后,uni.hideLoading再uni.showToast()之前调用,会出现短暂的一闪问题 解决方案: 去掉uni.hideLoading() 只保留uni.showToast()即可 阅读全文
posted @ 2021-03-09 16:05 囚龙棒主 阅读(4832) 评论(0) 推荐(0)