<script setup>
defineProps({
  noBg: {
    type: Boolean,
    default: false,
  }
});
</script>

<template>
  <view class="container">
    <image class="shooter2" src="https://static.shelingxingqiu.com/shootmini/static/shooter2.png" mode="widthFix" />
    <view class="bg-box">
      <image
        class="bg"
        v-if="!noBg"
        src="https://static.shelingxingqiu.com/shootmini/static/long-bubble-border.png"
        mode="widthFix"
      />
      <slot />
    </view>
  </view>
</template>

<style scoped>
.container {
  display: flex;
  align-items: center;
  padding: 0 26rpx 0 28rpx;
  margin-bottom: 14rpx;
  width: clac(100% - 54rpx);
}
.container .shooter2 {
  display: block;
  width: 133rpx;
  height: 144rpx;
}
.container .bg-box {
  color: #fff;
  font-size: 28rpx;
  position: relative;
  flex: 1;
  height: 128rpx;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.container .bg-box .bg {
  position: absolute;
  left: 0;
  right: 0;
  width: 100%;
}
</style>
