体验卡更新

master
王亚玲 2 years ago
parent 149b0643f6
commit 7762d5ce35

@ -124,12 +124,12 @@ class _UserPageState extends State<UserPage> {
if (UserTool.userProvider.isLogin) { if (UserTool.userProvider.isLogin) {
// var res=await apiClient.request(API.app.trialVip); // var res=await apiClient.request(API.app.trialVip);
if (UserTool.userProvider.userInfo.isTrial == 0) { if (UserTool.userProvider.userInfo.isTrial != 1) {
showDialog( showDialog(
context: context, context: context,
builder: (context) { builder: (context) {
return const AppDialog(); return const AppDialog();
}); }).then((value) => _easyRefreshController.callRefresh());
} }
// print(UserTool.userProvider.userInfo.end * 1000); // print(UserTool.userProvider.userInfo.end * 1000);
// print(DateTime.now().millisecondsSinceEpoch); // print(DateTime.now().millisecondsSinceEpoch);

@ -70,7 +70,9 @@ class AppDialog extends Dialog {
} }
_getBotton(String bContent, context) { _getBotton(String bContent, context) {
return GestureDetector( return
GestureDetector(
onTap: () async { onTap: () async {
var res = await apiClient.request(API.app.trialVip); var res = await apiClient.request(API.app.trialVip);
if (res.code == 0) { if (res.code == 0) {
@ -78,9 +80,9 @@ _getBotton(String bContent, context) {
UserTool.userProvider.updateUserInfo(); UserTool.userProvider.updateUserInfo();
Navigator.pop(context); Navigator.pop(context);
// .refreshController.callRefresh();
} else { } else {
CloudToast.show(res.msg); CloudToast.show(res.msg);
Navigator.pop(context);
} }
}, },
child: Container( child: Container(

Loading…
Cancel
Save