【fix】优化代码
This commit is contained in:
@ -88,7 +88,6 @@
|
||||
<text v-if="data.stock">仅剩{{ data.stock }}件</text>
|
||||
<text v-else>库存不足</text>
|
||||
</view>
|
||||
|
||||
<view
|
||||
class="buy-num"
|
||||
v-if="purchase"
|
||||
@ -98,6 +97,7 @@
|
||||
</view>
|
||||
</view>
|
||||
<uv-button
|
||||
class="button"
|
||||
round
|
||||
block
|
||||
type="primary"
|
||||
@ -317,6 +317,11 @@ const percentage = computed(() => {
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
|
||||
.button {
|
||||
flex-shrink: 0;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
&-desc {
|
||||
line-height: 28rpx;
|
||||
font-size: 20rpx;
|
||||
|
Reference in New Issue
Block a user