<template>
  <div class="Store">
    <div class="store-list">
      <div class="store-item" v-for="(item, index) in 4" :key="index" hover-class="text-hover" @click="$linkTo('./StoreDetail')">
        <image src="https://cdn.cunwuyun.cn/wxmp/tianfuxing/avatar.png" />
        <div class="middle">
          <h2>实惠超市</h2>
          <p>Lv.1会员进店享受9折优惠</p>
        </div>
        <image class="right" src="https://cdn.cunwuyun.cn/wxmp/tianfuxing/ContentRightArrow@2x.png" />
      </div>
    </div>
  </div>
</template>

<script>
  export default {
    appName: '商家优惠',
    name: 'Store',
  }
</script>

<style lang="scss" scoped>
  .Store {
    margin: 0 32px;
    padding: 32px 0 20px;
  }

  .store-item {
    display: flex;
    align-items: center;
    margin-bottom: 24px;
    padding: 24px;
    background: #FFFFFF;
    box-shadow: 0 0 8px 0 rgba(0,0,0,0.02);
    border-radius: 16px;

    image {
      width: 112px;
      height: 112px;
      margin-right: 24px;
    }

    .middle {
      flex: 1;
    }

    .right {
      width: 32px;
      height: 32px;
      margin-right: 0;
    }

    h2 {
      line-height: 48px;
      margin-bottom: 8px;
      font-weight: 500;
      font-size: 34px;
      color: #333333;
    }

    p {
      font-size: 26px;
      color: #FFB94C;
    }
  }
</style>
