1、const info = wx.getSystemInfoSync()獲取設(shè)備信息
? ? 自定義導(dǎo)航欄的時(shí)候需要獲取當(dāng)前設(shè)備的狀態(tài)欄高度?statusBarHeight,常見的導(dǎo)航欄高度44px
2、購物車滑動刪除/收藏
? ? 這里可以scroll-view
3、wxs即在wxml里面引用js方法,像filters,format時(shí)間格式和數(shù)量格式
? ??<wxs src="../../utils/format.wxs" module="format"></wxs> 通過format.fn調(diào)用即可
4、小程序里沒有stop.propagation。用的catchtap阻止事件傳播