['设置']
This commit is contained in:
@@ -78,6 +78,15 @@ const companyStatus = () => {
|
||||
})
|
||||
}
|
||||
|
||||
// 是否允许企业能开通
|
||||
const companyIsallow = () => {
|
||||
return request({
|
||||
url: 'companies/applies/isallow',
|
||||
method:'POST'
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
|
||||
export {
|
||||
login,
|
||||
@@ -88,5 +97,6 @@ export {
|
||||
resetUserInfo,
|
||||
getUserSettingInfo,
|
||||
aboutUs,
|
||||
companyStatus
|
||||
companyStatus,
|
||||
companyIsallow
|
||||
}
|
||||
|
||||
@@ -304,7 +304,7 @@
|
||||
.btns{
|
||||
padding-top: $padding * 2;
|
||||
button{
|
||||
background: $mian-color-deep;
|
||||
background: $mian-color;
|
||||
border-radius: 0;
|
||||
height: 90rpx;
|
||||
line-height: 90rpx;
|
||||
|
||||
@@ -89,7 +89,8 @@
|
||||
wechatbind,
|
||||
resetUserInfo,
|
||||
getUserSettingInfo,
|
||||
companyStatus
|
||||
companyStatus,
|
||||
companyIsallow
|
||||
} from '@/apis/interfaces/setting'
|
||||
import {
|
||||
uploads
|
||||
@@ -141,9 +142,18 @@
|
||||
company(code) {
|
||||
if (code === -1) {
|
||||
// 跳转到企业认证页面
|
||||
companyIsallow().then(res=>{
|
||||
this.$Router.push({
|
||||
name:'companyApprove'
|
||||
})
|
||||
}).catch(err=>{
|
||||
this.$refs.uToast.show({
|
||||
title: err.message,
|
||||
type: 'primary',
|
||||
duration: 3000
|
||||
})
|
||||
})
|
||||
|
||||
} else if (code === 2) {
|
||||
// 跳转到企业认证页面
|
||||
this.$Router.push({
|
||||
|
||||
Reference in New Issue
Block a user