Browse Source

no message

feature/v2.0
xpz2018 4 years ago
parent
commit
f6ebeef9c3
1 changed files with 2 additions and 0 deletions
  1. 2
      pages/login/index.js

2
pages/login/index.js

@ -168,11 +168,13 @@ Page({
for (let mIndex = 0; mIndex < app.userInfo.enterpriseInfos.length; mIndex++) { for (let mIndex = 0; mIndex < app.userInfo.enterpriseInfos.length; mIndex++) {
const element = app.userInfo.enterpriseInfos[mIndex] const element = app.userInfo.enterpriseInfos[mIndex]
if(element.isEnterprisePrimary){ if(element.isEnterprisePrimary){
// 如果是企业主
this.toIndex() this.toIndex()
return return
} }
for (let nIndex = 0; nIndex < element.factoryInfos.length; nIndex++) { for (let nIndex = 0; nIndex < element.factoryInfos.length; nIndex++) {
const item = element.factoryInfos[nIndex] const item = element.factoryInfos[nIndex]
// 是否有职位
applicationStatus = item.type ? 1 : 0 applicationStatus = item.type ? 1 : 0
if(applicationStatus == 1){ if(applicationStatus == 1){
break break

Loading…
Cancel
Save