|
@@ -6,8 +6,10 @@
|
|
|
<span style="vertical-align: middle;">帮助</span>
|
|
|
</p>
|
|
|
<p class="help-cont" @click="showShopCar">
|
|
|
- <a-icon type="shopping-cart" style="font-size:16px;vertical-align: middle;margin: 0 5px;"/>
|
|
|
- <span style="vertical-align: middle;">购物车</span>
|
|
|
+ <a-badge :count="cartCount">
|
|
|
+ <a-icon type="shopping-cart" style="font-size:16px;margin: 0 5px;"/>
|
|
|
+ <span>购物车</span>
|
|
|
+ </a-badge>
|
|
|
</p>
|
|
|
<!-- 通知 -->
|
|
|
<notice-icon class="action"/>
|
|
@@ -106,7 +108,7 @@ export default {
|
|
|
NoticeIcon
|
|
|
},
|
|
|
computed: {
|
|
|
- ...mapGetters(['nickname', 'avatar', 'authOrgs', 'userInfo', 'nowRoute', 'theme', 'fontSize', 'printDefNeedle']),
|
|
|
+ ...mapGetters(['nickname', 'avatar', 'authOrgs', 'userInfo', 'nowRoute', 'theme', 'fontSize', 'printDefNeedle','cartCount']),
|
|
|
authOrgsList () { // 过滤掉当前登录账户(不可由自己切换为自己)
|
|
|
const _this = this
|
|
|
const arr = []
|