Browse Source

消息提示优化

master
Enzo 5 years ago
parent
commit
a0461c82b7
  1. 11
      canteen/pages/index/index.vue
  2. 11
      supplier/pages/index/index.vue

11
canteen/pages/index/index.vue

@ -14,7 +14,10 @@
<text class="lf-text-vertical lf-m-l-20 lf-font-28 lf-color-black">{{ item.name }}</text>
</view>
<view class="lf-flex">
<view class="message-tag" v-if="index == 1">1</view>
<view v-if="item.unread">
<view class="message-tag" v-if="item.unread < 99">{{item.unread}}</view>
<view class="message-tag" v-else>99+</view>
</view>
<u-icon name="arrow-right"></u-icon>
</view>
</view>
@ -80,13 +83,13 @@
</style>
<style lang="scss" scoped="scoped">
.message-tag {
width: 36rpx;
height: 36rpx;
width: 60rpx;
height: 60rpx;
background-color: red;
border-radius: 50%;
margin-right: 10rpx;
text-align: center;
align-content: center;
align-items: center;
color: white;
display: flex;
justify-content: space-around;

11
supplier/pages/index/index.vue

@ -14,7 +14,10 @@
<text class="lf-text-vertical lf-m-l-20 lf-font-28 lf-color-black">{{ item.name }}</text>
</view>
<view class="lf-flex">
<view class="message-tag" v-if="index == 2">1</view>
<view v-if="item.unread">
<view class="message-tag" v-if="item.unread < 99">{{item.unread}}</view>
<view class="message-tag" v-else>99+</view>
</view>
<u-icon name="arrow-right"></u-icon>
</view>
</view>
@ -82,13 +85,13 @@
</style>
<style lang="scss" scoped="scoped">
.message-tag {
width: 36rpx;
height: 36rpx;
width: 60rpx;
height: 60rpx;
background-color: red;
border-radius: 50%;
margin-right: 10rpx;
text-align: center;
align-content: center;
align-items: center;
color: white;
display: flex;
justify-content: space-around;

Loading…
Cancel
Save