|
@@ -1,3 +1,4 @@
|
|
1
|
+import Taro from "@tarojs/taro"
|
1
|
2
|
import { View, Image, ScrollView } from "@tarojs/components"
|
2
|
3
|
import userBgi from '@/assets/user/userBgi.png'
|
3
|
4
|
import avatar from '@/assets/user/defaultAvatar.png'
|
|
@@ -21,13 +22,20 @@ export default (props) => {
|
21
|
22
|
const handleAboutUs = () => { }
|
22
|
23
|
const handleUpdate = () => { }
|
23
|
24
|
const handleFeedback = () => { }
|
24
|
|
- const handleLogin = () => { setIsLogin(true) }
|
|
25
|
+ const handleLogin = () => {
|
|
26
|
+ Taro.navigateTo({ url: '/pages/login/index' });
|
|
27
|
+ // setIsLogin(true)
|
|
28
|
+ }
|
25
|
29
|
const goMachinery = () => { }
|
26
|
30
|
const goWallet = () => { }
|
27
|
31
|
const goBank = () => { }
|
28
|
32
|
const signOut = () => { setIsLogin(false) }
|
29
|
33
|
return (
|
30
|
34
|
<ScrollView scrollY style={{ height: '100%' }}>
|
|
35
|
+ {
|
|
36
|
+ islogin &&
|
|
37
|
+ <View className='personTip'>该账号归张三所属</View>
|
|
38
|
+ }
|
31
|
39
|
<View className='userHead'>
|
32
|
40
|
<Image src={userBgi} className='userBgi' />
|
33
|
41
|
<View className='headcontent' onClick={handleLogin}>
|