Browse Source

卖家中心添加企业状态判断

yangc 7 years ago
parent
commit
7a76a59186
1 changed files with 9 additions and 0 deletions
  1. 9 0
      src/main/webapp/resources/js/vendor/app.js

+ 9 - 0
src/main/webapp/resources/js/vendor/app.js

@@ -702,6 +702,15 @@ define([ 'angularAMD', 'ngLocal', 'common/services', 'common/directives', 'commo
 					}
 				});
 				$rootScope.userInfo = data;
+				if (!data.enterprise || !data.enterprise.uu) {
+					window.location.href = 'personalMaterial';
+				} else {
+					if (data.enterprise.isVendor === 313) {
+						window.location.href = 'vendor#/index';
+					} else {
+						window.location.href = 'register-saler';
+					}
+				}
 				if ($location.$$path === '/index') {
 					// if ($rootScope.applyStatus === 'NONE') {
 					// 	$state.go('vendor_store_apply');