Kaynağa Gözat

院校列表细节完善

shilipojs 2 yıl önce
ebeveyn
işleme
ec4125b1a4

+ 33 - 6
src/views/career/plan/UniversitiesDetail.vue

@@ -34,12 +34,29 @@
           <el-col :span="16">
             <div class="f14 f-666 text-center fx-row">
               <el-col :span="24" v-for="item in iconList">
-                <img width="50px" :src="item.img" :alt="item.desc">
-                <p class="mt10">{{ item.value }}</p>
-              </el-col>
-              <el-col :span="24">
-                <img width="50px" src="https://pv4y-pc.youzy.cn/static/img/icon_shijian@2x.8463f33f.png" alt="">
-                <p class="mt10">{{ `${baseInfo.location} ${baseInfo.cityName}` }}</p>
+                <div v-if="Array.isArray(item.value)">
+                  <img width="50px" :src="item.img" :alt="item.desc">
+                  <el-popover
+                    placement="bottom"
+                    trigger="hover"
+                     >
+                    <div>
+                    <p v-for="i in item.value">
+                      {{i.type}}  {{i.number}}个
+                    </p>
+                  </div>
+                    <p class="mt10" slot="reference">
+                      {{ `${item.value[0].number }/ ${item.value[1].number}` }}
+                      <i class="el-icon-question"></i>
+                    </p>
+
+                  </el-popover>
+                </div>
+
+                 <div v-else>
+                  <img width="50px" :src="item.img" :alt="item.desc">
+                  <p class="mt10">{{ item.value }}</p>
+                </div>
               </el-col>
             </div>
             <div class="mt10  pl10 f14">
@@ -317,6 +334,16 @@ export default {
           img: 'https://pv4y-pc.youzy.cn/static/img/icon_shijian@2x.8463f33f.png',
           value: `${baseInfo.location} ${baseInfo.cityName}`,
           desc: '所处地'
+        },
+        {
+          img: 'https://pv4y-pc.youzy.cn/static/img/icon_shijian@2x.8463f33f.png',
+          value: baseInfo.pointsOfShuo,
+          desc: '硕士点'
+        },
+        {
+          img: 'https://pv4y-pc.youzy.cn/static/img/icon_shijian@2x.8463f33f.png',
+          value: baseInfo.pointsOfBo,
+          desc: '博士点'
         }
       ]
     }

+ 2 - 2
src/views/career/plan/compoents/RankUniversity.vue

@@ -71,7 +71,7 @@ export default {
       filter_form:{
         type:'',
         year:'',
-        name:''
+        collegeName:''
       },
       loading:false,
       pageForm:{
@@ -100,7 +100,7 @@ export default {
   },
   methods: {
     clickSuffix() {
-      this.filter_form.name = this.collegeName
+      this.filter_form.collegeName = this.collegeName
     },
      getRankingFilter() {
        rankingFilter().then(res =>{

+ 1 - 1
src/views/career/plan/compoents/UniversityStyle.vue

@@ -71,7 +71,7 @@ export default {
 
 <style scoped lang="scss">
 .univerty {
-  //overflow: hidden;
+  overflow: auto;
 }
 
 .image-item {