params-loss-pop.vue 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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/loss-params-icon.png" />
  6. </view>
  7. <view class="content-text">{{ tipText }}</view>
  8. <view class="content-btn">
  9. <u-button type="primary" @click="backHome">确认</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. backHome() {
  28. uni.switchTab({
  29. url: '/pages/index/index'
  30. });
  31. }
  32. }
  33. };
  34. </script>
  35. <style lang="scss" scoped>
  36. .content {
  37. padding: 60rpx 40rpx;
  38. width: 590rpx;
  39. &-icon {
  40. width: 348rpx;
  41. height: 395rpx;
  42. margin: 10rpx auto 0;
  43. }
  44. &-text {
  45. color: #999999;
  46. font-size: 32rpx;
  47. text-align: center;
  48. margin-bottom: 40rpx;
  49. }
  50. }
  51. </style>