index.vue 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <template>
  2. <view class="error-page">
  3. <image mode="heightFix" src="/static/image/error.png" />
  4. <view class="error-title">暂无权限</view>
  5. <view class="error-text">尊敬的用户,您没有本应用访问权限。本应用责任部门为重庆两江新区社会发展局,若您需使用本应用,请拨打联系电话023-67685085。</view>
  6. </view>
  7. </template>
  8. <script setup lang="ts">
  9. import { onUnload } from "@dcloudio/uni-app";
  10. import dd from 'gdt-jsapi';
  11. onUnload(() => {
  12. pageAwayEvent()
  13. })
  14. const pageAwayEvent = ()=> {
  15. dd.ready(() => {
  16. dd.closePage({ message: '返回工作台!' });
  17. })
  18. }
  19. </script>
  20. <style lang="scss">
  21. .error-page {
  22. background-color: #fff;
  23. height: calc(100vh - 200rpx);
  24. display: flex;
  25. align-items: center;
  26. flex-direction: column;
  27. padding: 190rpx 80rpx 0;
  28. .error-title {
  29. margin: 40rpx 0;
  30. font-size: 16px;
  31. line-height: 22px;
  32. font-weight: 400;
  33. color: #363A44;
  34. }
  35. .error-text {
  36. font-size: 14px;
  37. font-weight: 400;
  38. color: #B9BCBF;
  39. }
  40. }
  41. </style>