<template>
  <view class="comp-goods-wrap">
    <view class="goods-text-title">
      <view class="line"></view>
      <view class="title-box pd-size"><text>{{ title }}</text>
      </view>
      <view class="line"></view>
      <view class="more" @tap="tapMore">
        <text>查看更多</text>
        <image src="http://139.9.103.171:1888/img/image/-arrow-img"></image>
      </view>
    </view>
  </view>
</template>
<script>
export default {
  props: {
    title: {
      type: String,
      default: ""
    }
  },
  methods: {
    tapMore() {
      this.$emit("more");
    }
  }
};
</script>

<style lang="scss">
.goods-text-title {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  font-size: 30upx;
  color: rgb(51, 51, 51);
  background: white;
  // margin-top: 20upx;
  // padding: 26upx 0;
  height: 80upx;
  line-height: 80upx;
  .title-box {
    display: flex;
    flex-direction: row;
    align-items: center;
    .icon {
      width: 80upx;
      height: 80upx;
    }
  }
}

.line {
  background: rgb(238, 238, 238);
  height: 2upx;
  width: 50upx;
}

.pd-size {
  padding: 0 30upx;
}

.more {
  position: absolute;
  right: 23upx;
  display: flex;
  justify-content: center;
  align-items: center;
  .more-arrow-img {
    width: 10upx;
    height: 18upx;
  }
}

.more text {
  color: #888;
  font-size: 20upx;
  padding-right: 10upx;
}
</style>
