社区模块

pull/1/head
张萌 3 years ago
parent 18529da4fb
commit 3da2ce23ec

@ -0,0 +1,24 @@
env:
output: dist/
releases:
- name: dev
jobs:
# Build and publish your apk pkg to pgyer
- name: release-dev-android
package:
platform: android
target: apk
build_args:
target-platform: android-arm,android-arm64
dart-define:
APP_ENV: dev
publish_to: pgyer
# Build and publish your ipa pkg to pgyer
- name: release-dev-ios
package:
platform: ios
target: ipa
build_args:
export-options-plist: ios/dev_ExportOptions.plist
dart-define:
APP_ENV: dev

@ -1,7 +1,8 @@
import 'package:aku_new_community/utils/headers.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:aku_new_community/utils/headers.dart';
const ktextPrimary = Color(0xff333333);
const ktextSubColor = Color(0xff666666);
const ktextThirdColor = Color(0xff999999);

@ -1,5 +1,6 @@
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
class AppTheme {

@ -1,5 +1,7 @@
// import 'package:aku_new_community/widget/bee_scaffold.dart';
import 'package:flutter/material.dart';
import 'package:aku_new_community/const/resource.dart';
import 'package:aku_new_community/gen/assets.gen.dart';
import 'package:aku_new_community/pages/community_introduce/community_introduce_page.dart';
@ -32,7 +34,6 @@ import 'package:aku_new_community/ui/profile/car/car_manage_page.dart';
import 'package:aku_new_community/ui/profile/car_parking/car_parking_page.dart';
import 'package:aku_new_community/ui/profile/house/house_owners_page.dart';
import 'package:aku_new_community/ui/service/task_page.dart';
import 'package:flutter/material.dart';
///
///Application Object

@ -1,3 +1,5 @@
import 'package:aku_new_community/widget/others/user_tool.dart';
part 'market_api.dart';
part 'profile_api.dart';
@ -9,7 +11,8 @@ class SARSAPI {
static const String baseURL = '$host';
///
static String get resource => '$host/static';
static String get resource =>
'https://saas.kaidalai.cn/resource/${UserTool.userProvider.userInfoModel!.communityCode}/';
static String image(String? path) => '$resource$path';
@ -23,6 +26,7 @@ class SARSAPI {
static _House house = _House();
static _File uploadFile = _File();
static _Message message = _Message();
static _Community community = _Community();
///
static _ProfileApi profile = _ProfileApi();
@ -99,6 +103,9 @@ class _Message {
}
class _Community {
///
String get topicDetail => '/app/user/community/topic/findById';
///
String get dynamicDetail => '/app/user/community/dynamic/details';

@ -1,4 +1,5 @@
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
extension NumExt on num {

@ -1,3 +1,11 @@
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:bot_toast/bot_toast.dart';
import 'package:flutter_localizations/flutter_localizations.dart';
import 'package:get/get.dart';
import 'package:provider/provider.dart';
import 'package:aku_new_community/constants/app_theme.dart';
import 'package:aku_new_community/main_initialize.dart';
import 'package:aku_new_community/pages/splash/splash_page.dart';
@ -7,12 +15,6 @@ import 'package:aku_new_community/provider/sign_up_provider.dart';
import 'package:aku_new_community/provider/user_provider.dart';
import 'package:aku_new_community/utils/developer_util.dart';
import 'package:aku_new_community/utils/headers.dart';
import 'package:bot_toast/bot_toast.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter_localizations/flutter_localizations.dart';
import 'package:get/get.dart';
import 'package:provider/provider.dart';
void main() async {
const buildType = const String.fromEnvironment('BUILD_TYPE');

@ -1,19 +1,21 @@
import 'dart:io';
import 'package:aku_new_community/constants/app_theme.dart';
import 'package:aku_new_community/constants/config.dart';
import 'package:aku_new_community/provider/app_provider.dart';
import 'package:aku_new_community/utils/message_parser.dart';
import 'package:aku_new_community/utils/websocket/fire_dialog.dart';
import 'package:aku_new_community/utils/websocket/web_socket_util.dart';
import 'package:flutter/foundation.dart';
import 'package:flutter/services.dart';
import 'package:fluwx/fluwx.dart';
import 'package:get/get.dart';
import 'package:jpush_flutter/jpush_flutter.dart';
import 'package:power_logger/power_logger.dart';
import 'package:provider/provider.dart';
import 'package:aku_new_community/constants/app_theme.dart';
import 'package:aku_new_community/constants/config.dart';
import 'package:aku_new_community/provider/app_provider.dart';
import 'package:aku_new_community/utils/message_parser.dart';
import 'package:aku_new_community/utils/websocket/fire_dialog.dart';
import 'package:aku_new_community/utils/websocket/web_socket_util.dart';
class MainInitialize {
///firebase
// static Future initFirebase() async {

@ -1,6 +1,7 @@
import 'package:aku_new_community/model/common/img_model.dart';
import 'package:common_utils/common_utils.dart';
import 'package:aku_new_community/model/common/img_model.dart';
class ActivityDetailModel {
int? id;
String? title;

@ -1,7 +1,9 @@
import 'package:flutter/material.dart';
import 'package:common_utils/common_utils.dart';
import 'package:aku_new_community/base/base_style.dart';
import 'package:aku_new_community/model/common/img_model.dart';
import 'package:common_utils/common_utils.dart';
import 'package:flutter/material.dart';
class ActivityItemModel {
int? id;

@ -1,6 +1,7 @@
import 'package:aku_new_community/model/common/img_model.dart';
import 'package:common_utils/common_utils.dart';
import 'package:aku_new_community/model/common/img_model.dart';
class BoardItemModel {
int? id;
String? title;

@ -1,5 +1,6 @@
import 'package:aku_new_community/model/common/img_model.dart';
@Deprecated('old model to deprecate')
class CommunityTopicModel {
int? id;
String? title;

@ -1,6 +1,8 @@
import 'package:aku_new_community/model/common/img_model.dart';
import 'package:common_utils/common_utils.dart';
import 'package:aku_new_community/model/common/img_model.dart';
@Deprecated('old model to deprecate')
class EventItemModel {
int? id;
int? createId;

@ -1,6 +1,7 @@
import 'package:aku_new_community/model/common/img_model.dart';
import 'package:common_utils/common_utils.dart';
import 'package:aku_new_community/model/common/img_model.dart';
class MyEventItemModel {
int? id;
String? content;

@ -1,6 +1,7 @@
import 'package:aku_new_community/model/common/img_model.dart';
import 'package:common_utils/common_utils.dart';
import 'package:aku_new_community/model/common/img_model.dart';
class AdviceDetailModel {
AppAdviceDetailVo? appAdviceDetailVo;

@ -1,6 +1,7 @@
import 'package:aku_new_community/model/common/img_model.dart';
import 'package:common_utils/common_utils.dart';
import 'package:aku_new_community/model/common/img_model.dart';
class SuggestionOrComplainModel {
int? id;
int? type;

@ -1,5 +1,6 @@
import 'package:common_utils/common_utils.dart';
import 'package:flutter/material.dart';
import 'package:common_utils/common_utils.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
class CarParkingModel {

@ -0,0 +1,63 @@
import 'package:json_annotation/json_annotation.dart';
import 'package:aku_new_community/model/common/img_model.dart';
part 'all_dynamic_list_model.g.dart';
@JsonSerializable()
class AllDynamicListModel {
final int id;
final String? content;
final int isComment;
final int isPublic;
final int createId;
final String createName;
final String createDate;
final List<ImgModel>? avatarImgList;
final int likes;
final int views;
final int commentNum;
final List<ImgModel>? dynamicImgList;
final bool allowDelete;
final List<TopicTag> topicTags;
final bool isLike;
factory AllDynamicListModel.fromJson(Map<String, dynamic> json) =>
_$AllDynamicListModelFromJson(json);
List<ImgModel> get dynamicList => dynamicImgList ?? [];
const AllDynamicListModel({
required this.id,
this.content,
required this.isComment,
required this.isPublic,
required this.createId,
required this.createName,
required this.createDate,
this.avatarImgList,
required this.likes,
required this.views,
required this.commentNum,
this.dynamicImgList,
required this.allowDelete,
required this.topicTags,
required this.isLike,
});
}
@JsonSerializable()
class TopicTag {
final int id;
final String title;
final int type;
factory TopicTag.fromJson(Map<String, dynamic> json) =>
_$TopicTagFromJson(json);
const TopicTag({
required this.id,
required this.title,
required this.type,
});
}

@ -0,0 +1,38 @@
// GENERATED CODE - DO NOT MODIFY BY HAND
part of 'all_dynamic_list_model.dart';
// **************************************************************************
// JsonSerializableGenerator
// **************************************************************************
AllDynamicListModel _$AllDynamicListModelFromJson(Map<String, dynamic> json) =>
AllDynamicListModel(
id: json['id'] as int,
content: json['content'] as String?,
isComment: json['isComment'] as int,
isPublic: json['isPublic'] as int,
createId: json['createId'] as int,
createName: json['createName'] as String,
createDate: json['createDate'] as String,
avatarImgList: (json['avatarImgList'] as List<dynamic>?)
?.map((e) => ImgModel.fromJson(e as Map<String, dynamic>))
.toList(),
likes: json['likes'] as int,
views: json['views'] as int,
commentNum: json['commentNum'] as int,
dynamicImgList: (json['dynamicImgList'] as List<dynamic>?)
?.map((e) => ImgModel.fromJson(e as Map<String, dynamic>))
.toList(),
allowDelete: json['allowDelete'] as bool,
topicTags: (json['topicTags'] as List<dynamic>)
.map((e) => TopicTag.fromJson(e as Map<String, dynamic>))
.toList(),
isLike: json['isLike'] as bool,
);
TopicTag _$TopicTagFromJson(Map<String, dynamic> json) => TopicTag(
id: json['id'] as int,
title: json['title'] as String,
type: json['type'] as int,
);

@ -0,0 +1,65 @@
import 'package:aku_new_community/model/common/img_model.dart';
import 'package:json_annotation/json_annotation.dart';
part 'comment_list_model.g.dart';
@JsonSerializable()
class CommentListModel {
final int id;
final String content;
final int createId;
final String createName;
final String createDate;
final List<ImgModel> avatarImgList;
final int likes;
final int commentNum;
final bool allowDelete;
final bool isLike;
final List<CommentTwoList> commentTwoList;
factory CommentListModel.fromJson(Map<String, dynamic> json) =>
_$CommentListModelFromJson(json);
const CommentListModel({
required this.id,
required this.content,
required this.createId,
required this.createName,
required this.createDate,
required this.avatarImgList,
required this.likes,
required this.commentNum,
required this.allowDelete,
required this.isLike,
required this.commentTwoList,
});
}
@JsonSerializable()
class CommentTwoList {
final int id;
final String content;
final int createId;
final String createName;
final int parentId;
final String? parentName;
final String createDate;
final List<ImgModel> avatarImgList;
final int likes;
final bool allowDelete;
final bool isLike;
factory CommentTwoList.fromJson(Map<String, dynamic> json) =>
_$CommentTwoListFromJson(json);
const CommentTwoList({
required this.id,
required this.content,
required this.createId,
required this.createName,
required this.parentId,
required this.parentName,
required this.createDate,
required this.avatarImgList,
required this.likes,
required this.allowDelete,
required this.isLike,
});
}

@ -0,0 +1,43 @@
// GENERATED CODE - DO NOT MODIFY BY HAND
part of 'comment_list_model.dart';
// **************************************************************************
// JsonSerializableGenerator
// **************************************************************************
CommentListModel _$CommentListModelFromJson(Map<String, dynamic> json) =>
CommentListModel(
id: json['id'] as int,
content: json['content'] as String,
createId: json['createId'] as int,
createName: json['createName'] as String,
createDate: json['createDate'] as String,
avatarImgList: (json['avatarImgList'] as List<dynamic>)
.map((e) => ImgModel.fromJson(e as Map<String, dynamic>))
.toList(),
likes: json['likes'] as int,
commentNum: json['commentNum'] as int,
allowDelete: json['allowDelete'] as bool,
isLike: json['isLike'] as bool,
commentTwoList: (json['commentTwoList'] as List<dynamic>)
.map((e) => CommentTwoList.fromJson(e as Map<String, dynamic>))
.toList(),
);
CommentTwoList _$CommentTwoListFromJson(Map<String, dynamic> json) =>
CommentTwoList(
id: json['id'] as int,
content: json['content'] as String,
createId: json['createId'] as int,
createName: json['createName'] as String,
parentId: json['parentId'] as int,
parentName: json['parentName'] as String,
createDate: json['createDate'] as String,
avatarImgList: (json['avatarImgList'] as List<dynamic>)
.map((e) => ImgModel.fromJson(e as Map<String, dynamic>))
.toList(),
likes: json['likes'] as int,
allowDelete: json['allowDelete'] as bool,
isLike: json['isLike'] as bool,
);

@ -0,0 +1,45 @@
import 'package:json_annotation/json_annotation.dart';
import 'package:aku_new_community/model/common/img_model.dart';
import 'package:aku_new_community/models/community/all_dynamic_list_model.dart';
part 'dynamic_detail_model.g.dart';
@JsonSerializable()
class DynamicDetailModel {
final int id;
final String? content;
final int isComment;
final int isPublic;
final int createId;
final String createName;
final String createDate;
final List<ImgModel> avatarImgList;
final int likes;
final int views;
final int commentNum;
final List<ImgModel> dynamicImgList;
final bool allowDelete;
final List<TopicTag> topicTags;
final bool isLike;
factory DynamicDetailModel.fromJson(Map<String, dynamic> json) =>
_$DynamicDetailModelFromJson(json);
const DynamicDetailModel({
required this.id,
this.content,
required this.isComment,
required this.isPublic,
required this.createId,
required this.createName,
required this.createDate,
required this.avatarImgList,
required this.likes,
required this.views,
required this.commentNum,
required this.dynamicImgList,
required this.allowDelete,
required this.topicTags,
required this.isLike,
});
}

@ -0,0 +1,32 @@
// GENERATED CODE - DO NOT MODIFY BY HAND
part of 'dynamic_detail_model.dart';
// **************************************************************************
// JsonSerializableGenerator
// **************************************************************************
DynamicDetailModel _$DynamicDetailModelFromJson(Map<String, dynamic> json) =>
DynamicDetailModel(
id: json['id'] as int,
content: json['content'] as String?,
isComment: json['isComment'] as int,
isPublic: json['isPublic'] as int,
createId: json['createId'] as int,
createName: json['createName'] as String,
createDate: json['createDate'] as String,
avatarImgList: (json['avatarImgList'] as List<dynamic>)
.map((e) => ImgModel.fromJson(e as Map<String, dynamic>))
.toList(),
likes: json['likes'] as int,
views: json['views'] as int,
commentNum: json['commentNum'] as int,
dynamicImgList: (json['dynamicImgList'] as List<dynamic>)
.map((e) => ImgModel.fromJson(e as Map<String, dynamic>))
.toList(),
allowDelete: json['allowDelete'] as bool,
topicTags: (json['topicTags'] as List<dynamic>)
.map((e) => TopicTag.fromJson(e as Map<String, dynamic>))
.toList(),
isLike: json['isLike'] as bool,
);

@ -0,0 +1,30 @@
import 'package:json_annotation/json_annotation.dart';
import 'package:aku_new_community/model/common/img_model.dart';
part 'top_detail_model.g.dart';
@JsonSerializable()
class TopDetailModel {
final int id;
final String title;
final String content;
final int isPublic;
final int isRating;
final int dynamicNum;
final int commentNum;
final List<ImgModel> imgList;
factory TopDetailModel.fromJson(Map<String, dynamic> json) =>
_$TopDetailModelFromJson(json);
const TopDetailModel({
required this.id,
required this.title,
required this.content,
required this.isPublic,
required this.isRating,
required this.dynamicNum,
required this.commentNum,
required this.imgList,
});
}

@ -0,0 +1,21 @@
// GENERATED CODE - DO NOT MODIFY BY HAND
part of 'top_detail_model.dart';
// **************************************************************************
// JsonSerializableGenerator
// **************************************************************************
TopDetailModel _$TopDetailModelFromJson(Map<String, dynamic> json) =>
TopDetailModel(
id: json['id'] as int,
title: json['title'] as String,
content: json['content'] as String,
isPublic: json['isPublic'] as int,
isRating: json['isRating'] as int,
dynamicNum: json['dynamicNum'] as int,
commentNum: json['commentNum'] as int,
imgList: (json['imgList'] as List<dynamic>)
.map((e) => ImgModel.fromJson(e as Map<String, dynamic>))
.toList(),
);

@ -0,0 +1,29 @@
import 'package:json_annotation/json_annotation.dart';
import 'package:aku_new_community/model/common/img_model.dart';
part 'topic_list_model.g.dart';
@JsonSerializable()
class TopicListModel {
final int id;
final String title;
final String content;
final int isPublic;
final int isRating;
final int dynamicNum;
final int commentNum;
final List<ImgModel> imgList;
factory TopicListModel.fromJson(Map<String, dynamic> json) =>
_$TopicListModelFromJson(json);
const TopicListModel({
required this.id,
required this.title,
required this.content,
required this.isPublic,
required this.isRating,
required this.dynamicNum,
required this.commentNum,
required this.imgList,
});
}

@ -0,0 +1,21 @@
// GENERATED CODE - DO NOT MODIFY BY HAND
part of 'topic_list_model.dart';
// **************************************************************************
// JsonSerializableGenerator
// **************************************************************************
TopicListModel _$TopicListModelFromJson(Map<String, dynamic> json) =>
TopicListModel(
id: json['id'] as int,
title: json['title'] as String,
content: json['content'] as String,
isPublic: json['isPublic'] as int,
isRating: json['isRating'] as int,
dynamicNum: json['dynamicNum'] as int,
commentNum: json['commentNum'] as int,
imgList: (json['imgList'] as List<dynamic>)
.map((e) => ImgModel.fromJson(e as Map<String, dynamic>))
.toList(),
);

@ -0,0 +1,32 @@
import 'package:json_annotation/json_annotation.dart';
part 'topic_model.g.dart';
@JsonSerializable()
class TopicModel {
final int id;
final String title;
final int type;
factory TopicModel.fromJson(Map<String, dynamic> json) =>
_$TopicModelFromJson(json);
String get typeToString {
switch (type) {
case 1:
return '普通';
case 2:
return '推荐';
case 3:
return '热门';
default:
return '';
}
}
const TopicModel({
required this.id,
required this.title,
required this.type,
});
}

@ -0,0 +1,13 @@
// GENERATED CODE - DO NOT MODIFY BY HAND
part of 'topic_model.dart';
// **************************************************************************
// JsonSerializableGenerator
// **************************************************************************
TopicModel _$TopicModelFromJson(Map<String, dynamic> json) => TopicModel(
id: json['id'] as int,
title: json['title'] as String,
type: json['type'] as int,
);

@ -1,7 +1,8 @@
import 'package:aku_new_community/model/common/img_model.dart';
import 'package:equatable/equatable.dart';
import 'package:json_annotation/json_annotation.dart';
import 'package:aku_new_community/model/common/img_model.dart';
part 'community_introduce_model.g.dart';
@JsonSerializable()

@ -1,7 +1,8 @@
import 'package:aku_new_community/model/common/img_model.dart';
import 'package:equatable/equatable.dart';
import 'package:json_annotation/json_annotation.dart';
import 'package:aku_new_community/model/common/img_model.dart';
part 'electronic_commerc_list_model.g.dart';
@JsonSerializable()

@ -1,8 +1,10 @@
import 'package:aku_new_community/base/base_style.dart';
import 'package:common_utils/common_utils.dart';
import 'package:flutter/material.dart';
import 'package:common_utils/common_utils.dart';
import 'package:json_annotation/json_annotation.dart';
import 'package:aku_new_community/base/base_style.dart';
part 'facility_appointment_model.g.dart';
@JsonSerializable()

@ -1,6 +1,7 @@
import 'package:aku_new_community/model/common/img_model.dart';
import 'package:json_annotation/json_annotation.dart';
import 'package:aku_new_community/model/common/img_model.dart';
part 'facility_type_model.g.dart';
@JsonSerializable()

@ -1,6 +1,7 @@
import 'package:aku_new_community/model/common/img_model.dart';
import 'package:common_utils/common_utils.dart';
import 'package:aku_new_community/model/common/img_model.dart';
class GeographicInformationModel {
int? id;
String? name;

@ -1,7 +1,8 @@
import 'package:aku_new_community/model/common/img_model.dart';
import 'package:equatable/equatable.dart';
import 'package:json_annotation/json_annotation.dart';
import 'package:aku_new_community/model/common/img_model.dart';
part 'lease_detail_model.g.dart';
@JsonSerializable()

@ -1,6 +1,7 @@
import 'package:aku_new_community/model/common/img_model.dart';
import 'package:common_utils/common_utils.dart';
import 'package:aku_new_community/model/common/img_model.dart';
class HouseIntroduceModel {
int? id;
String? name;

@ -1,8 +1,10 @@
import 'package:aku_new_community/model/common/img_model.dart';
import 'package:equatable/equatable.dart';
import 'package:flutter/material.dart';
import 'package:equatable/equatable.dart';
import 'package:json_annotation/json_annotation.dart';
import 'package:aku_new_community/model/common/img_model.dart';
part 'house_keeping_list_model.g.dart';
@JsonSerializable()

@ -1,6 +1,7 @@
import 'package:aku_new_community/models/integral/clocked_record_list_model.dart';
import 'package:json_annotation/json_annotation.dart';
import 'package:aku_new_community/models/integral/clocked_record_list_model.dart';
part 'integral_info_model.g.dart';
@JsonSerializable()

@ -1,8 +1,9 @@
import 'package:aku_new_community/models/login/community_model.dart';
import 'package:aku_new_community/models/login/picked_city_model.dart';
import 'package:hive/hive.dart';
import 'package:json_annotation/json_annotation.dart';
import 'package:aku_new_community/models/login/community_model.dart';
import 'package:aku_new_community/models/login/picked_city_model.dart';
part 'history_login_model.g.dart';
@JsonSerializable()

@ -1,6 +1,6 @@
import 'package:aku_new_community/utils/hive_store.dart';
import 'package:json_annotation/json_annotation.dart';
import 'package:aku_new_community/utils/hive_store.dart';
import 'china_region_model.dart';
part 'picked_city_model.g.dart';

@ -1,7 +1,8 @@
import 'package:aku_new_community/model/common/img_model.dart';
import 'package:equatable/equatable.dart';
import 'package:json_annotation/json_annotation.dart';
import 'package:aku_new_community/model/common/img_model.dart';
part 'fix_detail_model.g.dart';
@JsonSerializable()

@ -1,6 +1,7 @@
import 'package:aku_new_community/ui/market/shop_car/shop_car_func.dart';
import 'package:json_annotation/json_annotation.dart';
import 'package:aku_new_community/ui/market/shop_car/shop_car_func.dart';
part 'good_detail_model.g.dart';
@JsonSerializable()

@ -1,9 +1,11 @@
import 'package:aku_new_community/model/common/img_model.dart';
import 'package:flutter/material.dart';
import 'package:common_utils/common_utils.dart';
import 'package:equatable/equatable.dart';
import 'package:flutter/material.dart';
import 'package:json_annotation/json_annotation.dart';
import 'package:aku_new_community/model/common/img_model.dart';
part 'my_order_list_model.g.dart';
@JsonSerializable()

@ -1,7 +1,8 @@
import 'package:aku_new_community/model/common/img_model.dart';
import 'package:equatable/equatable.dart';
import 'package:json_annotation/json_annotation.dart';
import 'package:aku_new_community/model/common/img_model.dart';
part 'order_detail_model.g.dart';
@JsonSerializable()

@ -1,6 +1,7 @@
import 'package:aku_new_community/ui/market/shop_car/shop_car_func.dart';
import 'package:json_annotation/json_annotation.dart';
import 'package:aku_new_community/ui/market/shop_car/shop_car_func.dart';
part 'shop_car_list_model.g.dart';
@JsonSerializable()

@ -1,6 +1,7 @@
import 'package:aku_new_community/model/common/img_model.dart';
import 'package:json_annotation/json_annotation.dart';
import 'package:aku_new_community/model/common/img_model.dart';
part 'reply_list_model.g.dart';
@JsonSerializable()

@ -1,9 +1,11 @@
import 'package:aku_new_community/base/base_style.dart';
import 'package:flutter/material.dart';
import 'package:common_utils/common_utils.dart';
import 'package:equatable/equatable.dart';
import 'package:flutter/material.dart';
import 'package:json_annotation/json_annotation.dart';
import 'package:aku_new_community/base/base_style.dart';
part 'new_renovation_list_model.g.dart';
@JsonSerializable()

@ -1,7 +1,8 @@
import 'package:aku_new_community/model/common/img_model.dart';
import 'package:common_utils/common_utils.dart';
import 'package:json_annotation/json_annotation.dart';
import 'package:aku_new_community/model/common/img_model.dart';
part 'news_item_model.g.dart';
@JsonSerializable()

@ -1,8 +1,9 @@
import 'package:aku_new_community/model/community/activity_item_model.dart';
import 'package:aku_new_community/model/community/community_topic_model.dart';
import 'package:equatable/equatable.dart';
import 'package:json_annotation/json_annotation.dart';
import 'package:aku_new_community/model/community/activity_item_model.dart';
import 'package:aku_new_community/model/community/community_topic_model.dart';
part 'search_model.g.dart';
@JsonSerializable()

@ -1,6 +1,7 @@
import 'package:aku_new_community/model/common/img_model.dart';
import 'package:common_utils/common_utils.dart';
import 'package:aku_new_community/model/common/img_model.dart';
class SurroundingEnterprisesModel {
int? id;
String? name;

@ -1,6 +1,7 @@
import 'package:flutter/material.dart';
import 'package:common_utils/common_utils.dart';
import 'package:equatable/equatable.dart';
import 'package:flutter/material.dart';
import 'package:json_annotation/json_annotation.dart';
part 'passed_house_list_model.g.dart';

@ -1,6 +1,7 @@
import 'package:aku_new_community/model/common/img_model.dart';
import 'package:json_annotation/json_annotation.dart';
import 'package:aku_new_community/model/common/img_model.dart';
part 'user_info_model.g.dart';
@JsonSerializable()

@ -1,6 +1,7 @@
import 'package:aku_new_community/base/base_style.dart';
import 'package:aku_new_community/const/resource.dart';
import 'package:aku_new_community/constants/api.dart';
import 'package:aku_new_community/constants/sars_api.dart';
import 'package:aku_new_community/model/common/img_model.dart';
import 'package:aku_new_community/models/community_introduce/community_introduce_model.dart';
import 'package:aku_new_community/utils/network/base_model.dart';
@ -47,7 +48,7 @@ class _CommunityIntroducePageState extends State<CommunityIntroducePage> {
child: FadeInImage.assetNetwork(
placeholder: R.ASSETS_IMAGES_PLACEHOLDER_WEBP,
fit: BoxFit.cover,
image: API.image(ImgModel.first(_model.imgList))),
image: SARSAPI.image(ImgModel.first(_model.imgList))),
width: double.infinity,
height: 424.w,
),

@ -124,7 +124,7 @@ class _ConvenientPhonePageState extends State<ConvenientPhonePage> {
controller: _easyRefreshController,
path: API.manager.convenientPhone,
convert: (model) {
return model.tableList!
return model.rows
.map((e) => ConvenientPhoneModel.fromJson(e))
.toList();
},

@ -1,6 +1,6 @@
import 'package:aku_new_community/base/base_style.dart';
import 'package:aku_new_community/const/resource.dart';
import 'package:aku_new_community/constants/api.dart';
import 'package:aku_new_community/constants/sars_api.dart';
import 'package:aku_new_community/model/common/img_model.dart';
import 'package:aku_new_community/models/electronic_commerc/electronic_commerc_list_model.dart';
import 'package:aku_new_community/pages/electronic_commerc/electronic_commerc_detail_page.dart';
@ -70,7 +70,7 @@ class _ElectronicCommercCardState extends State<ElectronicCommercCard> {
width: 240.w,
height: 200.w,
fit: BoxFit.cover,
image: API.image(ImgModel.first(model.imgList)),
image: SARSAPI.image(ImgModel.first(model.imgList)),
),
],
),

@ -70,7 +70,7 @@ class _ElectronicCommercDetailPageState
// width: double.infinity,
// child: FadeInImage.assetNetwork(
// placeholder: R.ASSETS_IMAGES_PLACEHOLDER_WEBP,
// image: API.image(ImgModel.first(_detailModel.imgList))),
// image: SARSAPI.image(ImgModel.first(_detailModel.imgList))),
// ),
// 24.w.heightBox,
_detailModel.title.text

@ -44,7 +44,7 @@ class _ElectronicCommercViewState extends State<ElectronicCommercView> {
controller: _refreshController,
extraParams: {"electronicCommerceCategoryId": widget.id},
convert: (models) {
return models.tableList!
return models.rows
.map((e) => ElectronicCommercListModel.fromJson(e))
.toList();
},

@ -1,5 +1,6 @@
import 'package:aku_new_community/base/base_style.dart';
import 'package:aku_new_community/constants/api.dart';
import 'package:aku_new_community/constants/sars_api.dart';
import 'package:aku_new_community/model/common/img_model.dart';
import 'package:aku_new_community/model/manager/event_voting_model.dart';
import 'package:aku_new_community/pages/event_activity/voting_detail_page.dart';
@ -60,7 +61,7 @@ class _EventVotingPageState extends State<EventVotingPage> {
child: ClipRect(
child: FadeInImage.assetNetwork(
placeholder: R.ASSETS_IMAGES_PLACEHOLDER_WEBP,
image: API.image(ImgModel.first(model.imgUrls)),
image: SARSAPI.image(ImgModel.first(model.imgUrls)),
fit: BoxFit.cover,
),
),
@ -137,9 +138,7 @@ class _EventVotingPageState extends State<EventVotingPage> {
path: API.manager.enventVotingList,
controller: _controller,
convert: (model) {
return model.tableList!
.map((e) => EventVotingModel.fromJson(e))
.toList();
return model.rows.map((e) => EventVotingModel.fromJson(e)).toList();
},
builder: (items) {
return ListView.separated(

@ -1,6 +1,6 @@
import 'package:aku_new_community/base/base_style.dart';
import 'package:aku_new_community/constants/api.dart';
import 'package:aku_new_community/constants/app_theme.dart';
import 'package:aku_new_community/constants/sars_api.dart';
import 'package:aku_new_community/model/common/img_model.dart';
import 'package:aku_new_community/model/manager/voting_detail_model.dart';
import 'package:aku_new_community/pages/manager_func.dart';
@ -133,7 +133,7 @@ class _VotingDetailPageState extends State<VotingDetailPage> {
borderRadius: BorderRadius.circular(4.w),
child: FadeInImage.assetNetwork(
placeholder: R.ASSETS_IMAGES_PLACEHOLDER_WEBP,
image: API.image(
image: SARSAPI.image(
ImgModel.first(model.imgUrls),
),
fit: BoxFit.cover,
@ -232,7 +232,7 @@ class _VotingDetailPageState extends State<VotingDetailPage> {
borderRadius: BorderRadius.circular(8.w),
child: FadeInImage.assetNetwork(
placeholder: R.ASSETS_IMAGES_PLACEHOLDER_WEBP,
image: API.image(ImgModel.first(_model.imgUrls)),
image: SARSAPI.image(ImgModel.first(_model.imgUrls)),
),
),
44.w.heightBox,

@ -1,9 +1,10 @@
import 'package:flutter/material.dart';
import 'package:aku_new_community/pages/express_packages/express_package_view.dart';
import 'package:aku_new_community/utils/hive_store.dart';
import 'package:aku_new_community/utils/websocket/tips_dialog.dart';
import 'package:aku_new_community/widget/bee_scaffold.dart';
import 'package:aku_new_community/widget/tab_bar/bee_tab_bar.dart';
import 'package:flutter/material.dart';
class ExpressPackagePage extends StatefulWidget {
ExpressPackagePage({Key? key}) : super(key: key);

@ -40,10 +40,9 @@ class _ExpressPackageViewState extends State<ExpressPackageView> {
"packageCollectionStatus": widget.index + 1,
},
convert: (models) {
return models.tableList
?.map((e) => ExpressPackageListModel.fromJson(e))
.toList() ??
[];
return models.rows
.map((e) => ExpressPackageListModel.fromJson(e))
.toList();
},
builder: (items) {
return ListView.separated(

@ -1,6 +1,7 @@
import 'package:aku_new_community/base/base_style.dart';
import 'package:aku_new_community/const/resource.dart';
import 'package:aku_new_community/constants/api.dart';
import 'package:aku_new_community/constants/sars_api.dart';
import 'package:aku_new_community/model/common/img_model.dart';
import 'package:aku_new_community/models/geographic_information/geographic_information_model.dart';
import 'package:aku_new_community/utils/network/base_model.dart';
@ -50,7 +51,7 @@ class _GeographicInformationPageState extends State<GeographicInformationPage> {
child: FadeInImage.assetNetwork(
placeholder: R.ASSETS_IMAGES_PLACEHOLDER_WEBP,
fit: BoxFit.cover,
image: API.image(ImgModel.first(_model.imgUrls))),
image: SARSAPI.image(ImgModel.first(_model.imgUrls))),
width: double.infinity,
height: 424.w,
),

@ -1,6 +1,7 @@
import 'package:aku_new_community/base/base_style.dart';
import 'package:aku_new_community/const/resource.dart';
import 'package:aku_new_community/constants/api.dart';
import 'package:aku_new_community/constants/sars_api.dart';
import 'package:aku_new_community/model/common/img_model.dart';
import 'package:aku_new_community/models/geographic_information/geographic_information_model.dart';
import 'package:aku_new_community/utils/network/base_model.dart';
@ -50,7 +51,7 @@ class _GeographicInformationPageState extends State<GeographicInformationPage> {
child: FadeInImage.assetNetwork(
placeholder: R.ASSETS_IMAGES_PLACEHOLDER_WEBP,
fit: BoxFit.cover,
image: API.image(ImgModel.first(_model.imgUrls))),
image: SARSAPI.image(ImgModel.first(_model.imgUrls))),
width: double.infinity,
height: 424.w,
),

@ -1,14 +1,16 @@
import 'package:aku_new_community/model/manager/article_QR_code_model.dart';
import 'package:aku_new_community/provider/app_provider.dart';
import 'package:aku_new_community/utils/headers.dart';
import 'package:aku_new_community/widget/bee_scaffold.dart';
import 'package:aku_new_community/widget/dotted_line.dart';
import 'package:flutter/material.dart';
import 'package:flutter_icons/flutter_icons.dart';
import 'package:get/get.dart';
import 'package:provider/provider.dart';
import 'package:qr_flutter/qr_flutter.dart';
import 'package:aku_new_community/model/manager/article_QR_code_model.dart';
import 'package:aku_new_community/provider/app_provider.dart';
import 'package:aku_new_community/utils/headers.dart';
import 'package:aku_new_community/widget/bee_scaffold.dart';
import 'package:aku_new_community/widget/dotted_line.dart';
class DetoCodePage extends StatelessWidget {
final int? id;
final ArticleQRModel? model;

@ -1,6 +1,7 @@
import 'package:flutter/material.dart';
import 'package:aku_new_community/base/base_style.dart';
import 'package:aku_new_community/utils/headers.dart';
import 'package:flutter/material.dart';
class CommonRadio<T> extends StatefulWidget {
final T? value;

@ -77,9 +77,7 @@ class _GoodsDetoPageState extends State<GoodsDetoPage> {
controller: _refreshController,
path: API.manager.articleOut,
convert: (model) {
return model.tableList!
.map((e) => GoodsOutModel.fromJson(e))
.toList();
return model.rows.map((e) => GoodsOutModel.fromJson(e)).toList();
},
builder: (items) {
return ListView.builder(

@ -1,3 +1,10 @@
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:bot_toast/bot_toast.dart';
import 'package:flutter_easyrefresh/easy_refresh.dart';
import 'package:get/get.dart';
import 'package:aku_new_community/base/base_style.dart';
import 'package:aku_new_community/model/manager/moving_company_model.dart';
import 'package:aku_new_community/pages/goods_deto_page/deto_create_page/widget/common_radio.dart';
@ -6,11 +13,6 @@ import 'package:aku_new_community/utils/headers.dart';
import 'package:aku_new_community/widget/bee_divider.dart';
import 'package:aku_new_community/widget/bee_scaffold.dart';
import 'package:aku_new_community/widget/buttons/bottom_button.dart';
import 'package:bot_toast/bot_toast.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter_easyrefresh/easy_refresh.dart';
import 'package:get/get.dart';
class SelectMoveCompanyPage extends StatefulWidget {
SelectMoveCompanyPage({Key? key}) : super(key: key);

@ -1,10 +1,10 @@
import 'package:flutter/material.dart';
import 'package:aku_new_community/base/base_style.dart';
import 'package:aku_new_community/model/manager/goods_out_model.dart';
import 'package:aku_new_community/utils/bee_map.dart';
import 'package:aku_new_community/utils/headers.dart';
import 'package:aku_new_community/widget/views/horizontal_image_view.dart';
import 'package:flutter/material.dart';
import 'goods_info_card_button.dart';
class GoodsInfoCard extends StatelessWidget {

@ -1,14 +1,16 @@
import 'package:aku_new_community/model/manager/article_QR_code_model.dart';
import 'package:aku_new_community/pages/goods_deto_page/deto_code_page/deto_code_page.dart';
import 'package:aku_new_community/pages/manager_func.dart';
import 'package:aku_new_community/utils/headers.dart';
import 'package:bot_toast/bot_toast.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:bot_toast/bot_toast.dart';
import 'package:flutter_icons/flutter_icons.dart';
import 'package:get/get.dart';
import 'package:url_launcher/url_launcher.dart';
import 'package:aku_new_community/model/manager/article_QR_code_model.dart';
import 'package:aku_new_community/pages/goods_deto_page/deto_code_page/deto_code_page.dart';
import 'package:aku_new_community/pages/manager_func.dart';
import 'package:aku_new_community/utils/headers.dart';
class GoodsInfoCardButton extends StatelessWidget {
final String? tel;
final int? id;

@ -1,11 +1,13 @@
import 'package:aku_new_community/base/base_style.dart';
import 'package:aku_new_community/const/resource.dart';
import 'package:aku_new_community/widget/bee_scaffold.dart';
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:get/get.dart';
import 'package:velocity_x/velocity_x.dart';
import 'package:aku_new_community/base/base_style.dart';
import 'package:aku_new_community/const/resource.dart';
import 'package:aku_new_community/widget/bee_scaffold.dart';
class BorrowExaminePage extends StatefulWidget {
BorrowExaminePage({Key? key}) : super(key: key);

@ -1,12 +1,14 @@
import 'package:aku_new_community/base/base_style.dart';
import 'package:aku_new_community/const/resource.dart';
import 'package:aku_new_community/pages/tab_navigator.dart';
import 'package:aku_new_community/widget/bee_scaffold.dart';
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:get/get.dart';
import 'package:velocity_x/velocity_x.dart';
import 'package:aku_new_community/base/base_style.dart';
import 'package:aku_new_community/const/resource.dart';
import 'package:aku_new_community/pages/tab_navigator.dart';
import 'package:aku_new_community/widget/bee_scaffold.dart';
class BorrowFinshPage extends StatefulWidget {
final bool? isSuccess;
final String? failText;

@ -1,6 +1,7 @@
import 'package:aku_new_community/base/base_style.dart';
import 'package:aku_new_community/const/resource.dart';
import 'package:aku_new_community/constants/api.dart';
import 'package:aku_new_community/constants/sars_api.dart';
import 'package:aku_new_community/model/common/img_model.dart';
import 'package:aku_new_community/model/manager/article_borrow_detail_model.dart';
import 'package:aku_new_community/utils/network/base_model.dart';
@ -196,7 +197,7 @@ class _BorrowGoodsDetailPageState extends State<BorrowGoodsDetailPage> {
child: ClipRRect(
child: FadeInImage.assetNetwork(
placeholder: R.ASSETS_IMAGES_PLACEHOLDER_WEBP,
image: API.image(ImgModel.first(model.imgList)),
image: SARSAPI.image(ImgModel.first(model.imgList)),
imageErrorBuilder: (context, error, stackTrace) {
return Image.asset(
R.ASSETS_IMAGES_PLACEHOLDER_WEBP,

@ -1,6 +1,16 @@
import 'package:flutter/material.dart';
import 'package:bot_toast/bot_toast.dart';
import 'package:flutter_easyrefresh/easy_refresh.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:get/get.dart';
import 'package:power_logger/power_logger.dart';
import 'package:velocity_x/velocity_x.dart';
import 'package:aku_new_community/base/base_style.dart';
import 'package:aku_new_community/const/resource.dart';
import 'package:aku_new_community/constants/api.dart';
import 'package:aku_new_community/constants/sars_api.dart';
import 'package:aku_new_community/model/common/img_model.dart';
import 'package:aku_new_community/model/manager/article_borrow_model.dart';
import 'package:aku_new_community/pages/goods_manage_page/borrow/borrow_goods_detail_page.dart';
@ -8,14 +18,6 @@ import 'package:aku_new_community/utils/network/base_list_model.dart';
import 'package:aku_new_community/utils/network/base_model.dart';
import 'package:aku_new_community/utils/network/net_util.dart';
import 'package:aku_new_community/widget/bee_scaffold.dart';
import 'package:bot_toast/bot_toast.dart';
import 'package:flutter/material.dart';
import 'package:flutter_easyrefresh/easy_refresh.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:get/get.dart';
import 'package:power_logger/power_logger.dart';
import 'package:velocity_x/velocity_x.dart';
import 'borrow_examine_page.dart';
class BorrowGoodsSubmitModel {
@ -85,10 +87,9 @@ class _BorrowGoodsPageState extends State<BorrowGoodsPage> {
BaseListModel _listModel = await NetUtil().getList(
API.manager.articleBorrow,
params: {'pageNum': _page, 'size': _size});
_borrowModels = _listModel.tableList
?.map((e) => ArticleBorrowModel.fromJson(e))
.toList() ??
[];
_borrowModels = _listModel.rows
.map((e) => ArticleBorrowModel.fromJson(e))
.toList();
_receiveIds =
_borrowModels.map((e) => BorrowGoodsSubmitModel.init()).toList();
setState(() {});
@ -98,14 +99,12 @@ class _BorrowGoodsPageState extends State<BorrowGoodsPage> {
BaseListModel _listModel = await NetUtil().getList(
API.manager.articleBorrow,
params: {'pageNum': _page, 'size': _size});
_borrowModels.addAll(_listModel.tableList
?.map((e) => ArticleBorrowModel.fromJson(e))
.toList() ??
[]);
_receiveIds.addAll(_listModel.tableList
?.map((e) => BorrowGoodsSubmitModel.init())
.toList() ??
[]);
_borrowModels.addAll(_listModel.rows
.map((e) => ArticleBorrowModel.fromJson(e))
.toList());
_receiveIds.addAll(_listModel.rows
.map((e) => BorrowGoodsSubmitModel.init())
.toList());
setState(() {});
},
child: _borrowModels.isEmpty
@ -173,7 +172,7 @@ class _BorrowGoodsPageState extends State<BorrowGoodsPage> {
child: ClipRRect(
child: FadeInImage.assetNetwork(
placeholder: R.ASSETS_IMAGES_PLACEHOLDER_WEBP,
image: API.image(ImgModel.first(model.imgUrls)),
image: SARSAPI.image(ImgModel.first(model.imgUrls)),
imageErrorBuilder: (context, error, stackTrace) {
return Image.asset(
R.ASSETS_IMAGES_PLACEHOLDER_WEBP,

@ -1,4 +1,5 @@
import 'package:aku_new_community/constants/api.dart';
import 'package:aku_new_community/constants/sars_api.dart';
import 'package:aku_new_community/model/common/img_model.dart';
import 'package:aku_new_community/model/manager/article_borrow_model.dart';
import 'package:aku_new_community/pages/goods_manage_page/borrow/borrow_goods_page.dart';
@ -52,7 +53,7 @@ class _GoodsManagePageState extends State<GoodsManagePage> {
child: ClipRRect(
child: FadeInImage.assetNetwork(
placeholder: R.ASSETS_IMAGES_PLACEHOLDER_WEBP,
image: API.image(ImgModel.first(model.imgUrls)),
image: SARSAPI.image(ImgModel.first(model.imgUrls)),
imageErrorBuilder: (context, error, stackTrace) {
return Image.asset(
R.ASSETS_IMAGES_PLACEHOLDER_WEBP,
@ -106,7 +107,7 @@ class _GoodsManagePageState extends State<GoodsManagePage> {
path: API.manager.articleBorrow,
controller: _easyRefreshController,
convert: (models) {
return models.tableList!
return models.rows
.map((e) => ArticleBorrowModel.fromJson(e))
.toList();
},

@ -261,9 +261,7 @@ class _MineGoodsPageState extends State<MineGoodsPage> {
path: API.manager.articleBorrowMylist,
controller: _controller,
convert: (model) {
return model.tableList!
.map((e) => MineGoodsModel.fromJson(e))
.toList();
return model.rows.map((e) => MineGoodsModel.fromJson(e)).toList();
},
builder: (items) {
return ListView.builder(

@ -1,6 +1,15 @@
import 'package:flutter/material.dart';
import 'package:bot_toast/bot_toast.dart';
import 'package:flutter_easyrefresh/easy_refresh.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:get/get.dart';
import 'package:velocity_x/velocity_x.dart';
import 'package:aku_new_community/base/base_style.dart';
import 'package:aku_new_community/const/resource.dart';
import 'package:aku_new_community/constants/api.dart';
import 'package:aku_new_community/constants/sars_api.dart';
import 'package:aku_new_community/model/common/img_model.dart';
import 'package:aku_new_community/model/manager/article_return_list_model.dart';
import 'package:aku_new_community/pages/goods_manage_page/borrow/borrow_examine_page.dart';
@ -8,12 +17,6 @@ import 'package:aku_new_community/utils/network/base_model.dart';
import 'package:aku_new_community/utils/network/net_util.dart';
import 'package:aku_new_community/widget/bee_scaffold.dart';
import 'package:aku_new_community/widget/buttons/radio_button.dart';
import 'package:bot_toast/bot_toast.dart';
import 'package:flutter/material.dart';
import 'package:flutter_easyrefresh/easy_refresh.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:get/get.dart';
import 'package:velocity_x/velocity_x.dart';
class ReturnGoodsDetailPage extends StatefulWidget {
ReturnGoodsDetailPage({Key? key}) : super(key: key);
@ -202,7 +205,7 @@ class _ReturnGoodsDetailPageState extends State<ReturnGoodsDetailPage> {
child: ClipRRect(
child: FadeInImage.assetNetwork(
placeholder: R.ASSETS_IMAGES_PLACEHOLDER_WEBP,
image: API.image(ImgModel.first(model.imgList)),
image: SARSAPI.image(ImgModel.first(model.imgList)),
imageErrorBuilder: (context, error, stackTrace) {
return Image.asset(
R.ASSETS_IMAGES_PLACEHOLDER_WEBP,

@ -1,13 +1,15 @@
import 'package:aku_new_community/const/resource.dart';
import 'package:aku_new_community/extensions/widget_list_ext.dart';
import 'package:aku_new_community/pages/goods_manage_page/goods_manage_page.dart';
import 'package:aku_new_community/widget/bee_scaffold.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:get/get.dart';
import 'package:velocity_x/velocity_x.dart';
import 'package:aku_new_community/const/resource.dart';
import 'package:aku_new_community/extensions/widget_list_ext.dart';
import 'package:aku_new_community/pages/goods_manage_page/goods_manage_page.dart';
import 'package:aku_new_community/widget/bee_scaffold.dart';
class SelectBorrowReturnPage extends StatefulWidget {
SelectBorrowReturnPage({Key? key}) : super(key: key);

@ -1,7 +1,21 @@
// Dart imports:
import 'package:aku_new_community/constants/api.dart';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:badges/badges.dart';
import 'package:bot_toast/bot_toast.dart';
import 'package:cached_network_image/cached_network_image.dart';
import 'package:card_swiper/card_swiper.dart';
import 'package:flutter_easyrefresh/easy_refresh.dart';
import 'package:get/get.dart';
import 'package:jpush_flutter/jpush_flutter.dart';
import 'package:palette_generator/palette_generator.dart';
import 'package:power_logger/power_logger.dart';
import 'package:provider/provider.dart';
import 'package:aku_new_community/constants/application_objects.dart';
import 'package:aku_new_community/constants/sars_api.dart';
import 'package:aku_new_community/extensions/color_ext.dart';
import 'package:aku_new_community/model/common/img_model.dart';
import 'package:aku_new_community/model/community/activity_item_model.dart';
@ -24,18 +38,6 @@ import 'package:aku_new_community/utils/login_util.dart';
import 'package:aku_new_community/widget/animated/OverlayWidget.dart';
import 'package:aku_new_community/widget/others/rectIndicator.dart';
import 'package:aku_new_community/widget/others/user_tool.dart';
import 'package:badges/badges.dart';
import 'package:bot_toast/bot_toast.dart';
import 'package:cached_network_image/cached_network_image.dart';
import 'package:card_swiper/card_swiper.dart';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:flutter_easyrefresh/easy_refresh.dart';
import 'package:get/get.dart';
import 'package:jpush_flutter/jpush_flutter.dart';
import 'package:palette_generator/palette_generator.dart';
import 'package:power_logger/power_logger.dart';
import 'package:provider/provider.dart';
class HomePage extends StatefulWidget {
HomePage({Key? key}) : super(key: key);
@ -524,7 +526,7 @@ class _HomePageState extends State<HomePage>
if (_swiperModels.isNotEmpty) {
var color =
await PaletteGenerator.fromImageProvider(CachedNetworkImageProvider(
API.image(ImgModel.first(_swiperModels[index].voResourcesImgList)),
SARSAPI.image(ImgModel.first(_swiperModels[index].voResourcesImgList)),
));
_barColor.value = color.dominantColor?.color ?? Colors.transparent;
} else {
@ -536,7 +538,7 @@ class _HomePageState extends State<HomePage>
return Container(
child: FadeInImage.assetNetwork(
placeholder: R.ASSETS_IMAGES_PLACEHOLDER_WEBP,
image: API.image(ImgModel.first(swiperModel.voResourcesImgList)),
image: SARSAPI.image(ImgModel.first(swiperModel.voResourcesImgList)),
fit: BoxFit.fill,
imageErrorBuilder: (context, error, stackTrace) {
return Image.asset(

@ -1,9 +1,11 @@
import 'package:aku_new_community/provider/app_provider.dart';
import 'package:aku_new_community/utils/headers.dart';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:provider/provider.dart';
import 'package:aku_new_community/provider/app_provider.dart';
import 'package:aku_new_community/utils/headers.dart';
class AnimateAppBar extends StatefulWidget with PreferredSizeWidget {
final ScrollController? scrollController;
final List<Widget>? actions;

@ -1,15 +1,17 @@
import 'package:flutter/material.dart';
import 'package:flutter_easyrefresh/easy_refresh.dart';
import 'package:get/get.dart';
import 'package:aku_new_community/base/base_style.dart';
import 'package:aku_new_community/constants/api.dart';
import 'package:aku_new_community/constants/app_theme.dart';
import 'package:aku_new_community/constants/sars_api.dart';
import 'package:aku_new_community/model/common/img_model.dart';
import 'package:aku_new_community/models/house_introduce/house_introduce_model.dart';
import 'package:aku_new_community/pages/things_page/widget/bee_list_view.dart';
import 'package:aku_new_community/utils/headers.dart';
import 'package:aku_new_community/widget/bee_scaffold.dart';
import 'package:flutter/material.dart';
import 'package:flutter_easyrefresh/easy_refresh.dart';
import 'package:get/get.dart';
import 'house_detail_page.dart';
class HouseIntroducePage extends StatefulWidget {
@ -54,7 +56,7 @@ class _HouseIntroducePageState extends State<HouseIntroducePage> {
borderRadius: BorderRadius.circular(4.w),
child: FadeInImage.assetNetwork(
placeholder: R.ASSETS_IMAGES_PLACEHOLDER_WEBP,
image: API.image(ImgModel.first(model.imgUrls)),
image: SARSAPI.image(ImgModel.first(model.imgUrls)),
height: 200.w,
width: 240.w,
fit: BoxFit.fill,
@ -98,7 +100,7 @@ class _HouseIntroducePageState extends State<HouseIntroducePage> {
body: BeeListView<HouseIntroduceModel>(
path: API.manager.houseType,
convert: (model) {
return model.tableList!
return model.rows
.map((e) => HouseIntroduceModel.fromJson(e))
.toList();
},

@ -1,6 +1,7 @@
import 'package:flutter/material.dart';
import 'package:aku_new_community/utils/headers.dart';
import 'package:aku_new_community/widget/bee_scaffold.dart';
import 'package:flutter/material.dart';
class CommitteeMailboxPage extends StatefulWidget {
CommitteeMailboxPage({Key? key}) : super(key: key);

@ -1,6 +1,14 @@
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter_easyrefresh/easy_refresh.dart';
import 'package:get/get.dart';
import 'package:url_launcher/url_launcher.dart';
import 'package:aku_new_community/base/base_style.dart';
import 'package:aku_new_community/constants/api.dart';
import 'package:aku_new_community/constants/app_theme.dart';
import 'package:aku_new_community/constants/sars_api.dart';
import 'package:aku_new_community/model/common/img_model.dart';
import 'package:aku_new_community/model/user/committee_item_model.dart';
import 'package:aku_new_community/pages/things_page/widget/bee_list_view.dart';
@ -8,11 +16,6 @@ import 'package:aku_new_community/utils/headers.dart';
import 'package:aku_new_community/utils/hive_store.dart';
import 'package:aku_new_community/utils/websocket/tips_dialog.dart';
import 'package:aku_new_community/widget/bee_scaffold.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter_easyrefresh/easy_refresh.dart';
import 'package:get/get.dart';
import 'package:url_launcher/url_launcher.dart';
class IndustryCommitteePage extends StatefulWidget {
IndustryCommitteePage({Key? key}) : super(key: key);
@ -94,7 +97,7 @@ class _IndustryCommitteePageState extends State<IndustryCommitteePage> {
borderRadius: BorderRadius.circular(4.w),
child: FadeInImage.assetNetwork(
placeholder: R.ASSETS_IMAGES_PLACEHOLDER_WEBP,
image: API.image(ImgModel.first(model.imgUrls)),
image: SARSAPI.image(ImgModel.first(model.imgUrls)),
height: 150.w,
width: 150.w,
fit: BoxFit.cover,
@ -150,9 +153,7 @@ class _IndustryCommitteePageState extends State<IndustryCommitteePage> {
body: BeeListView<CommitteeItemModel>(
path: API.manager.commiteeStaff,
convert: (model) {
return model.tableList!
.map((e) => CommitteeItemModel.fromJson(e))
.toList();
return model.rows.map((e) => CommitteeItemModel.fromJson(e)).toList();
},
controller: _refreshController,
builder: (items) {

@ -1,7 +1,7 @@
import 'package:aku_new_community/utils/headers.dart';
import 'package:aku_new_community/widget/bee_scaffold.dart';
import 'package:flutter/material.dart';
import 'package:aku_new_community/utils/headers.dart';
import 'package:aku_new_community/widget/bee_scaffold.dart';
import 'widget/bill_card.dart';
class LifePayBillPage extends StatefulWidget {

@ -1,6 +1,7 @@
import 'package:flutter/material.dart';
import 'package:aku_new_community/base/base_style.dart';
import 'package:aku_new_community/utils/headers.dart';
import 'package:flutter/material.dart';
class BillCard extends StatelessWidget {
BillCard({Key? key}) : super(key: key);

@ -1,14 +1,16 @@
import 'package:aku_new_community/const/resource.dart';
import 'package:aku_new_community/extensions/widget_list_ext.dart';
import 'package:aku_new_community/pages/life_pay/life_pay_page.dart';
import 'package:aku_new_community/pages/share_pay_page/share_pay_page.dart';
import 'package:aku_new_community/widget/bee_scaffold.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:get/get.dart';
import 'package:velocity_x/velocity_x.dart';
import 'package:aku_new_community/const/resource.dart';
import 'package:aku_new_community/extensions/widget_list_ext.dart';
import 'package:aku_new_community/pages/life_pay/life_pay_page.dart';
import 'package:aku_new_community/pages/share_pay_page/share_pay_page.dart';
import 'package:aku_new_community/widget/bee_scaffold.dart';
class LifePayChoosePage extends StatefulWidget {
const LifePayChoosePage({Key? key}) : super(key: key);

@ -299,7 +299,7 @@ class _LifePayPageState extends State<LifePayPage> {
"size": _size,
'estateId': appProvider.selectedHouse!.estateId
});
_models = baseListModel.tableList!
_models = baseListModel.rows
.map((e) => LifePayListModel.fromJson(e))
.toList();
// _selectPay.clear();

@ -49,7 +49,7 @@ class _LifePayRecordPageState extends State<LifePayRecordPage> {
},
controller: _refreshController,
convert: (models) {
return models.tableList!
return models.rows
.map((e) => LifePayRecordModel.fromJson(e))
.toList();
},

@ -1,8 +1,9 @@
import 'package:aku_new_community/utils/headers.dart';
import 'package:aku_new_community/widget/bee_back_button.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:aku_new_community/utils/headers.dart';
import 'package:aku_new_community/widget/bee_back_button.dart';
class PayFinishPage extends StatelessWidget {
const PayFinishPage({Key? key}) : super(key: key);

@ -1,12 +1,13 @@
import 'dart:convert';
import 'package:aku_new_community/models/pay/pay_model.dart';
import 'package:aku_new_community/utils/network/net_util.dart';
import 'package:bot_toast/bot_toast.dart';
import 'package:dio/dio.dart';
import 'package:power_logger/power_logger.dart';
import 'package:tobias/tobias.dart';
import 'package:aku_new_community/models/pay/pay_model.dart';
import 'package:aku_new_community/utils/network/net_util.dart';
enum PAYTYPE {
///
ALI,

@ -1,3 +1,10 @@
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:expandable/expandable.dart';
import 'package:get/get.dart';
import 'package:provider/provider.dart';
import 'package:aku_new_community/base/base_style.dart';
import 'package:aku_new_community/models/life_pay/life_pay_list_model.dart';
import 'package:aku_new_community/pages/life_pay/life_pay_page.dart';
@ -6,11 +13,6 @@ import 'package:aku_new_community/utils/bee_parse.dart';
import 'package:aku_new_community/utils/headers.dart';
import 'package:aku_new_community/widget/bee_scaffold.dart';
import 'package:aku_new_community/widget/buttons/bee_check_radio.dart';
import 'package:expandable/expandable.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:get/get.dart';
import 'package:provider/provider.dart';
class LifePayDetailPage extends StatefulWidget {
final LifePayListModel model;

@ -1,6 +1,7 @@
import 'package:flutter/material.dart';
import 'package:aku_new_community/base/base_style.dart';
import 'package:aku_new_community/utils/headers.dart';
import 'package:flutter/material.dart';
class SubmitBar extends StatefulWidget {
final String? title;

@ -8,8 +8,8 @@ import 'package:aku_new_community/models/manage/fix_report/fix_detail_model.dart
import 'package:aku_new_community/utils/network/base_model.dart';
import 'package:aku_new_community/utils/network/net_util.dart';
import 'package:bot_toast/bot_toast.dart';
import 'package:dio/dio.dart';
import 'package:common_utils/common_utils.dart';
import 'package:dio/dio.dart';
class ManagerFunc {
@Deprecated('')

@ -1,13 +1,15 @@
import 'package:aku_new_community/base/base_style.dart';
import 'package:aku_new_community/extensions/widget_list_ext.dart';
import 'package:aku_new_community/models/message/announce_list_model.dart';
import 'package:aku_new_community/pages/message_center_page/announce/announce_view.dart';
import 'package:common_utils/common_utils.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:common_utils/common_utils.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:velocity_x/velocity_x.dart';
import 'package:aku_new_community/base/base_style.dart';
import 'package:aku_new_community/extensions/widget_list_ext.dart';
import 'package:aku_new_community/models/message/announce_list_model.dart';
import 'package:aku_new_community/pages/message_center_page/announce/announce_view.dart';
class AnnounceCard extends StatelessWidget {
final ListDateModel modelList;
final int index;

@ -1,11 +1,13 @@
import 'package:aku_new_community/models/message/announce_list_model.dart';
import 'package:aku_new_community/pages/message_center_page/announce/announce_card.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter_easyrefresh/easy_refresh.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:scroll_to_index/scroll_to_index.dart';
import 'package:aku_new_community/models/message/announce_list_model.dart';
import 'package:aku_new_community/pages/message_center_page/announce/announce_card.dart';
class ListDateModel {
final String month;
final int index;

@ -1,4 +1,10 @@
import 'package:flutter/cupertino.dart';
import 'package:common_utils/common_utils.dart';
import 'package:flutter_easyrefresh/easy_refresh.dart';
import 'package:aku_new_community/constants/api.dart';
import 'package:aku_new_community/constants/sars_api.dart';
import 'package:aku_new_community/model/common/img_model.dart';
import 'package:aku_new_community/model/message/comment_message_model.dart';
import 'package:aku_new_community/pages/things_page/widget/bee_list_view.dart';
@ -6,9 +12,6 @@ import 'package:aku_new_community/utils/bee_date_util.dart';
import 'package:aku_new_community/utils/headers.dart';
import 'package:aku_new_community/widget/bee_divider.dart';
import 'package:aku_new_community/widget/bee_scaffold.dart';
import 'package:common_utils/common_utils.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter_easyrefresh/easy_refresh.dart';
class CommentMessagePage extends StatefulWidget {
CommentMessagePage({Key? key}) : super(key: key);
@ -72,7 +75,7 @@ class _CommentMessagePageState extends State<CommentMessagePage> {
clipBehavior: Clip.antiAlias,
child: FadeInImage.assetNetwork(
placeholder: R.ASSETS_IMAGES_PLACEHOLDER_WEBP,
image: API.image(ImgModel.first(model.headSculpture)),
image: SARSAPI.image(ImgModel.first(model.headSculpture)),
fit: BoxFit.cover,
),
),
@ -96,7 +99,7 @@ class _CommentMessagePageState extends State<CommentMessagePage> {
height: 160.w,
child: FadeInImage.assetNetwork(
placeholder: R.ASSETS_IMAGES_PLACEHOLDER_WEBP,
image: API.image(ImgModel.first(model.imgUrls)),
image: SARSAPI.image(ImgModel.first(model.imgUrls)),
fit: BoxFit.cover,
),
),
@ -113,7 +116,7 @@ class _CommentMessagePageState extends State<CommentMessagePage> {
path: API.message.commentMessageList,
controller: _easyRefreshController,
convert: (models) {
return models.tableList!
return models.rows
.map((e) => CommentMessageModel.fromJson(e))
.toList();
},

@ -1,6 +1,7 @@
import 'package:flutter/material.dart';
import 'package:aku_new_community/base/base_style.dart';
import 'package:aku_new_community/utils/headers.dart';
import 'package:flutter/material.dart';
class RefundDetails extends StatelessWidget {
final double? statusHeight;

@ -32,7 +32,7 @@ class _ReplayViewState extends State<ReplayView> {
path: SARSAPI.message.allComment,
controller: widget.controller,
convert: (models) =>
models.tableList!.map((e) => ReplyListModel.fromJson(e)).toList(),
models.rows.map((e) => ReplyListModel.fromJson(e)).toList(),
builder: (items) {
return ListView.separated(
itemBuilder: (context, index) {

@ -1,5 +1,5 @@
import 'package:aku_new_community/base/base_style.dart';
import 'package:aku_new_community/constants/api.dart';
import 'package:aku_new_community/constants/sars_api.dart';
import 'package:aku_new_community/models/message/reply_list_model.dart';
import 'package:aku_new_community/pages/message_center_page/message_func.dart';
import 'package:flutter/material.dart';
@ -23,7 +23,7 @@ class ReplyCard extends StatelessWidget {
children: [
ClipOval(
child: Image.network(
API.image(model.avatar),
SARSAPI.image(model.avatar),
width: 100.w,
height: 100.w,
),
@ -47,7 +47,7 @@ class ReplyCard extends StatelessWidget {
ClipRRect(
borderRadius: BorderRadius.circular(9.w),
child: Image.network(
API.image(model.pic),
SARSAPI.image(model.pic),
width: 128.w,
height: 128.w,
),

@ -1,9 +1,11 @@
import 'package:flutter/material.dart';
import 'package:flutter_easyrefresh/easy_refresh.dart';
import 'package:aku_new_community/model/message/system_message_detail_model.dart';
import 'package:aku_new_community/pages/message_center_page/message_func.dart';
import 'package:aku_new_community/utils/headers.dart';
import 'package:aku_new_community/widget/bee_scaffold.dart';
import 'package:flutter/material.dart';
import 'package:flutter_easyrefresh/easy_refresh.dart';
class SystemMessageDetailPage extends StatefulWidget {
final int? id;

@ -106,7 +106,7 @@ class _SystemMessagePageState extends State<SystemMessagePage> {
path: API.message.sysMessageList,
controller: _refreshController,
convert: (models) {
return models.tableList!
return models.rows
.map((e) => SystemMessageModel.fromJson(e))
.toList();
},

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save