优化
This commit is contained in:
@@ -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>
|
||||||
|
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user