matchInfo.vue 5.89 KB
<template>
  <div style="padding: 0 20px 20px" v-if="language==0">
    <!--赛事详情-->
    <div class="indexTitle">
      <h3 class="leftboderTT">组织机构</h3>
    </div>
    <div class="xzbox" v-html="form.ocOrganizer">
    </div>
    <div class="indexTitle"><h3 class="leftboderTT">报名须知</h3></div>
    <div class="xzbox">
      <div v-html="form.signKnow"></div>
      <el-link v-if="form.signKnowUrl" type="primary" :href="fillImgUrl(JSON.parse(form.signKnowUrl)[0]?.url)" target="_blank">
        <el-icon :size="20">
          <Download />
        </el-icon>
        {{ JSON.parse(form.signKnowUrl)[0]?.name }}
      </el-link>
    </div>
    <div class="indexTitle"><h3 class="leftboderTT">免责声明</h3></div>
    <div class="xzbox">
      <el-link v-if="form.disclaimerUrl" type="primary" :href="fillImgUrl(JSON.parse(form.disclaimerUrl)[0]?.url)" target="_blank">
        <el-icon :size="20">
          <Download />
        </el-icon>
        {{ JSON.parse(form.disclaimerUrl)[0]?.name }}
      </el-link>
    </div>
    <div class="indexTitle"><h3 class="leftboderTT">赛事规程</h3></div>
    <div class="xzbox">

      <el-link v-if="form.ruleUrl" type="primary" :href="fillImgUrl(JSON.parse(form.ruleUrl)[0]?.url)" target="_blank">
        <el-icon :size="20">
          <Download />
        </el-icon>
        {{ JSON.parse(form.ruleUrl)[0]?.name }}
      </el-link>
    </div>
    <div class="indexTitle" v-if="form.type==1&&form.cptProjectList?.length > 0"><h3 class="leftboderTT">竞赛项目</h3></div>
    <div class="collapsebox" v-if="form.type==1&&form.cptProjectList?.length > 0">
      <div class="pd20">
        <table class="table" cellspacing="0" cellpadding="0" v-if="form.cptProjectList?.length > 0">
          <tr>
            <th>组别编号</th>
            <th>组别名称</th>
            <th>舞种</th>
            <th>舞种明细</th>
            <th>参赛性别</th>
            <th>参赛年龄</th>
            <th>服务费(元)</th>
          </tr>
          <tr  v-for="(p,index) in form.cptProjectList" :key="index">
            <td>{{ p.code }}</td>
            <td>{{ p.name }}</td>
            <td>{{ p.danceType }}</td>
            <td>{{ p.danceTypeDetailStr }}</td>
            <td>{{ p.playTypeStr }}</td>
            <td>{{ p.birthPeriod }}</td>
            <td>{{ language==0?'¥':'€' }}{{ p.serviceFee }}</td>
          </tr>
        </table>
      </div>
      <el-empty :image="`/img/order_no.png`" :image-size="228"  v-if="form.cptProjectList?.length == 0" description=""/>
    </div>
  </div>
  <div style="padding: 0 20px 20px" v-else>
    <!--赛事详情-->
    <div class="indexTitle">
      <h3 class="leftboderTT">Organization</h3>
    </div>
    <div class="xzbox" v-html="form.ocOrganizer">
    </div>
    <div class="indexTitle"><h3 class="leftboderTT">Notes</h3></div>
    <div class="xzbox">
      <div v-html="form.signKnow"></div>
      <el-link v-if="form.signKnowUrl" type="primary" :href="fillImgUrl(JSON.parse(form.signKnowUrl)[0]?.url)" target="_blank">
        <el-icon :size="20">
          <Download />
        </el-icon>
        {{ JSON.parse(form.signKnowUrl)[0]?.name }}
      </el-link>
    </div>
    <div class="indexTitle"><h3 class="leftboderTT">Disclaimers</h3></div>
    <div class="xzbox">
      <el-link v-if="form.disclaimerUrl" type="primary" :href="fillImgUrl(JSON.parse(form.disclaimerUrl)[0]?.url)" target="_blank">
        <el-icon :size="20">
          <Download />
        </el-icon>
        {{ JSON.parse(form.disclaimerUrl)[0]?.name }}
      </el-link>
    </div>

    <div class="indexTitle"><h3 class="leftboderTT">Competition Regulations</h3></div>
    <div class="xzbox">
      <div v-html="form.ruleContent">

      </div>
      <el-link v-if="form.ruleUrl" type="primary" :href="fillImgUrl(JSON.parse(form.ruleUrl)[0]?.url)" target="_blank">
        <el-icon :size="20">
          <Download />
        </el-icon>
        {{ JSON.parse(form.ruleUrl)[0]?.name }}
      </el-link>
    </div>
    <div class="indexTitle" v-if="form.type==1 && form.cptProjectList?.length > 0"><h3 class="leftboderTT">Event settings</h3></div>
    <div class="collapsebox" v-if="form.type==1 && form.cptProjectList?.length > 0">

      <div class="pd20">
        <table class="table" cellspacing="0" cellpadding="0" v-if="form.cptProjectList?.length > 0">
          <tr>
            <th>Group code</th>
            <th>Group</th>
            <th>Dance Style</th>
            <th>Dance Detail</th>
            <th>Sex</th>
            <th>Age</th>
            <th>Registration Fee</th>
          </tr>
          <tr  v-for="(p,index) in form.cptProjectList" :key="index">
            <td>{{ p.code }}</td>
            <td>{{ p.name }}</td>
            <td>{{ p.danceType }}</td>
            <td>{{ p.danceTypeDetailStr }}</td>
            <td>{{ p.playTypeStr }}</td>
            <td>{{ p.birthPeriod }}</td>
            <td>{{ language==0?'¥':'€' }}{{ p.serviceFee }}</td>
          </tr>
        </table>
      </div>
      <el-empty :image="`/img/order_no.png`" :image-size="228"  v-if="form.cptProjectList?.length == 0" description=" "/>
    </div>
  </div>
</template>

<script setup>
import {ref} from "vue";
import cache from "@/plugins/cache";

const language = ref(cache.local.get('language') || 0)
const props = defineProps({
  form:{
    type:Object,
    required:true
  }
})
</script>

<style scoped lang="scss">
.indexTitle{margin: 20px 0 12px;
  h3{
    font-size: 20px;
    color:var(--el-color-primary);
  }
}
.table{width: 100%;border-left: 1px solid #e1e1e1;border-top:1px solid #e1e1e1;
  th{background: #eee;padding: 6px 10px;
    border-right: 1px solid #e1e1e1;
    border-bottom:1px solid #e1e1e1;
    font-size: 15px;
  }
  td{padding: 6px 10px;border-right: 1px solid #e1e1e1;font-size: 15px;
    border-bottom:1px solid #e1e1e1;vertical-align: middle;text-align: center;
    span{margin-right: 10px}
    span::after{content: ','}
    span:last-child::after{content: ''}
  }
}
</style>