| 12345678910111213141516171819 | 
							
- export default Behavior({
 
-   behaviors: [],
 
-   properties: {},
 
-   data: {
 
-     distance: 0
 
-   },
 
-   attached(){
 
-     this.offsetMargin();
 
-   },
 
-   methods: {
 
-     offsetMargin() {
 
-       const { windowHeight, screenHeight } = wx.getSystemInfoSync();
 
-       this.setData({
 
-         distance: (screenHeight-windowHeight )
 
-       });
 
-     }
 
-   }
 
- });
 
 
  |