|
|
@@ -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');
|