You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

10 lines
570 B

1. 本项目是一个基于微信小程序的药品查询应用
2. 使用原生微信小程序+typescript+scss
3. figma设计稿的宽度是375px,1px=2rpx
4. 小程序的scss单位是rpx
5. 导航栏使用自定义导航栏,使用自定义组件 /components/navbar
6. 除了onLoad比寻存在外,其他生命周期函数,无须额外定义
7. onLoad函数中需要隐去getApp().waitLogin(),页面使用的接口需要在登录后调用
8. 生命周期函数和事件处理函数不应使用箭头函数
9. getApp()应提取到全局变量中,避免重复调用