-
{{rep.authorInfo.name}} 个性签名:{{rep.authorInfo.sign}}
+
{{rep.authorInfo.name}} 个性签名:1{{rep.authorInfo.sign}}
{{rep.content}}
@@ -102,6 +102,7 @@
}else{
this.$router.push({path:'/404'})
}
+ console.log(this.userInfo,'userInfo');
},
methods: {
diff --git a/src/views/homepage/page.vue b/src/views/homepage/page.vue
index 4832884c..0ecb08ec 100644
--- a/src/views/homepage/page.vue
+++ b/src/views/homepage/page.vue
@@ -93,7 +93,7 @@
export default{
components:{top,UcHeader,CaseList,CourseList,NoteList,PutList,AnswerList,ArticleList,FollowList,BookList},
computed: {
- ...mapGetters(['userInfo','majorTypeMap','orgDomainMap']),
+ ...mapGetters(['userInfo','majorTypeMap','orgDomainMap','attention']),
},
data(){
return{
@@ -136,7 +136,10 @@
let urlPre=window.location.protocol+'//'+window.location.host;
location.href=urlPre+process.env.VUE_APP_PUBLIC_PATH+this.$xpage.getHomePath(this.pageId);
}
- }
+ },
+ attention(val) {
+ this.activeName = "7";
+ },
},
mounted() {
@@ -339,9 +342,7 @@
apiNote.ids(ids).then(res=>{
if(res.status == 200) {
list.forEach((item, index) => {
-
let score = item.contentInfo.substr(item.contentInfo.length -1,1);
- console.log(Number(score),'Number(score)');
if(Number(score) > 0) {
item.score = score;
}
diff --git a/src/views/ucurrency/Index.vue b/src/views/ucurrency/Index.vue
index c2c5567a..e6fcc7d8 100644
--- a/src/views/ucurrency/Index.vue
+++ b/src/views/ucurrency/Index.vue
@@ -458,20 +458,6 @@
show: true,
position: 'center',
formatter:`{total|${this.percentageNum}%}\n{active|来源top3}`,
- // formatter: function(name) {
- // console.log(name,'name');
- // let data = option.series[0].data;
- // let total = 0;
- // let tarValue = 0; //每一项值
- // for (let i = 0; i < data.length; i++) {
- // total += data[i].value;
- // if (data[i].name == name) {
- // tarValue = data[i].value;
- // }
- // }
- // let p = total != 0 ? Math.round((tarValue / total) * 100) + '%' : 0 + '%';
- // return ` ${p} ${name}`
- // },
rich:{
total:{
fontSize:20,
@@ -516,6 +502,7 @@
name: this.getUType(key)
})
}
+ // 计算前三百分比
totalList.sort();
totalList = totalList.splice(1,3);
let top3 = null;
@@ -523,8 +510,6 @@
top3+=item;
})
this.percentageNum = (top3/total)*100;
- console.log(top3,total,this.percentageNum,'3333');
- console.log(totalList,'totalList');
this.chatData = chatData;
this.initChat(chatData);
}