<template>
  <view class="wrapper">
    <image class="icon" src="/static/imgs/client-detail/no-data-icon.png"></image>
    <view class="text-row">
      <view>还没有纸品快去</view>
      <view class="btn" @tap="nativeTo">添加</view>
    </view>
  </view>
</template>

<script>
import { go2 } from '@/utils/hook.js'
export default {
  props: {
    title: {
      type: String,
      default: null
    }
  },
  data() {
    return {}
  },
  methods: {
    // 按钮点击事件
    nativeTo() {
      let params = {
        title: '添加纸品'
      }
      go2('add-paper', params)
    }
  }
}
</script>

<style lang="scss">
.wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin-top: 25%;
  .icon {
    width: 560rpx;
    height: 320rpx;
  }
  .text-row {
    display: flex;
    flex-direction: row;
    font-size: 30rpx;
    color: #333333;
    letter-spacing: 0;
    text-align: center;
    font-weight: 400;
  }
  .btn {
    font-size: 32rpx;
    color: #007aff;
    letter-spacing: 0;
    text-align: center;
    font-weight: 400;
    text-decoration: underline;
  }
}
</style>
