819527061@qq.com
2024-05-11 f73ed7862edc9c3cb78a2610486643a2fa079fde
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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
<template>
    <view class="my-wrap">
        <view class="qiehuanzhangaoBtn" @click="qiehuanzhangaoBtn">
            <text>切换账号</text>
        </view>
        <view class="my-img" v-if="myInformation.headImg">
            <image :src="myInformation.headImg" mode="aspectFill"></image>
        </view>
        <view class="content">
            <view class="dianName">{{myInformation.name}}</view>
            <view class="adressLine">
                <text class="informationTitle1">地址:</text>
                <text class="informationTitle2">{{myInformation.registeredAddress ? myInformation.registeredAddress : ''}}</text>
            </view>
            <view class="adressLine">
                <text class="informationTitle1">法人:</text>
                <text class="informationTitle2">{{myInformation.linker}}</text>
            </view>
            <view class="adressLine">
                <text class="informationTitle1">手机:</text>
                <text class="informationTitle2">{{myInformation.phone}}</text>
            </view>
            <view class="guanliyijian-box">
                <view class="guanliyijian-block" @click="gotoSignerManagement">
                    <image src="../../static/image/qianshouIcon.png" mode="aspectFill"></image>
                    <text>签收人管理</text>
                </view>
                <view class="guanliyijian-block" @click="gotoOpinionList">
                    <image src="../../static/image/yijianIcon.png" mode="aspectFill"></image>
                    <text>意见与建议</text>
                </view>
            </view>
        </view>
    </view>
</template>
 
<script>
    export default {
        data() {
            return {
                myInformation:{}
            }
        },
        onShow() {
            this.myInformation = this.$store.state.userInfo
        },
        // onPullDownRefresh() {  //下拉属性
            
        // },
        methods: {
            gotoSignerManagement() {
                uni.navigateTo({
                    url: '/pagesB/signerManagement/signerManagement'
                })
            },
            gotoOpinionList() {
                uni.navigateTo({
                    url: '/pagesC/opinionList/opinionList'
                })
            },
            qiehuanzhangaoBtn() {  //切换账号
            // let openId = this.$store.state.setOpenId
            let _this = this
            uni.login({
                provider: 'weixin',
                success: function (loginRes) {
                    console.log(loginRes,'loginRes =====loginRes')
                    _this.$u.api.wxlogin({code:loginRes.code}).then(res => {
                        let openId = res.result.openId
                        if(openId.length != 28) {
                            this.$u.toast('openId不正确')
                            return
                        }
                        uni.navigateTo({
                             url:'/pagesA/login/login?openId='+ openId
                        })
                    })
                }
            })
            }
        }
    }
</script>
 
<style lang="scss" scoped>
    .my-wrap{
        width: 100%;
        padding: 32rpx;
        box-sizing: border-box;
    }
    .qiehuanzhangaoBtn{
        display: flex;
        flex-direction: row-reverse;
        line-height: 2;
        font-size: 24rpx;
        font-weight: light;
    }
  .my-img{
      width: 100%;
      height: 402rpx;
      image{
          width: 100%;
          height: 100%;;
      }
  }
  .content{
      margin-top: 40rpx;
      .dianName{
          font-size: 32rpx;
          color: #111111;
          font-weight: light;
          line-height: 2.5;
      }
      .adressLine{
          display: flex;
          text{
              font-size: 28rpx;
              color: #111111;
              font-weight: light;
              line-height: 2.5;
          }
          .informationTitle1{
              width: 110rpx;
          }
          .informationTitle2{
                flex:1;
          }
      }
  }
  .guanliyijian-box{
      display: flex;
      margin-top: 40rpx;
      .guanliyijian-block{
          flex: 1;
          border:1px solid #1F9F4C;
          height: 280rpx;
          border-radius: 8rpx;
          display: flex;
          flex-direction: column;
          align-items: center;
          justify-content: center;
          &:first-child{
              margin-right: 40rpx;
          }
          image{
              width: 80rpx;
              height: 80rpx;
          }
          text{
              font-size: 28rpx;
              color: #1F9F4C;
              font-weight: light;
              line-height: 3;
          }
      }
  }
</style>