Commit 0f6dbbee authored by 刘殿昕's avatar 刘殿昕

默认头像,楼

parent a23f6b14
......@@ -43,7 +43,7 @@
<span class="left">{{item.username}}</span>
<span class="right">
<span v-if="index==0||index==1">{{index==0?'沙发':'板凳'}}</span>
<span v-else>{{index}}</span> | <span>{{deal_time(item.created)}}</span>
<span v-else>{{index + 1}}</span> | <span>{{deal_time(item.created)}}</span>
</span>
</p>
<div v-html="item.content" class="hf_content"></div>
......
......@@ -204,18 +204,18 @@ export default {
font-size: 18px;
font-weight: bold;
line-height: 40px;
color: #58617a;
color: #1d1e20;
position: relative;
padding-left: 15px;
}
.contributor_title > span:nth-child(1)::before {
content: "";
width: 4px;
height: 18px;
height: 16px;
background-color: #515fe7;
border-radius: 2px;
position: absolute;
top: 12px;
top: 13px;
left: 0;
}
.contributor_list > li {
......
......@@ -55,7 +55,7 @@
<p class="answer_content" v-text="getContentText(item.content)"></p>
<p class="answer_info">
<span>
<img class="user_img" :src="item.picture_path" />
<img class="user_img" :src="item.picture_path || head_pic" />
<span class="user_name" v-text="item.user_name"></span>
<span class="user_text">发布于</span>
<span class="user_time" v-text="getTimeText(item.created)"></span>
......@@ -99,6 +99,7 @@ export default {
sortType: 0, // 0:最新问题 1:最热问题
searchText: "",
inputTimer: null,
head_pic: require("@/assets/imgs/img_head.png"),
};
},
created() {
......
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