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'> <view class='shopping-cart'>
<image :src='assetsUrl+"ic_shopping_cart.png"' /> <image :src='assetsUrl+"ic_shopping_cart.png"' />
<text>10</text>
</view> </view>
</view> </view>
</template> </template>
@@ -207,5 +208,20 @@ const changeCategory = (index: number) => {
width: 40rpx; width: 40rpx;
height: 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> </style>

View File

@@ -168,14 +168,12 @@ const convertBase64 = (data: ArrayBuffer) => {
.barcode-view { .barcode-view {
display: flex; display: flex;
width: 80%; width: 100%;
flex-direction: column; flex-direction: column;
align-self: center;
justify-content: center;
align-items: center; align-items: center;
image { image {
width: 100%; //width: 100%;
height: 130rpx; height: 130rpx;
} }