<template>
  <view class="shopdetailBtn">
    <view class="btn1" v-if="ifsp">{{btn1}}</view>
    <view class="btn2" v-else>{{btn1}}</view>
  </view>
</template>

<script>
export default {
  name: "shopdetailBtn",
  props: {
    ifsp: {
      type: Boolean
    },
    btn1: {
      type: String
    }
  },
  data() {
    return {
    };
  },
};
</script>

<style lang="scss">
.shopdetailBtn {
  .btn1 {
    width: 95upx;
    height: 44upx;
    font-size: 24upx;
    color: white;
    text-align: center;
    border-radius: 22upx;
    background-color: #df3348;
    line-height: 44upx;
  }
  .btn2 {
    width: 95upx;
    height: 44upx;
    font-size: 24upx;
    color: #444444;
    text-align: center;
    border-radius: 22upx;
    line-height: 44upx;
    border: 2upx solid rgba(247, 239, 239, 1);
  }
}
</style>