@@ -112,9 +112,9 @@ android { | |||||
// 智夜生活 | // 智夜生活 | ||||
zhiying { | zhiying { | ||||
applicationId "cn.zhios.zhiying" | applicationId "cn.zhios.zhiying" | ||||
versionCode 38 | |||||
versionCode 39 | |||||
dimension "app" | dimension "app" | ||||
versionName '1.2.38' | |||||
versionName '1.2.39' | |||||
// 签名信息 | // 签名信息 | ||||
signingConfig signingConfigs.zhiying | signingConfig signingConfigs.zhiying | ||||
} | } | ||||
@@ -35,10 +35,16 @@ class MyApp extends StatefulWidget { | |||||
} | } | ||||
class _MyAppState extends State<MyApp> { | class _MyAppState extends State<MyApp> { | ||||
Widget getErrorWidget(BuildContext context, FlutterErrorDetails error) { | Widget getErrorWidget(BuildContext context, FlutterErrorDetails error) { | ||||
var erroStr=''; | |||||
const bool inProduction = const bool.fromEnvironment("dart.vm.product"); | |||||
if ( !inProduction) { | |||||
erroStr=error.exceptionAsString(); | |||||
} | |||||
return Center( | return Center( | ||||
child: Text( | child: Text( | ||||
"走神了~\n${error.exceptionAsString()}", | |||||
"走神了~"+erroStr, | |||||
style: Theme | style: Theme | ||||
.of(context) | .of(context) | ||||
.textTheme | .textTheme | ||||
@@ -38,7 +38,7 @@ dev_dependencies: | |||||
zhiying_moments: | zhiying_moments: | ||||
#path: ../zhiying_moments | #path: ../zhiying_moments | ||||
git: | git: | ||||
ref: 0.0.5 | |||||
ref: 0.1.0 | |||||
url: http://192.168.0.138:3000/FnuoOS_ZhiYing/zhiying_moments.git | url: http://192.168.0.138:3000/FnuoOS_ZhiYing/zhiying_moments.git | ||||
# For information on the generic Dart part of this file, see the | # For information on the generic Dart part of this file, see the | ||||
@@ -97,6 +97,9 @@ class FeedbackRecordRepository { | |||||
/// 基础加载方法 | /// 基础加载方法 | ||||
Future<dynamic> _fetchBaseRequest() async { | Future<dynamic> _fetchBaseRequest() async { | ||||
if(_currentPage==1){ | |||||
_dataModel.data.clear(); | |||||
} | |||||
try { | try { | ||||
var result = await NetUtil.post('/api/v1/feedback/list', method: NetMethod.GET, queryParameters: {'page': _currentPage.toString()}); | var result = await NetUtil.post('/api/v1/feedback/list', method: NetMethod.GET, queryParameters: {'page': _currentPage.toString()}); | ||||
if (NetUtil.isSuccess(result) && !EmptyUtil.isEmpty(result[GlobalConfig.HTTP_RESPONSE_KEY_DATA])) { | if (NetUtil.isSuccess(result) && !EmptyUtil.isEmpty(result[GlobalConfig.HTTP_RESPONSE_KEY_DATA])) { | ||||
@@ -24,17 +24,9 @@ class HomeGoodsBloc extends BlocBase implements CategoryGoodsOnClickCallBack { | |||||
_goodsController = null; | _goodsController = null; | ||||
} | } | ||||
bool loading=false; | |||||
void loadMore(dynamic provider) { | void loadMore(dynamic provider) { | ||||
///避免多次下拉刷新出现跳页加载的情况 | ///避免多次下拉刷新出现跳页加载的情况 | ||||
if(loading){ | |||||
return ; | |||||
} | |||||
loading=true; | |||||
Timer(Duration(milliseconds: 2000), (){ | |||||
loading=false; | |||||
}); | |||||
if (provider != _provider) { | if (provider != _provider) { | ||||
page = 1; | page = 1; | ||||
} | } | ||||
@@ -293,7 +293,7 @@ class _ShareAlertContentState extends State<_ShareAlertContent> { | |||||
if (state == SSDKResponseState.Fail) { | if (state == SSDKResponseState.Fail) { | ||||
Fluttertoast.showToast(msg: '分享失败'); | Fluttertoast.showToast(msg: '分享失败'); | ||||
} else if (state == SSDKResponseState.Success) { | } else if (state == SSDKResponseState.Success) { | ||||
Fluttertoast.showToast(msg: '分享成功'); | |||||
//Fluttertoast.showToast(msg: '分享成功'); | |||||
} else if (state == SSDKResponseState.Cancel) { | } else if (state == SSDKResponseState.Cancel) { | ||||
Fluttertoast.showToast(msg: '取消分享'); | Fluttertoast.showToast(msg: '取消分享'); | ||||
} | } | ||||
@@ -15,7 +15,7 @@ dependencies: | |||||
bloc: ^4.0.0 | bloc: ^4.0.0 | ||||
event_bus: ^1.1.1 | event_bus: ^1.1.1 | ||||
pull_to_refresh: ^1.6.1 | pull_to_refresh: ^1.6.1 | ||||
flutter_cupertino_date_picker: ^1.0.26+2 | |||||
flutter_cupertino_date_picker: | |||||
image_picker: ^0.6.7+3 | image_picker: ^0.6.7+3 | ||||
tab_indicator_styler: 1.0.0 | tab_indicator_styler: 1.0.0 | ||||
connectivity: ^0.4.9+3 | connectivity: ^0.4.9+3 | ||||