error.vue 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. <template>
  2. <view class="error-box">
  3. <view class="error-content">
  4. <view class="error-icon">
  5. <text class="iconfont">
  6. &#xe678;
  7. </text>
  8. </view>
  9. <view class="error-text">
  10. {{errorMsg}}
  11. </view>
  12. </view>
  13. </view>
  14. </template>
  15. <script>
  16. export default {
  17. name: "error",
  18. props: {},
  19. components: {},
  20. data() {
  21. return {
  22. errorMsg:'出错啦!~~'
  23. }
  24. },
  25. onLoad(query) {
  26. if(query.errorMsg!==undefined){
  27. this.errorMsg=decodeURI(query.errorMsg);
  28. }
  29. },
  30. mounted() {
  31. },
  32. methods: {}
  33. }
  34. </script>
  35. <style scoped lang="scss">
  36. @import url("/components/static/css/en-common.css") ;
  37. .error-box{
  38. width: 100vw;
  39. height: 100vh;
  40. background: #131E30;
  41. .error-content{
  42. padding-top: 260rpx;
  43. .error-icon{
  44. text-align: center;
  45. text{
  46. font-size: 240rpx;
  47. color: #7388a7;
  48. }
  49. }
  50. .error-text{
  51. font-size: 32rpx;
  52. text-align: center;
  53. font-weight: 600;
  54. color: #7388a7;
  55. }
  56. }
  57. }
  58. </style>