Browse Source

1.在加载用户信息时初始化信用卡的登录

tags/0.0.10+1
“yanghuaxuan” 3 years ago
parent
commit
c6ed7dc110
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      lib/widgets/mine/mine_header/mine_header_bloc.dart

+ 5
- 0
lib/widgets/mine/mine_header/mine_header_bloc.dart View File

@@ -1,5 +1,6 @@
import 'dart:async'; import 'dart:async';
import 'dart:convert'; import 'dart:convert';
import 'dart:html';


import 'package:zhiying_base_widget/widgets/mine/mine_header/model/mine_profile_model.dart'; import 'package:zhiying_base_widget/widgets/mine/mine_header/model/mine_profile_model.dart';
import 'package:zhiying_comm/util/base_bloc.dart'; import 'package:zhiying_comm/util/base_bloc.dart';
@@ -26,9 +27,13 @@ class MineHeaderBloc extends BlocBase {
Logger.log("我的数据:"+ json.encode(data)); Logger.log("我的数据:"+ json.encode(data));
_profile = MineProfileModel.fromJson(Map<String, dynamic>.from(data)); _profile = MineProfileModel.fromJson(Map<String, dynamic>.from(data));
_profileController.add(_profile); _profileController.add(_profile);
///信用卡初始化
///只有在用户数据被加载时调用
Application.doStringMethod("initCreditCard");
}, onError: (err) { }, onError: (err) {
_profile = MineProfileModel(); _profile = MineProfileModel();
_profileController.add(_profile); _profileController.add(_profile);
}); });

} }
} }

Loading…
Cancel
Save