移动系统liao
2024-05-09 5d6cb15ac86d9174393cb9d1538d69b567e2c26c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
<template>
    <view>
        <u-toast ref="uToast" /><u-no-network></u-no-network>
        <u-navbar title="申请状态" safeAreaInsetTop fixed placeholder>
            <view class="coreshop-navbar-left-slot" slot="left">
                <u-icon name="arrow-left" size="19" @click="goNavigateBack"></u-icon>
                <u-line direction="column" :hairline="false" length="16" margin="0 8px"></u-line>
                <u-icon name="home" size="22" @click="goHome"></u-icon>
            </view>
            <view slot="right">
            </view>
        </u-navbar>
        <!--状态图标-->
        <view class="coreshop-status-image-view">
            <image :src="$globalConstVars.apiFilesUrl+'/static/images/common/non_real_name.png'" mode="widthFix" v-if="info.verifyStatus==3" />
            <image :src="$globalConstVars.apiFilesUrl+'/static/images/common/real_name.png'" mode="widthFix" v-if="info.verifyStatus==2 || info.verifyStatus==1" />
        </view>
 
 
        <view class="coreshop-text-black coreshop-font-lg coreshop-text-center coreshop-margin-bottom-10" v-if="status">
            <text class="coreshop-margin-right-10">{{info.name}}</text>
            <text>{{info.mobile}}</text>
        </view>
 
        <!--状态信息-->
        <view class="coreshop-text-black coreshop-font-xl coreshop-text-center coreshop-margin-bottom-10" v-if="info.verifyStatus==2">
            恭喜,您的申请已提交!
        </view>
        <view class="coreshop-text-black coreshop-font-xl coreshop-text-center coreshop-margin-bottom-10" v-if="info.verifyStatus==3">
            抱歉,您的申请被驳回!
        </view>
        <view class="coreshop-text-black coreshop-font-xl coreshop-text-center coreshop-margin-bottom-10" v-if="info.verifyStatus==1">
            恭喜,您的申请已通过!
        </view>
 
        <view class="coreshop-text-gray coreshop-text-center coreshop-padding-70" v-if="info.verifyStatus==2">
            您于{{info.createTime}}提交的申请已经提交成功,当前状态:<text v-if="info.verifyStatus==2">等待审核</text><text v-if="info.verifyStatus==3">审核驳回</text><text v-if="info.verifyStatus==1">审核通过</text>
        </view>
 
    </view>
 
</template>
<script>
    export default {
        data() {
            return {
                info: {}
            }
        },
        onLoad: function () {
            var _this = this;
            _this.$u.api.getDistributionInfo({ check_condition: true }).then(res => {
                if (res.status) {
                    if (res.data.needApply && res.data.conditionStatus == false) {
                        _this.$u.route({ type: 'redirectTo', url: '/pages/member/distribution/index/index' });
                    }
                    if (res.data.verifyStatus == 1) {//审核通过
                        _this.$u.route({ type: 'redirectTo', url: '/pages/member/distribution/index/index' });
                    }
                    _this.info = res.data;
                } else {
                    //报错了
                    _this.$u.toast(res.msg);
                }
            });
        },
        methods: {
        }
    }
</script>
<style lang="scss">
    @import "applyState.scss";
</style>