Prechádzať zdrojové kódy

fix: 修复起收条件提示中旧书本数逻辑判断错误

将 v-if 条件从 `orderInfo.minOrderNum` 改为 `orderInfo.minOrderNum > 1`,避免当 `minOrderNum` 为 0 或 1 时错误显示“满X本”的文本。
ylong 1 mesiac pred
rodič
commit
c4cf3bf764
1 zmenil súbory, kde vykonal 4 pridanie a 2 odobranie
  1. 4 2
      pages/home/index.vue

+ 4 - 2
pages/home/index.vue

@@ -28,8 +28,10 @@
                         件 预估回收价
                         <text class="color-red">¥{{ orderInfo.totalRecycleMoney || 0 }}</text>
                     </view>
-                    <text class="common-text tip">*<text v-if="orderInfo.minOrderNum">旧书满{{ orderInfo.minOrderNum
-                    }}本,{{ orderInfo.recycleOrderAndOr == 2 ? '且' : '或' }}</text>预估价格满{{ orderInfo.minOrderMoney }}元起收</text>
+                    <text class="common-text tip">
+                        *<text v-if="orderInfo.minOrderNum > 1">旧书满{{ orderInfo.minOrderNum
+                        }}本,{{ orderInfo.recycleOrderAndOr == 2 ? '且' : '或' }}</text>预估价格满{{ orderInfo.minOrderMoney}}元起收
+                    </text>
                 </view>
 
                 <button class="scan-btn next-btn" @click="handleValidate" :disabled="isDisabled">