['设置']
This commit is contained in:
@@ -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
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
@@ -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({
|
||||||
|
|||||||
Reference in New Issue
Block a user