update
This commit is contained in:
parent
cadd79687e
commit
e934cc0163
@ -36,11 +36,20 @@
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
<span style="cursor: pointer;" @mouseover="toMyCartPage" slot="reference">
|
||||
<el-badge :value="totalCartCount >= 99 ? '99+' : totalCartCount" class="item">
|
||||
<template v-if="totalCartCount == 0">
|
||||
<el-badge value="" class="item">
|
||||
<el-tooltip class="item" effect="light" content="消息通知" placement="bottom">
|
||||
<i class="el-icon-bell"></i>
|
||||
</el-tooltip>
|
||||
</el-badge>
|
||||
</template>
|
||||
<template v-else>
|
||||
<el-badge :value="totalCartCount >= 99 ? '99+' : totalCartCount" class="item">
|
||||
<el-tooltip class="item" effect="light" content="消息通知" placement="bottom">
|
||||
<i class="el-icon-bell"></i>
|
||||
</el-tooltip>
|
||||
</el-badge>
|
||||
</template>
|
||||
</span>
|
||||
</el-popover>
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user