|
@@ -1,7 +1,8 @@
|
1
|
1
|
import React from 'react';
|
2
|
2
|
import Taro from '@tarojs/taro';
|
3
|
3
|
import Page from '@/layouts/index';
|
4
|
|
-import { View, Image } from '@tarojs/components';
|
|
4
|
+import VABC from '@/components/VABC';
|
|
5
|
+import { View, Text, Image } from '@tarojs/components';
|
5
|
6
|
import logo from '@/assets/image/logo.png';
|
6
|
7
|
import peopleicon from '@/assets/icons/peopleicon.png';
|
7
|
8
|
import icon11 from '@/assets/icons/icon11.png';
|
|
@@ -63,31 +64,44 @@ export default (props) => {
|
63
|
64
|
|
64
|
65
|
return (
|
65
|
66
|
<Page tabBar="mine">
|
66
|
|
- <Head
|
67
|
|
- avatar={user?.avatar || person?.avatar || logo}
|
68
|
|
- name={user?.name || person?.name || '市民'}
|
69
|
|
- onChangePwd={onChangePwd}
|
70
|
|
- onExit={onExit}
|
71
|
|
- />
|
72
|
|
- <View className={styles['bg-menu-box']}>
|
73
|
|
- {
|
74
|
|
- show1 && (
|
75
|
|
- <View className={styles['bg-menu-item']}>
|
76
|
|
- <Image src={peopleicon} />
|
77
|
|
- <View className={styles['bg-menu-title']}>所在部门</View>
|
78
|
|
- <View className={styles['bg-menu-subtitle']}>{org?.name || '暂无'}</View>
|
|
67
|
+ <VABC
|
|
68
|
+ header={(
|
|
69
|
+ <Head
|
|
70
|
+ avatar={user?.avatar || person?.avatar || logo}
|
|
71
|
+ name={user?.name || person?.name || '市民'}
|
|
72
|
+ onChangePwd={onChangePwd}
|
|
73
|
+ onExit={onExit}
|
|
74
|
+ />
|
|
75
|
+ )}
|
|
76
|
+ footer={(
|
|
77
|
+ <View className={styles['mine-pg-footer']}>
|
|
78
|
+ <View className={styles.version}>
|
|
79
|
+ <Text>版本: </Text>
|
|
80
|
+ <Text>{VERSION}</Text>
|
79
|
81
|
</View>
|
80
|
|
- )
|
81
|
|
- }
|
82
|
|
- {
|
83
|
|
- show2 && (
|
84
|
|
- <View className={styles['bg-menu-item']} onClick={onClick}>
|
85
|
|
- <Image src={icon11} />
|
86
|
|
- <View className={styles['bg-menu-title']}>消息通知</View>
|
87
|
|
- </View>
|
88
|
|
- )
|
89
|
|
- }
|
90
|
|
- </View>
|
|
82
|
+ </View>
|
|
83
|
+ )}
|
|
84
|
+ >
|
|
85
|
+ <View className={styles['bg-menu-box']}>
|
|
86
|
+ {
|
|
87
|
+ show1 && (
|
|
88
|
+ <View className={styles['bg-menu-item']}>
|
|
89
|
+ <Image src={peopleicon} />
|
|
90
|
+ <View className={styles['bg-menu-title']}>所在部门</View>
|
|
91
|
+ <View className={styles['bg-menu-subtitle']}>{org?.name || '暂无'}</View>
|
|
92
|
+ </View>
|
|
93
|
+ )
|
|
94
|
+ }
|
|
95
|
+ {
|
|
96
|
+ show2 && (
|
|
97
|
+ <View className={styles['bg-menu-item']} onClick={onClick}>
|
|
98
|
+ <Image src={icon11} />
|
|
99
|
+ <View className={styles['bg-menu-title']}>消息通知</View>
|
|
100
|
+ </View>
|
|
101
|
+ )
|
|
102
|
+ }
|
|
103
|
+ </View>
|
|
104
|
+ </VABC>
|
91
|
105
|
</Page>
|
92
|
106
|
)
|
93
|
107
|
}
|