yangc 7 лет назад
Родитель
Сommit
35ff8b33c8

+ 2 - 2
src/main/webapp/resources/js/admin/controllers/trade/InvoicefromOrderDetailCtrl.js

@@ -95,9 +95,9 @@ define([ 'app/app' ], function(app) {
 						if(!response.errorInfo) {
 							$scope.Info = eval ("(" + response.traces + ")");
 						}
-					}, function(){
+					}, function(err){
 						// $scope.Info = [];
-						toaster.pop('info', '查询物流信息失败,请核对物流公司和运单号');
+						toaster.pop('info', err.data || '查询物流信息失败,请核对物流公司和运单号');
 					});
 					// ResponseLogistics.get({
 					// 	id : lgtid

+ 2 - 2
src/main/webapp/resources/js/admin/controllers/trade/InvoicefromPurcDetailCtrl.js

@@ -104,9 +104,9 @@ define([ 'app/app' ], function(app) {
 									$scope.Info = eval ("(" + response.traces + ")");
 									// statusOfLogistics($scope.logisticsInfo[$scope.logisticsInfo.length - 1].AcceptStation);
 								}
-							}, function(){
+							}, function(err){
 								// $scope.Info = [];
-								toaster.pop('info', '查询物流信息失败,请核对物流公司和运单号');
+								toaster.pop('info', err.data || '查询物流信息失败,请核对物流公司和运单号');
 							});
 							// ResponseLogistics.get({id : lgtid}, {}, function(data) {
 							// 	$scope.Info = data;

+ 2 - 2
src/main/webapp/resources/js/admin/controllers/trade/TradePurchaseDetailCtrl.js

@@ -117,9 +117,9 @@ define([ 'app/app' ], function(app) {
 					$scope.Info = eval ("(" + response.traces + ")");
 					// statusOfLogistics($scope.logisticsInfo[$scope.logisticsInfo.length - 1].AcceptStation);
 				}
-			}, function(){
+			}, function(err){
 				// $scope.Info = [];
-				toaster.pop('info', '查询物流信息失败,请核对物流公司和运单号');
+				toaster.pop('info', err.data || '查询物流信息失败,请核对物流公司和运单号');
 			});
 			// ResponseLogistics.get({id : lgtid}, {}, function(data) {
 			// 	$scope.Info = data;

+ 2 - 2
src/main/webapp/resources/js/usercenter/controllers/forstore/buyer_logistics_ctrl.js

@@ -289,9 +289,9 @@ define(['app/app', 'calendar'], function(app) {
 							$scope.logisticsInfo = eval ("(" + response.traces + ")");
 							$scope.hasInfo = true;
 						}
-					}, function(){
+					}, function(err){
 						$scope.logisticsInfo = [];
-						toaster.pop('info', '查询物流信息失败,请核对物流公司和运单号');
+						toaster.pop('info', err.data || '查询物流信息失败,请核对物流公司和运单号');
 					});
 				}, function(err){
 					toaster.pop('info', err.data || '根据快递ID查询跟订单相关联的物流信息失败');

+ 2 - 1
src/main/webapp/resources/js/usercenter/controllers/forstore/order_detail_ctrl.js

@@ -158,7 +158,8 @@ define(['app/app'], function(app) {
                                 $scope.hasInfo = true;
                             }
 						}
-					}, function(){
+					}, function(err){
+						toaster.pop('info', err.data);
 					});
 				}, function(err){
 					toaster.pop('info', err.data || '根据快递ID查询跟订单相关联的物流信息失败');

+ 0 - 12
src/main/webapp/resources/js/usercenter/controllers/forstore/pay_center_ctrl.js

@@ -377,18 +377,6 @@ define(['app/app'], function(app) {
 			$('body').append(form);  //将表单放置在web中
 			form.submit();
 
-			form.submit(function() {
-				$(this).ajaxSubmit({
-					beforeSubmit: function () {
-					},
-					success: function () {
-					},
-					error: function (err) {
-						toaster.pop('error', err);
-					}
-				});
-			});
-
 			$scope.$$record.clockID = setInterval(function() {
 				getDownLoadStatus();
 			}, 500);

+ 2 - 2
src/main/webapp/resources/js/usercenter/controllers/forstore/query_logistics_ctrl.js

@@ -52,9 +52,9 @@ define(['app/app', 'calendar'], function(app) {
                         } else {
                             $scope.logisticsInfo = [];
                         }
-                    }, function(){
+                    }, function(err){
                         $scope.logisticsInfo = [];
-                        toaster.pop('info', '查询物流信息失败,请核对物流公司和运单号');
+                        toaster.pop('info', err.data || '查询物流信息失败,请核对物流公司和运单号');
                     });
                 }, function(err){
                     toaster.pop('info', err.data || '根据快递ID查询跟订单相关联的物流信息失败');

+ 2 - 2
src/main/webapp/resources/js/vendor/controllers/forstore/query_logistics_ctrl.js

@@ -51,9 +51,9 @@ define(['app/app', 'calendar'], function(app) {
                             } else {
                                 $scope.logisticsInfo = [];
                             }
-                        }, function(){
+                        }, function(err){
                             $scope.logisticsInfo = [];
-                            toaster.pop('info', '查询物流信息失败,请核对物流公司和运单号');
+                            toaster.pop('info', err.data || '查询物流信息失败,请核对物流公司和运单号');
                         });
                     }, function(err){
                         toaster.pop('info', err.data || '根据快递ID查询跟订单相关联的物流信息失败');

+ 2 - 2
src/main/webapp/resources/js/vendor/controllers/forstore/vendor_logistics_ctrl.js

@@ -335,9 +335,9 @@ define(['app/app', 'calendar'], function (app) {
 								$scope.logisticsInfo = eval ("(" + response.traces + ")");
 								$scope.hasInfo = true;
 							}
-						}, function(){
+						}, function(err){
 							$scope.logisticsInfo = [];
-							toaster.pop('info', '查询物流信息失败,请核对物流公司和运单号');
+							toaster.pop('info', err.data || '查询物流信息失败,请核对物流公司和运单号');
 						});
 					}, function(err){
 						toaster.pop('info', err.data || '根据快递ID查询跟订单相关联的物流信息失败');