<template>
  <BasePage>
    <div class="verif">
      <div class="search_box">
        <img src="/img/search.png" alt="">
        <input type="text" placeholder="输入用户账号/礼品券码搜索" v-if="type === 'verif'">
        <input type="text" placeholder="输入用户账号/会员卡号搜索" v-else>
      </div>

      <div class="list">
        <div class="item">
          <div class="t">
            <img class="icon" src="" alt="">
            <div>
              <span>用户123</span>
              <p>账号：123456789</p>
            </div>
            <span class="r tt" v-if="type === 'verif'">
              已核销
            </span>
            <span class="r pre" v-else>
              赠送额度: <b>500.00</b>
            </span>
          </div>
          <div class="info_box">
            <div>
              <span class="left">
                订单编号：
              </span>
              <span class="r rg">
                13125562015232322332326
                <img src="/img/copy_b.png" alt="">
              </span>
            </div>

            <div v-if="type === 'verif'">
              <span class="left">
                礼品券码:
              </span>
              <span class="r rg">
                13125562015232322332326
                <img src="/img/copy_b.png" alt="">
              </span>
            </div>

            <div v-if="type !== 'verif'">
              <span class="left">
                会员卡号：
              </span>
              <span class="r rg">
                13125562015232322332326
                <img src="/img/copy_b.png" alt="">
              </span>
            </div>

            <div v-if="type !== 'verif'">
              <span class="left">
                赠送时间：
              </span>
              <span class="r rg">
                13125562015232322332326
              </span>
            </div>

            <div v-if="type === 'verif'">
              <span class="left">
                核销时间:
              </span>
              <span class="r rg">
                13125562015232322332326
              </span>
            </div>
          </div>
        </div>
      </div>
    </div>
  </BasePage>
</template>

<script>
export default {
  data() {
    return {
      type: this.$route.query.type,
    }
  }
}
</script>