matchInfo.vue 4.42 KB
<template>
  <div v-if="language==0" style="padding: 0 20px 20px">
    <!--赛事详情-->
    <div class="indexTitle">
      <h3 class="leftboderTT">组织机构</h3>
    </div>
    <div class="xzbox" v-html="form.ocOrganizer" />
    <div v-if="form.languageSource!='100'" class="indexTitle"><h3 class="leftboderTT">报名须知</h3></div>
    <div v-if="form.languageSource!='100'" class="xzbox">
      <div v-html="form.signKnow" />
      <div v-if="form.signKnowUrl">
        <el-link
          v-for="(item,index) in JSON.parse(form.signKnowUrl)" :key="index" :href="fillImgUrl(item.url)"
          target="_blank" type="primary"
        >
          <el-icon :size="20">
            <Download />
          </el-icon>
          {{ item.name }}
        </el-link>
      </div>
    </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 v-if="form.languageSource=='100'" class="indexTitle"><h3 class="leftboderTT">赛事规程</h3></div>
    <div v-if="form.languageSource=='100'" class="xzbox">
      <div v-html="form.ruleContent" />
      <el-link v-if="form.ruleUrl" :href="fillImgUrl(JSON.parse(form.ruleUrl)[0]?.url)" target="_blank" type="primary">
        <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 v-if="form.type==1&&form.cptProjectList?.length > 0">-->
    
    <!--    </div>-->
  
  </div>
  <div v-else style="padding: 0 20px 20px">
    <!--赛事详情-->
    <div class="indexTitle">
      <h3 class="leftboderTT">Organization</h3>
    </div>
    <div class="xzbox" v-html="form.ocOrganizer" />
    <div class="indexTitle"><h3 class="leftboderTT">Notes</h3></div>
    <div class="xzbox">
      <div v-html="form.signKnow" />
      <el-link
        v-if="form.signKnowUrl" :href="fillImgUrl(JSON.parse(form.signKnowUrl)[0]?.url)" target="_blank"
        type="primary"
      >
        <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 v-if="form.type==1 && form.cptProjectList?.length > 0" class="indexTitle"><h3 class="leftboderTT">Event
      settings</h3></div>
    <div v-if="form.type==1 && form.cptProjectList?.length > 0">
      <match-info-project-list :is-national="form.languageSource!='100'" :match-id="form.id" />
    </div>
  </div>
</template>

<script setup>
import { ref } from 'vue'
import MatchInfoProjectList from '@/viewsPc/match/components/matchInfo-projectList'
import { useStorage } from '@vueuse/core/index'
import { onMounted } from '@vue/runtime-core'

const language = useStorage('language', 0)

const props = defineProps({
  form: {
    type: Object,
    required: true
  }
})


</script>

<style lang="scss" scoped>
.indexTitle {
  margin: 20px 0 12px;
  
  h3 {
    font-size: 20px;
    color: var(--el-color-primary);
  }
}

</style>