摘要: EdgeInsets.fromLTRB( getWidthPx(16), getWidthPx(12), getWidthPx(10), getWidthPx(24)) 设计图右边距是16需要改为间距原来是13,因为count数字导致水平间距需要改为为7;否则一行四个无法放下 备注: 原生开发记录一 阅读全文
posted @ 2021-03-30 14:31 囚龙棒主 阅读(55) 评论(0) 推荐(0)
摘要: 1.进入.gitconfig文件 vm ~/.gitconfig 阅读全文
posted @ 2021-03-30 11:24 囚龙棒主 阅读(43) 评论(0) 推荐(0)
摘要: 1.描述下问题出现的场景: 我们的地步栏是自定义封装的,首页、我的页面、服务页都是自定义组件组件,uni-app中Home.vue就没有onShow方法 先贴一段tabbar代码 <Home v-if="current == 0"></Home> <text v-show="current == 1 阅读全文
posted @ 2021-03-11 11:54 囚龙棒主 阅读(511) 评论(0) 推荐(0)
摘要: 1.定义一个SystemSevice类,封装一个errorHanlder方法,处理error interface ICustomError { message?:string title?:string alertType?:string } errorHanlder(e:Error | ICust 阅读全文
posted @ 2021-03-10 15:41 囚龙棒主 阅读(382) 评论(0) 推荐(0)
摘要: request.post('/xcb-oms/api/applyForOrders', { ownerId: UserLoginData.shipownerId ? UserLoginData.shipownerId : '', supplyId: supplyId, emptyShipNum: e 阅读全文
posted @ 2021-03-10 11:14 囚龙棒主 阅读(2004) 评论(0) 推荐(0)
摘要: 1.uni.showLoading在使用后,uni.hideLoading再uni.showToast()之前调用,会出现短暂的一闪问题 解决方案: 去掉uni.hideLoading() 只保留uni.showToast()即可 阅读全文
posted @ 2021-03-09 16:05 囚龙棒主 阅读(4743) 评论(0) 推荐(0)
摘要: 参考视频教程地址 https://www.bilibili.com/video/BV1iX4y1K72v?p=11 阅读全文
posted @ 2021-03-08 13:29 囚龙棒主 阅读(49) 评论(0) 推荐(0)
摘要: 1.token、data数据结合 mustache 解析成html字符串 2.webpack-dev-server wepback webpack-cli 环境配置webpack.config.js 3.第10课 parseTemplateToTokens方法封装 import Scanner fr 阅读全文
posted @ 2021-03-03 13:12 囚龙棒主 阅读(75) 评论(0) 推荐(0)
摘要: 代码很丑,见笑了。 一、curShip渲染的时候是null报错导致组件传值失败;处理方法:初始值设为空对象解决 二、cargoDetail是null,添加v-if判断 阅读全文
posted @ 2021-03-01 16:17 囚龙棒主 阅读(161) 评论(0) 推荐(0)
摘要: 1.PropTypes 2.DefaultProps TodoItem.propTypes={ index:PropTypes.number, delete:PropTypes.func, content:PropTypes.string, } 阅读全文
posted @ 2021-03-01 10:27 囚龙棒主 阅读(71) 评论(0) 推荐(0)