sunhao 5 years ago
parent
commit
bb23cdb74f
1 changed files with 5 additions and 14 deletions
  1. 5 14
      resources/views/order/ordercreate.blade.php

+ 5 - 14
resources/views/order/ordercreate.blade.php

@@ -593,11 +593,7 @@
593 593
      }
594 594
 
595 595
      function form_verify(){
596
-        //验证称重>50克
597
-        if(!weigh_verify()){
598
-            layer.msg('按克称重商品重量(克)必须大于50!',{icon:2,time:1500});
599
-            return false;
600
-        }
596
+        
601 597
         var customerName = $("input[name=customerName]").val();
602 598
         if(!customerName){
603 599
             layer.msg('买家姓名不能为空!',{icon:2,time:1500});
@@ -662,16 +658,11 @@
662 658
             layer.msg('付款金额必须为数字!',{icon:2,time:1500});
663 659
             return false;
664 660
         }
665
-
666 661
         //验证称重>50克
667
-        $('.gnums').each(function(key, value){
668
-            var gnum = $(this).val();
669
-            var is_weigh = $(this).attr('is_weigh');
670
-            if(is_weigh == 1 && gnum<50){
671
-                layer.msg('按克称重商品重量(克)参数必须大于50!',{icon:2,time:1500});
672
-                return false;
673
-            }
674
-        });
662
+        if(!weigh_verify()){
663
+            layer.msg('按克称重商品重量(克)必须大于50!',{icon:2,time:1500});
664
+            return false;
665
+        }
675 666
 
676 667
         return true;
677 668