|
@@ -15,15 +15,9 @@ import { Image, ScrollView, View, Text,Input } from "@tarojs/components";
|
|
|
import Taro, { pxTransform } from "@tarojs/taro";
|
|
|
import { useRequest } from "ahooks";
|
|
|
import React, { useContext, useMemo, useState , useEffect ,useRef } from "react";
|
|
|
-
|
|
|
-import StorageUtil, { EStorage } from "@/utils/storageUtil";
|
|
|
-import { AtFloatLayout } from "taro-ui"
|
|
|
-import { showToast } from "@tarojs/taro";
|
|
|
-import ctyptoUtil from "@/utils/crypto";
|
|
|
-import useStore from "@/hooks/useRedux";
|
|
|
import LoginBox from "../user/components/LoginBox";
|
|
|
const Home = () => {
|
|
|
- const childRef = useRef()
|
|
|
+ const childRef:any = useRef()
|
|
|
const handleOpen = () => {
|
|
|
childRef.current.handleOpen()
|
|
|
}
|
|
@@ -231,108 +225,6 @@ const Home = () => {
|
|
|
<View>如遇问题请向{ channelResult.data?.customerServiceInfo || '400-003-9350'}举报投诉,平台将及时为您解决!</View>
|
|
|
</Flex>
|
|
|
</ScrollView>
|
|
|
- {/* <AtFloatLayout isOpened={isSHow} onClose={ handleClose }>
|
|
|
- {
|
|
|
- showNum == 0 && <Image
|
|
|
- src={require("../../assets/box-bg.png")}
|
|
|
- className='avatar-image-bg'
|
|
|
- />
|
|
|
- }
|
|
|
- {
|
|
|
- showNum == 0 ?
|
|
|
- <View className="login-introduce">
|
|
|
-
|
|
|
- <View className="title">登录方式选择及隐私政策告知
|
|
|
- <View onClick={handleClose}>
|
|
|
- <Image
|
|
|
- src={require("../../assets/close.png")}
|
|
|
- className='avatar-image'
|
|
|
- />
|
|
|
- </View>
|
|
|
- </View>
|
|
|
- <View className="text">
|
|
|
- 为了您正常的使用我们的小程序服务,我们需要处理您的个人信息,具体详见 <Text onClick={goPrivacyPage} className="blue">《隐私政策》</Text>。
|
|
|
- 在您未确认<Text onClick={goPrivacyPage} className="blue">《隐私政策》</Text>前,我们不会搜集您的任何信息。
|
|
|
- 当您勾选协议后即标识您已阅读并同意<Text onClick={goPrivacyPage} className="blue">《隐私政策》</Text>和
|
|
|
- <Text onClick={goRegPage} className="blue">《注册政策》</Text>上的全部内容
|
|
|
- </View>
|
|
|
- <View className="checkd">
|
|
|
- <View className="checkbox">
|
|
|
- {
|
|
|
- checked ?
|
|
|
- <Image onClick={handleCheckboxChange}
|
|
|
- src={require("../../assets/checkd.png")}
|
|
|
- className='avatar-image'
|
|
|
- />:
|
|
|
- <Image onClick={handleCheckboxChange}
|
|
|
- src={require("../../assets/check.png")}
|
|
|
- className='avatar-image'
|
|
|
- />
|
|
|
- }
|
|
|
- <Text className="agree" onClick={handleCheckboxChange}>请确定已阅读并同意</Text>
|
|
|
- </View>
|
|
|
- <Text onClick={goRegPage} className="blue">《注册政策》</Text><Text onClick={goPrivacyPage} className="blue">《隐私政策》</Text>
|
|
|
- </View>
|
|
|
- <View>
|
|
|
- {
|
|
|
- checked ? <Button className='index-quck-btn fontsize' openType='getPhoneNumber'
|
|
|
- onGetPhoneNumber={quickLogin}
|
|
|
- >一键快捷登录</Button>
|
|
|
- :
|
|
|
- <Button className='index-quck-btn fontsize' onClick={quickLogin}>一键快捷登录</Button>
|
|
|
- }
|
|
|
-
|
|
|
- </View>
|
|
|
- <View onClick={showNumChange.bind(null, 1)} className="other-login">输入手机号登录</View>
|
|
|
- </View>
|
|
|
- : <View className="login-introduce phone-Login">
|
|
|
- <View className="title">
|
|
|
- <Text className="text-title">登录诚易融</Text>
|
|
|
- <View onClick={handleClose} className="float">
|
|
|
- <Image
|
|
|
- src={require("../../assets/close.png")}
|
|
|
- className='avatar-image'
|
|
|
- />
|
|
|
- </View>
|
|
|
- </View>
|
|
|
- <View className="input-box">
|
|
|
- <View className="input-phone">
|
|
|
- <Input type='text' placeholderClass="get" onInput={phoneNumChange} value={phone} placeholder='请输入本人实名认证手机号' maxlength={11}/>
|
|
|
- </View>
|
|
|
- <View className="input-password">
|
|
|
- <Input type='text' placeholderClass="get" onInput={validateChange} value={validate} placeholder='请输入验证码' maxlength={6}/>
|
|
|
- {
|
|
|
- isGetValidate ? <View className="get">重新发送 ({time}S)</View> :
|
|
|
- <View className="gettime" onClick={isGetValidateChange}>获取验证码</View>
|
|
|
- }
|
|
|
- </View>
|
|
|
- </View>
|
|
|
- <View className="checkd">
|
|
|
- <View className="checkbox">
|
|
|
- {
|
|
|
- checkedPhone ?
|
|
|
- <Image onClick={phoneChange}
|
|
|
- src={require("../../assets/checkd.png")}
|
|
|
- className='avatar-image'
|
|
|
- />:
|
|
|
- <Image onClick={phoneChange}
|
|
|
- src={require("../../assets/check.png")}
|
|
|
- className='avatar-image'
|
|
|
- />
|
|
|
- }
|
|
|
- <Text onClick={phoneChange}>请确定已阅读并同意</Text>
|
|
|
- </View>
|
|
|
- <Text onClick={goRegPage} className="blue">《注册政策》</Text><Text onClick={goRegPage} className="blue">《隐私政策》</Text>
|
|
|
- </View>
|
|
|
- <View>
|
|
|
- <Button className='index-quck-btn fontsize36' onClick={submitClick}
|
|
|
- >立即登录</Button>
|
|
|
- </View>
|
|
|
- </View>
|
|
|
- }
|
|
|
-
|
|
|
-
|
|
|
- </AtFloatLayout> */}
|
|
|
<LoginBox ref={childRef}></LoginBox>
|
|
|
</Layout>
|
|
|
);
|