Commit 0a30320f authored by anxixi's avatar anxixi

pc搜索等新功能及优化

parent 5e3e10b2
......@@ -372,7 +372,7 @@
<img v-if="index == 2" style="width: 24px;height: 22px;margin-top: 5px;" src="../../../assets/img/rankingindex3.png" alt="">
<p style="line-height: 34px;width: 24px;text-align: center;" v-if="index>2">{{index+1}}</p>
<img @click="tohome(item.empId)" style="height: 34px;width: 34px;border-radius: 50%;margin: 0 20px;cursor: pointer;" :src="item.empLogo&&item.empLogo.length>1?item.empLogo:require('../../../assets/img/defaultlogo.png')" alt="">
<p class="ellipsisFont1" style="width: 90px;height: 34px;overflow: hidden;line-height: 34px;">{{item.nickName}}</p>
<p class="ellipsisFont1" @click="tohome(item.empId)" style="width: 90px;height: 34px;overflow: hidden;line-height: 34px;cursor: pointer;">{{item.nickName}}</p>
</div>
<div class="gendisplay" style="width: calc(100% - 210px);text-align: right;line-height: 34px;font-weight: normal;">
<p style="width: calc(100% - 80px);text-align: left;">胜率:<i style="font-weight: bold;">{{item.winRate}}%</i></p>
......@@ -393,7 +393,7 @@
<ul>
<li v-for="(item,index) in reportList" :key="item.contentId" style="cursor: pointer;">
<div class="gendisplay" style="margin-top: 20px;">
<p style="margin-right: 15px;">
<p style="margin-right: 15px;" @click="downloaddetail(item)">
<img style="width: 35px;" src="../../../assets/img/industryreport/pdf@2x.png" alt="">
</p>
<div>
......@@ -520,7 +520,7 @@
<ul>
<li v-for="(item,index) in reportList" :key="item.contentId" style="cursor: pointer;">
<div class="gendisplay" style="margin-top: 20px;">
<p style="margin-right: 15px;">
<p style="margin-right: 15px;" @click="downloaddetail(item)">
<img style="width: 35px;" src="../../../assets/img/industryreport/pdf@2x.png" alt="">
</p>
<div>
......
......@@ -44,8 +44,8 @@
<ul class="l_n10">
<li v-for="(item,index) in guessdata.guessLeaderboardList" :key="index" v-if="index>2">
<span class="n_no">{{index+1}}</span>
<span class="n10_img"><img :src="item.empLogo&&item.empLogo.length>1?item.empLogo:require('../../assets/img/defaultlogo.png')" alt=""></span>
<span class="n10_name">{{item.nickName}}</span>
<span class="n10_img" @click="tohome(item.empId)"><img :src="item.empLogo&&item.empLogo.length>1?item.empLogo:require('../../assets/img/defaultlogo.png')" alt=""></span>
<span class="n10_name" @click="tohome(item.empId)">{{item.nickName}}</span>
<span :class="guesstypes==2?'hoveHighlight':''" class="no10_no"><b>{{item.winRate}}%</b>胜率</span>
<span :class="guesstypes==3?'hoveHighlight':''" class="no10_sl"><b>{{item.winIntegral}}</b>赢取积分</span>
<span :class="guesstypes==1?'hoveHighlight':''" class="no10_cs"><b>{{item.guessNum}}</b>参与次数</span>
......@@ -58,12 +58,14 @@
</div>
</div>
</div>
<expertVisible ref="login" @dataEvent="successlogin" :registerType="64"></expertVisible>
</div>
</template>
<script>
import api from "./api/api";
import popularguessbar from "./popularguessbar";
import expertVisible from "../../components/login/quicklogin";
export default {
name: "guessranking",
......@@ -80,9 +82,22 @@
}
},
components:{
popularguessbar
popularguessbar,expertVisible
},
methods:{
//完善信息成功
successlogin(){
this.userInfo = this.publicFun.getUserInfoCookieType() ? JSON.parse(this.Base64.decode(this.publicFun.getUserInfoCookieType())) : null;
},
//去主页
tohome(id){
if(!this.publicFun.getUserInfoCookieType()){
this.$refs.login.isexpertVisible();
return
}else{
window.open(this.publicFun.getCurrentHrefEnv() + "#/peoplehome?id="+id);
}
},
datetype(val){
this.datetypes = val;
this.guesstypes = 1;
......@@ -325,10 +340,12 @@
border-radius: 50%;
width: 40px;
height: 40px;
cursor: pointer;
}
}
.n10_name {
color: #1A1A1E;
cursor: pointer;
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment