After Width: | Height: | Size: 9.3 KiB |
After Width: | Height: | Size: 7.9 KiB |
After Width: | Height: | Size: 9.6 KiB |
After Width: | Height: | Size: 8.1 KiB |
After Width: | Height: | Size: 9.3 KiB |
After Width: | Height: | Size: 9.1 KiB |
After Width: | Height: | Size: 8.0 KiB |
After Width: | Height: | Size: 8.8 KiB |
After Width: | Height: | Size: 8.6 KiB |
After Width: | Height: | Size: 7.9 KiB |
After Width: | Height: | Size: 9.6 KiB |
After Width: | Height: | Size: 8.4 KiB |
After Width: | Height: | Size: 8.2 KiB |
After Width: | Height: | Size: 9.0 KiB |
After Width: | Height: | Size: 8.5 KiB |
After Width: | Height: | Size: 8.6 KiB |
After Width: | Height: | Size: 9.0 KiB |
After Width: | Height: | Size: 7.6 KiB |
After Width: | Height: | Size: 7.6 KiB |
After Width: | Height: | Size: 8.8 KiB |
After Width: | Height: | Size: 9.4 KiB |
After Width: | Height: | Size: 9.6 KiB |
After Width: | Height: | Size: 8.5 KiB |
After Width: | Height: | Size: 8.1 KiB |
After Width: | Height: | Size: 595 B |
After Width: | Height: | Size: 752 B |
After Width: | Height: | Size: 819 B |
After Width: | Height: | Size: 670 B |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 1021 B |
After Width: | Height: | Size: 608 B |
After Width: | Height: | Size: 779 B |
After Width: | Height: | Size: 596 B |
After Width: | Height: | Size: 808 B |
@ -0,0 +1,46 @@
|
|||||||
|
import 'package:aku_community/model/common/img_model.dart';
|
||||||
|
|
||||||
|
class GambitModel {
|
||||||
|
int? id;
|
||||||
|
String? title;
|
||||||
|
String? summary;
|
||||||
|
String? content;
|
||||||
|
List<ImgModel>? imgUrl;
|
||||||
|
int? activityNum;
|
||||||
|
|
||||||
|
GambitModel(
|
||||||
|
{this.id,
|
||||||
|
this.title,
|
||||||
|
this.summary,
|
||||||
|
this.content,
|
||||||
|
this.imgUrl,
|
||||||
|
this.activityNum});
|
||||||
|
|
||||||
|
GambitModel.fromJson(Map<String, dynamic> json) {
|
||||||
|
id = json['id'];
|
||||||
|
title = json['title'];
|
||||||
|
summary = json['summary'];
|
||||||
|
content = json['content'];
|
||||||
|
if (json['imgUrl'] != null) {
|
||||||
|
imgUrl = [];
|
||||||
|
json['imgUrl'].forEach((v) {
|
||||||
|
imgUrl!.add(new ImgModel.fromJson(v));
|
||||||
|
});
|
||||||
|
} else
|
||||||
|
imgUrl = [];
|
||||||
|
activityNum = json['activityNum'];
|
||||||
|
}
|
||||||
|
|
||||||
|
Map<String, dynamic> toJson() {
|
||||||
|
final Map<String, dynamic> data = new Map<String, dynamic>();
|
||||||
|
data['id'] = this.id;
|
||||||
|
data['title'] = this.title;
|
||||||
|
data['summary'] = this.summary;
|
||||||
|
data['content'] = this.content;
|
||||||
|
if (this.imgUrl != null) {
|
||||||
|
data['imgUrl'] = this.imgUrl!.map((v) => v.toJson()).toList();
|
||||||
|
}
|
||||||
|
data['activityNum'] = this.activityNum;
|
||||||
|
return data;
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,38 @@
|
|||||||
|
import 'package:aku_community/model/common/img_model.dart';
|
||||||
|
|
||||||
|
class HotNewsModel {
|
||||||
|
int? id;
|
||||||
|
String? title;
|
||||||
|
String? createDate;
|
||||||
|
int? views;
|
||||||
|
List<ImgModel>? imgList;
|
||||||
|
|
||||||
|
HotNewsModel(
|
||||||
|
{this.id, this.title, this.createDate, this.views, this.imgList});
|
||||||
|
|
||||||
|
HotNewsModel.fromJson(Map<String, dynamic> json) {
|
||||||
|
id = json['id'];
|
||||||
|
title = json['title'];
|
||||||
|
createDate = json['createDate'];
|
||||||
|
views = json['views'];
|
||||||
|
if (json['imgList'] != null) {
|
||||||
|
imgList = [];
|
||||||
|
json['imgList'].forEach((v) {
|
||||||
|
imgList!.add(new ImgModel.fromJson(v));
|
||||||
|
});
|
||||||
|
} else
|
||||||
|
imgList = [];
|
||||||
|
}
|
||||||
|
|
||||||
|
Map<String, dynamic> toJson() {
|
||||||
|
final Map<String, dynamic> data = new Map<String, dynamic>();
|
||||||
|
data['id'] = this.id;
|
||||||
|
data['title'] = this.title;
|
||||||
|
data['createDate'] = this.createDate;
|
||||||
|
data['views'] = this.views;
|
||||||
|
if (this.imgList != null) {
|
||||||
|
data['imgList'] = this.imgList!.map((v) => v.toJson()).toList();
|
||||||
|
}
|
||||||
|
return data;
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,40 @@
|
|||||||
|
|
||||||
|
import 'package:aku_community/constants/api.dart';
|
||||||
|
import 'package:aku_community/models/market/goods_item.dart';
|
||||||
|
import 'package:aku_community/models/market/order/order_detail_model.dart';
|
||||||
|
import 'package:aku_community/models/search/search_goods_model.dart';
|
||||||
|
import 'package:aku_community/utils/network/base_list_model.dart';
|
||||||
|
import 'package:aku_community/utils/network/base_model.dart';
|
||||||
|
import 'package:aku_community/utils/network/net_util.dart';
|
||||||
|
import 'package:aku_community/utils/text_utils.dart';
|
||||||
|
import 'package:aku_community/widget/others/user_tool.dart';
|
||||||
|
|
||||||
|
class PropertyFunc {
|
||||||
|
|
||||||
|
///根据房产id查询对应的预付款充值金额
|
||||||
|
static Future<double> getDailyPaymentPrePay() async {
|
||||||
|
BaseModel baseModel =
|
||||||
|
await NetUtil().get(API.manager.dailyPaymentPrePay, params: {
|
||||||
|
"estateId": UserTool.appProveider.selectedHouse!.estateId,
|
||||||
|
});
|
||||||
|
if (baseModel.status ?? false) {
|
||||||
|
return (baseModel.data as num).toDouble();
|
||||||
|
} else {
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
///根据房产id查询对应的未缴费金额
|
||||||
|
static Future<double> getFindUnpaidAmount() async {
|
||||||
|
BaseModel baseModel =
|
||||||
|
await NetUtil().get(API.manager.findUnpaidAmount, params: {
|
||||||
|
"estateId": UserTool.appProveider.selectedHouse!.estateId,
|
||||||
|
});
|
||||||
|
if (baseModel.status ?? false) {
|
||||||
|
return (baseModel.data as num).toDouble();
|
||||||
|
} else {
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|