0.0.39 • Published 4 months ago

@x-edu/bcs-components v0.0.39

Weekly downloads
-
License
-
Repository
-
Last release
4 months ago

x-edu/bcs-components

VerifyCodePhone 查看完整手机号

const uc = new UC({
  ...
})
export default function Demo() {
  const [userInfo, setUserInfo] = useState(null)

  useEffect(() => {
    async function init() {
      try {
        await uc.login({
          ...
        })
        const info = await uc.getInfo() // 伪代码
        setUserInfo(info)
      } catch (error) {
        console.log(error)
      }
    }
    init()
  }, [])

  if (!userInfo) {
    return null
  }

  return (
    <VerifyCodePhone
        uc={uc}
        userInfo={userInfo}
        value={{ 
          phoneNumber: '18766666', 
          userId: '260182595340', 
          needtickets: false,  //needtickets 是否只查询tickets
          tickets: '' 
        }} 
        one={one} // 物料one信息
        onChange={() => {
          /** 修改value */
        }}
    />
  )
}

SelectUserInput 人员选择

const uc = new UC({
  ...
})
export default function Demo() {
  const [userInfo, setUserInfo] = useState(null)

  useEffect(() => {
    async function init() {
      try {
        await uc.login({
          ...
        })
        const info = await uc.getInfo() // 伪代码
        setUserInfo(info)
      } catch (error) {
        console.log(error)
      }
    }
    init()
  }, [])

  if (!userInfo) {
    return null
  }

  return (
    <SelectUserInput
        uc={uc}
        userInfo={userInfo}
        value={{ 
          manageUserId: 260182595340, 
          manageUserMobile: '18*******66', 
          manageUserName: '用户5056' 
        }} 
        one={one} // 物料one信息
        onChange={() => {
          /** 修改value */
        }}
    />
  )
}

SelectSchool 选择责任校

const uc = new UC({
  ...
})
export default function Demo() {
  const [userInfo, setUserInfo] = useState(null)

  useEffect(() => {
    async function init() {
      try {
        await uc.login({
          ...
        })
        const info = await uc.getInfo() // 伪代码
        setUserInfo(info)
      } catch (error) {
        console.log(error)
      }
    }
    init()
  }, [])

  if (!userInfo) {
    return null
  }

  return (
    <SelectSchool
        uc={uc}
        userInfo={userInfo}
        value="c3e9b431-51b6-43cc-85a6-fab0012c6428"
        one={one} // 物料one信息
        onChange={() => {
          /** 修改value */
        }}
    />
  )
}
0.0.38

4 months ago

0.0.39

4 months ago

0.0.37

4 months ago

0.0.34

5 months ago

0.0.35

5 months ago

0.0.36

5 months ago

0.0.32

11 months ago

0.0.33

11 months ago

0.0.31

12 months ago

0.0.30

12 months ago

0.0.29

12 months ago

0.0.28

12 months ago

0.0.27

12 months ago

0.0.26

12 months ago

0.0.25

12 months ago

0.0.24

12 months ago

0.0.23

12 months ago

0.0.22

12 months ago

0.0.21

1 year ago

0.0.20

1 year ago

0.0.19

1 year ago

0.0.18

1 year ago

0.0.17

1 year ago

0.0.16

1 year ago

0.0.15

1 year ago

0.0.14

1 year ago

0.0.13

1 year ago

0.0.12

1 year ago

0.0.11

1 year ago

0.0.1

1 year ago