<template>
  <div class="app-container">
    <div class="card-panel surplus-currency" :class="flag ? 'vip-box' : ''">
      <div class="_tit">
        <span> 会员banner图 </span>
        <div class="fr" v-if="flag">
          <div class="text-right">续期</div>
          <div>升级VIP</div>
        </div>
        <div class="text-right" style="margin-top: 50px" v-if="flag">
          会员剩余天数：89天
        </div>
      </div>
      <span class="pointer" style="font-size: 14px" v-if="flag">
        查看会员权益
      </span>
      <p class="text-center pointer" v-else>开通VIP</p>
    </div>

    <div class="card-panel surplus-currency">
      <span style="margin-right: 50px; font-size: 16px; font-weight: 700"
        >剩余创新币：98</span
      >
      <el-button class="x_btns">创新币充值</el-button>
    </div>

    <el-card style="margin-top: 20px">
      <template #header>
        <div>快捷功能</div>
      </template>
      <el-row :gutter="20">
        <el-col :span="3">
          <router-link to="/extension/release">
            <el-card shadow="never" class="text-center pointer">
              发布产品
            </el-card>
          </router-link>
        </el-col>
        <el-col :span="21">
          <el-card shadow="never" class="text-center">文字简介</el-card>
        </el-col>
      </el-row>
      <el-row :gutter="20" class="mt20">
        <el-col :span="3">
          <router-link to="/demand/released">
            <el-card shadow="never" class="text-center pointer">
              发布需求
            </el-card>
          </router-link>
        </el-col>
        <el-col :span="21">
          <el-card shadow="never" class="text-center">（技术需求）</el-card>
        </el-col>
      </el-row>
    </el-card>
  </div>
</template>

<script setup>
import { ref } from "vue";

const flag = ref(true);
</script>

<style lang="scss" scoped>
:deep(el-card__header) {
  padding-top: 0;
  padding-bottom: 0;
  div {
    height: 40px;
    line-height: 40px;
  }
}
.surplus-currency {
  margin-bottom: 20px;
  height: 150px;
  background-color: #f2f2f2;
  padding: 20px 50px;
  ._tit {
    font-size: 24px;
    font-weight: 700;
    color: #bebebe;
    div {
      font-size: 18px;
      color: #000;
    }
  }
}
.vip-box {
  height: auto;
  background-color: yellow;
}
</style>
