<template>
  <view class="shop-item-wrapper">
    <view class="item-left-wrap"></view>
    <view class="item-right-wrap">
      <view class="top">
        <view class="title u-line-1">肯德基</view>
        <view class="rate-box">
          <uni-rate allow-half v-model="rate" color="#ddd" activeColor="#ff5702" />
          <text class="rate-text">{{ rate }}</text>
        </view>
      </view>
      <view class="bottom">
        <view class="tag-item">西式快餐</view>
        <view class="tag-item">汉堡</view>
      </view>
    </view>
  </view>
</template>

<script lang="ts" setup>
import { ref } from 'vue'

const rate = ref(3.5)
</script>

<style lang="scss" scoped>
.shop-item-wrapper {
  width: 100%;
  box-sizing: border-box;
  padding: 30rpx;
  background-color: #fff;
  border-radius: 14rpx;
  display: flex;
  .item-left-wrap {
    width: 188rpx;
    height: 188rpx;
    background-color: #f6f7fb;
    border-radius: 14rpx;
    margin-right: 28rpx;
    image {
      width: 188rpx;
      height: 199rpx;
      border-radius: 14rpx;
    }
  }
  .item-right-wrap {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    .top {
      .title {
        font-size: 28rpx;
        color: #333;
        font-weight: 500;
        width: 400rpx;
        margin-bottom: 10rpx;
      }
      .rate-box {
        display: flex;
        align-items: flex-end;
        .rate-text {
          margin-left: 14rpx;
        }
      }
    }
    .bottom {
      display: flex;
      align-items: center;
      .tag-item {
        font-size: 26rpx;
        color: #999;
        margin-right: 22rpx;
      }
    }
  }
}
</style>
