57 lines
1.3 KiB
Dart
57 lines
1.3 KiB
Dart
/*
|
|
* @Author: zhangdongxue zhangdongxue@uz.cn
|
|
* @Date: 2022-05-26 13:16:03
|
|
* @LastEditors: zhangdongxue zhangdongxue@uz.cn
|
|
* @LastEditTime: 2022-05-26 14:25:36
|
|
* @FilePath: /gl_dao/lib/pages/store/store.dart
|
|
* @Description: 商城首页
|
|
*/
|
|
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商城1'),
|
|
shadowColor: Colors.transparent,
|
|
),
|
|
body: Center(
|
|
child: TextButton(
|
|
onPressed: () {
|
|
Navigator.push(
|
|
context,
|
|
MaterialPageRoute(builder: (context) {
|
|
return const AuthPages();
|
|
}),
|
|
);
|
|
},
|
|
child: const Text('登录'),
|
|
),
|
|
),
|
|
);
|
|
}
|
|
}
|