<template>
  <view class="wrapper">
    <image class="icon" src="/static/imgs/cart/no-data-icon.png"></image>
    <view class="text-row">
      <view class="">购物车是空的，快去</view>
      <view class="btn" @tap="nativeTo">逛逛</view>
    </view>
  </view>
</template>

<script>
import { back, go2, loginG2 } from '@/utils/hook.js'
export default {
  props: {
    title: {
      type: String,
      default: null
    }
  },
  data() {
    return {}
  },
  methods: {
    // 按钮点击事件
    nativeTo() {
      go2('store')
    }
  }
}
</script>

<style lang="scss">
.wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  vertical-align: bottom;
  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>
