Ver código fonte

购物车提交时,侧边栏数量和列表数量显示不一致问题处理。

git-svn-id: svn+ssh://10.10.101.21/source/platform/platform-b2b@9665 f3bf4e98-0cf0-11e4-a00c-a99a8b9d557d
dongbw 8 anos atrás
pai
commit
01fb8db9c9
1 arquivos alterados com 4 adições e 1 exclusões
  1. 4 1
      src/main/webapp/resources/js/index/app.js

+ 4 - 1
src/main/webapp/resources/js/index/app.js

@@ -12807,7 +12807,8 @@ define([ 'toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
 				if(data.success) {
 					toaster.pop('success', '提示', data.success);
 					$timeout(function() {
-						window.location.hash = '#/purc/order/'+data.id;
+                        window.location.hash = '#/purc/order/'+data.id;
+                        window.location.reload();
 					},500);
 				}
 				if(data.error) {
@@ -12823,6 +12824,7 @@ define([ 'toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
 			cartOperation.deleteCart({id: id}, {}, function(data) {
 				if(data.success) {
 					toaster.pop('success', '提示', data.success);
+                    getTodoCartCount();
 					$timeout(function() {
 						$scope.tableParams.page(1);
 						$scope.tableParams.reload();
@@ -12934,6 +12936,7 @@ define([ 'toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
 					toaster.pop('success', '提示', data.success);
 					$timeout(function() {
 						window.location.hash = '#/purc/order/'+data.id;
+                        window.location.reload();
 					},500);
 				}
 				if(data.error) {