quanwei
2025-11-21 1db9a4130699636cabe7e0c9f7f15d004aadada0
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
<template>
    <view>
        <register v-if="supplierStatus == 0"></register>
        <application v-if="supplierStatus == 1"></application>
    </view>
</template>
 
<script>
import register from './register.vue';
import application from './application_status.vue';
export default {
    components: {
        register,
        application
    },
    data() {
        return {
            supplierStatus: -1
        };
    },
    onShow() {
        this.getData();
    },
    methods: {
        getData() {
            let self = this;
            uni.showLoading({
                title: '加载中...'
            });
            self._get('user.index/detail',{
                
            }, res => {
                self.supplierStatus = res.data.supplierStatus;
                if (self.supplierStatus == 2) {
                    self.gotoPage('pages/user/my_shop/my_shop', 'redirect');
                } else if (self.supplierStatus == 3) {
                    uni.hideLoading();
                    uni.showModal({
                        content: '店铺异常,请联系客服处理'
                    });
                } else {
                    let title = '';
                    if(self.supplierStatus == 0){
                        title = '申请入驻';
                    }else{
                        title = '申请审核中';
                    }
                    uni.setNavigationBarTitle({
                        title: title
                    });
                    
                    uni.hideLoading();
                }
            });
        }
    }
};
</script>
 
<style></style>