0ecb417e by zhangmeng

国旗

1 parent 62c8053d
......@@ -173,11 +173,13 @@
<el-table-column label="国家" prop="name">
<template #default="scope">
<div>
<span v-if="scope.row.code!='hk'" :class="`flag-icon flag-icon-${scope.row.code}`" />
<span v-if="scope.row.code!='tw'" :class="`flag-icon flag-icon-${scope.row.code}`" />
<span v-else class="flag-icon">
<img :src="hkImage" alt="" class="hkimg">
</span>
{{ language == 0 ? scope.row.name : scope.row.enName }}
<span>
{{ language == 0 ? scope.row.code != 'tw' ? scope.row.name : '中国台北' : scope.row.enName }}
</span>
</div>
</template>
</el-table-column>
......
......@@ -63,11 +63,13 @@
<el-table-column :label="language==0?'国家':'Country'" min-width="200" prop="name">
<template #default="scope">
<div>
<span v-if="scope.row.code!='hk'" :class="`flag-icon flag-icon-${scope.row.code}`" />
<span v-if="scope.row.code!='tw'" :class="`flag-icon flag-icon-${scope.row.code}`" />
<span v-else class="flag-icon">
<img :src="hkImage" alt="" class="hkimg">
</span>
{{ language == 0 ? scope.row.name : scope.row.enName }}
<span>
{{ language == 0 ? scope.row.code != 'tw' ? scope.row.name : '中国台北' : scope.row.enName }}
</span>
</div>
</template>
</el-table-column>
......
......@@ -4,7 +4,10 @@
<div class="mt20" />
<el-card class="mt20 mb20">
<h3 style="text-align: center">{{ language == 0 ? query.name : query.enName }}</h3>
<h3 style="text-align: center">
<!-- {{ // language == 0 ? query.name : query.enName }}-->
{{ language == 0 ? query.code != 'tw' ? query.name : '中国台北' : query.enName }}
</h3>
<div class="mt20" />
<el-table :data="rank" stripe>
<el-table-column :label="language==0?'组别':'Group'" align="center" min-width="200">
......@@ -21,11 +24,12 @@
<template #default="scope">
<div>
<!-- <span :class="`flag-icon flag-icon-${query.code}`" />-->
<span v-if="query.code!='hk'" :class="`flag-icon flag-icon-${query.code}`" />
<span v-if="query.code!='tw'" :class="`flag-icon flag-icon-${query.code}`" />
<span v-else class="flag-icon">
<img :src="hkImage" alt="" class="hkimg">
</span>
{{ language == 0 ? scope.row.countryName : scope.row.countryNameEn }}
{{ language == 0 ? query.code != 'tw' ? scope.row.name : '中国台北' : scope.row.enName }}
<!-- {{ language == 0 ? scope.row.countryName : scope.row.countryNameEn }}-->
</div>
</template>
</el-table-column>
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!