index.vue 668 B

1234567891011121314151617181920212223242526272829303132333435
  1. <template>
  2. <view class="morePage-v">
  3. <allCommonFlow ref="allCommonFlow" v-if="type == 1"></allCommonFlow>
  4. <allCommonMenus ref="allCommonMenus" v-if="type == 2"></allCommonMenus>
  5. </view>
  6. </template>
  7. <script>
  8. import allCommonFlow from './allCommonFlow.vue'
  9. import allCommonMenus from './allCommonMenus.vue'
  10. export default {
  11. components: {
  12. allCommonFlow,
  13. allCommonMenus
  14. },
  15. data() {
  16. return {
  17. type: '1'
  18. }
  19. },
  20. onLoad(e) {
  21. this.type = e?.type || '1'
  22. uni.setNavigationBarTitle({
  23. title: this.type == '1' ? '常用流程' : '常用菜单'
  24. })
  25. },
  26. methods: {}
  27. }
  28. </script>
  29. <style>
  30. page {
  31. background-color: #f0f2f6;
  32. }
  33. </style>