Mixin.js 931 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. let app = getApp();
  2. export default {
  3. props: {
  4. themeModuleVoList: {
  5. type: Array,
  6. default: () => []
  7. },
  8. themeVo: {
  9. type: Object,
  10. default: () => {}
  11. },
  12. },
  13. data() {
  14. return {
  15. // defaultScrollTop: 0,
  16. // pageHeight: 0,
  17. // nav_status_Height: 0, // 头部栏高度 (状态栏高度 - 标题高度)
  18. };
  19. },
  20. beforeCreate() {},
  21. created() {
  22. // const {
  23. // statusBarHeight,
  24. // screenHeight,
  25. // viewHeight,
  26. // navHeight
  27. // } = app.globalData;
  28. // this.nav_status_Height = statusBarHeight + navHeight;
  29. // const h = uni.upx2px(this.topFixedHeight || 0);
  30. // this.defaultScrollTop = statusBarHeight + navHeight + h; // 头部综合高度(态栏高度 - 标题高度 - 搜索栏高度)
  31. // // 屏幕高度 - 头部综合高度
  32. // this.pageHeight = screenHeight - this.defaultScrollTop - 80;
  33. },
  34. onload() {
  35. },
  36. methods: {
  37. openKongKim(item) {
  38. this.$openPage(item)
  39. },
  40. },
  41. }