mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-20 16:26:43 +08:00
个人中心和首页修改
This commit is contained in:
@@ -72,23 +72,17 @@
|
||||
}
|
||||
},
|
||||
created() {
|
||||
// clientWidth
|
||||
console.log(document.body.clientWidth,'document.body.clientWidth');
|
||||
let width = document.body.clientWidth;
|
||||
if(width > 1920 || width == 1920) {
|
||||
console.log(11111);
|
||||
if(width > 1920) {
|
||||
this.clientWidth = '1088px';
|
||||
}
|
||||
if(width > 1681 && width < 1920) {
|
||||
console.log(2222);
|
||||
if(width > 1681 && width < 1920 || width == 1920) {
|
||||
this.clientWidth = '888px';
|
||||
}
|
||||
if(width > 1367 && width < 1680) {
|
||||
console.log(3333);
|
||||
this.clientWidth = '848px';
|
||||
}
|
||||
if(width < 1366) {
|
||||
console.log(444);
|
||||
this.clientWidth = '688px';
|
||||
}
|
||||
//这里必须放在当前的Session存储中,不能每次都调用
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
</div>
|
||||
<div class="comment-time portal-time">
|
||||
<showTime :time="com.sysCreateTime"></showTime>
|
||||
<interactBar :type="10" :shares="false" :data="com" @addAnswers="showReply(com)" :views="false" :comments="false" :answers="true"></interactBar>
|
||||
<interactBar :type="6" :shares="false" :data="com" @addAnswers="showReply(com)" :views="false" :comments="false" :answers="true"></interactBar>
|
||||
</div>
|
||||
<div v-if="replyInfo.parentId==com.id" class="comment-reply" style="padding-bottom: 5px;">
|
||||
<div style="width:100%;display:flex;">
|
||||
|
||||
Reference in New Issue
Block a user