Files
frontend-app/pages/mine_authentication_ok/mine_authentication_ok.vue
T

120 lines
3.3 KiB
Vue
Raw Normal View History

2025-03-20 08:46:07 +08:00
<template>
<view class="authentication_ok_warp">
2025-05-07 09:54:33 +08:00
<Header :leftTitle="$t('authentication.title')" left-path-type="switchTab" left-path="/pages/mine/mine"/>
<view class="authentication_ok_content" v-if="currentUserData && Object.keys(currentUserData).length !==0">
<view class="authentication_result">
<view class="result_title">您的实名认证</view>
<view class="result_value">{{getValue(CERT_STATUS_OPTION,currentUserData.certStatus)}}</view>
</view>
<view class="authentication_info">
<view class="info_item">
<text class="info_item_title">证件姓名:</text>
<text class="info_item_value">{{currentUserData.name}}</text>
</view>
<view class="info_item">
<text class="info_item_title">证件类型:</text>
<text class="info_item_value">{{getValue(CERT_OPTION,currentUserData.certType)}}!</text>
</view>
<view class="info_item">
<text class="info_item_title">证件正面:</text>
<view class="info_item_value">
<up-image :src="currentUserData.certFimg" mode="widthFix" width="100%" height="140" bgColor="#f1f6ff00" :fade="true" duration="450"></up-image>
</view>
</view>
<view class="info_item">
<text class="info_item_title">证件背面:</text>
<view class="info_item_value">
<up-image :src="currentUserData.certBimg" mode="widthFix" width="100%" height="140" bgColor="#f1f6ff00" :fade="true" duration="450"></up-image>
</view>
</view>
</view>
2025-03-20 08:46:07 +08:00
</view>
2025-05-07 09:54:33 +08:00
<view v-else class="not_order_warp">
<up-image src="/static/common/not_order.png" width="80" height="80" bgColor="#f1f6ff00"></up-image>
<view class="not_order_msg_warp">暂无相关认证信息</view>
2025-03-20 08:46:07 +08:00
</view>
<up-toast ref="uToastRef"></up-toast>
</view>
</template>
<script>
2025-05-07 09:54:33 +08:00
import Header from '@/components/header.vue';
import { getUserInfo } from '@/api/auth.js';
import { getValue,CERT_OPTION,CERT_STATUS_OPTION } from '@/utils/enumUtils.js';
2025-03-20 08:46:07 +08:00
export default {
2025-05-07 09:54:33 +08:00
computed: {
CERT_OPTION() {
return CERT_OPTION;
},
CERT_STATUS_OPTION() {
return CERT_STATUS_OPTION;
},
},
components:{Header},
2025-03-20 08:46:07 +08:00
data() {
return {
2025-05-07 09:54:33 +08:00
currentUserData:{},// 当前用户信息
2025-03-20 08:46:07 +08:00
}
},
2025-05-07 09:54:33 +08:00
mounted() {
this.getUserInfo();
},
2025-03-20 08:46:07 +08:00
methods: {
2025-05-07 09:54:33 +08:00
getValue,
async getUserInfo(){
const result = await getUserInfo();
if(result && result.bizcode === 100){
const data = result.data;
console.log("data",data);
this.currentUserData = result.data || {};
}
},
2025-03-20 08:46:07 +08:00
}
}
</script>
<style lang="scss" scoped>
.authentication_ok_warp{
height: 100vh;
background-color: #FFFFFF;
2025-05-07 09:54:33 +08:00
.authentication_ok_content{
padding: 60rpx;
}
2025-03-20 08:46:07 +08:00
.authentication_result{
display: grid;
justify-content: center;
align-items: center;
text-align: center;
2025-05-07 09:54:33 +08:00
margin-top: 100rpx;
2025-03-20 08:46:07 +08:00
.result_title{
font-weight: bold;
font-size: 40rpx;
color: #333333;
}
.result_value{
font-weight: bold;
font-size: 30rpx;
color: #666666;
line-height: 80rpx;
}
}
.authentication_info{
background: #F8F8F8;
border-radius: 10rpx;
padding: 30rpx;
margin-top: 30rpx;
}
.info_item{
font-weight: 500;
font-size: 28rpx;
color: #666666;
line-height: 66rpx;
}
.info_item_value{
font-weight: bold;
font-size: 28rpx;
color: #333333;
}
}
</style>