|
|
|
@ -1550,6 +1550,7 @@ class _HomePageState extends BaseStoreState<HomePage>
|
|
|
|
|
for (var item in noticeList) {
|
|
|
|
|
final int gold = item['gold'];
|
|
|
|
|
final int silver = item['silver'];
|
|
|
|
|
final int id = item['id'];
|
|
|
|
|
String goldValue = '';
|
|
|
|
|
String silverValue = '';
|
|
|
|
|
if (gold != null && gold != 0) goldValue = '$gold张黄金卡';
|
|
|
|
@ -1563,13 +1564,30 @@ class _HomePageState extends BaseStoreState<HomePage>
|
|
|
|
|
await Get.dialog(Center(
|
|
|
|
|
child: GestureDetector(
|
|
|
|
|
onTap: () async {
|
|
|
|
|
await HttpManager.post(APIV2.userAPI.confirmUserCardChange, {});
|
|
|
|
|
await HttpManager.post(
|
|
|
|
|
APIV2.userAPI.confirmUserCardChange,
|
|
|
|
|
{"noticeId": id},
|
|
|
|
|
);
|
|
|
|
|
await Get.to(UpgradeCardPageV2());
|
|
|
|
|
Get.back();
|
|
|
|
|
},
|
|
|
|
|
child: Container(
|
|
|
|
|
margin: EdgeInsets.symmetric(horizontal: 50.w),
|
|
|
|
|
child: Center(child: Text('您有$result已退至您的卡包')),
|
|
|
|
|
child: Center(
|
|
|
|
|
child: Material(
|
|
|
|
|
color: Colors.transparent,
|
|
|
|
|
child: Transform.translate(
|
|
|
|
|
offset: Offset(0, 20.w),
|
|
|
|
|
child: Text(
|
|
|
|
|
'您有$result已退至您的卡包',
|
|
|
|
|
style: TextStyle(
|
|
|
|
|
fontSize: 14.sp,
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
)),
|
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
|
image: DecorationImage(
|
|
|
|
|
image: AssetImage(R.ASSETS_USER_NOTICE_CARD_PNG),
|
|
|
|
|