|
|
|
@ -37,7 +37,7 @@ |
|
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
<script> |
|
|
|
|
import { creditCodeAuthentication, businessLicensePictureVerification, updateTeamInfo, organizationCertification, kindergartenWeChatApplication } from '@/apis/modules/user.js' |
|
|
|
|
import { enterpriseCertificationStatus, creditCodeAuthentication, businessLicensePictureVerification, updateTeamInfo, organizationCertification, kindergartenWeChatApplication } from '@/apis/modules/user.js' |
|
|
|
|
import OSS from '@/libs/Oss/upload' |
|
|
|
|
export default { |
|
|
|
|
data() { |
|
|
|
@ -67,8 +67,21 @@ |
|
|
|
|
const pages = getCurrentPages() |
|
|
|
|
const { options } = pages[pages.length - 1] |
|
|
|
|
this.platformId = +options.platformId |
|
|
|
|
this.getEnterInfo() |
|
|
|
|
}, |
|
|
|
|
methods: { |
|
|
|
|
// 企业认证信息 |
|
|
|
|
async getEnterInfo() { |
|
|
|
|
const res = await enterpriseCertificationStatus(this.openId) |
|
|
|
|
if (res.data) { |
|
|
|
|
const { data } = res |
|
|
|
|
this.businessLicensePicture = data.businessLicensePicture || '' |
|
|
|
|
this.licenseForRunningSchool = data.licenseForRunningSchool || '' |
|
|
|
|
this.form.companyName = data.companyName || '' |
|
|
|
|
this.form.creditCode = data.creditCode || '' |
|
|
|
|
this.form.legalPerson = data.legalPerson || '' |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
// 上传营业执照 |
|
|
|
|
uploadBusinessLicense() { |
|
|
|
|
const that = this |
|
|
|
@ -114,10 +127,13 @@ |
|
|
|
|
uni.requestSubscribeMessage({ |
|
|
|
|
tmplIds: ['ZB6wTenlv13mivxXwi-DWwjgVoNJ6eUr1vBvNdQGbJw'], |
|
|
|
|
success: (res) => { |
|
|
|
|
that.$util.sucMsg('提交成功,请重新登录!') |
|
|
|
|
uni.setStorageSync('platformId', that.platformId) |
|
|
|
|
const name = that.platformId == 6 ? '供应商' : '幼儿园' |
|
|
|
|
that.$util.sucMsg(`您已成功提交${name}认证,现在为您切换到${name}端。`) |
|
|
|
|
setTimeout(() => { |
|
|
|
|
uni.clearStorageSync() |
|
|
|
|
that.$util.to('/pages/login/login') |
|
|
|
|
uni.switchTab({ |
|
|
|
|
url: '/pages/person/person' |
|
|
|
|
}) |
|
|
|
|
}, 1500) |
|
|
|
|
}, |
|
|
|
|
fail: function(err) { |
|
|
|
|