幼教产品B2B生态平台小程序端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

95 lines
2.1 KiB

12 months ago
<template>
<view>
<view class="block">
<view class="certified">
11 months ago
<image class="icon" src="http://124.71.79.122/images/miniProgram/icon7.png" mode="widthFix" />
11 months ago
<view class="text">您已经通过{{ info.platformSource === '5' ? '幼儿园' : '供应商' }}认证</view>
12 months ago
</view>
<view class="form-list">
<view class="line">
<view class="name">幼儿园名称</view>
11 months ago
<view class="val">{{ info.companyName }}</view>
12 months ago
</view>
<view class="line">
<view class="name">统一社会信用代码</view>
11 months ago
<view class="val">{{ info.creditCode }}</view>
12 months ago
</view>
<view class="line">
<view class="name">法人</view>
11 months ago
<view class="val">{{ info.legalPerson }}</view>
12 months ago
</view>
</view>
</view>
<view class="btn-wrap">
10 months ago
<!-- 队长可以取消认证 -->
<view v-if="team.isTeam == 1" class="btn" @click="cancel">取消认证</view>
<view v-else class="btn" @click="back">确定</view>
12 months ago
</view>
</view>
</template>
<script>
10 months ago
import { enterpriseCertificationStatus, updateCertification } from '@/apis/modules/user.js'
12 months ago
export default {
data() {
return {
10 months ago
team: uni.getStorageSync('team'),
11 months ago
openId: uni.getStorageSync('openId'),
info: {}
12 months ago
}
},
onShow() {
11 months ago
this.getInfo()
12 months ago
},
methods: {
11 months ago
// 企业认证信息
async getInfo() {
const { data } = await enterpriseCertificationStatus(this.openId)
this.info = data
12 months ago
},
10 months ago
// 取消认证
cancel() {
const that = this
uni.showModal({
title: '提示',
content: '取消认证后需要重新进行认证,是否继续?',
async success(res) {
if (res.confirm) {
that.info.authenticationStatus = 0
await updateCertification(that.info)
setTimeout(() => {
uni.navigateBack()
}, 1500)
}
}
})
},
12 months ago
// 返回
back() {
uni.navigateBack()
}
}
}
</script>
<style scoped lang="scss">
.certified {
padding: 100rpx 0;
text-align: center;
.icon {
width: 80rpx;
margin-bottom: 20rpx;
}
.text {
font-size: 26rpx;
color: #333;
}
}
12 months ago
.form-list {
.name {
min-width: 250rpx;
}
}
12 months ago
</style>