Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
gm_flutter
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
林生雨
gm_flutter
Commits
9c0c815d
Commit
9c0c815d
authored
Jul 13, 2020
by
朱翠翠
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'test' of
http://git.wanmeizhensuo.com/linshengyu/gm_flutter
into zcc/flutter
parents
386c886a
d9cb642b
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
55 additions
and
40 deletions
+55
-40
LevelOneItem.dart
lib/ClueModel/page/levelOne/LevelOneItem.dart
+37
-23
FilterView.dart
lib/ClueModel/page/plan/FilterView.dart
+1
-1
PlanPage.dart
lib/ClueModel/page/plan/PlanPage.dart
+0
-0
TopPage.dart
lib/ClueModel/page/top/TopPage.dart
+2
-4
MainManager.dart
lib/MainRouter/manager/MainManager.dart
+11
-6
DioUtil.dart
lib/commonModel/net/DioUtil.dart
+4
-6
No files found.
lib/ClueModel/page/levelOne/LevelOneItem.dart
View file @
9c0c815d
...
...
@@ -173,15 +173,20 @@ class LevelOneItem extends StatelessWidget {
),
),
),
Positioned
(
left:
0
,
bottom:
0
,
child:
Container
(
width:
MediaQuery
.
of
(
context
).
size
.
width
-
30
,
height:
0.5
,
color:
Color
(
0xffE5E5E5
),
),
)
allSize
!=
null
&&
position
!=
null
&&
position
<
allSize
-
1
?
Positioned
(
left:
0
,
bottom:
0
,
child:
Container
(
width:
MediaQuery
.
of
(
context
).
size
.
width
-
30
,
height:
0.5
,
color:
Color
(
0xffE5E5E5
),
),
)
:
Container
(
width:
0
,
height:
0
,
)
],
),
),
...
...
@@ -305,15 +310,20 @@ class LevelOneItem extends StatelessWidget {
// top: 47,
// child: FiveStarView(int.parse(cards.hospital.star), 5),
// ),
Positioned
(
left:
0
,
bottom:
0
,
child:
Container
(
width:
MediaQuery
.
of
(
context
).
size
.
width
-
30
,
height:
0.5
,
color:
Color
(
0xffE5E5E5
),
),
)
allSize
!=
null
&&
position
!=
null
&&
position
<
allSize
-
1
?
Positioned
(
left:
0
,
bottom:
0
,
child:
Container
(
width:
MediaQuery
.
of
(
context
).
size
.
width
-
30
,
height:
0.5
,
color:
Color
(
0xffE5E5E5
),
),
)
:
Container
(
width:
0
,
height:
0
,
)
],
),
));
...
...
@@ -634,11 +644,15 @@ class LevelOneItem extends StatelessWidget {
],
),
),
Container
(
width:
double
.
maxFinite
,
height:
0.5
,
color:
Color
(
0xffE5E5E5
),
)
allSize
!=
null
&&
position
!=
null
&&
position
<
allSize
-
1
?
Container
(
width:
double
.
maxFinite
,
height:
0.5
,
color:
Color
(
0xffE5E5E5
),
)
:
Container
(
height:
0.5
,
)
],
),
).
gestureDetector
(()
{
...
...
lib/ClueModel/page/plan/FilterView.dart
View file @
9c0c815d
...
...
@@ -134,7 +134,7 @@ class FilterViewState extends State<FilterView> {
),
Expanded
(
child:
Container
(
color:
Color
(
0xff
3FB5AF
),
color:
Color
(
0xff
51CDC7
),
alignment:
Alignment
.
center
,
child:
baseText
(
"确定"
,
16
,
Colors
.
white
),
).
gestureDetector
(()
{
...
...
lib/ClueModel/page/plan/PlanPage.dart
View file @
9c0c815d
This diff is collapsed.
Click to expand it.
lib/ClueModel/page/top/TopPage.dart
View file @
9c0c815d
...
...
@@ -81,9 +81,7 @@ class TopPageState extends BaseState<TopPage> with TickerProviderStateMixin {
@override
Widget
buildItem
(
BuildContext
context
)
{
return
Scaffold
(
body:
SafeArea
(
top:
false
,
child:
baseStateView
(
body:
baseStateView
(
MediaQuery
.
of
(
context
).
size
.
width
,
MediaQuery
.
of
(
context
).
size
.
height
,
_model
.
stateLive
,
...
...
@@ -104,7 +102,7 @@ class TopPageState extends BaseState<TopPage> with TickerProviderStateMixin {
},
paddingTop:
MediaQueryData
.
fromWindow
(
window
).
padding
.
top
+
kToolbarHeight
),
)
)
;
);
}
Widget
homeWarp
()
{
...
...
lib/MainRouter/manager/MainManager.dart
View file @
9c0c815d
...
...
@@ -12,6 +12,7 @@ import 'package:flutter_common/commonModel/toast/toast.dart';
import
'package:gm_flutter/commonModel/GMBase.dart'
;
import
'package:gm_flutter/commonModel/base/BaseUtil.dart'
;
import
'package:gm_flutter/commonModel/cache/CacheManager.dart'
;
import
'package:gm_flutter/commonModel/eventbus/SimpleEventBus.dart'
;
import
'package:gm_flutter/commonModel/util/DartUtil.dart'
;
import
'../../commonModel/App.dart'
;
...
...
@@ -72,7 +73,15 @@ class MainManager {
innerSetData
(
map
,
USER_ID
);
innerSetData
(
map
,
USER_AGENT
);
// innerSetData(map, BASE_URL);
innerSetData
(
map
,
BASE_URL
);
if
(
map
[
BASE_URL
]
!=
null
)
{
DioUtil
.
getInstance
();
DioUtil
.
setDefOptions
(
baseUrl:
"
${map[BASE_URL]}
/"
,
agent:
map
[
USER_AGENT
]);
DioUtil
.
getInstance
().
changeOpt
();
}
SimpleEventBus
.
instance
().
notifyListener
(
"clueModel|Plan|PlanPage"
,
"init"
);
// if (map[COOKIE] == null) {
// CacheManager.getInstance().get(MEMORY_CACHE).save(COOKIE,
// "_gm_token=1da6071594101423; csrftoken=rUrkkYYMOVZfIIQnU2IH09QIGmsfe8tE; sessionid=uz7f70uap76r6og48znci5l2hbr9vm5c; _gtid=5af9a5deba8511ea8d4082a085c393c93393");
...
...
@@ -88,11 +97,7 @@ class MainManager {
print
(
"LSY QQWWEERRTTYY
${CacheManager.getInstance().get(MEMORY_CACHE).get(COOKIE)}
"
"
${CacheManager.getInstance().get(MEMORY_CACHE).get(COOKIE) is String}
"
);
if
(
map
[
BASE_URL
]
!=
null
)
{
DioUtil
.
setDefOptions
(
baseUrl:
"
${map[BASE_URL]}
/"
,
agent:
map
[
USER_AGENT
]);
DioUtil
.
getInstance
().
changeOpt
();
}
// SimpleEventBus.instance().notifyListener("PlanPage!initState", "");
}
...
...
lib/commonModel/net/DioUtil.dart
View file @
9c0c815d
...
...
@@ -53,7 +53,7 @@ class DioUtil {
(
_dio
.
httpClientAdapter
as
DefaultHttpClientAdapter
).
onHttpClientCreate
=
(
client
)
{
client
.
findProxy
=
(
url
)
{
return
'PROXY
$proxy
:
${port
??
8888}
'
;
return
'PROXY
$proxy
:
${port
??
8888}
'
;
};
};
}
...
...
@@ -62,7 +62,7 @@ class DioUtil {
return
_dio
;
}
static
void
setDefOptions
({
String
baseUrl
,
String
cookie
,
String
agent
})
{
static
void
setDefOptions
({
String
baseUrl
,
String
agent
})
{
_options
.
connectTimeout
=
10
*
1000
;
_options
.
receiveTimeout
=
20
*
1000
;
_options
.
responseType
=
ResponseType
.
plain
;
...
...
@@ -71,10 +71,8 @@ class DioUtil {
if
(
agent
!=
null
)
{
headers
[
'User-Agent'
]
=
agent
;
}
if
(
cookie
!=
null
)
{
headers
[
HttpHeaders
.
cookieHeader
]
=
cookie
;
}
_options
.
headers
=
headers
;
_options
.
baseUrl
=
baseUrl
??
Api
.
getInstance
().
getBaseUrl
()
+
"/"
;
print
(
"ISEMPTY ??
${baseUrl}
"
);
_options
.
baseUrl
=
baseUrl
??
"
${Api.getInstance().getBaseUrl()}
/"
;
}
}
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