import
React, { useState } from
'react'
;
import
Taro, { useDidShow } from
'@tarojs/taro'
;
import
{ View, Navigator, Text } from
'@tarojs/components'
;
import
'./index.less'
;
export
default
function Index() {
const
[bindPhone, setBindPhone] = useState(
''
);
useDidShow(() => {
const
{ bindPhone } = Taro.getStorageSync(
'person'
);
setBindPhone(bindPhone);
});
return
bindPhone ? (
<View className=
"login-components"
>
<Navigator className=
"login-content font-medium"
url=
"/page/registerPack/index"
>
<View className=
"login-text"
>登录 / 注册 </View>
</Navigator>
</View>
) :
null
;
}