|
|
@ -4,7 +4,7 @@ |
|
|
|
<image class="bg" src="https://occupationlab.com/images/preschoolEdu/person-bg.png" /> |
|
|
|
<image class="bg" src="https://occupationlab.com/images/preschoolEdu/person-bg.png" /> |
|
|
|
|
|
|
|
|
|
|
|
<view class="team-wrap" :style="{paddingTop: headerTop}"> |
|
|
|
<view class="team-wrap" :style="{paddingTop: headerTop}"> |
|
|
|
<view v-if="platformId !== 7" class="team"> |
|
|
|
<view v-if="platformId !== 7 && teams.length" class="team"> |
|
|
|
<uni-data-picker class="picker-input" placeholder="切换团队" popup-title="切换团队" preload :clear-icon="false" :localdata="teams" :map="{text: 'classificationName', value: 'teamId'}" v-model="teamId" @change="teamChange"></uni-data-picker> |
|
|
|
<uni-data-picker class="picker-input" placeholder="切换团队" popup-title="切换团队" preload :clear-icon="false" :localdata="teams" :map="{text: 'classificationName', value: 'teamId'}" v-model="teamId" @change="teamChange"></uni-data-picker> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
@ -15,8 +15,8 @@ |
|
|
|
<image class="avatar" :src="info.userAvatars" mode=""></image> |
|
|
|
<image class="avatar" :src="info.userAvatars" mode=""></image> |
|
|
|
</button> |
|
|
|
</button> |
|
|
|
<view class="text"> |
|
|
|
<view class="text"> |
|
|
|
<view class="name">{{ curAccount.account || userName }}</view> |
|
|
|
<view class="name">{{ info.userName || userName }}</view> |
|
|
|
<view class="phone">{{ curAccount.phone }}</view> |
|
|
|
<view class="phone">{{ curAccount.account || info.phone }}</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="auth" @click="toAuth"> |
|
|
|
<view class="auth" @click="toAuth"> |
|
|
|
{{ info.authentication }} |
|
|
|
{{ info.authentication }} |
|
|
@ -86,7 +86,6 @@ |
|
|
|
<view v-if="!isMember" class="badge">{{ platformName }}负责人</view> |
|
|
|
<view v-if="!isMember" class="badge">{{ platformName }}负责人</view> |
|
|
|
<view class="auth">{{ auditStatus }}</view> |
|
|
|
<view class="auth">{{ auditStatus }}</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view v-if="enterInfo.companyName" class="company-name">{{ enterInfo.companyName }}</view> |
|
|
|
|
|
|
|
<view class="identity-bg"> |
|
|
|
<view class="identity-bg"> |
|
|
|
<image v-if="isPreschool" class="pic" src="https://occupationlab.com/images/preschoolEdu/preschool1.png" mode="widthFix" /> |
|
|
|
<image v-if="isPreschool" class="pic" src="https://occupationlab.com/images/preschoolEdu/preschool1.png" mode="widthFix" /> |
|
|
|
<image v-else class="pic" src="https://occupationlab.com/images/preschoolEdu/supplier1.png" mode="widthFix" /> |
|
|
|
<image v-else class="pic" src="https://occupationlab.com/images/preschoolEdu/supplier1.png" mode="widthFix" /> |
|
|
@ -177,7 +176,9 @@ |
|
|
|
auditStatus: '', |
|
|
|
auditStatus: '', |
|
|
|
isMember: true, // 成员标识 |
|
|
|
isMember: true, // 成员标识 |
|
|
|
organizationName: '', |
|
|
|
organizationName: '', |
|
|
|
curAccount: {} |
|
|
|
curAccount: { |
|
|
|
|
|
|
|
account: '' |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
computed: { |
|
|
|
computed: { |
|
|
@ -211,6 +212,16 @@ |
|
|
|
const { result } = await viewUserDetails({ |
|
|
|
const { result } = await viewUserDetails({ |
|
|
|
openId: this.openId |
|
|
|
openId: this.openId |
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
|
// status为false,说明用户被删除了,则退出登录 |
|
|
|
|
|
|
|
if (result.status === false) { |
|
|
|
|
|
|
|
this.$util.errMsg(result.message) |
|
|
|
|
|
|
|
setTimeout(() => { |
|
|
|
|
|
|
|
uni.clearStorageSync() |
|
|
|
|
|
|
|
this.$util.to('/pages/login/login') |
|
|
|
|
|
|
|
}, 1500) |
|
|
|
|
|
|
|
return false |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (result.hrUserInfo) { |
|
|
|
if (result.hrUserInfo) { |
|
|
|
if (!result.hrUserInfo.userAvatars) result.hrUserInfo.userAvatars = Common.avatar // 没有头像则显示默认头像 |
|
|
|
if (!result.hrUserInfo.userAvatars) result.hrUserInfo.userAvatars = Common.avatar // 没有头像则显示默认头像 |
|
|
|
this.info = result.hrUserInfo |
|
|
|
this.info = result.hrUserInfo |
|
|
@ -224,13 +235,18 @@ |
|
|
|
if (accountList && accountList.length) { |
|
|
|
if (accountList && accountList.length) { |
|
|
|
const enter = accountList.find(e => e.platformId !== '7') |
|
|
|
const enter = accountList.find(e => e.platformId !== '7') |
|
|
|
this.curAccount = enter || accountList[0] |
|
|
|
this.curAccount = enter || accountList[0] |
|
|
|
|
|
|
|
// 如果没有企业的身份,则重置身份为个人 |
|
|
|
|
|
|
|
if (!enter) { |
|
|
|
|
|
|
|
uni.setStorageSync('platformId', 7) |
|
|
|
|
|
|
|
this.platformId = 7 |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
// 企业认证信息 |
|
|
|
// 企业认证信息 |
|
|
|
async getEnterInfo() { |
|
|
|
async getEnterInfo() { |
|
|
|
const { data } = await enterpriseCertificationStatus(this.openId) |
|
|
|
const { data } = await enterpriseCertificationStatus(this.openId) |
|
|
|
if (data) { |
|
|
|
if (data) { |
|
|
|
this.auditStatus = Common.auditStatus.find(e => e.id === data.auditStatus).name |
|
|
|
this.auditStatus = Common.authenticationStatus.find(e => e.id === data.authenticationStatus).name |
|
|
|
this.enterInfo = data |
|
|
|
this.enterInfo = data |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
@ -272,7 +288,8 @@ |
|
|
|
updateAvatars({ |
|
|
|
updateAvatars({ |
|
|
|
url, |
|
|
|
url, |
|
|
|
userName: '', |
|
|
|
userName: '', |
|
|
|
openId: this.openId |
|
|
|
openId: this.openId, |
|
|
|
|
|
|
|
platformId: this.platformId, |
|
|
|
}).then(res => { |
|
|
|
}).then(res => { |
|
|
|
this.getInfo() |
|
|
|
this.getInfo() |
|
|
|
}).catch(e => {}) |
|
|
|
}).catch(e => {}) |
|
|
@ -287,9 +304,9 @@ |
|
|
|
}, |
|
|
|
}, |
|
|
|
// 跳转企业认证 |
|
|
|
// 跳转企业认证 |
|
|
|
toEnterAuth(platformId) { |
|
|
|
toEnterAuth(platformId) { |
|
|
|
const { auditStatus, platformSource } = this.enterInfo |
|
|
|
const { authenticationStatus, platformSource } = this.enterInfo |
|
|
|
// 审核状态(0默认未提交 1.待审核,2.已通过,3.已驳回) |
|
|
|
// 审核状态(0默认未提交 1.待审核,2.已通过,3.已驳回) |
|
|
|
if (auditStatus === 1) { |
|
|
|
if (authenticationStatus === 1) { |
|
|
|
if (platformSource != platformId) { |
|
|
|
if (platformSource != platformId) { |
|
|
|
// 如果组织认证已经在审核中的,点击另外一个认证的,弹窗提示“您已提交我是供应商的认证,无法再提交幼儿园认证。 |
|
|
|
// 如果组织认证已经在审核中的,点击另外一个认证的,弹窗提示“您已提交我是供应商的认证,无法再提交幼儿园认证。 |
|
|
|
this.$util.errMsg(`您已提交我是${platformId === 5 ? '供应商' : '幼儿园'}的认证,无法再提交${platformId === 5 ? '幼儿园' : '供应商'}认证。`) |
|
|
|
this.$util.errMsg(`您已提交我是${platformId === 5 ? '供应商' : '幼儿园'}的认证,无法再提交${platformId === 5 ? '幼儿园' : '供应商'}认证。`) |
|
|
@ -297,7 +314,7 @@ |
|
|
|
this.$util.errMsg('您已提交认证,请等待审核。') |
|
|
|
this.$util.errMsg('您已提交认证,请等待审核。') |
|
|
|
} |
|
|
|
} |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
this.$util.to(auditStatus === 2 ? '/team/certified/certified' : '/team/auth/auth?platformId=' + platformId) |
|
|
|
this.$util.to(authenticationStatus === 2 ? '/team/certified/certified' : '/team/auth/auth?platformId=' + platformId) |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
// 提示暂未开放 |
|
|
|
// 提示暂未开放 |
|
|
@ -402,12 +419,6 @@ |
|
|
|
width: 25%; |
|
|
|
width: 25%; |
|
|
|
margin-bottom: 30rpx; |
|
|
|
margin-bottom: 30rpx; |
|
|
|
text-align: center; |
|
|
|
text-align: center; |
|
|
|
&:last-child { |
|
|
|
|
|
|
|
image { |
|
|
|
|
|
|
|
width: 50rpx; |
|
|
|
|
|
|
|
height: 50rpx; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
image { |
|
|
|
image { |
|
|
|
width: 60rpx; |
|
|
|
width: 60rpx; |
|
|
|