index.tsx 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. import "./index.scss";
  2. import Flex from "@/component/flex";
  3. import Layout from "@/component/layout";
  4. import { PropsWithChildren, useContext, useMemo } from "react";
  5. import { Image, View } from "@tarojs/components";
  6. import ImageUtil from "@/utils/imgUtils";
  7. import AppContext from "@/context/appContext";
  8. import Label from "@/component/label";
  9. import APPConfig from "@/config";
  10. interface IAboutProps {}
  11. const About = (props: PropsWithChildren<IAboutProps>) => {
  12. const appContext = useContext(AppContext);
  13. const { screenWidth } = appContext.systemInfo!;
  14. const imgBackStyle = useMemo(() => {
  15. return {
  16. ...ImageUtil.calculationHeight(1125 / 957, screenWidth),
  17. position: "relative",
  18. } as React.CSSProperties;
  19. }, []);
  20. return (
  21. <Layout>
  22. <Flex style={{ height: "100vh" }}>
  23. <View style={imgBackStyle}>
  24. <Image
  25. className="background-image"
  26. src={require(`../../../assets/bg_aboutus@3x.png`)}
  27. />
  28. <Flex rowGap="sm" className="background-content">
  29. <View style={{ height: 200 }} />
  30. <Flex alignItem="center" className="login-back-logo-wrap">
  31. <Image
  32. className="login-logo"
  33. src={
  34. APPConfig.APPID == "480"
  35. ? require("@/assets/logo-cyr.png")
  36. : require("@/assets/logo.png")
  37. }
  38. />
  39. </Flex>
  40. </Flex>
  41. </View>
  42. <Flex flex={2} />
  43. <Label
  44. style={{
  45. marginBottom: Math.max(appContext.padding.bottom, 16),
  46. textAlign: "center",
  47. }}
  48. type="secondary"
  49. >
  50. 贵州梵诚融资担保有限公司
  51. </Label>
  52. </Flex>
  53. </Layout>
  54. );
  55. };
  56. export default About;