替换入口

hmxc
张萌 3 years ago
parent 3bdc5ff851
commit f0fd7260b1

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 MiB

@ -1134,6 +1134,10 @@ class $AssetsStaticGen {
/// File path: assets/static/sign_in_background.png /// File path: assets/static/sign_in_background.png
AssetGenImage get signInBackground => AssetGenImage get signInBackground =>
const AssetGenImage('assets/static/sign_in_background.png'); const AssetGenImage('assets/static/sign_in_background.png');
/// File path: assets/static/vip_background.png
AssetGenImage get vipBackground =>
const AssetGenImage('assets/static/vip_background.png');
} }
class $AssetsTabGen { class $AssetsTabGen {

@ -22,7 +22,9 @@ class _integralCenterPageState extends State<integralCenterPage> {
void initState() { void initState() {
Future.delayed(Duration(milliseconds: 5000), () async { Future.delayed(Duration(milliseconds: 5000), () async {
_proportion = 0.5; _proportion = 0.5;
if (mounted) {
setState(() {}); setState(() {});
}
}); });
super.initState(); super.initState();
} }

@ -21,6 +21,7 @@ import 'package:get/get.dart';
import 'package:provider/provider.dart'; import 'package:provider/provider.dart';
import 'address/address_list_page.dart'; import 'address/address_list_page.dart';
import 'clock_in/clock_success_dialog.dart';
import 'intergral/integral_center_page.dart'; import 'intergral/integral_center_page.dart';
class PersonalIndex extends StatefulWidget { class PersonalIndex extends StatefulWidget {
@ -331,8 +332,9 @@ class _PersonalIndexState extends State<PersonalIndex>
)), )),
Spacer(), Spacer(),
MaterialButton( MaterialButton(
onPressed: () { onPressed: () async {
Get.to(() => ClockInPage()); await Get.dialog(ClockSuccessDialog(
todayIntegral: 1, tomorrowIntegral: 2));
}, },
elevation: 0, elevation: 0,
color: Colors.white, color: Colors.white,
@ -347,11 +349,50 @@ class _PersonalIndexState extends State<PersonalIndex>
), ),
), ),
), ),
Spacer(),
Container(
width: 686.w,
height: 120.w,
alignment: Alignment.center,
decoration: BoxDecoration(
image: DecorationImage(
image:
AssetImage(Assets.static.vipBackground.path)),
borderRadius: BorderRadius.only(
topLeft: Radius.circular(16.w),
topRight: Radius.circular(16.w))),
child: Row(
children: [
32.wb,
Assets.icons.vipFont.image(width: 60.w, height: 60.w),
24.wb,
'当前会员等级2级'
.text
.size(24.sp)
.color(Color(0xFFFFE0A9))
.make(),
Spacer(),
GestureDetector(
onTap: () => Get.to(() => integralCenterPage()),
child: Container(
width: 160.w,
height: 58.w,
alignment: Alignment.center,
decoration: BoxDecoration(
color: Color(0xFFFFE0A9),
borderRadius: BorderRadius.circular(29.w)),
child: '会员中心'.text.size(24.sp).black.make(),
),
),
32.wb,
],
),
),
], ],
), ),
), ),
Padding( Padding(
padding: EdgeInsets.only(top: 350.w), padding: EdgeInsets.only(top: 450.w),
child: Column( child: Column(
children: [ children: [
Container( Container(
@ -419,7 +460,7 @@ class _PersonalIndexState extends State<PersonalIndex>
color: Colors.white, color: Colors.white,
child: InkWell( child: InkWell(
onTap: () { onTap: () {
Get.to(() => integralCenterPage()); Get.to(() => ClockInPage());
}, },
borderRadius: BorderRadius.circular(16.w), borderRadius: BorderRadius.circular(16.w),
child: Padding( child: Padding(

Loading…
Cancel
Save