-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3f2eb93
commit 3aa60c1
Showing
64 changed files
with
5,452 additions
and
910 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
|
||
import 'dart:core'; | ||
|
||
/** | ||
* | ||
* api | ||
**/ | ||
|
||
String BASE_URL = "http://192.168.1.106"; | ||
|
||
const String CODE_BASE_PORT = ":12223"; | ||
|
||
const String ROOM_BASE_PORT = ":12222"; | ||
|
||
const String HOTEL_BASE_PORT = ":12224"; | ||
|
||
const String ORDER_BASE_PORT = ":12225"; | ||
|
||
String CODE_URL = BASE_URL + CODE_BASE_PORT + "/auth/code/"; | ||
|
||
String TOKEN_URL = BASE_URL + CODE_BASE_PORT + "/auth/checkcode"; | ||
|
||
String HOTEL_URL = BASE_URL + HOTEL_BASE_PORT + "/hotel/info/0/1"; | ||
|
||
String ROOM_URL = BASE_URL + ROOM_BASE_PORT + "/room/detail/1"; | ||
|
||
String ROOM_COUNT_URL = BASE_URL + ROOM_BASE_PORT + "/room/count/1"; | ||
|
||
String SINGLE_ROOM_COUNT_URL = BASE_URL + ROOM_BASE_PORT + "/room/single/count/1"; | ||
|
||
String ORDER_URL = BASE_URL + ORDER_BASE_PORT + "/order/detail/"; | ||
|
||
|
||
String COMMIT_ORDER_URL = BASE_URL + ORDER_BASE_PORT + "/order/commit/"; | ||
|
||
String CREATE_ORDER_URL = BASE_URL + ORDER_BASE_PORT + "/order/create/body"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import 'dart:core'; | ||
|
||
const String TOKEN_KEY = "TOKEN_KEY"; | ||
|
||
const String USER_NAME = "USER_NAME"; | ||
|
||
String gobalUserName = ""; | ||
|
||
String fontname = 'jindian'; | ||
|
||
DateTime selectDate = new DateTime.now(); | ||
|
||
int counttime = 100; | ||
|
||
|
||
|
||
DateTime secselectDate = new DateTime.now().add(Duration(days: 1)); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
|
||
class HotelView{ | ||
|
||
int id; | ||
|
||
String hotel_name; | ||
|
||
String hotel_location; | ||
|
||
String hotel_pic; | ||
|
||
String hotel_grade; | ||
|
||
String neighbor_location; | ||
|
||
String tap; | ||
|
||
String commuser_num; | ||
|
||
HotelView(); | ||
|
||
HotelView.fromJson(Map<String, dynamic> json) | ||
: id = json['id'], | ||
hotel_name = json['hotel_name'], | ||
hotel_location = json['hotel_location'], | ||
hotel_pic = json['hotel_pic'], | ||
hotel_grade = json['hotel_grade'], | ||
neighbor_location = json['neighbor_location'], | ||
tap = json['tap'], | ||
commuser_num = json['commuser_num']; | ||
|
||
Map<String, dynamic> toJson() => | ||
{ | ||
'id': id, | ||
'hotel_name': hotel_name, | ||
'hotel_location': hotel_location, | ||
'hotel_pic': hotel_pic, | ||
'hotel_grade': hotel_grade, | ||
'neighbor_location': neighbor_location, | ||
'tap': tap, | ||
'commuser_num': commuser_num, | ||
|
||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
//import 'package:json_annotation/json_annotation.dart'; | ||
// | ||
//@JsonSerializable(nullable: false) | ||
//class Mobile{ | ||
// | ||
// String code; | ||
// | ||
// String mobilenum; | ||
// | ||
// Mobile({this.code,this.mobilenum}); | ||
// | ||
//} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
|
||
import 'dart:core'; | ||
|
||
class OrderDetail{ | ||
|
||
double collection_price; | ||
|
||
String user_id; | ||
|
||
String room_name; | ||
|
||
String hotel_name; | ||
|
||
int room_count; | ||
|
||
String room_in_time; | ||
|
||
String room_out_time; | ||
|
||
OrderDetail.fromJson(Map<String, dynamic> json) | ||
: room_name = json['room_name'], | ||
room_count = json['room_count'], | ||
collection_price = json['collection_price'], | ||
room_in_time = json['room_in_time'], | ||
room_out_time = json['room_out_time'], | ||
hotel_name = json['hotel_name'], | ||
user_id = json['user_id']; | ||
|
||
Map<String, dynamic> toJson() => | ||
{ | ||
'room_name': room_name, | ||
'room_count': room_count, | ||
'collection_price': collection_price, | ||
'room_out_time': room_out_time, | ||
'room_in_time': room_in_time, | ||
'user_id': user_id, | ||
'hotel_name': hotel_name, | ||
|
||
}; | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
|
||
import 'dart:core'; | ||
|
||
import 'dart:core'; | ||
|
||
class OrderView{ | ||
|
||
int id; | ||
|
||
double collection_price; | ||
|
||
int order_id; | ||
|
||
String user_id; | ||
|
||
String room_name; | ||
|
||
int pay_status; | ||
|
||
String hotel_name; | ||
|
||
int room_count; | ||
|
||
String order_set_time; | ||
|
||
String room_in_time; | ||
|
||
String room_out_time; | ||
|
||
OrderView.fromJson(Map<String, dynamic> json) | ||
: id = json['id'], | ||
room_name = json['room_name'], | ||
room_count = json['room_count'], | ||
collection_price = json['collection_price'], | ||
order_id = json['order_id'], | ||
pay_status = json['pay_status'], | ||
room_in_time = json['room_in_time'], | ||
room_out_time = json['room_out_time'], | ||
order_set_time = json['order_set_time'], | ||
hotel_name = json['hotel_name'], | ||
user_id = json['user_id']; | ||
|
||
Map<String, dynamic> toJson() => | ||
{ | ||
'id': id, | ||
'room_name': room_name, | ||
'room_count': room_count, | ||
'collection_price': collection_price, | ||
'order_id': order_id, | ||
'pay_status': pay_status, | ||
'room_out_time': room_out_time, | ||
'order_set_time': order_set_time, | ||
'room_in_time': room_in_time, | ||
'user_id': user_id, | ||
'hotel_name': hotel_name, | ||
|
||
}; | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
|
||
class RoomView{ | ||
|
||
int id; | ||
|
||
int room_count; | ||
|
||
String room_name; | ||
|
||
double room_price; | ||
|
||
String room_detail; | ||
|
||
String room_pic; | ||
|
||
bool _cancel; | ||
|
||
RoomView.fromJson(Map<String, dynamic> json) | ||
: id = json['id'], | ||
room_name = json['room_name'], | ||
room_count = json['room_count'], | ||
room_price = json['room_price'], | ||
room_detail = json['room_detail'], | ||
room_pic = json['room_pic'], | ||
_cancel = json['_cancel']; | ||
|
||
Map<String, dynamic> toJson() => | ||
{ | ||
'id': id, | ||
'room_name': room_name, | ||
'room_count': room_count, | ||
'room_price': room_price, | ||
'room_detail': room_detail, | ||
'room_pic': room_pic, | ||
'_cancel': _cancel, | ||
|
||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
|
||
class UserToken{ | ||
|
||
String phone_num; | ||
|
||
String acesstoken; | ||
|
||
UserToken.fromJson(Map<String, dynamic> json) | ||
:phone_num = json['phone_num'], | ||
acesstoken = json['acesstoken']; | ||
|
||
|
||
Map<String, dynamic> toJson() => | ||
{ | ||
|
||
'phone_num': phone_num, | ||
'acesstoken': acesstoken | ||
|
||
}; | ||
} |
Oops, something went wrong.