['设置']

This commit is contained in:
2021-09-30 10:37:23 +08:00
parent f1d5ff3dba
commit e903d5be15
3 changed files with 25 additions and 5 deletions

View File

@@ -78,6 +78,15 @@ const companyStatus = () => {
}) })
} }
// 是否允许企业能开通
const companyIsallow = () => {
return request({
url: 'companies/applies/isallow',
method:'POST'
})
}
export { export {
login, login,
@@ -88,5 +97,6 @@ export {
resetUserInfo, resetUserInfo,
getUserSettingInfo, getUserSettingInfo,
aboutUs, aboutUs,
companyStatus companyStatus,
companyIsallow
} }

View File

@@ -304,7 +304,7 @@
.btns{ .btns{
padding-top: $padding * 2; padding-top: $padding * 2;
button{ button{
background: $mian-color-deep; background: $mian-color;
border-radius: 0; border-radius: 0;
height: 90rpx; height: 90rpx;
line-height: 90rpx; line-height: 90rpx;

View File

@@ -89,7 +89,8 @@
wechatbind, wechatbind,
resetUserInfo, resetUserInfo,
getUserSettingInfo, getUserSettingInfo,
companyStatus companyStatus,
companyIsallow
} from '@/apis/interfaces/setting' } from '@/apis/interfaces/setting'
import { import {
uploads uploads
@@ -141,9 +142,18 @@
company(code) { company(code) {
if (code === -1) { if (code === -1) {
// 跳转到企业认证页面 // 跳转到企业认证页面
companyIsallow().then(res=>{
this.$Router.push({ this.$Router.push({
name:'companyApprove' name:'companyApprove'
}) })
}).catch(err=>{
this.$refs.uToast.show({
title: err.message,
type: 'primary',
duration: 3000
})
})
} else if (code === 2) { } else if (code === 2) {
// 跳转到企业认证页面 // 跳转到企业认证页面
this.$Router.push({ this.$Router.push({