# Conflicts:
#	lib/ui/home/application/all_application_new.dart
pull/1/head
张萌 3 years ago
commit 492746a893

@ -533,7 +533,7 @@ class _HomePageState extends State<HomePage>
getFunctionBtn(AO.fromRaw('报事报修')), getFunctionBtn(AO.fromRaw('报事报修')),
getFunctionBtn(AO.fromRaw('设施预约')), getFunctionBtn(AO.fromRaw('设施预约')),
getFunctionBtn(AO.fromRaw('生活缴费')), getFunctionBtn(AO.fromRaw('生活缴费')),
getFunctionBtn(AO.fromRaw('智慧养老')), getFunctionBtn(AO.fromRaw('活动投票')),
], ],
), ),
24.hb, 24.hb,

@ -112,8 +112,8 @@ class _OtherLoginPageState extends State<OtherLoginPage> {
UserTool.appProvider.pickedCityAndCommunity!.communityModel! UserTool.appProvider.pickedCityAndCommunity!.communityModel!
.id); .id);
if (response.data['success']) { if (response.data['success']) {
await UserTool.dataProvider.addHistories();
await UserTool.userProvider.setLogin(response.data['data']); await UserTool.userProvider.setLogin(response.data['data']);
await UserTool.dataProvider.addHistories();
} else { } else {
BotToast.showText(text: response.data['msg']); BotToast.showText(text: response.data['msg']);
if (response.data['msg'] == '该账户未设置密码,请使用验证码登录') { if (response.data['msg'] == '该账户未设置密码,请使用验证码登录') {

@ -1,3 +1,4 @@
import 'package:aku_new_community/base/base_style.dart';
import 'package:flutter/cupertino.dart'; import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
@ -299,7 +300,7 @@ class _ActivityDetailPageState extends State<ActivityDetailPage> {
.richText .richText
.tap(() {}) .tap(() {})
.size(28.sp) .size(28.sp)
.color(Colors.blue) .color(kBalckSubColor)
.make(), .make(),
Spacer(), Spacer(),
], ],

@ -26,6 +26,7 @@ class _FacilityAppointmentPageState extends State<FacilityAppointmentPage>
_tabController = TabController(length: 2, vsync: this); _tabController = TabController(length: 2, vsync: this);
} }
@override @override
void dispose() { void dispose() {
_tabController.dispose(); _tabController.dispose();

@ -41,7 +41,7 @@ class _FacilityPreorderPageState extends State<FacilityPreorderPage> {
List<int> dateList = []; List<int> dateList = [];
DateTime? date; DateTime? date;
bool get canTap => dateList.isNotEmpty; bool get canTap => dateList.isNotEmpty&&UserTool.userProvider.defaultHouse!=null;
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
@ -63,7 +63,7 @@ class _FacilityPreorderPageState extends State<FacilityPreorderPage> {
), ),
onTap: () => Get.to(() => AdviceHousePage()), onTap: () => Get.to(() => AdviceHousePage()),
title: Text( title: Text(
UserTool.userProvider.userInfoModel!.name??'请先选择房屋', UserTool.userProvider.userInfoModel!.name??'',
style: TextStyle( style: TextStyle(
fontSize: 30.sp, fontSize: 30.sp,
), ),
@ -76,7 +76,13 @@ class _FacilityPreorderPageState extends State<FacilityPreorderPage> {
color: Colors.black.withOpacity(0.45), color: Colors.black.withOpacity(0.45),
fontSize: 26.sp, fontSize: 26.sp,
), ),
):SizedBox(), ):Text(
'请先绑定房屋',
style: TextStyle(
color: Colors.black.withOpacity(0.45),
fontSize: 26.sp,
),
),
trailing: Icon( trailing: Icon(
CupertinoIcons.chevron_forward, CupertinoIcons.chevron_forward,
size: 35.w, size: 35.w,

@ -175,7 +175,7 @@ class MyPainter extends CustomPainter {
..color = dates!.contains(i) ..color = dates!.contains(i)
? kPrimaryColor ? kPrimaryColor
: i < getNum(start!) || : i < getNum(start!) ||
i > getNum(end!) || i >= getNum(end!) ||
i < getNum(DateTime.now()) i < getNum(DateTime.now())
? ktextThirdColor ? ktextThirdColor
: Colors.transparent : Colors.transparent

@ -1,4 +1,5 @@
import 'package:aku_new_community/ui/function_and_service/task/dialogs/task_evaluation_dialog.dart'; import 'package:aku_new_community/ui/function_and_service/task/dialogs/task_evaluation_dialog.dart';
import 'package:bot_toast/bot_toast.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:flutter_easyrefresh/easy_refresh.dart'; import 'package:flutter_easyrefresh/easy_refresh.dart';
@ -40,6 +41,7 @@ class _TaskPageState extends State<TaskPage> with TickerProviderStateMixin {
_refreshControllers.forEach((element) { _refreshControllers.forEach((element) {
element.dispose(); element.dispose();
}); });
_tabController.dispose();
super.dispose(); super.dispose();
} }
@ -71,7 +73,7 @@ class _TaskPageState extends State<TaskPage> with TickerProviderStateMixin {
children: [ children: [
...TaskMap.taskMode.values ...TaskMap.taskMode.values
.mapIndexed((currentValue, index) => .mapIndexed((currentValue, index) =>
_tabCard(currentValue, index)) _tabCard(currentValue, index))
.toList(), .toList(),
], ],
), ),
@ -81,14 +83,17 @@ class _TaskPageState extends State<TaskPage> with TickerProviderStateMixin {
child: Row( child: Row(
children: <String>['全部', ...TaskMap.taskType.values] children: <String>['全部', ...TaskMap.taskType.values]
.mapIndexed((currentValue, index) => .mapIndexed((currentValue, index) =>
_typeBar(currentValue, index)) _typeBar(currentValue, index))
.toList(), .toList(),
), ),
) )
], ],
)), )),
body: SafeArea( body: SafeArea(
child: TabBarView(controller: _tabController, children: [ child: TabBarView(
//physics: NeverScrollableScrollPhysics(),
controller: _tabController,
children: [
HallView( HallView(
refreshController: _refreshControllers[0], refreshController: _refreshControllers[0],
type: _currentType, type: _currentType,
@ -144,23 +149,23 @@ class _TaskPageState extends State<TaskPage> with TickerProviderStateMixin {
color: Colors.transparent, color: Colors.transparent,
child: _currentType == index child: _currentType == index
? Container( ? Container(
padding: EdgeInsets.symmetric(vertical: 8.w, horizontal: 24.w), padding: EdgeInsets.symmetric(vertical: 8.w, horizontal: 24.w),
decoration: BoxDecoration( decoration: BoxDecoration(
borderRadius: BorderRadius.circular(30.w), borderRadius: BorderRadius.circular(30.w),
color: Color(0xFFFAC058).withOpacity(0.5), color: Color(0xFFFAC058).withOpacity(0.5),
), ),
child: text.text child: text.text
.size(24.sp) .size(24.sp)
.color(Colors.black.withOpacity(0.65)) .color(Colors.black.withOpacity(0.65))
.make(), .make(),
) )
: Container( : Container(
padding: EdgeInsets.symmetric(vertical: 8.w, horizontal: 24.w), padding: EdgeInsets.symmetric(vertical: 8.w, horizontal: 24.w),
child: text.text child: text.text
.size(24.sp) .size(24.sp)
.color(Colors.black.withOpacity(0.45)) .color(Colors.black.withOpacity(0.45))
.make(), .make(),
), ),
), ),
); );
} }

@ -1,3 +1,5 @@
import 'dart:io';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart'; import 'package:flutter_screenutil/flutter_screenutil.dart';
@ -35,7 +37,7 @@ class _AllApplicationNewPageState extends State<AllApplicationNewPage> {
case 3: case 3:
return ['服务浏览', '周边企业', '住房说明', '电子商务']; return ['服务浏览', '周边企业', '住房说明', '电子商务'];
case 4: case 4:
return [ '任务发布', '周边服务', '共享投屏']; return Platform.isIOS?['任务发布', '周边服务', '共享投屏']:['智慧养老', '任务发布', '周边服务', '共享投屏'];
case 5: case 5:
return ['自营商城', '邻家宠物', '共享停车', '二手市场']; return ['自营商城', '邻家宠物', '共享停车', '二手市场'];
default: default:

@ -224,7 +224,10 @@ class _NewAdvicePageState extends State<NewAdvicePage> {
type = _type == 0 ? 3 : 4; type = _type == 0 ? 3 : 4;
break; break;
} }
addAdvice(type, _files, _editingController.text); if(userProvider.defaultHouse != null){
addAdvice(type, _files, _editingController.text);
}
BotToast.showText(text: '请选择房屋');
} }
cancel(); cancel();
}, },

@ -2,7 +2,7 @@ name: aku_new_community
description: A new Flutter project. description: A new Flutter project.
publish_to: "none" publish_to: "none"
version: 1.8.11-dev+51 version: 1.8.12-dev+53
environment: environment:
sdk: ">=2.17.0 <3.0.0" sdk: ">=2.17.0 <3.0.0"

Loading…
Cancel
Save