init
This commit is contained in:
48
lib/pages/store/store.dart
Normal file
48
lib/pages/store/store.dart
Normal file
@@ -0,0 +1,48 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import '../auth/auth.dart';
|
||||
|
||||
import '../../https/auth_api.dart';
|
||||
|
||||
class StorePages extends StatefulWidget {
|
||||
const StorePages({Key? key}) : super(key: key);
|
||||
|
||||
@override
|
||||
State<StorePages> createState() => _StorePagesState();
|
||||
}
|
||||
|
||||
class _StorePagesState extends State<StorePages> {
|
||||
@override
|
||||
void initState() {
|
||||
HttpApi().ApiPost(
|
||||
'user/auth/sms',
|
||||
body: {
|
||||
'mobileNo': '18245180131',
|
||||
'code': '0000',
|
||||
},
|
||||
);
|
||||
super.initState();
|
||||
}
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Scaffold(
|
||||
appBar: AppBar(
|
||||
title: const Text('DTX商城'),
|
||||
shadowColor: Colors.transparent,
|
||||
),
|
||||
body: Center(
|
||||
child: TextButton(
|
||||
onPressed: () {
|
||||
Navigator.push(
|
||||
context,
|
||||
MaterialPageRoute(builder: (context) {
|
||||
return const AuthPages();
|
||||
}),
|
||||
);
|
||||
},
|
||||
child: const Text('登录'),
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user