Commit c6a0d5e3 authored by XieZhiXiong's avatar XieZhiXiong

chore: 更正eslint报错

parent ddbd7841
......@@ -12,7 +12,6 @@ import {
import { getManageContentNoticeFindWithOutContent } from '../../services/ManageV2Api';
import useAppStyle from '../../hooks/useAppStyle';
import zhongranLogo from '../../../assets/images/zhongran_logo.png';
import ImageBox from '../../components/ImageBox';
// import MobileView from './components/Mobile'
// import SingView from './components/Sing'
import styles from './styles';
......@@ -62,7 +61,7 @@ const Login = () => {
obj.shopType = data.shopType;
break;
}
fn?.(current == 1 ? data : obj).then(res => {
fn?.(current === 1 ? data : obj).then(res => {
if (res.code === 1000) {
setAsyncStorage('USER_INFO', res.data);
userStore.setUserInfo(res.data);
......@@ -112,10 +111,10 @@ const Login = () => {
};
return (
<View style={myStyle['container']}>
<View style={myStyle['head']}>
<Image source={zhongranLogo} style={myStyle['logo']} />
<Text style={myStyle['logoTitle']}>欢迎来到慧售卖</Text>
<View style={myStyle.container}>
<View style={myStyle.head}>
<Image source={zhongranLogo} style={myStyle.logo} />
<Text style={myStyle.logoTitle}>欢迎来到慧售卖</Text>
</View>
{/* 登录方式 */}
<View style={myStyle.loginType}>
......@@ -125,7 +124,7 @@ const Login = () => {
key={index}
style={[
myStyle['loginType-item-text'],
index == current
index === current
? myStyle['loginType-item-text__ative']
: undefined,
]}
......@@ -133,7 +132,7 @@ const Login = () => {
>
{item}
</Text>
{index == current ? (
{index === current ? (
<View style={myStyle['loginType-item-line']} />
) : null}
</View>
......@@ -144,7 +143,7 @@ const Login = () => {
{/* <ModeMobile containerClassName={styles['mobileModel']} toggle={toggle} onConfirm={onConfirm} onClose={onClose} /> */}
{/* 忘记密码 */}
<View style={myStyle['sign']}>
<View style={myStyle.sign}>
{/* <Image src={select ? require('@/assets/images/Checked-@2x.png') : require('@/assets/images/Default@2x.png')} onClick={() => setSelect(!select)} /> */}
<View style={myStyle['sign-signFlex']}>
<Text style={myStyle['sign-signText']}>阅读并同意</Text>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment