소스 검색

fix: 商品购买数量限制为1

liangan 4 주 전
부모
커밋
9d803bbfb2
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/pages/productDetail/productDetail.vue

+ 1 - 1
src/pages/productDetail/productDetail.vue

@@ -573,7 +573,7 @@ onShow(async () => {
       </view>
       <view class="mb-100rpx flex items-center justify-between text-32rpx">
         <view>{{ $t('productDetail.quantity') }}</view>
-        <wd-input-number v-model="formData.productNum" :max="1" />
+        <wd-input-number v-model="formData.productNum" :max="1" :min="1" />
       </view>
       <view class="py-24rpx">
         <wd-button block :style="{ backgroundColor: groupType === 'open' ? '#2F2D31' : 'var(--wot-color-theme)' }" @click="preOrder">