<template>
  <view class="chooseaddrBtn1" @click="sub">
      <img src="../../static/img/addr-add.png" alt="" class="add" v-if="ifadd">
    <text>添加联系人信息</text>
  </view>
</template>
<script>
export default {
  name: "chooseaddrBtn1",
  props:{
    ifadd:{
      type:Boolean
    }
  },
  methods:{
    sub(){
      this.$emit("sub",true)
    }
  }
  
};  
// 判断是否有加号图片
</script>
<style lang="scss" scoped>
.chooseaddrBtn1 {
  width: 690upx;
  height: 82upx;
  text-align: center;
  line-height: 82upx;
  font-size: 30upx;
  border: 2px solid rgba(223, 51, 72, 1);
  color: #df3348;
  display: flex;
  justify-content: center;
  .add{
      width: 26upx;
      height: 26upx;
      margin: auto 0;
      margin-right: 12upx;
  }
}
</style>