فهرست منبع

订单可选数量优化

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

برخی فایل ها در این مقایسه diff نمایش داده نمی شوند زیرا تعداد فایل ها بسیار زیاد است