<template>
  <m-nav-bar title="地方专题"/>
  <van-cell
    v-for="(item, index) in 6"
    :key="item"
    center
    icon="location-o"
    title="单元格"
  >
    <template #icon>
      <div class="topic-index">{{ index + 1 }}</div>
    </template>
    <template #value>
      <div class="answerType">
        <div class="icon-box">
          <m-icon type="yyjj" />
          <span>语言讲解</span>
        </div>
        <div class="icon-box">
          <m-icon type="dxxz" />
          <span>单项测试</span>
        </div>
      </div>
    </template>
  </van-cell>
</template>

<script lang="ts" setup>
</script>

<style lang="scss" scoped>
.topic-index {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: #498ef5;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #ffffff;
  margin-right: 5px;
}
.answerType {
  display: flex;
  justify-content: space-between;
  .icon-box {
    display: flex;
    background-color: #498ef5;
    border-radius: 20px;
    padding: 2px 6px;
    align-items: center;
    span {
      color: #ffffff;
      font-size: 13px;
    }
  }
}
</style>
