Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
flutter_1.5_therapist
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
享易移动端项目
flutter_1.5_therapist
Commits
5dce5e74
Commit
5dce5e74
authored
Mar 05, 2020
by
xuexirong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
订单列表添加下单时间
parent
d7799985
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
13 additions
and
4 deletions
+13
-4
index.dart
lib/api/index.dart
+2
-2
main_card_entity.dart
lib/data/main_card_entity.dart
+4
-0
order_entity.dart
lib/data/order_entity.dart
+4
-0
main_item_page.dart
lib/ui/pages/main/main_item_page.dart
+2
-2
order_center_item_page.dart
lib/ui/pages/order_center/order_center_item_page.dart
+1
-0
No files found.
lib/api/index.dart
View file @
5dce5e74
...
...
@@ -20,9 +20,9 @@ class DioUtil {
static
final
int
tokenError
=
77777
;
static
final
DioUtil
_singleton
=
DioUtil
.
_init
();
static
final
String
baseUrl
=
"http://59.110.141.131:4042/"
;
//
static final String baseUrl = "http://59.110.141.131:4042/";
//static final String baseUrl = "http://192.168.1.116:4042/";
//static final String baseUrl = "http://192.168.0.106
:4042/";
static
final
String
baseUrl
=
"http://192.168.1.121
:4042/"
;
bool
_isDebug
=
!
bool
.
fromEnvironment
(
"dart.vm.product"
);
Dio
_dio
;
...
...
lib/data/main_card_entity.dart
View file @
5dce5e74
...
...
@@ -105,6 +105,7 @@ class MainCardItem {
String
endTime
;
String
serviceTime
;
String
productName
;
String
createdTime
;
num
status
;
num
addressType
;
...
...
@@ -154,6 +155,7 @@ class MainCardItem {
MainCardItem
(
{
this
.
patientName
,
this
.
nurseName
,
this
.
createdTime
,
this
.
orderAddress
,
this
.
nurseId
,
this
.
childOrderId
,
...
...
@@ -178,6 +180,7 @@ class MainCardItem {
productName
=
json
[
'productName'
];
addressType
=
json
[
'addressType'
];
status
=
json
[
'status'
];
createdTime
=
json
[
'createdTime'
];
}
Map
<
String
,
dynamic
>
toJson
()
{
...
...
@@ -194,6 +197,7 @@ class MainCardItem {
data
[
'productName'
]
=
this
.
productName
;
data
[
'addressType'
]
=
this
.
addressType
;
data
[
'status'
]
=
this
.
status
;
data
[
'createdTime'
]
=
this
.
createdTime
;
return
data
;
}
}
lib/data/order_entity.dart
View file @
5dce5e74
...
...
@@ -110,6 +110,7 @@ class OrderEntity {
String
endTime
;
String
serviceTime
;
String
productName
;
String
createdTime
;
num
status
;
num
addressType
;
...
...
@@ -151,6 +152,7 @@ class OrderEntity {
OrderEntity
(
{
this
.
patientName
,
this
.
nurseName
,
this
.
createdTime
,
this
.
orderAddress
,
this
.
price
,
this
.
nurseId
,
...
...
@@ -177,6 +179,7 @@ class OrderEntity {
productName
=
json
[
'productName'
];
status
=
json
[
'status'
];
addressType
=
json
[
'addressType'
];
createdTime
=
json
[
'createdTime'
];
}
Map
<
String
,
dynamic
>
toJson
()
{
...
...
@@ -194,6 +197,7 @@ class OrderEntity {
data
[
'productName'
]
=
this
.
productName
;
data
[
'status'
]
=
this
.
status
;
data
[
'addressType'
]
=
this
.
addressType
;
data
[
'createdTime'
]
=
this
.
createdTime
;
return
data
;
}
}
lib/ui/pages/main/main_item_page.dart
View file @
5dce5e74
...
...
@@ -398,8 +398,8 @@ class _MainItemPageState extends State<MainItemPage>
],
child:
Column
(
children:
<
Widget
>[
get
DateItem
(
'服务时间'
,
entity
.
serviceTime
,
entity
.
childOrderId
,
marginTop:
false
),
get
NormalItem
(
'下单时间'
,
entity
.
createdTime
,
marginTop:
false
)
,
getDateItem
(
'服务时间'
,
entity
.
serviceTime
,
entity
.
childOrderId
),
getNormalItem
(
'康复项目'
,
entity
.
productName
,
marginTop:
true
),
getNormalItem
(
'被护理人'
,
entity
.
patientName
,
marginTop:
true
),
Offstage
(
...
...
lib/ui/pages/order_center/order_center_item_page.dart
View file @
5dce5e74
...
...
@@ -391,6 +391,7 @@ class _OrderCenterItemPageState extends State<OrderCenterItemPage>
margin:
EdgeInsets
.
only
(
top:
getSize
(
14.5
)),
color:
Color
.
fromRGBO
(
0
,
0
,
0
,
0.05
),
),
getNormalItem
(
'下单时间'
,
entity
.
createdTime
,
marginTop:
true
),
getDateItem
(
'服务时间'
,
entity
,
marginTop:
true
),
getNormalItem
(
'康复项目'
,
entity
.
productName
,
marginTop:
true
),
getNormalItem
(
'项目价格'
,
entity
.
price
.
toString
(),
marginTop:
true
),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment