体验卡更新

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

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

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

Loading…
Cancel
Save