|
|
@ -3,11 +3,10 @@ import 'package:aku_new_community/gen/assets.gen.dart';
|
|
|
|
import 'package:aku_new_community/pages/personal/clock_in/clock_in_page.dart';
|
|
|
|
import 'package:aku_new_community/pages/personal/clock_in/clock_in_page.dart';
|
|
|
|
import 'package:aku_new_community/pages/personal/user_profile_page.dart';
|
|
|
|
import 'package:aku_new_community/pages/personal/user_profile_page.dart';
|
|
|
|
import 'package:aku_new_community/pages/setting_page/settings_page.dart';
|
|
|
|
import 'package:aku_new_community/pages/setting_page/settings_page.dart';
|
|
|
|
import 'package:aku_new_community/pages/sign/login/login_page.dart';
|
|
|
|
import 'package:aku_new_community/pages/sign/login/other_login_page.dart';
|
|
|
|
import 'package:aku_new_community/provider/user_provider.dart';
|
|
|
|
import 'package:aku_new_community/provider/user_provider.dart';
|
|
|
|
import 'package:aku_new_community/ui/market/order/order_page.dart';
|
|
|
|
import 'package:aku_new_community/ui/market/order/order_page.dart';
|
|
|
|
import 'package:aku_new_community/ui/profile/car/car_manage_page.dart';
|
|
|
|
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/new_house/my_family_page.dart';
|
|
|
|
import 'package:aku_new_community/ui/profile/new_house/my_family_page.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/headers.dart';
|
|
|
|
import 'package:aku_new_community/utils/headers.dart';
|
|
|
@ -123,7 +122,8 @@ class _PersonalIndexState extends State<PersonalIndex>
|
|
|
|
padding: EdgeInsets.all(5.w),
|
|
|
|
padding: EdgeInsets.all(5.w),
|
|
|
|
onPressed: () {
|
|
|
|
onPressed: () {
|
|
|
|
if (!userProvider.isLogin)
|
|
|
|
if (!userProvider.isLogin)
|
|
|
|
Get.to(() => LoginPage());
|
|
|
|
//暂时隐去一键登录页
|
|
|
|
|
|
|
|
Get.to(() => OtherLoginPage());
|
|
|
|
else
|
|
|
|
else
|
|
|
|
Get.to(() => UserProfilePage());
|
|
|
|
Get.to(() => UserProfilePage());
|
|
|
|
},
|
|
|
|
},
|
|
|
@ -151,8 +151,8 @@ class _PersonalIndexState extends State<PersonalIndex>
|
|
|
|
CrossAxisAlignment.start,
|
|
|
|
CrossAxisAlignment.start,
|
|
|
|
children: [
|
|
|
|
children: [
|
|
|
|
Text(
|
|
|
|
Text(
|
|
|
|
userProvider
|
|
|
|
userProvider.userInfoModel
|
|
|
|
.userInfoModel?.nickName ??
|
|
|
|
?.nickName ??
|
|
|
|
'',
|
|
|
|
'',
|
|
|
|
style: TextStyle(
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: 40.sp,
|
|
|
|
fontSize: 40.sp,
|
|
|
@ -185,7 +185,8 @@ class _PersonalIndexState extends State<PersonalIndex>
|
|
|
|
.get(SAASAPI.profile.integral.sign);
|
|
|
|
.get(SAASAPI.profile.integral.sign);
|
|
|
|
if (base.success) {
|
|
|
|
if (base.success) {
|
|
|
|
await Get.dialog(ClockSuccessDialog(
|
|
|
|
await Get.dialog(ClockSuccessDialog(
|
|
|
|
todayIntegral: 1, tomorrowIntegral: 2));
|
|
|
|
todayIntegral: 1,
|
|
|
|
|
|
|
|
tomorrowIntegral: 2));
|
|
|
|
await UserTool.userProvider
|
|
|
|
await UserTool.userProvider
|
|
|
|
.changeTodayClocked();
|
|
|
|
.changeTodayClocked();
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
@ -197,7 +198,8 @@ class _PersonalIndexState extends State<PersonalIndex>
|
|
|
|
minWidth: 112.w,
|
|
|
|
minWidth: 112.w,
|
|
|
|
height: 58.w,
|
|
|
|
height: 58.w,
|
|
|
|
shape: RoundedRectangleBorder(
|
|
|
|
shape: RoundedRectangleBorder(
|
|
|
|
borderRadius: BorderRadius.circular(50.w)),
|
|
|
|
borderRadius:
|
|
|
|
|
|
|
|
BorderRadius.circular(50.w)),
|
|
|
|
child:
|
|
|
|
child:
|
|
|
|
'${UserTool.userProvider.userConfig.todayClocked ? '已签到' : '签到'}'
|
|
|
|
'${UserTool.userProvider.userConfig.todayClocked ? '已签到' : '签到'}'
|
|
|
|
.text
|
|
|
|
.text
|
|
|
@ -217,15 +219,16 @@ class _PersonalIndexState extends State<PersonalIndex>
|
|
|
|
alignment: Alignment.center,
|
|
|
|
alignment: Alignment.center,
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
image: DecorationImage(
|
|
|
|
image: DecorationImage(
|
|
|
|
image:
|
|
|
|
image: AssetImage(
|
|
|
|
AssetImage(Assets.static.vipBackground.path)),
|
|
|
|
Assets.static.vipBackground.path)),
|
|
|
|
borderRadius: BorderRadius.only(
|
|
|
|
borderRadius: BorderRadius.only(
|
|
|
|
topLeft: Radius.circular(16.w),
|
|
|
|
topLeft: Radius.circular(16.w),
|
|
|
|
topRight: Radius.circular(16.w))),
|
|
|
|
topRight: Radius.circular(16.w))),
|
|
|
|
child: Row(
|
|
|
|
child: Row(
|
|
|
|
children: [
|
|
|
|
children: [
|
|
|
|
32.wb,
|
|
|
|
32.wb,
|
|
|
|
Assets.icons.vipFont.image(width: 60.w, height: 60.w),
|
|
|
|
Assets.icons.vipFont
|
|
|
|
|
|
|
|
.image(width: 60.w, height: 60.w),
|
|
|
|
24.wb,
|
|
|
|
24.wb,
|
|
|
|
'当前会员等级:2级'
|
|
|
|
'当前会员等级:2级'
|
|
|
|
.text
|
|
|
|
.text
|
|
|
@ -241,7 +244,8 @@ class _PersonalIndexState extends State<PersonalIndex>
|
|
|
|
alignment: Alignment.center,
|
|
|
|
alignment: Alignment.center,
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
color: Color(0xFFFFE0A9),
|
|
|
|
color: Color(0xFFFFE0A9),
|
|
|
|
borderRadius: BorderRadius.circular(29.w)),
|
|
|
|
borderRadius:
|
|
|
|
|
|
|
|
BorderRadius.circular(29.w)),
|
|
|
|
child: '会员中心'.text.size(24.sp).black.make(),
|
|
|
|
child: '会员中心'.text.size(24.sp).black.make(),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
@ -270,8 +274,8 @@ class _PersonalIndexState extends State<PersonalIndex>
|
|
|
|
],
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
margin: EdgeInsets.only(left: 32.w, right: 32.w),
|
|
|
|
margin: EdgeInsets.only(left: 32.w, right: 32.w),
|
|
|
|
padding:
|
|
|
|
padding: EdgeInsets.only(
|
|
|
|
EdgeInsets.only(top: 24.w, left: 32.w, right: 32.w),
|
|
|
|
top: 24.w, left: 32.w, right: 32.w),
|
|
|
|
child: Column(
|
|
|
|
child: Column(
|
|
|
|
//mainAxisAlignment: MainAxisAlignment.center,
|
|
|
|
//mainAxisAlignment: MainAxisAlignment.center,
|
|
|
|
children: [
|
|
|
|
children: [
|
|
|
@ -375,8 +379,11 @@ class _PersonalIndexState extends State<PersonalIndex>
|
|
|
|
'${UserTool.userProvider.defaultHouse?.estateName ?? ''}',
|
|
|
|
'${UserTool.userProvider.defaultHouse?.estateName ?? ''}',
|
|
|
|
),
|
|
|
|
),
|
|
|
|
36.hb,
|
|
|
|
36.hb,
|
|
|
|
_function('我的家庭', R.ASSETS_ICONS_ICON_MY_HOUSE_PNG,
|
|
|
|
_function(
|
|
|
|
() => MyFamilyPage(), ''),
|
|
|
|
'我的家庭',
|
|
|
|
|
|
|
|
R.ASSETS_ICONS_ICON_MY_HOUSE_PNG,
|
|
|
|
|
|
|
|
() => MyFamilyPage(),
|
|
|
|
|
|
|
|
''),
|
|
|
|
36.hb,
|
|
|
|
36.hb,
|
|
|
|
// _function('我的车位', R.ASSETS_ICONS_ICON_MY_CARSEAT_PNG,
|
|
|
|
// _function('我的车位', R.ASSETS_ICONS_ICON_MY_CARSEAT_PNG,
|
|
|
|
// () => CarParkingPage(), ''),
|
|
|
|
// () => CarParkingPage(), ''),
|
|
|
@ -384,8 +391,11 @@ class _PersonalIndexState extends State<PersonalIndex>
|
|
|
|
// _function('我的车', R.ASSETS_ICONS_ICON_MY_CAR_PNG,
|
|
|
|
// _function('我的车', R.ASSETS_ICONS_ICON_MY_CAR_PNG,
|
|
|
|
// () => CarManagePage(), ''),
|
|
|
|
// () => CarManagePage(), ''),
|
|
|
|
// 36.hb,
|
|
|
|
// 36.hb,
|
|
|
|
_function('我的访客', R.ASSETS_ICONS_ICON_MY_VISITOR_PNG,
|
|
|
|
_function(
|
|
|
|
() => CarManagePage(), ''),
|
|
|
|
'我的访客',
|
|
|
|
|
|
|
|
R.ASSETS_ICONS_ICON_MY_VISITOR_PNG,
|
|
|
|
|
|
|
|
() => CarManagePage(),
|
|
|
|
|
|
|
|
''),
|
|
|
|
36.hb,
|
|
|
|
36.hb,
|
|
|
|
_function(
|
|
|
|
_function(
|
|
|
|
'收货地址设置',
|
|
|
|
'收货地址设置',
|
|
|
@ -402,9 +412,7 @@ class _PersonalIndexState extends State<PersonalIndex>
|
|
|
|
),
|
|
|
|
),
|
|
|
|
],
|
|
|
|
],
|
|
|
|
)),
|
|
|
|
)),
|
|
|
|
)
|
|
|
|
));
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
_homeTitle(String title, VoidCallback onTap, String suffixTitle) {
|
|
|
|
_homeTitle(String title, VoidCallback onTap, String suffixTitle) {
|
|
|
|