Browse Source

列表更改3

remove_uniapp
w-R 3 years ago
parent
commit
f370562480
  1. 16
      lib/community/community_course.dart
  2. 2
      lib/community/headlines/article_page.dart
  3. 8
      lib/retrofit/retrofit_api.dart
  4. 2
      lib/retrofit/retrofit_api.g.dart

16
lib/community/community_course.dart

@ -131,8 +131,7 @@ class _CommunityCourse extends State<CommunityCourse>
refreshController.loadFailed();
}
});
if (baseData.isSuccess) {
if (baseData != null && baseData.isSuccess) {
if(categoryId == "") {
refreshController.refreshCompleted();
refreshController.loadComplete();
@ -200,6 +199,7 @@ class _CommunityCourse extends State<CommunityCourse>
_onRefresh(){
queryCourseBanner();
classListAsync();
collectionList();
}
@override
@ -213,10 +213,16 @@ class _CommunityCourse extends State<CommunityCourse>
child: SmartRefresher(
controller: refreshController,
enablePullDown: true,
enablePullUp: true,
enablePullUp: false,
header: MyHeader(),
onRefresh: _onRefresh,
onLoading: () {
footer: CustomFooter(
builder: (context, mode) {
return MyFooter(mode);
},
),
onRefresh:(){
setState(() {_onRefresh();
});
},
physics: BouncingScrollPhysics(),
scrollController: scrollController,

2
lib/community/headlines/article_page.dart

@ -134,7 +134,7 @@ class _ArticlePage extends State<ArticlePage>
articles.addAll(baseData.data.list);
else
articleTop.addAll(baseData.data.list);
if (baseData.data.pageNum == baseData.data.pages) {
if (baseData.data.pageNum == baseData.data.pages && !isHot) {
refreshController.loadNoData();
} else {
pageNum += 1;

8
lib/retrofit/retrofit_api.dart

@ -57,14 +57,14 @@ import 'data/vip_rule_details.dart';
part 'retrofit_api.g.dart';
// const base_url = "https://pos.platform.lotus-wallet.com/app/"; ///
// const baseUrl = "https://pos.platform.lotus-wallet.com/app/"; ///
const base_url = "https://pos.platform.lotus-wallet.com/app/"; ///
const baseUrl = "https://pos.platform.lotus-wallet.com/app/"; ///
// const base_url = "http://platform.prod.kunqi.lotus-wallet.com/app/"; ///222
// const baseUrl = "http://platform.prod.kunqi.lotus-wallet.com/app/"; ///222
const base_url = "http://192.168.10.236:8766/app/"; ///
const baseUrl = "http://192.168.10.236:8766/app/"; ///
// const base_url = "http://192.168.10.236:8766/app/"; ///
// const baseUrl = "http://192.168.10.236:8766/app/"; ///
// const base_url = "http://192.168.10.37:8766/app/";
// const baseUrl = "http://192.168.10.37:8766/app/";

2
lib/retrofit/retrofit_api.g.dart

@ -9,7 +9,7 @@ part of 'retrofit_api.dart';
class _ApiService implements ApiService {
_ApiService(this._dio, {this.baseUrl}) {
ArgumentError.checkNotNull(_dio, '_dio');
baseUrl ??= 'http://192.168.10.236:8766/app/';
baseUrl ??= 'https://pos.platform.lotus-wallet.com/app/';
}
final Dio _dio;

Loading…
Cancel
Save