This commit is contained in:
2024-02-03 20:03:14 +08:00
parent 82b09c68a5
commit 2280c0518b
2 changed files with 18 additions and 4 deletions

View File

@@ -30,6 +30,7 @@
<view class='shopping-cart'>
<image :src='assetsUrl+"ic_shopping_cart.png"' />
<text>10</text>
</view>
</view>
</template>
@@ -207,5 +208,20 @@ const changeCategory = (index: number) => {
width: 40rpx;
height: 40rpx;
}
text {
display: flex;
min-width: 39rpx;
min-height: 39rpx;
background: #F32B2B;
align-items: center;
justify-content: center;
top: -5rpx;
right: -5rpx;
color: white;
position: absolute;
border-radius: 50%;
border: 2rpx solid #FFFFFF;
}
}
</style>