|
@@ -0,0 +1,218 @@
|
|
|
+<script setup>
|
|
|
+import{
|
|
|
+ apiOptiongroupList
|
|
|
+}from '@/api/question'
|
|
|
+import{ref} from "vue"
|
|
|
+let optionList = ref([]) //分组列表
|
|
|
+// 获取分组列表
|
|
|
+const getOptionList =async ()=>{
|
|
|
+ const res = await apiOptiongroupList()
|
|
|
+ if(res.code===200){
|
|
|
+ optionList.value = res.data||[]
|
|
|
+ }
|
|
|
+}
|
|
|
+getOptionList()
|
|
|
+</script>
|
|
|
+
|
|
|
+<template>
|
|
|
+ <div class="question-wrap">
|
|
|
+ <!-- 筛选框 -->
|
|
|
+ <div class="top-nav-wrap">
|
|
|
+ <div class="flex first-nav">
|
|
|
+ <div class="nav-move-box move-left"></div>
|
|
|
+ <div class="nav-move-box move-right"></div>
|
|
|
+ <div
|
|
|
+ :class="['item', item.research_group_name == selectFirstType && 'item-active']"
|
|
|
+ v-for="item in optionList"
|
|
|
+ :key="item.research_group_id"
|
|
|
+ >{{ item.research_group_name }}</div>
|
|
|
+ </div>
|
|
|
+ <!-- <div class="sub-nav">
|
|
|
+ <span
|
|
|
+ :class="['sub-item', item.chart_permission_id == selectSubType && 'sub-active']"
|
|
|
+ v-for="item in subTypeList.slice(0,6)"
|
|
|
+ :key="item.chart_permission_id"
|
|
|
+ @click="clickSubType(item)"
|
|
|
+ >{{ item.chart_permission_name }}</span>
|
|
|
+ <el-popover
|
|
|
+ :width="500"
|
|
|
+ trigger="click"
|
|
|
+ >
|
|
|
+ <template #reference>
|
|
|
+ <img v-if="subTypeList.length>6" style="width:16px;transform: rotate(90deg);cursor: pointer" src="@/assets/icon-more.png" alt="">
|
|
|
+ </template>
|
|
|
+ <template #default>
|
|
|
+ <div class="flex top-nav-filter-box">
|
|
|
+ <div
|
|
|
+ :class="['item',item.chart_permission_id == selectSubType&&'active']"
|
|
|
+ v-for="item in subTypeList.slice(6)"
|
|
|
+ :key="item.chart_permission_id"
|
|
|
+ @click="clickSubType(item)"
|
|
|
+ >{{item.chart_permission_name}}</div>
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
+ </el-popover>
|
|
|
+ </div> -->
|
|
|
+ </div>
|
|
|
+ <div class="question-list">
|
|
|
+ <div class="question-item">
|
|
|
+ <div class="question-info">
|
|
|
+ <span class="label">苯乙烯</span>
|
|
|
+ 疫情下全球苯乙烯市场有什么动荡?
|
|
|
+ </div>
|
|
|
+ <div class="question-time">
|
|
|
+ 提问时间:2022.02.02
|
|
|
+ </div>
|
|
|
+ <div class="question-audio">
|
|
|
+ <div class="audio-icon">播放</div>
|
|
|
+ <div class="audio-pic"></div>
|
|
|
+ <div class="audio-time">02:30</div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ </div>
|
|
|
+ <div class="question-item">
|
|
|
+ <div class="question-info">
|
|
|
+ <span class="label">苯乙烯</span>
|
|
|
+ 疫情下全球苯乙烯市场有什么动荡?
|
|
|
+ </div>
|
|
|
+ <div class="question-time">
|
|
|
+ 提问时间:2022.02.02
|
|
|
+ </div>
|
|
|
+ <div class="question-audio">
|
|
|
+ <div class="audio-icon">播放</div>
|
|
|
+ <div class="audio-pic"></div>
|
|
|
+ <div class="audio-time">02:30</div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+</template>
|
|
|
+
|
|
|
+<style scoped lang="scss">
|
|
|
+.question-wrap{
|
|
|
+ border-left: 1px solid #F2F2F2;
|
|
|
+ border-right: 1px solid #F2F2F2;
|
|
|
+ .top-nav-wrap {
|
|
|
+ position: fixed;
|
|
|
+ top: 60px;
|
|
|
+ z-index: 99;
|
|
|
+ background-color: #fff;
|
|
|
+ padding-top: 30px;
|
|
|
+ padding-bottom: 12px;
|
|
|
+ width: 100%;
|
|
|
+ box-shadow: 0px 4px 8px 1px rgba(0,0,0,0.0400);
|
|
|
+ .first-nav {
|
|
|
+ width: calc(100vw - 500px);
|
|
|
+ overflow-x: auto;
|
|
|
+ overflow-y: hidden;
|
|
|
+ position: relative;
|
|
|
+ &::-webkit-scrollbar{
|
|
|
+ display: none;
|
|
|
+ }
|
|
|
+ .item {
|
|
|
+ width: 140px;
|
|
|
+ height: 40px;
|
|
|
+ flex-shrink: 0;
|
|
|
+ background: #F6F6F6;
|
|
|
+ border-radius: 20px;
|
|
|
+ text-align: center;
|
|
|
+ line-height: 40px;
|
|
|
+ font-size: 16px;
|
|
|
+ margin-right: 30px;
|
|
|
+ cursor: pointer;
|
|
|
+ &:hover {
|
|
|
+ background: #FFFBF5;
|
|
|
+ color: #F3A52F;
|
|
|
+ border: 1px solid #F3A52F;
|
|
|
+ box-shadow: 0px 6px 7px 1px #FFF7EB;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .item-active {
|
|
|
+ background: #FFFBF5;
|
|
|
+ color: #F3A52F;
|
|
|
+ border: 1px solid #F3A52F;
|
|
|
+ box-shadow: 0px 6px 7px 1px #FFF7EB;
|
|
|
+ }
|
|
|
+ .see-more{
|
|
|
+ height: 20px;
|
|
|
+ flex-shrink: 0;
|
|
|
+ color: #f3a52f;
|
|
|
+ font-size: 16px;
|
|
|
+ position: relative;
|
|
|
+ top: 10px;
|
|
|
+ margin-left: 30px;
|
|
|
+ cursor: pointer;
|
|
|
+ z-index: 1;
|
|
|
+ &::after{
|
|
|
+ content: '';
|
|
|
+ display: inline-block;
|
|
|
+ width: 16px;
|
|
|
+ height: 16px;
|
|
|
+ background-image: url('../../assets/icon-more.png');
|
|
|
+ background-size: cover;
|
|
|
+ position: relative;
|
|
|
+ top: 2px;
|
|
|
+ left: 5px;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ @media screen and (max-width: 1350px){
|
|
|
+ .item{
|
|
|
+ width: 90px;
|
|
|
+ height: 30px;
|
|
|
+ line-height: 30px;
|
|
|
+ margin-right: 15px;
|
|
|
+ font-size: 14px;
|
|
|
+ }
|
|
|
+ .see-more{
|
|
|
+ font-size: 14px;
|
|
|
+ margin-left: 10px;
|
|
|
+ top: 5px;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ .sub-nav {
|
|
|
+ margin-top: 30px;
|
|
|
+ overflow-y: hidden;
|
|
|
+ .sub-item {
|
|
|
+ flex-shrink: 0;
|
|
|
+ margin-right: 30px;
|
|
|
+ font-size: 16px;
|
|
|
+ color: #666666;
|
|
|
+ cursor: pointer;
|
|
|
+ }
|
|
|
+ .sub-active {
|
|
|
+ color: #F3A52F;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
+ .question-list{
|
|
|
+ margin-top: 130px;
|
|
|
+ .question-item{
|
|
|
+ padding:25px 30px;
|
|
|
+ border-bottom: 1px solid #F2F2F2;
|
|
|
+ .question-info{
|
|
|
+ display: flex;
|
|
|
+ color: #333333;
|
|
|
+ font-weight: 600;
|
|
|
+ span.label{
|
|
|
+ display: inline-block;
|
|
|
+ width:68px;
|
|
|
+ height:24px;
|
|
|
+ line-height: 24px;
|
|
|
+ text-align: center;
|
|
|
+ background-color:#333333 ;
|
|
|
+ color:#F3A52F;
|
|
|
+ font-size: 12px;
|
|
|
+ font-weight: normal;
|
|
|
+ margin-right:14px;
|
|
|
+ border-radius: 34px;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
+</style>
|
|
|
+
|