|
|
@@ -36,15 +36,15 @@
|
|
|
</nuxt-link>
|
|
|
<nuxt-link tag="li" to="/mobile/center/user/cart" class="content-line">
|
|
|
<img src="/images/mobile/center/user/cart.jpg" alt="">
|
|
|
- <p>购物车<span class="text">{{carCount || 0}}</span></p>
|
|
|
+ <p>购物车<span class="text">{{carCount && carCount >= 99 ? 99 : carCount || 0}}</span></p>
|
|
|
</nuxt-link>
|
|
|
<nuxt-link tag="li" to="/mobile/center/user/collect/component" class="content-line">
|
|
|
<img src="/images/mobile/center/user/comp-collect.png" alt="">
|
|
|
- <p>器件收藏<span class="text">{{compCount.data || 0}}</span></p>
|
|
|
+ <p>器件收藏<span class="text">{{compCount.data && compCount.data >= 99 ? 99 : compCount.data || 0}}</span></p>
|
|
|
</nuxt-link>
|
|
|
<nuxt-link tag="li" to="/mobile/center/user/collect/store" class="content-line">
|
|
|
<img src="/images/mobile/center/user/store-focus.png" alt="">
|
|
|
- <p>店铺关注<span class="text">{{storeCount.data || 0}}</span></p>
|
|
|
+ <p>店铺关注<span class="text">{{storeCount.data && storeCount.data >= 99 ? 99 : storeCount.data || 0}}</span></p>
|
|
|
</nuxt-link>
|
|
|
<nuxt-link tag="li" to="/" class="content-line">
|
|
|
<img src="/images/mobile/center/user/payfor_icon.png" alt="">
|
|
|
@@ -52,7 +52,7 @@
|
|
|
</nuxt-link>
|
|
|
<nuxt-link tag="li" to="/mobile/center/user/collect/message" class="content-line" v-if="user.data.enterprise.uu">
|
|
|
<img src="/images/mobile/center/user/message.png" alt="">
|
|
|
- <p>消息中心<span class="text">{{messageCount.count || 0}}</span></p>
|
|
|
+ <p>消息中心<span class="text">{{messageCount.count && messageCount.count >= 99 ? 99 : messageCount.count || 0}}</span></p>
|
|
|
</nuxt-link>
|
|
|
</ul>
|
|
|
</div>
|
|
|
@@ -85,9 +85,7 @@
|
|
|
if (user.enterprise.uu) {
|
|
|
promises.push(store.dispatch('messageShow/loadMessageCount', {receiverUu: user.userUU, receiverEnuu: user.enterprise.uu, consumerApp: 'MALL', isRead: 0}))
|
|
|
}
|
|
|
- return Promise.all([
|
|
|
- promises
|
|
|
- ])
|
|
|
+ return Promise.all(promises)
|
|
|
},
|
|
|
components: {
|
|
|
RemindBox,
|