|
@@ -28,6 +28,7 @@
|
|
|
<view v-if="(show || showActions)&&actions.length>0" class="menulistAction" :class="[actionsPos]">
|
|
|
<view class="menulistAction_item" v-for="(item,index) in actions" :key="index">
|
|
|
<tm-button :fllowTheme="false" fab @click="itemChange(index)" iconSize="40" :icon="item.icon" :theme="item.color" size="m"></tm-button>
|
|
|
+ <view class="zi">{{jisuan(item.goods_id)}}</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
@@ -223,6 +224,10 @@
|
|
|
|
|
|
},
|
|
|
methods: {
|
|
|
+ jisuan(data){
|
|
|
+ var num=data.split(",")
|
|
|
+ return num.length;
|
|
|
+ },
|
|
|
init(){
|
|
|
let t = this;
|
|
|
this.$nextTick(function(){
|
|
@@ -428,4 +433,16 @@
|
|
|
z-index: 400;
|
|
|
bottom: 0;
|
|
|
}
|
|
|
+ .zi{
|
|
|
+ position: absolute;
|
|
|
+ top: 2px;
|
|
|
+ right: 3px;
|
|
|
+ background: red;
|
|
|
+ text-align: center;
|
|
|
+ font-size: 13px;
|
|
|
+ border-radius: 33px;
|
|
|
+ width: 15px;
|
|
|
+ height: 15px;
|
|
|
+ line-height: 15px;
|
|
|
+ }
|
|
|
</style>
|