# Conflicts:
#	lib/gen/assets.gen.dart
pull/1/head
章文轩 3 years ago
commit 17e136b20c

@ -4,7 +4,7 @@
In most cases you can leave this as-is, but you if you want to provide In most cases you can leave this as-is, but you if you want to provide
additional functionality it is fine to subclass or reimplement additional functionality it is fine to subclass or reimplement
FlutterApplication and put your custom class here. --> FlutterApplication and put your custom class here. -->
<application android:name="io.flutter.app.FlutterApplication" android:label="小蜜蜂" android:icon="@mipmap/ic_launcher" android:networkSecurityConfig="@xml/network_security_config"> <application android:label="小蜜蜂" android:icon="@mipmap/ic_launcher" android:networkSecurityConfig="@xml/network_security_config">
<service android:name="com.amap.api.location.APSService"></service> <service android:name="com.amap.api.location.APSService"></service>
<meta-data android:name="com.amap.api.v2.apikey" <meta-data android:name="com.amap.api.v2.apikey"
android:value="f6361c0537bf2d6ddb898b10618d3726"/> android:value="f6361c0537bf2d6ddb898b10618d3726"/>

@ -34,7 +34,7 @@ ActivityDetailModel _$ActivityDetailModelFromJson(Map<String, dynamic> json) =>
organizerImgList: (json['organizerImgList'] as List<dynamic>) organizerImgList: (json['organizerImgList'] as List<dynamic>)
.map((e) => ImgModel.fromJson(e as Map<String, dynamic>)) .map((e) => ImgModel.fromJson(e as Map<String, dynamic>))
.toList(), .toList(),
isRegistration:json['isRegistration'] as int isRegistration: json['isRegistration'] as int,
); );
Registration _$RegistrationFromJson(Map<String, dynamic> json) => Registration( Registration _$RegistrationFromJson(Map<String, dynamic> json) => Registration(

@ -1,33 +1,40 @@
import 'package:equatable/equatable.dart'; import 'package:equatable/equatable.dart';
import 'package:json_annotation/json_annotation.dart'; import 'package:json_annotation/json_annotation.dart';
part 'life_pay_model.g.dart';
part 'life_pay_model.g.dart';
@JsonSerializable(createToJson: true, explicitToJson: true) @JsonSerializable(createToJson: true, explicitToJson: true)
class LifePayModel extends Equatable { class LifePayModel extends Equatable {
final int id; final int id;
final String chargesName; final String? chargesName;
final String billDateStart; final String billDateStart;
final String billDateEnd; final String billDateEnd;
final String createDate; final String createDate;
final double payPrincipal; final double payPrincipal;
final double defaultAmount; final double defaultAmount;
factory LifePayModel.fromJson(Map<String, dynamic> json) =>
_$LifePayModelFromJson(json);
Map<String, dynamic> toJson() => _$LifePayModelToJson(this);
@override
List<Object?> get props => [
id,
chargesName,
billDateStart,
billDateEnd,
createDate,
payPrincipal,
defaultAmount
];
factory LifePayModel.fromJson(Map<String, dynamic> json) =>_$LifePayModelFromJson(json); const LifePayModel({
Map<String,dynamic> toJson()=> _$LifePayModelToJson(this);
LifePayModel({
required this.id, required this.id,
required this.chargesName, this.chargesName,
required this.billDateStart, required this.billDateStart,
required this.billDateEnd, required this.billDateEnd,
required this.createDate, required this.createDate,
required this.payPrincipal, required this.payPrincipal,
required this.defaultAmount, required this.defaultAmount,
}); });
@override
List<Object?> get props => [id, chargesName, billDateStart,billDateEnd,createDate,payPrincipal,defaultAmount];
} }

@ -8,7 +8,7 @@ part of 'life_pay_model.dart';
LifePayModel _$LifePayModelFromJson(Map<String, dynamic> json) => LifePayModel( LifePayModel _$LifePayModelFromJson(Map<String, dynamic> json) => LifePayModel(
id: json['id'] as int, id: json['id'] as int,
chargesName: json['chargesName'] as String, chargesName: json['chargesName'] as String?,
billDateStart: json['billDateStart'] as String, billDateStart: json['billDateStart'] as String,
billDateEnd: json['billDateEnd'] as String, billDateEnd: json['billDateEnd'] as String,
createDate: json['createDate'] as String, createDate: json['createDate'] as String,

@ -21,5 +21,5 @@ ReplyListModel _$ReplyListModelFromJson(Map<String, dynamic> json) =>
dynamicImgList: (json['dynamicImgList'] as List<dynamic>) dynamicImgList: (json['dynamicImgList'] as List<dynamic>)
.map((e) => ImgModel.fromJson(e as Map<String, dynamic>)) .map((e) => ImgModel.fromJson(e as Map<String, dynamic>))
.toList(), .toList(),
jumpId:json['jumpId'] as int jumpId: json['jumpId'] as int,
); );

@ -1,6 +1,5 @@
import 'package:json_annotation/json_annotation.dart';
import 'package:aku_new_community/model/common/img_model.dart'; import 'package:aku_new_community/model/common/img_model.dart';
import 'package:json_annotation/json_annotation.dart';
part 'user_info_model.g.dart'; part 'user_info_model.g.dart';
@ -8,6 +7,7 @@ part 'user_info_model.g.dart';
class UserInfoModel { class UserInfoModel {
final int id; final int id;
final int communityId; final int communityId;
final String communityName;
final String communityCode; final String communityCode;
final String? name; final String? name;
final String? idCard; final String? idCard;
@ -44,6 +44,7 @@ class UserInfoModel {
const UserInfoModel({ const UserInfoModel({
required this.id, required this.id,
required this.communityId, required this.communityId,
required this.communityName,
required this.communityCode, required this.communityCode,
this.name, this.name,
this.idCard, this.idCard,

@ -10,6 +10,7 @@ UserInfoModel _$UserInfoModelFromJson(Map<String, dynamic> json) =>
UserInfoModel( UserInfoModel(
id: json['id'] as int, id: json['id'] as int,
communityId: json['communityId'] as int, communityId: json['communityId'] as int,
communityName: json['communityName'] as String,
communityCode: json['communityCode'] as String, communityCode: json['communityCode'] as String,
name: json['name'] as String?, name: json['name'] as String?,
idCard: json['idCard'] as String?, idCard: json['idCard'] as String?,

@ -18,10 +18,8 @@ import 'package:aku_new_community/ui/community/notice/notice_detail_page.dart';
import 'package:aku_new_community/ui/home/home_notification.dart'; import 'package:aku_new_community/ui/home/home_notification.dart';
import 'package:aku_new_community/ui/home/home_title.dart'; import 'package:aku_new_community/ui/home/home_title.dart';
import 'package:aku_new_community/ui/home/public_infomation/public_information_detail_page.dart'; import 'package:aku_new_community/ui/home/public_infomation/public_information_detail_page.dart';
import 'package:aku_new_community/ui/manager/advice/advice_page.dart';
import 'package:aku_new_community/ui/market/search/good_detail_page.dart'; import 'package:aku_new_community/ui/market/search/good_detail_page.dart';
import 'package:aku_new_community/utils/headers.dart'; import 'package:aku_new_community/utils/headers.dart';
import 'package:aku_new_community/utils/hive_store.dart';
import 'package:aku_new_community/utils/login_util.dart'; import 'package:aku_new_community/utils/login_util.dart';
import 'package:aku_new_community/utils/websocket/tips_dialog.dart'; import 'package:aku_new_community/utils/websocket/tips_dialog.dart';
import 'package:aku_new_community/widget/beeImageNetwork.dart'; import 'package:aku_new_community/widget/beeImageNetwork.dart';
@ -112,17 +110,18 @@ class _HomePageState extends State<HomePage>
left: 32.w, left: 32.w,
bottom: 20.w), bottom: 20.w),
child: Row(crossAxisAlignment: CrossAxisAlignment.center, children: [ child: Row(crossAxisAlignment: CrossAxisAlignment.center, children: [
if (appProvider.location != null) // if (appProvider.location != null)
Image.asset( Image.asset(
Assets.home.icLocation.path, Assets.home.icLocation.path,
width: 48.w, width: 48.w,
height: 48.w, height: 48.w,
), ),
16.wb, 16.wb,
Text( Text(
appProvider.location?['city'] == null '${UserTool.userProvider.userInfoModel?.communityName ?? ""}',
? '' // appProvider.location?['city'] == null
: appProvider.location?['city'] as String? ?? '', // ? ''
// : appProvider.location?['city'] as String? ?? '',
style: TextStyle( style: TextStyle(
fontWeight: FontWeight.w600, fontWeight: FontWeight.w600,
fontSize: 28.sp, fontSize: 28.sp,
@ -130,14 +129,14 @@ class _HomePageState extends State<HomePage>
), ),
textAlign: TextAlign.center, textAlign: TextAlign.center,
), ),
Text( // Text(
'(${appProvider.weatherType} ${appProvider.weatherTemp}℃)', // '(${appProvider.weatherType} ${appProvider.weatherTemp}℃)',
style: TextStyle( // style: TextStyle(
fontSize: 28.sp, // fontSize: 28.sp,
color: Color(0xff999999), // color: Color(0xff999999),
), // ),
textAlign: TextAlign.center, // textAlign: TextAlign.center,
), // ),
Spacer(), Spacer(),
// GestureDetector( // GestureDetector(
// onTap: () { // onTap: () {
@ -356,12 +355,7 @@ class _HomePageState extends State<HomePage>
), ),
), ),
onTap: () async { onTap: () async {
var agreement = await HiveStore.appBox?.get('AdvicePage') ?? false; await TipsDialog.tipsDialog();
if (!agreement) {
await TipsDialog.tipsDialog();
HiveStore.appBox!.put('AdvicePage', true);
}
// Get.to(AdvicePage( // Get.to(AdvicePage(
// type: AdviceType.SUGGESTION)); // type: AdviceType.SUGGESTION));
}, },

@ -1,22 +1,15 @@
import 'dart:convert';
import 'package:aku_new_community/base/base_style.dart'; import 'package:aku_new_community/base/base_style.dart';
import 'package:aku_new_community/constants/api.dart';
import 'package:aku_new_community/constants/saas_api.dart'; import 'package:aku_new_community/constants/saas_api.dart';
import 'package:aku_new_community/gen/assets.gen.dart'; import 'package:aku_new_community/gen/assets.gen.dart';
import 'package:aku_new_community/models/life_pay/life_pay_list_model.dart';
import 'package:aku_new_community/models/life_pay/life_pay_model.dart'; import 'package:aku_new_community/models/life_pay/life_pay_model.dart';
import 'package:aku_new_community/pages/life_pay/life_pay_record_page.dart'; import 'package:aku_new_community/pages/life_pay/life_pay_record_page.dart';
import 'package:aku_new_community/pages/life_pay/life_pre_pay_page.dart'; import 'package:aku_new_community/pages/life_pay/life_pre_pay_page.dart';
import 'package:aku_new_community/pages/life_pay/pay_finish_page.dart'; import 'package:aku_new_community/pages/life_pay/pay_finish_page.dart';
import 'package:aku_new_community/pages/life_pay/pay_util.dart'; import 'package:aku_new_community/pages/life_pay/pay_util.dart';
import 'package:aku_new_community/pages/life_pay/widget/life_pay_detail_page.dart';
import 'package:aku_new_community/pages/life_pay/widget/life_pay_detail_page_new.dart'; import 'package:aku_new_community/pages/life_pay/widget/life_pay_detail_page_new.dart';
import 'package:aku_new_community/provider/app_provider.dart'; import 'package:aku_new_community/provider/app_provider.dart';
import 'package:aku_new_community/ui/profile/new_house/my_house_page.dart'; import 'package:aku_new_community/ui/profile/new_house/my_house_page.dart';
import 'package:aku_new_community/utils/bee_parse.dart';
import 'package:aku_new_community/utils/headers.dart'; import 'package:aku_new_community/utils/headers.dart';
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/base_model.dart';
import 'package:aku_new_community/utils/network/net_util.dart'; import 'package:aku_new_community/utils/network/net_util.dart';
import 'package:aku_new_community/widget/bee_divider.dart'; import 'package:aku_new_community/widget/bee_divider.dart';
@ -42,7 +35,7 @@ class LifePayPageNew extends StatefulWidget {
class MonthPay { class MonthPay {
double payTotal; // double payTotal; //
List<LifePayModel> selectIds; //id List<LifePayModel> selectIds; //id
List<LifePayModel> ids;//id List<LifePayModel> ids; //id
String itemNames; // String itemNames; //
String timeTitle; String timeTitle;
// //
@ -50,7 +43,7 @@ class MonthPay {
{required this.payTotal, {required this.payTotal,
required this.ids, required this.ids,
required this.itemNames, required this.itemNames,
required this.selectIds, required this.selectIds,
required this.timeTitle}); required this.timeTitle});
} }
@ -64,12 +57,10 @@ class _LifePayPageNewState extends State<LifePayPageNew> {
List<int> _selectModelIndex = []; //model List<int> _selectModelIndex = []; //model
bool get allSelect => bool get allSelect => ((_selectMonths.length == _selectModelIndex.length) &&
((_selectMonths.length == _selectModelIndex.length) && (_selectMonths.length != 0)); (_selectMonths.length != 0));
MonthPay get total { MonthPay get total {
double price = 0; double price = 0;
List<LifePayModel> ids = []; List<LifePayModel> ids = [];
for (var i in _selectModelIndex) { for (var i in _selectModelIndex) {
@ -78,7 +69,8 @@ class _LifePayPageNewState extends State<LifePayPageNew> {
price += model.payTotal; price += model.payTotal;
ids.addAll(model.selectIds); ids.addAll(model.selectIds);
} }
return MonthPay( payTotal: price, ids: [], selectIds: ids, itemNames: '', timeTitle: ''); return MonthPay(
payTotal: price, ids: [], selectIds: ids, itemNames: '', timeTitle: '');
} }
@override @override
@ -86,12 +78,11 @@ class _LifePayPageNewState extends State<LifePayPageNew> {
super.initState(); super.initState();
_controller = EasyRefreshController(); _controller = EasyRefreshController();
Future.delayed(Duration.zero,(){ Future.delayed(Duration.zero, () {
if( UserTool.userProvider.defaultHouse==null){ if (UserTool.userProvider.defaultHouse == null) {
Get.off(()=>MyHousePage()); Get.off(() => MyHousePage());
BotToast.showText(text: '请先选择您的房屋'); BotToast.showText(text: '请先选择您的房屋');
} }
}); });
_models = [ _models = [
@ -163,7 +154,7 @@ class _LifePayPageNewState extends State<LifePayPageNew> {
Widget _buildCard(MonthPay model, int index) { Widget _buildCard(MonthPay model, int index) {
return Container( return Container(
padding: EdgeInsets.symmetric(vertical: 32.w,horizontal: 32.w), padding: EdgeInsets.symmetric(vertical: 32.w, horizontal: 32.w),
decoration: BoxDecoration( decoration: BoxDecoration(
borderRadius: BorderRadius.circular(8.w), color: kForeGroundColor), borderRadius: BorderRadius.circular(8.w), color: kForeGroundColor),
child: Row( child: Row(
@ -183,7 +174,8 @@ class _LifePayPageNewState extends State<LifePayPageNew> {
}); });
}, },
child: Container( child: Container(
padding: EdgeInsets.only(left: 10.w,right: 10.w,bottom: 50.w), padding:
EdgeInsets.only(left: 10.w, right: 10.w, bottom: 50.w),
color: Colors.transparent, color: Colors.transparent,
child: BeeCheckRadio( child: BeeCheckRadio(
value: index, value: index,
@ -198,7 +190,11 @@ class _LifePayPageNewState extends State<LifePayPageNew> {
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
mainAxisSize: MainAxisSize.min, mainAxisSize: MainAxisSize.min,
children: [ children: [
model.timeTitle.text.color(Colors.black.withOpacity(0.8)).bold.size(32.sp).make(), model.timeTitle.text
.color(Colors.black.withOpacity(0.8))
.bold
.size(32.sp)
.make(),
13.w.heightBox, 13.w.heightBox,
'已选择:' '已选择:'
.richText .richText
@ -209,18 +205,17 @@ class _LifePayPageNewState extends State<LifePayPageNew> {
.size(32.sp) .size(32.sp)
.bold .bold
.make(), .make(),
' / ${model.ids.length}' ' / ${model.ids.length}'
.textSpan .textSpan
.color(Colors.black.withOpacity(0.25)) .color(Colors.black.withOpacity(0.25))
.size(32.sp) .size(32.sp)
.bold .bold
.make(), .make(),
]) ])
.color(Colors.black.withOpacity(0.65)) .color(Colors.black.withOpacity(0.65))
.size(26.sp) .size(26.sp)
.make(), .make(),
13.w.heightBox, 13.w.heightBox,
SizedBox( SizedBox(
width: 400.w, width: 400.w,
child: Text( child: Text(
@ -230,11 +225,9 @@ class _LifePayPageNewState extends State<LifePayPageNew> {
style: TextStyle( style: TextStyle(
color: ktextSubColor, color: ktextSubColor,
fontSize: 28.sp, fontSize: 28.sp,
), ),
), ),
), ),
13.w.heightBox, 13.w.heightBox,
RichText( RichText(
text: TextSpan( text: TextSpan(
@ -244,12 +237,12 @@ class _LifePayPageNewState extends State<LifePayPageNew> {
fontSize: 24.sp, fontSize: 24.sp,
fontWeight: FontWeight.bold), fontWeight: FontWeight.bold),
children: [ children: [
TextSpan( TextSpan(
text: '¥ ', text: '¥ ',
style: TextStyle( style: TextStyle(
color: kDangerColor, color: kDangerColor,
fontSize: 24.sp, fontSize: 24.sp,
fontWeight: FontWeight.bold)), fontWeight: FontWeight.bold)),
TextSpan( TextSpan(
text: '${model.payTotal.toStringAsFixed(2)}', text: '${model.payTotal.toStringAsFixed(2)}',
style: TextStyle( style: TextStyle(
@ -265,22 +258,18 @@ class _LifePayPageNewState extends State<LifePayPageNew> {
children: [ children: [
GestureDetector( GestureDetector(
onTap: () async { onTap: () async {
dynamic back = await Get.to(() => LifePayDetailPageNew(
model: model,
dynamic back = await Get.to(()=>LifePayDetailPageNew(model: model,)); ));
if(back){ if (back) {
for (int i = 0; i < _selectMonths.length; i++) {
for(int i=0;i<_selectMonths.length;i++){ if (_selectMonths[i].selectIds.isEmpty) {
if(_selectMonths[i].selectIds.isEmpty){ _selectModelIndex
_selectModelIndex.remove(_selectMonths.indexOf(_selectMonths[i])); .remove(_selectMonths.indexOf(_selectMonths[i]));
}
} }
setState(() {
});
} }
setState(() {});
}
}, },
child: Container( child: Container(
decoration: BoxDecoration( decoration: BoxDecoration(
@ -289,11 +278,14 @@ class _LifePayPageNewState extends State<LifePayPageNew> {
), ),
padding: padding:
EdgeInsets.symmetric(horizontal: 20.w, vertical: 8.w), EdgeInsets.symmetric(horizontal: 20.w, vertical: 8.w),
child: '选择明细'.text.color(Colors.black.withOpacity(0.85)).size(22.sp).bold.make(), child: '选择明细'
.text
.color(Colors.black.withOpacity(0.85))
.size(22.sp)
.bold
.make(),
), ),
), ),
], ],
), ),
], ],
@ -309,14 +301,13 @@ class _LifePayPageNewState extends State<LifePayPageNew> {
padding: EdgeInsets.symmetric(horizontal: 50.w, vertical: 15.w), padding: EdgeInsets.symmetric(horizontal: 50.w, vertical: 15.w),
onPressed: () async { onPressed: () async {
Function cancel = BotToast.showLoading(); Function cancel = BotToast.showLoading();
BaseModel baseModel = BaseModel baseModel = await NetUtil()
await NetUtil().post(SAASAPI.pay.createLivingExpensesOrder, params: { .post(SAASAPI.pay.createLivingExpensesOrder, params: {
"chargesBillId": total.ids, "chargesBillId": total.ids,
"paymentAmount": total.payTotal "paymentAmount": total.payTotal
}); });
if (baseModel.success) { if (baseModel.success) {
bool result = await PayUtil().callAliPay( bool result = await PayUtil().callAliPay((baseModel.data as String),
(baseModel.data as String),
SAASAPI.pay.livingExpensesOrderCheckAlipay); SAASAPI.pay.livingExpensesOrderCheckAlipay);
if (result) { if (result) {
Get.off(() => PayFinishPage()); Get.off(() => PayFinishPage());
@ -370,10 +361,8 @@ class _LifePayPageNewState extends State<LifePayPageNew> {
} }
Future<double> _dailyPaymentPrePay() async { Future<double> _dailyPaymentPrePay() async {
BaseModel baseModel = BaseModel baseModel = await NetUtil().get(SAASAPI.lifePay.findEstateBalance,
await NetUtil().get(SAASAPI.lifePay.findEstateBalance, params: { params: {"estateId": UserTool.userProvider.defaultHouse!.id});
"estateId": UserTool.userProvider.defaultHouse!.id
});
if (baseModel.success) { if (baseModel.success) {
return (baseModel.data as num).toDouble(); return (baseModel.data as num).toDouble();
} else { } else {
@ -392,10 +381,13 @@ class _LifePayPageNewState extends State<LifePayPageNew> {
Get.to(() => LifePayRecordPage()); Get.to(() => LifePayRecordPage());
}, },
child: Container( child: Container(
padding: EdgeInsets.fromLTRB(32.w, 28.w, 32.w, 20.w), padding: EdgeInsets.fromLTRB(32.w, 28.w, 32.w, 20.w),
alignment: Alignment.center, alignment: Alignment.center,
child: Image.asset(Assets.icons.lifePayRecord.path,width:48.w ,height: 48.w,) child: Image.asset(
), Assets.icons.lifePayRecord.path,
width: 48.w,
height: 48.w,
)),
), ),
], ],
body: EasyRefresh( body: EasyRefresh(
@ -403,66 +395,60 @@ class _LifePayPageNewState extends State<LifePayPageNew> {
header: MaterialHeader(), header: MaterialHeader(),
controller: _controller, controller: _controller,
onRefresh: () async { onRefresh: () async {
_prePrice = await _dailyPaymentPrePay(); _prePrice = await _dailyPaymentPrePay();
_selectMonths.clear(); _selectMonths.clear();
BaseModel model = await NetUtil() BaseModel model = await NetUtil().get(
.get(SAASAPI.lifePay.livingExpensesList, params: { SAASAPI.lifePay.livingExpensesList,
'estateId': UserTool.userProvider.defaultHouse!.id params: {'estateId': UserTool.userProvider.defaultHouse!.id});
}); if (model.success) {
if(model.success){ if (model.data != null)
if(model.data!=null) _models = (model.data as List)
_models = ( model.data as List)
.map((e) => LifePayModel.fromJson(e)) .map((e) => LifePayModel.fromJson(e))
.toList() ; .toList();
} }
/// ///
if(_models.isNotEmpty) if (_models.isNotEmpty)
_models.forEach((element) { _models.forEach((element) {
if (_selectMonths.isEmpty) { if (_selectMonths.isEmpty) {
_selectMonths.add(MonthPay( _selectMonths.add(MonthPay(
payTotal: element.payPrincipal + element.defaultAmount, payTotal: element.payPrincipal + element.defaultAmount,
ids: [element], ids: [element],
itemNames: element.chargesName, itemNames: element.chargesName ?? '',
timeTitle: DateUtil.formatDate( timeTitle: DateUtil.formatDate(
DateTime.parse(element.billDateStart), DateTime.parse(element.billDateStart),
format: 'yyyy-MM'), selectIds: [element],)); format: 'yyyy-MM'),
} else { selectIds: [element],
bool same = false; ));
for(int i=0;i<_selectMonths.length;i++){ } else {
bool same = false;
if (DateUtil.formatDate(DateTime.parse(element.billDateStart), for (int i = 0; i < _selectMonths.length; i++) {
format: 'yyyy-MM') == if (DateUtil.formatDate(DateTime.parse(element.billDateStart),
_selectMonths[i].timeTitle) { format: 'yyyy-MM') ==
_selectMonths[i].payTotal += _selectMonths[i].timeTitle) {
element.defaultAmount + element.payPrincipal; _selectMonths[i].payTotal +=
_selectMonths[i].ids.add(element); element.defaultAmount + element.payPrincipal;
_selectMonths[i].itemNames += ''+element.chargesName; _selectMonths[i].ids.add(element);
_selectMonths[i].itemNames +=
_selectMonths[i].selectIds.add(element); '' + (element.chargesName ?? '');
same = true;
_selectMonths[i].selectIds.add(element);
same = true;
}
}
if (!same) {
_selectMonths.add(MonthPay(
payTotal: element.payPrincipal + element.defaultAmount,
ids: [element],
selectIds: [element],
itemNames: element.chargesName ?? '',
timeTitle: DateUtil.formatDate(
DateTime.parse(element.billDateStart),
format: 'yyyy-MM')));
} }
} }
if(!same){ });
_selectMonths.add(MonthPay(
payTotal: element.payPrincipal + element.defaultAmount,
ids: [element],
selectIds: [element],
itemNames: element.chargesName,
timeTitle: DateUtil.formatDate(
DateTime.parse(element.billDateStart),
format: 'yyyy-MM')));
}
}
});
if (mounted) setState(() {}); if (mounted) setState(() {});
}, },
child: Column( child: Column(
@ -483,9 +469,11 @@ class _LifePayPageNewState extends State<LifePayPageNew> {
child: Column( child: Column(
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
children: [ children: [
Padding(padding: EdgeInsets.symmetric(vertical: 24.w,horizontal: 32.w), Padding(
child: '当前账单'.text.color(ktextPrimary).size(28.sp).make(),), padding:
EdgeInsets.symmetric(vertical: 24.w, horizontal: 32.w),
child: '当前账单'.text.color(ktextPrimary).size(28.sp).make(),
),
BeeDivider.horizontal(), BeeDivider.horizontal(),
...List.generate(_selectMonths.length, ...List.generate(_selectMonths.length,
(index) => _buildCard(_selectMonths[index], index)) (index) => _buildCard(_selectMonths[index], index))
@ -508,7 +496,6 @@ class _LifePayPageNewState extends State<LifePayPageNew> {
_selectModelIndex.clear(); _selectModelIndex.clear();
setState(() {}); setState(() {});
} else { } else {
_selectModelIndex.clear(); _selectModelIndex.clear();
for (var i = 0; i < _selectMonths.length; i++) { for (var i = 0; i < _selectMonths.length; i++) {
_selectModelIndex.add(i); _selectModelIndex.add(i);
@ -537,12 +524,7 @@ class _LifePayPageNewState extends State<LifePayPageNew> {
).material(color: Colors.transparent), ).material(color: Colors.transparent),
), ),
16.wb, 16.wb,
'全选' '全选'.text.color(ktextSubColor).size(28.sp).bold.make(),
.text
.color(ktextSubColor)
.size(28.sp)
.bold
.make(),
Spacer(), Spacer(),
Column( Column(
crossAxisAlignment: CrossAxisAlignment.end, crossAxisAlignment: CrossAxisAlignment.end,
@ -556,12 +538,12 @@ class _LifePayPageNewState extends State<LifePayPageNew> {
fontSize: 24.sp, fontSize: 24.sp,
fontWeight: FontWeight.bold), fontWeight: FontWeight.bold),
children: [ children: [
TextSpan( TextSpan(
text: ' ¥', text: ' ¥',
style: TextStyle( style: TextStyle(
color: kDangerColor, color: kDangerColor,
fontSize: 24.sp, fontSize: 24.sp,
fontWeight: FontWeight.bold)), fontWeight: FontWeight.bold)),
TextSpan( TextSpan(
text: '${total.payTotal.toStringAsFixed(2)}', text: '${total.payTotal.toStringAsFixed(2)}',
style: TextStyle( style: TextStyle(

@ -1,22 +1,15 @@
import 'package:aku_new_community/base/base_style.dart';
import 'package:aku_new_community/models/life_pay/life_pay_model.dart'; import 'package:aku_new_community/models/life_pay/life_pay_model.dart';
import 'package:aku_new_community/pages/life_pay/life_pay_page.dart';
import 'package:aku_new_community/pages/life_pay/life_pay_page_new.dart'; import 'package:aku_new_community/pages/life_pay/life_pay_page_new.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_divider.dart';
import 'package:aku_new_community/widget/bee_scaffold.dart';
import 'package:aku_new_community/widget/buttons/bee_check_radio.dart';
import 'package:common_utils/common_utils.dart'; import 'package:common_utils/common_utils.dart';
import 'package:flutter/cupertino.dart'; import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:expandable/expandable.dart';
import 'package:get/get.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';
import 'package:aku_new_community/provider/app_provider.dart';
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';
class LifePayDetailPageNew extends StatefulWidget { class LifePayDetailPageNew extends StatefulWidget {
final MonthPay model; final MonthPay model;
@ -31,51 +24,45 @@ class LifePayDetailPageNew extends StatefulWidget {
} }
class _LifePayDetailPageNewState extends State<LifePayDetailPageNew> { class _LifePayDetailPageNewState extends State<LifePayDetailPageNew> {
//model //model
List<int> _selectModelIndex = []; //model List<int> _selectModelIndex = []; //model
List<LifePayModel> _list = []; List<LifePayModel> _list = [];
SelectPay get total { SelectPay get total {
int count = 0; int count = 0;
double price = 0; double price = 0;
List<int> ids = []; List<int> ids = [];
widget.model.selectIds.forEach((element) { widget.model.selectIds.forEach((element) {
count++; count++;
price += (element.defaultAmount + element.payPrincipal); price += (element.defaultAmount + element.payPrincipal);
ids.add(element.id); ids.add(element.id);
}); });
widget.model.payTotal = price; widget.model.payTotal = price;
return SelectPay(payCount: count, payTotal: price, ids: ids); return SelectPay(payCount: count, payTotal: price, ids: ids);
} }
bool get isAllSelect { bool get isAllSelect {
return _selectModelIndex.length == widget.model.ids.length && _selectModelIndex != 0; return _selectModelIndex.length == widget.model.ids.length &&
_selectModelIndex != 0;
} }
@override @override
void initState() { void initState() {
super.initState(); super.initState();
for(int i=0;i<widget.model.selectIds.length;i++){ for (int i = 0; i < widget.model.selectIds.length; i++) {
_selectModelIndex
_selectModelIndex.add(widget.model.ids.indexOf(widget.model.selectIds[i])); .add(widget.model.ids.indexOf(widget.model.selectIds[i]));
} }
for(int i=0;i<widget.model.ids.length;i++){ for (int i = 0; i < widget.model.ids.length; i++) {
_list.add(widget.model.ids[i]); _list.add(widget.model.ids[i]);
} }
} }
Widget _buildCard(LifePayModel model, int index) { Widget _buildCard(LifePayModel model, int index) {
return Container( return Container(
padding: EdgeInsets.symmetric(vertical:32.w,horizontal: 32.w), padding: EdgeInsets.symmetric(vertical: 32.w, horizontal: 32.w),
decoration: BoxDecoration( decoration: BoxDecoration(
borderRadius: BorderRadius.circular(8.w), color: kForeGroundColor), borderRadius: BorderRadius.circular(8.w), color: kForeGroundColor),
child: Row( child: Row(
@ -87,9 +74,6 @@ class _LifePayDetailPageNewState extends State<LifePayDetailPageNew> {
GestureDetector( GestureDetector(
onTap: () { onTap: () {
setState(() { setState(() {
if (_selectModelIndex.contains(index)) { if (_selectModelIndex.contains(index)) {
_selectModelIndex.remove(index); _selectModelIndex.remove(index);
widget.model.selectIds.remove(model); widget.model.selectIds.remove(model);
@ -102,7 +86,8 @@ class _LifePayDetailPageNewState extends State<LifePayDetailPageNew> {
}); });
}, },
child: Container( child: Container(
padding: EdgeInsets.only(left: 10.w,right: 10.w,top: 5.w,bottom: 50.w), padding: EdgeInsets.only(
left: 10.w, right: 10.w, top: 5.w, bottom: 50.w),
color: Colors.transparent, color: Colors.transparent,
child: BeeCheckRadio( child: BeeCheckRadio(
value: index, value: index,
@ -117,33 +102,33 @@ class _LifePayDetailPageNewState extends State<LifePayDetailPageNew> {
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
mainAxisSize: MainAxisSize.min, mainAxisSize: MainAxisSize.min,
children: [ children: [
model.chargesName.text.color(ktextSubColor).size(28.sp).make(), (model.chargesName ?? '')
.text
.color(ktextSubColor)
.size(28.sp)
.make(),
24.w.heightBox, 24.w.heightBox,
DateUtil.formatDate(DateTime.parse(model.billDateStart), DateUtil.formatDate(DateTime.parse(model.billDateStart),
format: 'yyyy/MM/dd') format: 'yyyy/MM/dd')
.richText .richText
.withTextSpanChildren([ .withTextSpanChildren([
' - ' ' - '
.textSpan .textSpan
.color(Colors.black.withOpacity(0.45)) .color(Colors.black.withOpacity(0.45))
.size(24.sp) .size(24.sp)
.make(),
.make(), DateUtil.formatDate(DateTime.parse(model.billDateEnd),
DateUtil.formatDate(DateTime.parse(model.billDateEnd), format: 'yyyy/MM/dd')
format: 'yyyy/MM/dd') .textSpan
.textSpan .color(Colors.black.withOpacity(0.45))
.color(Colors.black.withOpacity(0.45)) .size(24.sp)
.size(24.sp) .make(),
])
.make(),
])
.color(Colors.black.withOpacity(0.45)) .color(Colors.black.withOpacity(0.45))
.size(24.sp) .size(24.sp)
.make(), .make(),
], ],
).expand(), ).expand(),
RichText( RichText(
text: TextSpan( text: TextSpan(
text: '¥ ', text: '¥ ',
@ -152,19 +137,18 @@ class _LifePayDetailPageNewState extends State<LifePayDetailPageNew> {
fontSize: 24.sp, fontSize: 24.sp,
fontWeight: FontWeight.bold), fontWeight: FontWeight.bold),
children: [ children: [
TextSpan( TextSpan(
text: '${model.payPrincipal+model.defaultAmount}', text: '${model.payPrincipal + model.defaultAmount}',
style: TextStyle( style: TextStyle(
color: kDangerColor, color: kDangerColor,
fontSize: 30.sp, fontSize: 30.sp,
fontWeight: FontWeight.bold)), fontWeight: FontWeight.bold)),
])), ])),
], ],
), ),
); );
} }
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
var animatedContainer = AnimatedContainer( var animatedContainer = AnimatedContainer(
@ -199,17 +183,22 @@ class _LifePayDetailPageNewState extends State<LifePayDetailPageNew> {
), ),
title: widget.model.timeTitle, title: widget.model.timeTitle,
body: WillPopScope( body: WillPopScope(
onWillPop: () async {
onWillPop: () async{
/// ///
widget.model.selectIds = _list; widget.model.selectIds = _list;
Get.back(result: false); Get.back(result: false);
return false; return false;
}, },
child: ListView( child: ListView(
padding: EdgeInsets.only(top: 16.w), padding: EdgeInsets.only(top: 16.w),
children: List.generate(widget.model.ids.length, children:
(index) => _buildCard(widget.model.ids[index], index)).sepWidget(separate: BeeDivider.horizontal(indent: 100.w,)),), List.generate(widget.model.ids.length,
(index) => _buildCard(widget.model.ids[index], index))
.sepWidget(
separate: BeeDivider.horizontal(
indent: 100.w,
)),
),
), ),
bottomNavi: Container( bottomNavi: Container(
color: Colors.white, color: Colors.white,
@ -217,7 +206,6 @@ class _LifePayDetailPageNewState extends State<LifePayDetailPageNew> {
32.w, 16.w, 32.w, 12.w + MediaQuery.of(context).padding.bottom), 32.w, 16.w, 32.w, 12.w + MediaQuery.of(context).padding.bottom),
child: Row( child: Row(
children: [ children: [
GestureDetector( GestureDetector(
onTap: () { onTap: () {
if (isAllSelect) { if (isAllSelect) {
@ -225,7 +213,6 @@ class _LifePayDetailPageNewState extends State<LifePayDetailPageNew> {
widget.model.selectIds.clear(); widget.model.selectIds.clear();
setState(() {}); setState(() {});
} else { } else {
_selectModelIndex.clear(); _selectModelIndex.clear();
for (var i = 0; i < widget.model.ids.length; i++) { for (var i = 0; i < widget.model.ids.length; i++) {
_selectModelIndex.add(i); _selectModelIndex.add(i);
@ -233,17 +220,11 @@ class _LifePayDetailPageNewState extends State<LifePayDetailPageNew> {
} }
setState(() {}); setState(() {});
} }
}, },
child: animatedContainer, child: animatedContainer,
), ),
16.wb, 16.wb,
'全选' '全选'.text.color(ktextSubColor).size(28.sp).bold.make(),
.text
.color(ktextSubColor)
.size(28.sp)
.bold
.make(),
Spacer(), Spacer(),
Column( Column(
crossAxisAlignment: CrossAxisAlignment.end, crossAxisAlignment: CrossAxisAlignment.end,
@ -257,20 +238,19 @@ class _LifePayDetailPageNewState extends State<LifePayDetailPageNew> {
fontSize: 24.sp, fontSize: 24.sp,
fontWeight: FontWeight.bold), fontWeight: FontWeight.bold),
children: [ children: [
TextSpan( TextSpan(
text: ' ¥', text: ' ¥',
style: TextStyle( style: TextStyle(
color: kDangerColor, color: kDangerColor,
fontSize: 24.sp, fontSize: 24.sp,
fontWeight: FontWeight.bold)), fontWeight: FontWeight.bold)),
TextSpan( TextSpan(
text: '${total.payTotal.toStringAsFixed(2)}', text: '${total.payTotal.toStringAsFixed(2)}',
style: TextStyle( style: TextStyle(
color: kDangerColor, color: kDangerColor,
fontSize: 32.sp, fontSize: 32.sp,
fontWeight: FontWeight.bold)), fontWeight: FontWeight.bold)),
])), ])),
'已选${total.payCount}' '已选${total.payCount}'
.text .text
.color(ktextSubColor) .color(ktextSubColor)

@ -109,7 +109,7 @@ class _PersonalIndexState extends State<PersonalIndex>
height: 40.w, height: 40.w,
alignment: Alignment.center, alignment: Alignment.center,
child: Image.asset( child: Image.asset(
R.ASSETS_ICONS_ICON_MY_SETTING_PNG, Assets.newIcon.imgShezhi.path,
width: 40.w, width: 40.w,
height: 40.w), height: 40.w),
), ),
@ -402,13 +402,13 @@ class _PersonalIndexState extends State<PersonalIndex>
), ),
24.hb, 24.hb,
_function('我的积分', Assets.newIcon.icJifen.path, _function('我的积分', Assets.newIcon.icJifen.path,
() => ClockInPage(), ''), () => Get.to(() => ClockInPage()), ''),
_function( _function(
'我的房屋', '我的房屋',
R.ASSETS_ICONS_ICON_MY_HOUSE_PNG, Assets.newIcon.icWdfw.path,
(){ () {
Get.to(() => MyHousePage()); Get.to(() => MyHousePage());
}, },
// () => HouseOwnersPage( // () => HouseOwnersPage(
// identify: 4, // identify: 4,
// ), // ),
@ -417,39 +417,26 @@ class _PersonalIndexState extends State<PersonalIndex>
'${UserTool.userProvider.defaultHouse?.unitName ?? ''}' '${UserTool.userProvider.defaultHouse?.unitName ?? ''}'
'${UserTool.userProvider.defaultHouse?.estateName ?? ''}', '${UserTool.userProvider.defaultHouse?.estateName ?? ''}',
), ),
36.hb, _function('我的家庭', Assets.newIcon.icWdjt.path, () {
_function( Get.to(() => MyFamilyPage());
'我的家庭', }, ''),
R.ASSETS_ICONS_ICON_MY_HOUSE_PNG,
(){
Get.to(() => MyFamilyPage());
}
,
''),
36.hb,
// _function('我的车位', R.ASSETS_ICONS_ICON_MY_CARSEAT_PNG, // _function('我的车位', R.ASSETS_ICONS_ICON_MY_CARSEAT_PNG,
// () => CarParkingPage(), ''), // () => CarParkingPage(), ''),
// 36.hb, // 36.hb,
// _function('我的车', R.ASSETS_ICONS_ICON_MY_CAR_PNG, // _function('我的车', R.ASSETS_ICONS_ICON_MY_CAR_PNG,
// () => CarManagePage(), ''), // () => CarManagePage(), ''),
// 36.hb, // 36.hb,
_function( _function('我的访客', Assets.newIcon.icWdfk.path, () {
'我的访客', BotToast.showText(
R.ASSETS_ICONS_ICON_MY_VISITOR_PNG, text: '当前小区尚未连接设备',
(){ align: Alignment(0, 0.5));
BotToast.showText(text: '当前小区尚未连接设备', align: Alignment(0, 0.5)); }, ''),
}
,
''),
36.hb,
_function( _function(
'收货地址', '收货地址',
R.ASSETS_ICONS_ICON_MY_LOCATION_PNG, Assets.newIcon.icShdz.path,
() => AddressListPage( () => Get.to(() => AddressListPage(
canBack: false, canBack: false,
), )),
''), ''),
], ],
), ),

@ -1,12 +1,9 @@
import 'package:aku_new_community/base/base_style.dart'; import 'package:aku_new_community/base/base_style.dart';
import 'package:aku_new_community/extensions/num_ext.dart'; import 'package:aku_new_community/extensions/num_ext.dart';
import 'package:aku_new_community/extensions/widget_list_ext.dart'; import 'package:aku_new_community/extensions/widget_list_ext.dart';
import 'package:aku_new_community/pages/setting_page/about_page/about_page.dart';
import 'package:aku_new_community/pages/setting_page/account_manager_page.dart';
import 'package:aku_new_community/pages/setting_page/agreement_page/agreement_page.dart'; import 'package:aku_new_community/pages/setting_page/agreement_page/agreement_page.dart';
import 'package:aku_new_community/pages/setting_page/agreement_page/privacy_page.dart'; import 'package:aku_new_community/pages/setting_page/agreement_page/privacy_page.dart';
import 'package:aku_new_community/pages/setting_page/feedback_page/feedback_page.dart'; import 'package:aku_new_community/pages/sign/login/other_login_page.dart';
import 'package:aku_new_community/pages/tab_navigator.dart';
import 'package:aku_new_community/provider/user_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/developer_util.dart';
import 'package:aku_new_community/utils/websocket/web_socket_util.dart'; import 'package:aku_new_community/utils/websocket/web_socket_util.dart';
@ -81,7 +78,7 @@ class _SettingsPageState extends State<SettingsPage> {
), ),
onPressed: () { onPressed: () {
userProvider.logout(); userProvider.logout();
Get.offAll(() => TabNavigator()); Get.to(() => OtherLoginPage());
}, },
), ),
], ],
@ -106,7 +103,7 @@ class _SettingsPageState extends State<SettingsPage> {
body: ListView( body: ListView(
padding: EdgeInsets.zero, padding: EdgeInsets.zero,
children: [ children: [
...[ ...<Widget>[
// _buildTile( // _buildTile(
// title: '是否接受信息通知', // title: '是否接受信息通知',
// suffix: CupertinoSwitch( // suffix: CupertinoSwitch(
@ -114,10 +111,10 @@ class _SettingsPageState extends State<SettingsPage> {
// onChanged: (state) {}, // onChanged: (state) {},
// ), // ),
// ), // ),
_buildTile( // _buildTile(
title: '关于小蜜蜂智慧小区', // title: '关于小蜜蜂智慧小区',
onTap: () => Get.to(() => AboutPage()), // onTap: () => Get.to(() => AboutPage()),
), // ),
//TODO //TODO
// _buildTile( // _buildTile(
// title: '邀请注册', // title: '邀请注册',
@ -137,14 +134,14 @@ class _SettingsPageState extends State<SettingsPage> {
// title: '清除缓存', // title: '清除缓存',
// onTap: () {}, // onTap: () {},
// ), // ),
_buildTile( // _buildTile(
title: '意见反馈', // title: '意见反馈',
onTap: () => Get.to(() => FeedBackPage()), // onTap: () => Get.to(() => FeedBackPage()),
), // ),
_buildTile( // _buildTile(
title: '账号管理', // title: '账号管理',
onTap: () => Get.to(() => AccountManagerPage()), // onTap: () => Get.to(() => AccountManagerPage()),
), // ),
_buildTile( _buildTile(
title: '小蜜蜂用户协议', title: '小蜜蜂用户协议',
onTap: () => Get.to(() => AgreementPage()), onTap: () => Get.to(() => AgreementPage()),

@ -113,8 +113,10 @@ class _OtherLoginPageState extends State<OtherLoginPage> {
await UserTool.dataProvider.addHistories(); await UserTool.dataProvider.addHistories();
await UserTool.userProvider.setLogin(response.data['data']); await UserTool.userProvider.setLogin(response.data['data']);
} else { } else {
// BotToast.showText(text: response.data['message']); BotToast.showText(text: response.data['msg']);
BotToast.showText(text: '账号尚未注册,请使用验证码登陆'); if (response.data['msg'] == '该账户未设置密码,请使用验证码登录') {
_controller.jumpToPage(0);
}
} }
} catch (e) { } catch (e) {
print(e.toString()); print(e.toString());

@ -97,6 +97,9 @@ class _CommunityPageState extends State<CommunityPage>
child: TabBar( child: TabBar(
onTap: (index) { onTap: (index) {
setState(() {}); setState(() {});
if (_tabController?.index == 1) {
myKey.currentState?.refresh();
}
}, },
controller: _tabController, controller: _tabController,
indicatorColor: Color(0xffffc40c), indicatorColor: Color(0xffffc40c),

@ -131,6 +131,7 @@ class MyCommunityViewState extends State<MyCommunityView>
return EasyRefresh( return EasyRefresh(
firstRefresh: true, firstRefresh: true,
header: MaterialHeader(), header: MaterialHeader(),
footer: MaterialFooter(),
controller: _refreshController, controller: _refreshController,
onRefresh: () async { onRefresh: () async {
BaseListModel model = await NetUtil().getList( BaseListModel model = await NetUtil().getList(

@ -122,7 +122,7 @@ class HallCard extends StatelessWidget {
24.w.heightBox, 24.w.heightBox,
Row( Row(
children: [ children: [
Assets.icons.environment.image(width: 36.w, height: 36.w), Assets.icons.environment.image(width: 40.w, height: 40.w),
24.w.widthBox, 24.w.widthBox,
'${model.accessAddress}' '${model.accessAddress}'
.text .text

@ -80,29 +80,6 @@ class MyTakeTaskCard extends StatelessWidget {
24.w.heightBox, 24.w.heightBox,
appointment, appointment,
20.w.heightBox, 20.w.heightBox,
Row(
children: [
Assets.icons.clockCircle.image(width: 36.w, height: 36.w),
24.w.widthBox,
'${DateUtil.formatDateStr(model.readyEndTime)}'
.text
.size(24.sp)
.color(Colors.black.withOpacity(0.65))
.make(),
],
),
20.w.heightBox,
Row(
children: [
Assets.icons.environment.image(width: 36.w, height: 36.w),
24.w.widthBox,
'${model.accessAddress}'
.text
.size(24.sp)
.color(Colors.black.withOpacity(0.65))
.make(),
],
),
Row( Row(
children: [ children: [
Assets.icons.watch.image(width: 40.w, height: 40.w), Assets.icons.watch.image(width: 40.w, height: 40.w),
@ -120,7 +97,7 @@ class MyTakeTaskCard extends StatelessWidget {
24.w.heightBox, 24.w.heightBox,
Row( Row(
children: [ children: [
Assets.icons.environment.image(width: 36.w, height: 36.w), Assets.icons.environment.image(width: 40.w, height: 40.w),
24.w.widthBox, 24.w.widthBox,
'${model.accessAddress}' '${model.accessAddress}'
.text .text

@ -8,15 +8,16 @@ class TaskMap {
9: '其他' 9: '其他'
}; };
static Map<int, String> statusToString = { static Map<int, String> statusToString = {
1: '未接单', 1: '已发布',
2: '待处理', 2: '服务中',
3: '已完成', 3: '待确认',
4: '已取消' 4: '已完成',
5: '已评价',
9: '已取消'
}; };
static Map<int, String> typeToString = {1: '跑腿', 2: '代驾', 3: '装修', 4: '陪玩'}; static Map<int, String> typeToString = {1: '跑腿', 2: '代驾', 3: '装修', 4: '陪玩'};
static Map<int, String> serviceObject = {1: '住户', 2: '物业', 3: '不限'}; static Map<int, String> serviceObject = {1: '住户', 2: '物业', 3: '不限'};
static Map<int, String> rewardType = {1: '赏金', 2: '积分'}; static Map<int, String> rewardType = {1: '赏金', 2: '积分'};
} }

@ -131,7 +131,7 @@ class _PublishWorkOrderPageState extends State<PublishWorkOrderPage> {
estateId: 1, estateId: 1,
workOrderTypeId: _types[_typeIndex].id, workOrderTypeId: _types[_typeIndex].id,
reserveDate: _appointDate.toString(), reserveDate: _appointDate.toString(),
reserveAddress: _appointEndDate.toString(), reserveAddress: _addressController.text.toString(),
content: _remark, content: _remark,
imgUrls: imgUrls); imgUrls: imgUrls);
if (re) { if (re) {

@ -33,7 +33,7 @@ class BeeImageNetwork extends StatelessWidget {
Assets.images.placeholder.path, Assets.images.placeholder.path,
width: width ?? 160.w, width: width ?? 160.w,
height: height ?? 160.w, height: height ?? 160.w,
fit: BoxFit.fill, fit: BoxFit.cover,
); );
}, },
height: height ?? 160.w, height: height ?? 160.w,

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save