<template>
  <div class="back-box">
    <van-button class="back-btn" @click="back">返回直播间</van-button>
  </div>
</template>

<script>
export default {
  props: {
    url: {
      type: String,
      default: ''
    }
  },
  methods: {
    back() {
      window.location.href = this.url
    }
  }
}
</script>

<style lang="less" scoped>
.back-btn {
  border: 0;
  display: block;
  outline: none;
  background-color: #e95c53;
  color: #fff;
  margin: 0 auto;
  width: 180px;
  height: 44px;
  font-size: 14px;
  line-height: 44px;
  text-align: center;
}
</style>
