index.js 545 B

1234567891011121314151617181920
  1. var sceneReadyBehavior = require('../../behavior-scene/scene-ready');
  2. var handleDecodedXML = require('../../behavior-scene/util').handleDecodedXML;
  3. var xmlCode = ``;
  4. Page({
  5. behaviors:[sceneReadyBehavior],
  6. data: {
  7. xmlCode: '<div class="codeWrap">' + handleDecodedXML(xmlCode) + '</div>',
  8. sysheight:600,
  9. },
  10. onLoad() {
  11. wx.getSystemInfo({//获取设备屏幕真实高度
  12. success: (result) => {
  13. var height = result.windowHeight;
  14. this.setData({
  15. sysheight:height
  16. });
  17. },
  18. });
  19. }
  20. });