error.vue 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  1. <template>
  2. <view class="content">
  3. <!-- 个人信息 -->
  4. <view class="blur-bg-2"></view>
  5. <view class="userBox y-c">
  6. <view class="errorBox">
  7. <image src='/static/image/new/img_error.svg'></image>
  8. <view class="title">哎呀~出错了</view>
  9. <view class="text">请联系工作人员或稍后再试</view>
  10. </view>
  11. <view class="btnBox">
  12. <view class="btn" @click="goIndex">返回首页</view>
  13. </view>
  14. </view>
  15. </view>
  16. </template>
  17. <script>
  18. import {
  19. getUserInfoByUserId,
  20. getUserInfo
  21. } from '@/api/user.js';
  22. export default {
  23. data() {
  24. return {
  25. }
  26. },
  27. onLoad(option) {
  28. },
  29. onShow() {
  30. },
  31. methods: {
  32. //首页
  33. goIndex(){
  34. uni.reLaunch({
  35. url: '/pages/index/index',
  36. animationType: 'none',
  37. animationDuration: 2000
  38. })
  39. },
  40. }
  41. }
  42. </script>
  43. <style scoped lang="scss">
  44. page {
  45. background: #fff;
  46. font-size: 16px
  47. }
  48. .content {
  49. width: 100%;
  50. height: 100vh;
  51. background: #D8F6EF;
  52. padding: 28px;
  53. display: flex;
  54. flex-direction: column;
  55. .blur-bg-2 {
  56. width: 350px;
  57. height: 350px;
  58. background: #FFFDCC;
  59. // opacity: 0.47;
  60. filter: blur(200px);
  61. position: absolute;
  62. z-index: 1;
  63. top: 60px;
  64. right: calc(0px - 107px);
  65. pointer-events: none
  66. }
  67. }
  68. .userBox {
  69. flex: 1;
  70. background: rgba(255, 255, 255, 0.7);
  71. border-radius: 24px 24px 24px 24px;
  72. padding: 27px 40px;
  73. z-index: 9;
  74. .errorBox{
  75. display: flex;
  76. align-items: center;
  77. flex-direction: column;
  78. image{
  79. width: 485px;
  80. height: 485px;
  81. }
  82. .title{
  83. font-family: PingFang SC, PingFang SC;
  84. font-weight: 600;
  85. font-size: 32px;
  86. color: #327E6F;
  87. line-height: 48px;
  88. }
  89. .text{
  90. margin-top: 11px;
  91. font-family: PingFang SC, PingFang SC;
  92. font-weight: 500;
  93. font-size: 24px;
  94. color: #327E6F;
  95. line-height: 36px;
  96. }
  97. }
  98. .btnBox{
  99. display: flex;
  100. align-items: center;
  101. flex-direction: column;
  102. .btn {
  103. margin-top: 97px;
  104. display: flex;
  105. align-items: center;
  106. justify-content: center;
  107. width: 360px;
  108. height: 68px;
  109. background: #37C3A0;
  110. border-radius: 121px 121px 121px 121px;
  111. font-family: PingFang SC, PingFang SC;
  112. font-weight: 600;
  113. font-size: 28px;
  114. color: #FFFFFF;
  115. }
  116. }
  117. }
  118. @keyframes pulse {
  119. from { opacity: 0.8; }
  120. to { opacity: 1; }
  121. }
  122. </style>