<template>
  <view class="float-tab">
    <view class="float-tab-item bg-blue margin-bottom">
      <text class="cuIcon-homefill" style="font-size:22px;" @tap="toHome"></text>
    </view>
    <view class="float-tab-item bg-blue margin-bottom">
      <text class="cuIcon-servicefill" style="font-size:22px;"></text>
    </view>
    <!-- <view class="float-tab-item bg-blue">
      <button class="cu-btn round bg-blue cuIcon-share" open-type="share" style="font-size:22px;"></button>
    </view> -->
  </view>
</template>

<script>
export default {
  data () {
    return {
      key: 111
    }
  },
  methods: {
    toHome () {
      uni.switchTab({
        url: '/pages/index/index'
      })
    }
  }
}
</script>

<style lang="scss" scoped>
.float-tab {
  position: fixed;
  right: 10rpx;
  bottom: 160rpx;
  width: 40px;
  z-index: 99;
  .float-tab-item {
    height: 40px;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    button {
      width: 100%;
      height: 100%;
      line-height: 40px;
      border-radius: 50%;
      overflow: hidden;
      border: none;
    }
  }
}
</style>
