<template>
  <view class="view">
    <slot></slot>
    <view class="safe" v-if="isFit"></view>
  </view>
</template>

<script>
export default {
  name: 'cs-bottom-wrapper',
  data() {
    return {}
  },
  computed: {
    isFit() {
      return uni.getStorageSync('SYSTEM').includes('iOS')
    }
  }
}
</script>

<style lang="scss" scoped>
.view {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #fff;
  z-index: 99;
  border-top: 1px solid #f1f1f4;
  .safe {
    height: 40rpx;
  }
}
</style>
