瀏覽代碼

订单可选数量优化

e 8 年之前
父節點
當前提交
5a2601a7b9
共有 3 個文件被更改,包括 4 次插入4 次删除
  1. 0 0
      www/webapp/o2o/dist/js/main.js
  2. 0 0
      www/webapp/o2o/dist/js/page/placeOrder.js
  3. 4 4
      www/webapp/o2o/js/page/placeOrder.js

文件差異過大導致無法顯示
+ 0 - 0
www/webapp/o2o/dist/js/main.js


文件差異過大導致無法顯示
+ 0 - 0
www/webapp/o2o/dist/js/page/placeOrder.js


+ 4 - 4
www/webapp/o2o/js/page/placeOrder.js

@@ -526,7 +526,7 @@ define(['$', 'template', 'order', 'native', 'helper', 'user', 'api', 'config', '
 
             /* 点击数量+1 */
             $.newTouch('.btn-add', function (event) {
-                if (order.productCount >= 999) return;
+                if (order.productCount > 999) return;
                 if (order.price == 0) {
                     $doc.trigger('spa:openpanel', ['simpleAlert', {
                         //message: '请选择extra'
@@ -760,15 +760,15 @@ define(['$', 'template', 'order', 'native', 'helper', 'user', 'api', 'config', '
                     }]);
                     return;
                 }
-                
-                if (product.type_str == "擦玻璃" && order.price < 10) {
+
+                if (product.type_str == "擦玻璃" && order.productCount < 10) {
                     $doc.trigger('spa:openpanel', ['simpleAlert', {
                         message: '最低不少于10平米'
                     }]);
                     return;
                 }
 
-                if (product.type_str == "新居开荒" && order.price < 50) {
+                if (product.type_str == "新居开荒" && order.productCount < 50) {
                     $doc.trigger('spa:openpanel', ['simpleAlert', {
                         message: '最低不少于50平米'
                     }]);

部分文件因文件數量過多而無法顯示