index.wpy 987 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. <style lang="less">
  2. .overflow-wrap {
  3. width: 100%;
  4. height: 100%;
  5. scroll-view {
  6. position: relative;
  7. width: 100%;
  8. height: 100%;
  9. z-index: 2;
  10. }
  11. }
  12. </style>
  13. </wxs>
  14. <template>
  15. <div class="overflow-wrap">
  16. <div @click="goEnv">
  17. 环境控制
  18. </div>
  19. <div @click="goPortrait">
  20. 节能评分
  21. </div>
  22. </div>
  23. </template>
  24. <script>
  25. import wepy from '@wepy/core';
  26. import eventHub from '@/common/eventHub';
  27. import { mapState } from '@wepy/x';
  28. import store from '@/store';
  29. import testMixin from '@/mixins/test';
  30. wepy.page({
  31. store,
  32. config: {
  33. navigationBarTitleText: 'test'
  34. },
  35. data: {},
  36. methods: {
  37. goEnv() {
  38. wx.navigateTo({
  39. url: '/packagesEnv/pages/officehome/index?spaceId=Sp1101080259b3510e26e7dd4dd9bf9784f06f3feb68'
  40. });
  41. },
  42. goPortrait() {
  43. wx.navigateTo({
  44. url: '/packagesEnv/pages/portrait/home'
  45. });
  46. }
  47. },
  48. created() {}
  49. });
  50. </script>
  51. <config>
  52. {
  53. navigationBarTitleText: '首页',
  54. usingComponents: {
  55. }
  56. }
  57. </config>