Commit 50e7a996 authored by zhangyichen's avatar zhangyichen

修改角标不显示问题 以及调整位置

parent de7f5260
<template> <template>
<div style="position: relative;display: inline-block;width: 0px;height: 18px"> <div style="position: relative;display: inline-block;width: 0px;height: 18px">
<div class="diyTag" v-if="num !== 0" v-show="num !== 'NaN'" <div class="diyTag" v-if="num !== 0" v-show="!isNaN(num)"
style="height: 14px;border-radius: 14px;font-size: 20px;line-height: 13px" style="height: 14px;border-radius: 14px;font-size: 20px;line-height: 13px"
:style="{ :style="{
'top':type === 1 ? '-22px' : type === 2 ? '-16px' : '0', 'top':type === 1 ? '-24px' : type === 2 ? '-16px' : '0',
'left':type === 1 ? '-10px': type === 2 ? '-8px' : '-2px', 'left':type === 1 ? '-10px': type === 2 ? '-8px' : '-2px',
'width':num > 99 ? '24px': '14px', 'width':num > 99 ? '24px': '14px',
}"> }">
......
...@@ -168,10 +168,10 @@ export default { ...@@ -168,10 +168,10 @@ export default {
lessonCount: 0, lessonCount: 0,
trainCount: 0, trainCount: 0,
notFinishedExam: 0, notFinishedExam: 0,
notStartLearnCount: 0,
notStartTrainCount: 0,
isHiddenCloseAll: false // 隐藏所有关闭按钮 isHiddenCloseAll: false // 隐藏所有关闭按钮
} },
notStartLearnCount: 0,
notStartTrainCount: 0
} }
}, },
methods: { methods: {
......
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