xuxy
2024-06-25 d1bb68d9f9054bbf87cd84956d3240c71d8e370c
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
<template>
    <view class="main-container user-container">
        <!--         <view>
            我的
        </view> -->
        <!-- 背景图 -->
        <view class="top-bg img100" :style="{'padding-top':(StatusBar)+'px','line-height':CustomBar+'rpx' }">
            <view class="title" style="position: relative;">
                我的
 
            </view>
            <view class="flex m-t-20 user-info" v-if="currentInfo&&(currentInfo.id)">
                <!-- 头像 -->
                <image class="user-icon" v-if="!currentInfo.picture" src="../../static/imgs/home/home-shop-top-icon.png"
                    mode="aspectFit"></image>
                <image class="user-icon" v-if="currentInfo.picture" :src="currentInfo.picture" mode="aspectFit"></image>
 
                <view class="name" style="margin-top: 12rpx;">
                    <view class="t1">{{currentInfo.nickName || '-'}}</view>
                    <view class="t2 m-t-12">{{currentInfo.tel || '暂无电话'}}</view>
                </view>
            </view>
 
 
        </view>
        <view class="user-utils m-20">
            <view class="user-util">
                <view class="title">我的客服</view>
                <view class="flex">
                    <image class="icon-clock m-r-6 m-t-2" src="../../static/common/icon-call.png"></image>
                    <view class="name">
                        客服电话: <span class="topic-gray">1386785374</span>
                    </view>
                </view>
            </view>
        </view>
 
 
        <view class="button-login-out topic-gray" @click="clearlogout">
            退出登录
        </view>
 
        <view style="padding-bottom:200rpx">
        </view>
        <farmer-footer flg="1"></farmer-footer>
 
     
    </view>
</template>
 
<script>
    export default {
        data() {
            return {
                CustomBar: uni.getStorageSync('CustomBar'),
                StatusBar: uni.getStorageSync('StatusBar'),
                tcode: '',
                inviterName: '',
                // StatusBar:0,
 
            };
        },
 
        onLoad(options) {
            const url = options.q ? decodeURIComponent(options.q) : '';
            const urlcode = options.url&&decodeURIComponent(options.url) || ''
        },
        created() {
 
        },
        methods: {
            
            async clearlogout() {
                await this.$message.confirm('是否退出登录?')
                this.$store.commit('updateLogin',false)
                
                uni.reLaunch({
                    url: '/pages/login/farmer-login'
                })
            },
        
 
    
        }
    }
</script>
 
<style lang="scss" scoped>
    @import "./user.scss";
</style>
 
<style lang="scss" scoped>
</style>