my.vue
4.2 KB
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
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
<template>
<view>
<!-- 用户信息区域 -->
<view class="userInfoWrap">
<image src="../../../static/image/del/ic_90@2x.png" mode="aspectFill"></image>
<view class="userInfo">
<view class="userName">
黑河边境经济
</view>
<view class="depWrap">
后勤部
<text>后勤部主管</text>
</view>
</view>
</view>
<!-- 操作区域 -->
<view class="handleWrap">
<view class="handleItem">
<view class="itemLeft">
<image src="../../../static/image/my/ic_20@2x.png" mode=""></image>
消息
</view>
<view class="infoNum">
7
</view>
</view>
<view class="handleItem">
<view class="itemLeft">
<image src="../../../static/image/my/ic_21@2x.png" mode=""></image>
个人中心
</view>
<image src="../../../static/image/ic_7@2x.png" mode=""></image>
</view>
<view class="handleItem">
<view class="itemLeft">
<image src="../../../static/image/my/ic_25@2x.png" mode=""></image>
操作指南
</view>
<image src="../../../static/image/ic_7@2x.png" mode=""></image>
</view>
<view class="handleItem" style="border-bottom: none;">
<view class="itemLeft">
<image src="../../../static/image/my/ic_26@2x.png" mode=""></image>
客服电话
</view>
<view class="itemRight">
<image src="../../../static/image/my/ic_27@2x.png" mode=""></image>
40046-144584
</view>
</view>
</view>
<!-- 底部按钮区域 -->
<view class="loginBtnWrap">
<view class="loginBtn">
退出登录
</view>
</view>
<u-tabbar
v-model="tabBarCurrent"
:show="show"
:bg-color="bgColor"
:border-top="borderTop"
:list="tabBarList"
:mid-button="midButton"
:inactive-color="inactiveColor"
:activeColor="activeColor"
></u-tabbar>
</view>
</template>
<script>
export default{
data(){
return{
//底部导航栏区域 开始
tabBarCurrent: 0,
show: true,
bgColor: '#ffffff',
borderTop: true,
tabBarList: [{
iconPath: "/static/image/ic_8@2x.png",
selectedIconPath: "/static/image/ic_8_select@2x.png",
text: '首页',
customIcon: false,
},
{
iconPath: "/static/image/ic_56@2x.png",
selectedIconPath: "/static/image/ic_56@2x.png",
text: '组织架构',
customIcon: false,
},
{
iconPath: "/static/image/ic_10@2x.png",
selectedIconPath: "/static/image/ic_10_select@2x.png",
text: '我的',
customIcon: false,
},
],
midButton: false,
inactiveColor: '#909399',
activeColor: '#5098FF',
//底部导航栏区域 结束
}
}
}
</script>
<style lang="scss" scoped>
/* 用户信息区域 */
.userInfoWrap{
height: 180rpx;
background: $uni-bg-main-color;
padding: 0 32rpx;
display: flex;
image{width: 116rpx;height: 116rpx;border-radius: 50%;margin-right: 20rpx;}
color: $uni-text-color-bai;
.userInfo{
.userName{
font-size: $uni-font-size-40;
}
.depWrap{
padding-top: 10rpx;
text{padding-left: 28rpx;}
}
}
}
/* 操作区域 */
.handleWrap{
padding: 0 32rpx;
.handleItem{
height: 104rpx;
display: flex;
align-items: center;
justify-content: space-between;
border-bottom: 2rpx solid #ebedf0;
.itemLeft{
display: flex;
align-items: center;
font-size: $uni-font-size-28;
image{width: $uni-img-size-32;height: $uni-img-size-32;margin-right: 24rpx;}
}
.itemRight{
display: flex;
align-items: center;
font-size: $uni-font-size-28;
color: #969799;
image{width: $uni-img-size-32;height: $uni-img-size-32;margin-right: 10rpx;}
}
.infoNum{
width: 32rpx;
height: 32rpx;
background: #ff2f2f;
border-radius: 50%;
text-align: center;
line-height: 32rpx;
font-size: $uni-font-size-26;
color: $uni-text-color-bai;
}
image{width: $uni-img-size-32;height: $uni-img-size-32;}
}
}
/* 底部按钮区域 */
.loginBtnWrap{
padding-top: 100rpx;
display: flex;
justify-content: center;
.loginBtn{
width: 686rpx;
height: 88rpx;
background: #f2f3f5;
border-radius: 96rpx;
text-align: center;
color: #707172;
line-height: 88rpx;
font-size: $uni-font-size-32;
}
}
</style>