index.js 467 B

12345678910111213141516171819202122232425262728
  1. Component({
  2. data: {
  3. visible: true,
  4. },
  5. attached: function () {
  6. const systemInfo = wx.getSystemInfoSync();
  7. this.setData({
  8. systemInfo: {
  9. width: systemInfo.windowWidth,
  10. height: systemInfo.windowHeight
  11. },
  12. })
  13. },
  14. ready: function () {
  15. const that = this;
  16. setTimeout(() => {
  17. that.setData({
  18. visible: false
  19. })
  20. }, 1000)
  21. },
  22. methods: {
  23. //锁屏
  24. touchmove: function () {
  25. }
  26. },
  27. })