|
@@ -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平米'
|
|
|
}]);
|