ChooseAuth.tsx 530 B

1234567891011121314151617181920
  1. import { View } from "@tarojs/components";
  2. import Buttons from '@components/Buttons'
  3. import Texts from '@components/Texts'
  4. import { ButtonType, ComponentStatus, TextType } from "../utils/types";
  5. import Taro from "@tarojs/taro";
  6. export default function Page() {
  7. function login() {
  8. Taro.navigateTo({
  9. url: '/pages/ChooseScenario'
  10. })
  11. }
  12. return <View className="container">
  13. <Texts text='App name' type={TextType.big} />
  14. <Buttons title='Login' onClick={login} />
  15. </View>;
  16. }