<template>
  <view class="Hce">
    <image
      class="Hce-img"
      src="https://img.lkbang.net/xcx/empty-dark.6f03fbc0.png"
      mode="aspectFit"
    />
    <view v-if="$config('yxm')" class="Hce-text">
      <view class="Hce-tips">
        很遗憾，没有找到关于“
        <text class="Hce-tips__red">{{ keyWords }}</text>
        ”的搜索结果呢～
      </view>
      <view class="Hce-tips">
        小咩为你推荐其他相关商品，快去看看吧！
      </view>
    </view>
    <view v-else class="Hce-text">
      <view class="Hce-tips">
        很遗憾，没有找到关于“<text class="Hce-tips__red">{{ keyWords }}</text
        >”的搜索结果，请您尝试搜索其他商品哦！
      </view>
    </view>
  </view>
</template>

<script>
export default {
  props: {
    keyWords: {
      type: String,
      default: ""
    }
  }
};
</script>
<style lang="scss" scoped>
.Hce {
  font-size: 30rpx;
  color: #999;
  text-align: center;
  background-color: #f7f8fa;
  padding: 40rpx 24rpx;
  display: flex;
  align-items: center;
  &-img {
    width: 80rpx;
    height: 80rpx;
    margin-right: 8rpx;
  }
  &-text {
    font-size: 24rpx;
    font-weight: 400;
    color: #969799;
    line-height: 40rpx;
  }
  &-tips {
    &__red {
      color: $uni-color-primary;
    }
  }
}
</style>
