|
|
@ -132,9 +132,9 @@ class _SignInPageState extends State<SignInPage> {
|
|
|
|
return InkWell(
|
|
|
|
return InkWell(
|
|
|
|
onTap: () {
|
|
|
|
onTap: () {
|
|
|
|
if (TextUtil.isEmpty(_phone.text))
|
|
|
|
if (TextUtil.isEmpty(_phone.text))
|
|
|
|
showToast('账号不能为空');
|
|
|
|
showToast('手机号不能为空');
|
|
|
|
else if (TextUtil.isEmpty(_code.text))
|
|
|
|
else if (TextUtil.isEmpty(_code.text))
|
|
|
|
showToast('密码不能为空');
|
|
|
|
showToast('验证码不能为空');
|
|
|
|
else {
|
|
|
|
else {
|
|
|
|
showCupertinoDialog(
|
|
|
|
showCupertinoDialog(
|
|
|
|
context: context,
|
|
|
|
context: context,
|
|
|
@ -142,7 +142,7 @@ class _SignInPageState extends State<SignInPage> {
|
|
|
|
return CupertinoAlertDialog(
|
|
|
|
return CupertinoAlertDialog(
|
|
|
|
title: Text('点击登录即表示您已阅读并同意'),
|
|
|
|
title: Text('点击登录即表示您已阅读并同意'),
|
|
|
|
content: Text(
|
|
|
|
content: Text(
|
|
|
|
'''点击登录即表示您已阅读并同意《闲鱼用户服务协议》《支付服务协议》(特别是免除或限制责任、管辖等粗体下划线标注的条款)。如您不同意上述协议的任何条款,您应立即停止登录及使用本软件及服务。'''),
|
|
|
|
'''点击登录即表示您已阅读并同意《小蜜蜂用户协议》《小蜜蜂隐私政策》(特别是免除或限制责任、管辖等粗体下划线标注的条款)。如您不同意上述协议的任何条款,您应立即停止登录及使用本软件及服务。'''),
|
|
|
|
actions: [
|
|
|
|
actions: [
|
|
|
|
CupertinoDialogAction(
|
|
|
|
CupertinoDialogAction(
|
|
|
|
child: Text('同意'),
|
|
|
|
child: Text('同意'),
|
|
|
@ -151,8 +151,8 @@ class _SignInPageState extends State<SignInPage> {
|
|
|
|
Duration(milliseconds: 1000 + Random().nextInt(500)),
|
|
|
|
Duration(milliseconds: 1000 + Random().nextInt(500)),
|
|
|
|
() {
|
|
|
|
() {
|
|
|
|
Navigator.pop(context);
|
|
|
|
Navigator.pop(context);
|
|
|
|
(_phone.text == '17855823545') &&
|
|
|
|
(_phone.text == '18067170899') &&
|
|
|
|
(_code.text == '000000')
|
|
|
|
(_code.text == '123456')
|
|
|
|
? ARoute.push(context, UserAuthenticationPage())
|
|
|
|
? ARoute.push(context, UserAuthenticationPage())
|
|
|
|
: showToast('账号或密码错误!');
|
|
|
|
: showToast('账号或密码错误!');
|
|
|
|
},
|
|
|
|
},
|
|
|
@ -239,17 +239,28 @@ class _SignInPageState extends State<SignInPage> {
|
|
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
|
|
children: [
|
|
|
|
children: [
|
|
|
|
FlatButton(
|
|
|
|
FlatButton(
|
|
|
|
|
|
|
|
padding: EdgeInsets.zero,
|
|
|
|
onPressed: () {
|
|
|
|
onPressed: () {
|
|
|
|
ARoute.push(context, AgreementPage());
|
|
|
|
ARoute.push(context, AgreementPage());
|
|
|
|
},
|
|
|
|
},
|
|
|
|
child: Text('用户协议'),
|
|
|
|
child: Text(
|
|
|
|
|
|
|
|
'《小蜜蜂用户协议》',
|
|
|
|
|
|
|
|
style: TextStyle(
|
|
|
|
|
|
|
|
color: Colors.lightBlue,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
SizedBox(width: Screenutil.length(15)),
|
|
|
|
)),
|
|
|
|
|
|
|
|
SizedBox(width: 15.w),
|
|
|
|
FlatButton(
|
|
|
|
FlatButton(
|
|
|
|
|
|
|
|
padding: EdgeInsets.zero,
|
|
|
|
onPressed: () {
|
|
|
|
onPressed: () {
|
|
|
|
ARoute.push(context, PrivacyPage());
|
|
|
|
ARoute.push(context, PrivacyPage());
|
|
|
|
},
|
|
|
|
},
|
|
|
|
child: Text('隐私政策'))
|
|
|
|
child: Text(
|
|
|
|
|
|
|
|
'《小蜜蜂隐私政策》',
|
|
|
|
|
|
|
|
style: TextStyle(
|
|
|
|
|
|
|
|
color: Colors.lightBlue,
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
))
|
|
|
|
],
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
],
|
|
|
|
],
|
|
|
|