登录接口调试
This commit is contained in:
@@ -62,7 +62,9 @@ class ReserveView extends BaseUI {
|
||||
width: 5,
|
||||
),
|
||||
InkWell(
|
||||
onTap: () {},
|
||||
onTap: () {
|
||||
provider.loadTableAreaList();
|
||||
},
|
||||
child: SizedBox(
|
||||
width: 40,
|
||||
height: 40,
|
||||
|
||||
@@ -3,6 +3,7 @@ import 'package:cashier_reserve/common/channel/call_log_model.dart';
|
||||
import 'package:cashier_reserve/common/channel/channel_manager.dart';
|
||||
import 'package:cashier_reserve/common/manager/event_manager.dart';
|
||||
import 'package:cashier_reserve/common/print/print.dart';
|
||||
import 'package:cashier_reserve/model/reserve_model.dart';
|
||||
|
||||
class ReserveViewModel extends BaseUIModel {
|
||||
Map<int, String> weekdayMap = {
|
||||
@@ -35,12 +36,19 @@ class ReserveViewModel extends BaseUIModel {
|
||||
});
|
||||
|
||||
loadCallLog();
|
||||
loadTableAreaList();
|
||||
}
|
||||
|
||||
void loadCallLog() {
|
||||
ChannelManager.getCallLog("getCallLog");
|
||||
}
|
||||
|
||||
void loadTableAreaList() async {
|
||||
final r = await ReserveModel.getShopTableAreaList();
|
||||
|
||||
yjPrint(r);
|
||||
}
|
||||
|
||||
String getCurrentDate() {
|
||||
DateTime now = DateTime.now();
|
||||
return "${now.year}/${now.month}/${now.day}";
|
||||
|
||||
Reference in New Issue
Block a user