bx-placeholder-page.vue 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <script setup>
  2. import { computed } from 'vue'
  3. import { onLoad } from '@dcloudio/uni-app'
  4. import { PAGE_PATHS } from '@/config/api'
  5. import { getSafeAreaStyle } from '@/utils/safeArea'
  6. const safeAreaStyle = getSafeAreaStyle()
  7. const props = defineProps({
  8. defaultTitle: { type: String, default: '报销业务' }
  9. })
  10. const title = computed(() => props.defaultTitle)
  11. const goBack = () => {
  12. uni.navigateBack({
  13. fail: () => uni.reLaunch({ url: PAGE_PATHS.workbench })
  14. })
  15. }
  16. onLoad(() => {})
  17. </script>
  18. <template>
  19. <view class="mp-page">
  20. <view class="sq-nav-header" :style="safeAreaStyle">
  21. <view class="sq-nav-header__nav">
  22. <view class="sq-nav-header__left">
  23. <text class="sq-nav-header__back" @click="goBack">←</text>
  24. <text class="sq-nav-header__title">{{ title }}</text>
  25. </view>
  26. <view /><!-- 胶囊占位 -->
  27. </view>
  28. </view>
  29. <view class="mp-placeholder">
  30. <view class="mp-placeholder__icon" />
  31. <text class="mp-placeholder__title">{{ title }}</text>
  32. <text class="mp-placeholder__desc">
  33. 菜单与权限已开通。列表 / 表单 / 详情将按批次从 bx-mobile 迁入,接口复用现有报销 API。
  34. </text>
  35. </view>
  36. </view>
  37. </template>