index.vue 14.2 KB
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440
<template>
  <div>
    <div class="box forPc">
      <el-breadcrumb class="mt20 forPc" :separator-icon="ArrowRight">
        <el-breadcrumb-item :to="{ path: '/' }">
          <el-icon>
            <HomeFilled />
          </el-icon>
          首页
        </el-breadcrumb-item>
        <el-breadcrumb-item>反兴奋剂</el-breadcrumb-item>
      </el-breadcrumb>
      <el-card class="mt20 mb20" :body-style="{ padding: '0px' }">
        <div class="flexBody">
          <div class="leftMenu">
            <el-menu default-active="1" @select="menuSelect" @open="menuOpen">
              <el-menu-item index="1">
                <span>关于反兴奋剂</span>
              </el-menu-item>
              <el-menu-item index="2">
                <span>政策法规</span>
              </el-menu-item>
              <el-sub-menu index="3">
                <template #title>
                  <span>兴奋剂检查</span>
                </template>
                <el-menu-item index="3-1">兴奋剂检查流程</el-menu-item>
                <el-menu-item index="3-2">样本采集程序</el-menu-item>
                <el-menu-item index="3-3">尿检程序</el-menu-item>
                <el-menu-item index="3-4">血检程序</el-menu-item>
              </el-sub-menu>
              <el-sub-menu index="4">
                <template #title>
                  <span>兴奋剂违规</span>
                </template>
                <el-menu-item index="4-1">对违规的处罚</el-menu-item>
              </el-sub-menu>
              <el-sub-menu index="5">
                <template #title>
                  <span>禁用物质和方法</span>
                </template>
                <el-menu-item index="5-1">禁用清单</el-menu-item>
                <el-menu-item index="5-2">兴奋剂的危害</el-menu-item>
              </el-sub-menu>
              <el-sub-menu index="6">
                <template #title>
                  <span>治疗用药豁免(TUE)</span>
                </template>
                <el-menu-item index="6-1">TUE定义</el-menu-item>
                <el-menu-item index="6-2">申请流程</el-menu-item>
                <el-menu-item index="6-3">材料清单</el-menu-item>
                <el-menu-item index="6-4">相关规定</el-menu-item>
              </el-sub-menu>
              <el-menu-item index="7">
                <span>违规公布</span>
              </el-menu-item>
              <el-menu-item index="8">
                <span>新闻动态</span>
              </el-menu-item>
              <el-menu-item index="9">
                <span>宣传教育</span>
              </el-menu-item>
              <el-menu-item index="10">
                <span>反兴奋剂委员会</span>
              </el-menu-item>
            </el-menu>
          </div>

          <div class="infoPart">
            <h3>{{ nowTab.name }}</h3>

            <Menu1 v-if="activeName==1" />


            <Menu3_1 v-if="activeName=='3-1'" />
            <Menu3_2 v-if="activeName=='3-2'" />
            <Menu3_3 v-if="activeName=='3-3'" />
            <Menu3_4 v-if="activeName=='3-4'" />

            <Menu4 v-if="activeName=='4'" />
            <Menu4_1 v-if="activeName=='4-1'" />

            <Menu5_1 v-if="activeName=='5-1'" />
            <Menu5_2 v-if="activeName=='5-2'" />

            <Menu6_1 v-if="activeName=='6-1'" />
            <Menu6_2 v-if="activeName=='6-2'" />
            <Menu6_3 v-if="activeName=='6-3'" />
            <Menu6_4 v-if="activeName=='6-4'" />

            <NewsList v-show="showNewsList" ref="newsListRef" :sort-id="sortId" :code="code" />
            <Menu9 v-show="activeName==9" ref="menu9Ref" :sort-id="sortId" :code="code" />


          </div>
        </div>

      </el-card>

      <el-row class="mb20 linkrow" :gutter="20">
        <el-col :lg="8">
          <h2>违规举报</h2>
          <a href="http://www.chinada.cn/jbly/index.jhtml" target="_blank">
            <div class="imgbox">
              <img src="@/assets/v1/dope/link1.jpg">
            </div>
            <h3>违规举报</h3>
          </a>

        </el-col>
        <el-col :lg="8">
          <h2>教育准入</h2>
          <a href="http://cleanmedal.chinada.cn/jf/puresport/pagesController/login" target="_blank">
          <div class="imgbox">
            <img src="@/assets/v1/dope/link2.jpg">
          </div>
          <h3>反兴奋剂教育线上准入系统</h3>
          </a>

        </el-col>
        <el-col :lg="8">
          <h2>精彩图片</h2>
          <a href="https://www.taekwondo.org.cn/jctp/2020/0706/338027.html" target="_blank">
            <div class="imgbox">
              <img src="@/assets/v1/dope/link3.jpg">
            </div>
            <h3>纯洁体育</h3>
          </a>
        </el-col>
      </el-row>

      <el-card class="mb20">
        <el-row>
          <el-col :lg="6">
            <a href="https://www.wada-ama.org/" target="_blank">
            <img src="@/assets/v1/dope/drop1.jpg">
            <h3>世界反兴奋剂机构</h3>
            </a>
          </el-col>
          <el-col :lg="6">
            <a href="http://www.chinada.cn/" target="_blank">
            <img src="@/assets/v1/dope/drop2.jpg">
            <h3>中国反兴奋剂中心</h3>
            </a>
          </el-col>
          <el-col :lg="6">
            <a href="https://adams.wada-ama.org/adams/login.do?prompt=true&nopopup=true" target="_blank">
            <img src="@/assets/v1/dope/drop3.jpg">
            <h3>行踪信息申报系统 </h3>
            </a>
          </el-col>
          <el-col :lg="6">
            <a href="https://www.globaldro.com/Home" target="_blank">
            <img src="@/assets/v1/dope/drop4.jpg">
            <h3>全球用药查询系统</h3>
            </a>
          </el-col>
        </el-row>
      </el-card>
    </div>

    <div class="forWei">
      <div class="mb20" :body-style="{ padding: '0px' }">
        <div class="flexBody">
          <div class="leftMenu">
            <el-menu default-active="1" @select="menuSelect" @open="menuOpen">
              <el-menu-item index="1">
                <span>关于反兴奋剂</span>
              </el-menu-item>
              <el-menu-item index="2">
                <span>政策法规</span>
              </el-menu-item>
              <el-sub-menu index="3">
                <template #title>
                  <span>兴奋剂检查</span>
                </template>
                <el-menu-item index="3-1">兴奋剂检查流程</el-menu-item>
                <el-menu-item index="3-2">样本采集程序</el-menu-item>
                <el-menu-item index="3-3">尿检程序</el-menu-item>
                <el-menu-item index="3-4">血检程序</el-menu-item>
              </el-sub-menu>
              <el-sub-menu index="4">
                <template #title>
                  <span>兴奋剂违规</span>
                </template>
                <el-menu-item index="4-1">对违规的处罚</el-menu-item>
              </el-sub-menu>
              <el-sub-menu index="5">
                <template #title>
                  <span>禁用物质和方法</span>
                </template>
                <el-menu-item index="5-1">禁用清单</el-menu-item>
                <el-menu-item index="5-2">兴奋剂的危害</el-menu-item>
              </el-sub-menu>
              <el-sub-menu index="6">
                <template #title>
                  <span>治疗用药豁免(TUE)</span>
                </template>
                <el-menu-item index="6-1">TUE定义</el-menu-item>
                <el-menu-item index="6-2">申请流程</el-menu-item>
                <el-menu-item index="6-3">材料清单</el-menu-item>
                <el-menu-item index="6-4">相关规定</el-menu-item>
              </el-sub-menu>
              <el-menu-item index="7">
                <span>违规公布</span>
              </el-menu-item>
              <el-menu-item index="8">
                <span>新闻动态</span>
              </el-menu-item>
              <el-menu-item index="9">
                <span>宣传教育</span>
              </el-menu-item>
              <el-menu-item index="10">
                <span>反兴奋剂委员会</span>
              </el-menu-item>
            </el-menu>
          </div>

          <div class="infoPart">
            <h3>{{ nowTab.name }}</h3>

            <Menu1 v-if="activeName==1" />


            <Menu3_1 v-if="activeName=='3-1'" />
            <Menu3_2 v-if="activeName=='3-2'" />
            <Menu3_3 v-if="activeName=='3-3'" />
            <Menu3_4 v-if="activeName=='3-4'" />

            <Menu4 v-if="activeName=='4'" />
            <Menu4_1 v-if="activeName=='4-1'" />

            <Menu5_1 v-if="activeName=='5-1'" />
            <Menu5_2 v-if="activeName=='5-2'" />

            <Menu6_1 v-if="activeName=='6-1'" />
            <Menu6_2 v-if="activeName=='6-2'" />
            <Menu6_3 v-if="activeName=='6-3'" />
            <Menu6_4 v-if="activeName=='6-4'" />

            <NewsList v-show="showNewsList" ref="newsListRef" :sort-id="sortId" :code="code" />
            <Menu9 v-show="activeName==9" ref="menu9Ref" :sort-id="sortId" :code="code" />


          </div>
        </div>

      </div>

      <el-row class="mb20 linkrow" :gutter="20">
        <el-col :lg="8" :xs="8">
          <h2>违规举报</h2>
          <a href="http://www.chinada.cn/jbly/index.jhtml" target="_blank">
            <div class="imgbox">
              <img src="@/assets/v1/dope/link1.jpg">
            </div>
            <h3>违规举报</h3>
          </a>

        </el-col>
        <el-col :lg="8" :xs="8">
          <h2>教育准入</h2>
          <a href="http://cleanmedal.chinada.cn/jf/puresport/pagesController/login" target="_blank">
          <div class="imgbox">
            <img src="@/assets/v1/dope/link2.jpg">
          </div>
          <h3 class="esp">反兴奋剂教育线上准入系统</h3>
          </a>

        </el-col>
        <el-col :lg="8" :xs="8">
          <h2>精彩图片</h2>
          <a href="https://www.taekwondo.org.cn/jctp/2020/0706/338027.html" target="_blank">
            <div class="imgbox">
              <img src="@/assets/v1/dope/link3.jpg">
            </div>
            <h3>纯洁体育</h3>
          </a>
        </el-col>
      </el-row>

      <div class="mb20">
        <el-row class="linkrow">
          <el-col :lg="6" :xs="6">
            <a href="https://www.wada-ama.org/" target="_blank">
            <img src="@/assets/v1/dope/drop1.jpg">
            <h3>世界反兴奋剂机构</h3>
            </a>
          </el-col>
          <el-col :lg="6" :xs="6">
            <a href="http://www.chinada.cn/" target="_blank">
            <img src="@/assets/v1/dope/drop2.jpg">
            <h3>中国反兴奋剂中心</h3>
            </a>
          </el-col>
          <el-col :lg="6" :xs="6">
            <a href="https://adams.wada-ama.org/adams/login.do?prompt=true&nopopup=true" target="_blank">
            <img src="@/assets/v1/dope/drop3.jpg">
            <h3>行踪信息申报系统 </h3>
            </a>
          </el-col>
          <el-col :lg="6" :xs="6">
            <a href="https://www.globaldro.com/Home" target="_blank">
            <img src="@/assets/v1/dope/drop4.jpg">
            <h3>全球用药查询系统</h3>
            </a>
          </el-col>
        </el-row>
      </div>
    </div>


  </div>
</template>
<script setup>
import { ArrowRight } from '@element-plus/icons-vue'
import { nextTick, onMounted, ref } from 'vue'
import NewsList from './components/newList'
import Menu1 from './components/menu1'
import Menu3_1 from './components/menu3-1'
import Menu3_2 from './components/menu3-2'
import Menu3_3 from './components/menu3-3'
import Menu3_4 from './components/menu3-4'
import Menu4 from './components/menu4'
import Menu4_1 from './components/menu4-1'
import Menu5_1 from './components/menu5-1'
import Menu5_2 from './components/menu5-2'
import Menu6_1 from './components/menu6-1'
import Menu6_2 from './components/menu6-2'
import Menu6_3 from './components/menu6-3'
import Menu6_4 from './components/menu6-4'
import Menu9 from './components/menu9'
import { getDropsorts } from '@/apiPc/webSite'
import { getCurrentInstance } from '@vue/runtime-core'

const { proxy } = getCurrentInstance()
const activeName = ref(1)
const showNewsList = ref(false)
const list = ref([
  { name: '关于反兴奋剂' },
  { name: '政策法规' },
  { name: '兴奋剂检查' },
  { name: '兴奋剂违规' },
  { name: '禁用物质和方法' },
  { name: '治疗用药豁免(TUE)' },
  { name: '违规公布' },
  { name: '新闻动态' },
  { name: '宣传教育' },
  { name: '反兴奋剂委员会' }
])
const nowTab = ref({})
const sortId = ref(undefined)
const code = ref(undefined)
const kindList = ref([])
onMounted(() => {
  // getSorts()
  nowTab.value = list.value[0]
})
const getSorts = () => {
  getDropsorts().then(res => {
    kindList.value = res.data
  })
}

const menuSelect = (a, b) => {
  console.log(a, b)
  activeName.value = a
  switch (a) {
    case '2':
      sortId.value = '1688877715154087937'
      code.value = '70000000'
      showNewsList.value = true
      break
    case '7':
      sortId.value = '1689214311089905665'
      code.value = '70000001'
      showNewsList.value = true
      break
    case '8':
      sortId.value = '1689214353481736193'
      code.value = '70000002'
      showNewsList.value = true
      break
    case '9':
      sortId.value = '1689214517093146625'
      code.value = '70000004'
      showNewsList.value = false
      break
    case '10':
      sortId.value = '1689214427519590402'
      code.value = '70000003'
      showNewsList.value = true
      break
    default:
      showNewsList.value = false
  }
  nowTab.value = list.value[b[0] - 1]

  nextTick(() => {
    if (['2', '7', '8', '10'].indexOf(a) > -1) {
      proxy.$refs['newsListRef'].getList()
    }
    if(a=='9'){
      proxy.$refs['menu9Ref'].getList()

    }
  })
}
const menuOpen = (a, b) => {
  console.log(a, b)
  if (a == 4) {
    activeName.value = a
  }
  nowTab.value = list.value[a - 1]
}
</script>
<style lang="scss" scoped>
.flexBody {
  display: flex
}

.infoPart {
  padding: 20px;
  flex: 1;

  & > h3 {
    font-size: 24px;
    color: var(--el-color-primary);
  }
}
@media (max-width: 500px){
  .leftMenu{padding: 0;
    .el-menu-item{--el-menu-item-font-size:12px;
      --el-menu-item-height: 40px;
      padding: 0 5px;
    }
    :deep(.el-sub-menu__title){font-size: 12px;}
  }
}
</style>