Commit 101f8906 authored by 林生雨's avatar 林生雨

commit

parent d2794f3c
...@@ -300,10 +300,8 @@ class LevelTwoState extends BaseState<LevelTwoPage> ...@@ -300,10 +300,8 @@ class LevelTwoState extends BaseState<LevelTwoPage>
Text('指导价:', Text('指导价:',
style: TextStyle( style: TextStyle(
color: Color(0xff999999), fontSize: 12)), color: Color(0xff999999), fontSize: 12)),
Text( Expanded(
'¥' + _model.planoverItem.guidePrice, child: baseText('¥' + _model.planoverItem.guidePrice,12,Color(0xffFF5963)),
style:
TextStyle(color: Color(0xffFF5963), fontSize: 12),
) )
], ],
) )
...@@ -373,11 +371,11 @@ class LevelTwoState extends BaseState<LevelTwoPage> ...@@ -373,11 +371,11 @@ class LevelTwoState extends BaseState<LevelTwoPage>
), ),
GestureDetector( GestureDetector(
onTap: () { onTap: () {
// RouterCenterImpl().findMainRouter().jumpPage( RouterCenterImpl().findMainRouter().jumpPage(
// context, context,
// "level_one_plan_instruction", "level_one_plan_instruction",
// {"planId": widget.planId}, {"planId": widget.planId},
// false); false);
}, },
behavior: HitTestBehavior.opaque, behavior: HitTestBehavior.opaque,
child: baseText("了解更多", 12, Color(0xff3FB5AF)), child: baseText("了解更多", 12, Color(0xff3FB5AF)),
...@@ -388,13 +386,44 @@ class LevelTwoState extends BaseState<LevelTwoPage> ...@@ -388,13 +386,44 @@ class LevelTwoState extends BaseState<LevelTwoPage>
if (_model.planoverItem != null) { if (_model.planoverItem != null) {
_model.planoverItem.explanationAttrs.forEach((element) { _model.planoverItem.explanationAttrs.forEach((element) {
list.add(Container( list.add(Container(
height: 28, margin: EdgeInsets.only(bottom: 15),
child: Row( child: Row(
children: <Widget>[ children: <Widget>[
baseText(element.attrName, 13, Color(0xff999999)),
Container( Container(
margin: EdgeInsets.only(left: 12), constraints: BoxConstraints(
child: baseText(element.attrValue, 13, Color(0xff666666)), maxWidth: 52,
),
child: Text(
element.attrName,
textScaleFactor: 1.0,
softWrap: true,
maxLines: 1,
overflow: TextOverflow.ellipsis,
style: TextStyle(
decoration: TextDecoration.none,
fontSize: 13,
color: Color(0xff999999),
fontStyle: FontStyle.normal,
fontWeight: FontWeight.w400),
)),
Expanded(
child: Container(
margin: EdgeInsets.only(left: 12),
child: Text(
element.attrValue,
textScaleFactor: 1.0,
softWrap: false,
overflow: TextOverflow.ellipsis,
style: TextStyle(
decoration: TextDecoration.none,
fontSize: 13,
color: Color(0xff666666),
fontStyle: FontStyle.normal,
fontWeight: FontWeight.w400),
),
// baseText(element.attrValue, 13, Color(0xff666666)
// ),
),
) )
], ],
), ),
......
...@@ -110,7 +110,6 @@ class PlanModel extends BaseModel { ...@@ -110,7 +110,6 @@ class PlanModel extends BaseModel {
} }
void refreshFeed(bool clear, {RefreshController controller}) { void refreshFeed(bool clear, {RefreshController controller}) {
if (clear) { if (clear) {
page = 1; page = 1;
feedDatas.clear(); feedDatas.clear();
...@@ -184,8 +183,8 @@ class PlanModel extends BaseModel { ...@@ -184,8 +183,8 @@ class PlanModel extends BaseModel {
if (max_price == max.toString() && min_price == min.toString()) { if (max_price == max.toString() && min_price == min.toString()) {
return; return;
} }
max_price = max.toString(); max_price = "${max}";
min_price = min.toString(); min_price = "${min}";
feedsLive.notifyView(Pair(LOADING, null)); feedsLive.notifyView(Pair(LOADING, null));
refreshFeed(true); refreshFeed(true);
} }
......
...@@ -59,28 +59,19 @@ class PlanState extends BaseState<PlanPage> with TickerProviderStateMixin { ...@@ -59,28 +59,19 @@ class PlanState extends BaseState<PlanPage> with TickerProviderStateMixin {
PlanBarView planBarView; PlanBarView planBarView;
double stateBarHeight; double stateBarHeight;
double topHeight; double topHeight;
Function(String str) func;
@override @override
void initState() { void initState() {
print("LSY PLAN INIT"); print("LSY PLAN INIT");
// DioUtil.getInstance().setProxy("172.30.9.128"); // DioUtil.getInstance().setProxy("172.30.9.128");
_model.init();
super.initState(); super.initState();
func = (str) {
_model.init();
};
if (CacheManager.getInstance().get(MEMORY_CACHE).get(COOKIE) == null) {
SimpleEventBus.instance().resignEvent("PlanPage!initState", func);
} else {
_model.init();
}
planBarView = planBarView =
PlanBarView(_model.managerLive, clickIndex, hideAllMenuListener); PlanBarView(_model.managerLive, clickIndex, hideAllMenuListener);
} }
@override @override
void dispose() { void dispose() {
SimpleEventBus.instance().unResignEvent("PlanPage!initState", func);
hideAllMenuListener.dispose(); hideAllMenuListener.dispose();
projectMenuListener.dispose(); projectMenuListener.dispose();
sortMenuListener.dispose(); sortMenuListener.dispose();
......
...@@ -20,7 +20,4 @@ abstract class MainRouter extends RouterBaser { ...@@ -20,7 +20,4 @@ abstract class MainRouter extends RouterBaser {
Widget getProxyPage(); Widget getProxyPage();
void catchErrorToBugly(String err); void catchErrorToBugly(String err);
void getInitParams(VoidCallback callback);
} }
...@@ -42,9 +42,4 @@ class MainRouterImpl implements MainRouter { ...@@ -42,9 +42,4 @@ class MainRouterImpl implements MainRouter {
void catchErrorToBugly(String err) { void catchErrorToBugly(String err) {
MainManager.getInstance().catchErrorToBugly(err); MainManager.getInstance().catchErrorToBugly(err);
} }
@override
void getInitParams(VoidCallback callback) {
MainManager.getInstance().getInitParams(callback);
}
} }
...@@ -83,7 +83,7 @@ class MainManager { ...@@ -83,7 +83,7 @@ class MainManager {
"LSY QQWWEERRTTYY ${CacheManager.getInstance().get(MEMORY_CACHE).get(COOKIE)}" "LSY QQWWEERRTTYY ${CacheManager.getInstance().get(MEMORY_CACHE).get(COOKIE)}"
" ${CacheManager.getInstance().get(MEMORY_CACHE).get(COOKIE) is String}"); " ${CacheManager.getInstance().get(MEMORY_CACHE).get(COOKIE) is String}");
DioUtil.getInstance().changeOpt(); DioUtil.getInstance().changeOpt();
SimpleEventBus.instance().notifyListener("PlanPage!initState", ""); // SimpleEventBus.instance().notifyListener("PlanPage!initState", "");
} }
void innerSetData(Map<String, dynamic> map, String str) { void innerSetData(Map<String, dynamic> map, String str) {
...@@ -110,20 +110,20 @@ class MainManager { ...@@ -110,20 +110,20 @@ class MainManager {
} }
} }
void getInitParams(VoidCallback callback) { // void getInitParams(VoidCallback callback) {
if (isInit) { // if (isInit) {
if (flutterChannel != null) { // if (flutterChannel != null) {
flutterChannel.invokeMethod("get_common_params").then((data) { // flutterChannel.invokeMethod("get_common_params").then((data) {
if (data is Map) { // if (data is Map) {
var map = Map<String, dynamic>.from(data); // var map = Map<String, dynamic>.from(data);
initParams(map, callback: callback); // initParams(map, callback: callback);
} // }
}).whenComplete(() { // }).whenComplete(() {
// callback(); //// callback();
}); // });
return; // return;
} // }
} // }
callback(); // callback();
} // }
} }
...@@ -27,10 +27,7 @@ class DioInterceptorManager { ...@@ -27,10 +27,7 @@ class DioInterceptorManager {
if (opt.headers == null) { if (opt.headers == null) {
opt.headers = Map(); opt.headers = Map();
} }
print("INTERCEPTOR");
if (CacheManager.getInstance().get(MEMORY_CACHE).get(COOKIE) != null) { if (CacheManager.getInstance().get(MEMORY_CACHE).get(COOKIE) != null) {
print(
"INTERCEPTOR 11 ${CacheManager.getInstance().get(MEMORY_CACHE).get(COOKIE)}");
opt.headers[HttpHeaders.cookieHeader] = opt.headers[HttpHeaders.cookieHeader] =
CacheManager.getInstance().get(MEMORY_CACHE).get(COOKIE); CacheManager.getInstance().get(MEMORY_CACHE).get(COOKIE);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment