|
@@ -739,42 +739,42 @@ define(['$', 'template', 'order', 'native', 'helper', 'user', 'api', 'config', '
|
|
|
if ($(this).hasClass('disable')) {
|
|
|
return false;
|
|
|
}
|
|
|
-
|
|
|
- if (product.extra && !order.appendID) {
|
|
|
+ if (product.type_str == "擦玻璃" && order.productCount < 10) {
|
|
|
$doc.trigger('spa:openpanel', ['simpleAlert', {
|
|
|
- message: '请选择服务'
|
|
|
+ message: '数量不少于10平米'
|
|
|
}]);
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
- if (!order.address) {
|
|
|
+ if (product.type_str == "新居开荒" && order.productCount < 50) {
|
|
|
$doc.trigger('spa:openpanel', ['simpleAlert', {
|
|
|
- message: '请选择地址'
|
|
|
+ message: '数量不少于50平米'
|
|
|
}]);
|
|
|
return;
|
|
|
}
|
|
|
-
|
|
|
- if (!order.bookingTimeStr) {
|
|
|
+ if (product.extra && !order.appendID) {
|
|
|
$doc.trigger('spa:openpanel', ['simpleAlert', {
|
|
|
- message: '请选择上门时间'
|
|
|
+ message: '请选择服务'
|
|
|
}]);
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
- if (product.type_str == "擦玻璃" && order.productCount < 10) {
|
|
|
+ if (!order.address) {
|
|
|
$doc.trigger('spa:openpanel', ['simpleAlert', {
|
|
|
- message: '最低不少于10平米'
|
|
|
+ message: '请选择地址'
|
|
|
}]);
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
- if (product.type_str == "新居开荒" && order.productCount < 50) {
|
|
|
+ if (!order.bookingTimeStr) {
|
|
|
$doc.trigger('spa:openpanel', ['simpleAlert', {
|
|
|
- message: '最低不少于50平米'
|
|
|
+ message: '请选择上门时间'
|
|
|
}]);
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+
|
|
|
var payChannel = 'wx_pub';
|
|
|
|
|
|
/* 使备注输入框失去焦点,获取值 */
|