| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131 |
- <template>
- <view class="page">
- <view class="areaView dis f-c a-c ">
- <!-- 认证状态图片 -->
- <image :src="resInfo.authStatus==1?'/static/image/my/auth-success.png':'/static/image/my/auth-error.png' "
- mode="">
- </image>
- <text class="mt-3">{{resInfo.authStatus==1?'实名认证已完成':'实名认证失败'}}</text>
- <text class="error" v-if="resInfo.authStatus!=1">{{resInfo.authResult}}</text>
- <view class="operation-btn dis" v-if="resInfo.authStatus==1">
- <view class="dis a-c j-c" @click="goToQuote">
- 去报价
- </view>
- <view class="dis a-c j-c" @click="submitData">
- 提交执业资料
- </view>
- </view>
- <view class="operation-btn" v-else>
- <view class="dis a-c j-c" @click="resubmit">
- 重新提交
- </view>
- </view>
- </view>
- </view>
- </template>
- <script>
- import {
- mapState,
- mapMutations
- } from "vuex"
- export default {
- data() {
- return {
- authStatus: false,
- resInfo: {},
- }
- },
- onShow() {
- },
- onLoad() {
- this.authenticateInfoQuery();
- },
- computed: {
- ...mapState(['userInfo']),
- },
- methods: {
- //跳转报价页面
- goToQuote() {
- uni.switchTab({
- url: '/pages/index/index'
- })
- },
- //提交资料
- submitData() {
- uni.navigateTo({
- url: '/pages/my/businessLicense'
- })
- },
- //认证驳回重新提交
- resubmit() {
- uni.navigateTo({
- url: '/pages/my/realNameAuth'
- })
- },
- //认证信息查询
- async authenticateInfoQuery() {
- let res = await this.$http.get('/appUser/authInfoGet?id=' + this.userInfo.sysUser.id)
- if (res.code == 200) {
- this.resInfo = res.data;
- }
- }
- }
- }
- </script>
- <style lang="scss" scoped>
- .areaView {
- padding: 45rpx;
- box-sizing: border-box;
- image {
- width: 90rpx;
- height: 90rpx;
- }
- text {
- font-size: 36rpx;
- color: #1f1f1f;
- font-weight: bold;
- }
- .error {
- font-size: 30rpx;
- color: #1f1f1f;
- font-weight: 400;
- text-align: center;
- margin-top: 10rpx;
- }
- .operation-btn {
- margin-top: 136rpx;
- width: 100%;
- view {
- width: 100%;
- padding: 20rpx 0;
- box-sizing: border-box;
- font-size: 30rpx;
- }
- :first-child {
- margin-right: 28rpx;
- background: rgba(253, 233, 53, 0.2);
- border-radius: 50rpx 50rpx 50rpx 50rpx;
- border: 1rpx solid #FDE935;
- font-weight: bold;
- color: #333;
- }
- :last-child {
- background: #FDE935;
- border-radius: 50rpx 50rpx 50rpx 50rpx;
- font-weight: bold;
- color: #1F1F1F;
- }
- }
- }
- </style>
|