Commit c6a0d5e3 authored by XieZhiXiong's avatar XieZhiXiong

chore: 更正eslint报错

parent ddbd7841
...@@ -12,7 +12,6 @@ import { ...@@ -12,7 +12,6 @@ import {
import { getManageContentNoticeFindWithOutContent } from '../../services/ManageV2Api'; import { getManageContentNoticeFindWithOutContent } from '../../services/ManageV2Api';
import useAppStyle from '../../hooks/useAppStyle'; import useAppStyle from '../../hooks/useAppStyle';
import zhongranLogo from '../../../assets/images/zhongran_logo.png'; import zhongranLogo from '../../../assets/images/zhongran_logo.png';
import ImageBox from '../../components/ImageBox';
// import MobileView from './components/Mobile' // import MobileView from './components/Mobile'
// import SingView from './components/Sing' // import SingView from './components/Sing'
import styles from './styles'; import styles from './styles';
...@@ -62,7 +61,7 @@ const Login = () => { ...@@ -62,7 +61,7 @@ const Login = () => {
obj.shopType = data.shopType; obj.shopType = data.shopType;
break; break;
} }
fn?.(current == 1 ? data : obj).then(res => { fn?.(current === 1 ? data : obj).then(res => {
if (res.code === 1000) { if (res.code === 1000) {
setAsyncStorage('USER_INFO', res.data); setAsyncStorage('USER_INFO', res.data);
userStore.setUserInfo(res.data); userStore.setUserInfo(res.data);
...@@ -112,10 +111,10 @@ const Login = () => { ...@@ -112,10 +111,10 @@ const Login = () => {
}; };
return ( return (
<View style={myStyle['container']}> <View style={myStyle.container}>
<View style={myStyle['head']}> <View style={myStyle.head}>
<Image source={zhongranLogo} style={myStyle['logo']} /> <Image source={zhongranLogo} style={myStyle.logo} />
<Text style={myStyle['logoTitle']}>欢迎来到慧售卖</Text> <Text style={myStyle.logoTitle}>欢迎来到慧售卖</Text>
</View> </View>
{/* 登录方式 */} {/* 登录方式 */}
<View style={myStyle.loginType}> <View style={myStyle.loginType}>
...@@ -125,7 +124,7 @@ const Login = () => { ...@@ -125,7 +124,7 @@ const Login = () => {
key={index} key={index}
style={[ style={[
myStyle['loginType-item-text'], myStyle['loginType-item-text'],
index == current index === current
? myStyle['loginType-item-text__ative'] ? myStyle['loginType-item-text__ative']
: undefined, : undefined,
]} ]}
...@@ -133,7 +132,7 @@ const Login = () => { ...@@ -133,7 +132,7 @@ const Login = () => {
> >
{item} {item}
</Text> </Text>
{index == current ? ( {index === current ? (
<View style={myStyle['loginType-item-line']} /> <View style={myStyle['loginType-item-line']} />
) : null} ) : null}
</View> </View>
...@@ -144,7 +143,7 @@ const Login = () => { ...@@ -144,7 +143,7 @@ const Login = () => {
{/* <ModeMobile containerClassName={styles['mobileModel']} toggle={toggle} onConfirm={onConfirm} onClose={onClose} /> */} {/* <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)} /> */} {/* <Image src={select ? require('@/assets/images/Checked-@2x.png') : require('@/assets/images/Default@2x.png')} onClick={() => setSelect(!select)} /> */}
<View style={myStyle['sign-signFlex']}> <View style={myStyle['sign-signFlex']}>
<Text style={myStyle['sign-signText']}>阅读并同意</Text> <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