page-error-pop.vue 1016 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. <template>
  2. <u-popup v-model="show" mode="center" borderRadius="20" :mask-close-able="false">
  3. <view class="content">
  4. <view class="content-icon">
  5. <u-image width="100%" height="100%" src="/static/img/page-error-icon.png" />
  6. </view>
  7. <view class="content-text">{{ tipText }}</view>
  8. <view class="content-btn">
  9. <u-button type="primary" @click="confirm">确认</u-button>
  10. </view>
  11. </view>
  12. </u-popup>
  13. </template>
  14. <script>
  15. export default {
  16. props: {
  17. show: {
  18. type: Boolean,
  19. default: false
  20. },
  21. tipText: {
  22. type: String,
  23. default: '页面出错啦!!!'
  24. }
  25. },
  26. methods: {
  27. confirm() {
  28. this.$emit('pageErrorPopClose')
  29. }
  30. }
  31. };
  32. </script>
  33. <style lang="scss" scoped>
  34. .content {
  35. padding: 60rpx 40rpx;
  36. width: 590rpx;
  37. &-icon {
  38. width: 145rpx;
  39. height: 145rpx;
  40. margin: 10rpx auto 20rpx;
  41. }
  42. &-text {
  43. color: #999999;
  44. font-size: 32rpx;
  45. text-align: center;
  46. margin-bottom: 40rpx;
  47. }
  48. }
  49. </style>