Selaa lähdekoodia

小于也提示

xiaohaizhao 11 kuukautta sitten
vanhempi
commit
a7b030956d
1 muutettua tiedostoa jossa 1 lisäystä ja 4 poistoa
  1. 1 4
      pages/index/collect/modules/customMade/index.js

+ 1 - 4
pages/index/collect/modules/customMade/index.js

@@ -78,10 +78,7 @@ Component({
       item.tips = '';
       item.value = (e.detail.value - 0).toFixed(item.decimalplaces);
       if (item.value > item.max) item.tips = `自定义${item.label}超出可选范围!`;
-      if (item.value < item.min) item.value = item.min;
-
-      // item.tips = `自定义${item.label}少于可选范围!`;
-
+      if (item.value < item.min) item.tips = `自定义${item.label}少于可选范围!`;
       if (item.tips) wx.showToast({
         title: item.tips,
         icon: "none"