@@ -123,12 +123,7 @@ class MineDataWidget extends StatelessWidget { | |||
), | |||
), | |||
onTap: () { | |||
SkipModel skipModel = SkipModel( | |||
skipIdentifier: 'pub.flutter.cash_out', | |||
requiredLogin: '1', | |||
requiredTaobaoAuth: '0', | |||
); | |||
RouterUtil.route(skipModel, skipModel.toJson(), context); | |||
RouterUtil.route(_style, _style.toJson(), context); | |||
}, | |||
) | |||
], | |||
@@ -1,15 +1,13 @@ | |||
import 'package:zhiying_base_widget/widgets/mine/mine_header/model/mine_profile_model.dart'; | |||
import 'package:zhiying_comm/models/base/skip_model.dart'; | |||
class MineDataModel { | |||
class MineDataModel extends SkipModel { | |||
String accumulatedEarningsNameColor; | |||
String accumulatedEarningsColor; | |||
String accumulatedEarningsBgImg; | |||
String btnText; | |||
String btnTextColor; | |||
String btnImg; | |||
String requiredLogin; | |||
String requiredTaobaoAuth; | |||
String skipIdentifier; | |||
String gridViewBgColor; | |||
String gridViewNameColor; | |||
String gridViewValueColor; | |||
@@ -17,20 +15,18 @@ class MineDataModel { | |||
MineDataModel( | |||
{this.accumulatedEarningsNameColor, | |||
this.accumulatedEarningsColor, | |||
this.accumulatedEarningsBgImg, | |||
this.btnText, | |||
this.btnTextColor, | |||
this.btnImg, | |||
this.requiredLogin, | |||
this.requiredTaobaoAuth, | |||
this.skipIdentifier, | |||
this.gridViewBgColor, | |||
this.gridViewNameColor, | |||
this.gridViewValueColor, | |||
this.gridView}); | |||
this.accumulatedEarningsColor, | |||
this.accumulatedEarningsBgImg, | |||
this.btnText, | |||
this.btnTextColor, | |||
this.btnImg, | |||
this.gridViewBgColor, | |||
this.gridViewNameColor, | |||
this.gridViewValueColor, | |||
this.gridView}); | |||
MineDataModel.fromJson(Map<String, dynamic> json) { | |||
super.fromJson(json); | |||
accumulatedEarningsNameColor = json['accumulated_earnings_name_color']; | |||
accumulatedEarningsColor = json['accumulated_earnings_color']; | |||
accumulatedEarningsBgImg = json['accumulated_earnings_bg_img']; | |||
@@ -52,7 +48,7 @@ class MineDataModel { | |||
} | |||
Map<String, dynamic> toJson() { | |||
final Map<String, dynamic> data = new Map<String, dynamic>(); | |||
final Map<String, dynamic> data = super.toJson(); | |||
data['accumulated_earnings_name_color'] = this.accumulatedEarningsNameColor; | |||
data['accumulated_earnings_color'] = this.accumulatedEarningsColor; | |||
data['accumulated_earnings_bg_img'] = this.accumulatedEarningsBgImg; | |||
@@ -1,4 +1,6 @@ | |||
class WalletHeaderModel { | |||
import 'package:zhiying_comm/zhiying_comm.dart'; | |||
class WalletHeaderModel extends SkipModel { | |||
String headerImg; | |||
String headerAvatar; | |||
String headerCashOutText; | |||
@@ -9,14 +11,15 @@ class WalletHeaderModel { | |||
WalletHeaderModel( | |||
{this.headerImg, | |||
this.headerAvatar, | |||
this.headerCashOutText, | |||
this.headerCashOutTextColor, | |||
this.headerCashOutKey, | |||
this.headerCashOutBtnImg, | |||
this.headerBottomList}); | |||
this.headerAvatar, | |||
this.headerCashOutText, | |||
this.headerCashOutTextColor, | |||
this.headerCashOutKey, | |||
this.headerCashOutBtnImg, | |||
this.headerBottomList}); | |||
WalletHeaderModel.fromJson(Map<String, dynamic> json) { | |||
super.fromJson(json); | |||
headerImg = json['header_img']; | |||
headerAvatar = json['header_avatar']; | |||
headerCashOutText = json['header_cash_out_text']; | |||
@@ -32,7 +35,7 @@ class WalletHeaderModel { | |||
} | |||
Map<String, dynamic> toJson() { | |||
final Map<String, dynamic> data = new Map<String, dynamic>(); | |||
final Map<String, dynamic> data = super.toJson(); | |||
data['header_img'] = this.headerImg; | |||
data['header_avatar'] = this.headerAvatar; | |||
data['header_cash_out_text'] = this.headerCashOutText; | |||
@@ -107,13 +107,8 @@ class _WalletDataState extends State<WalletData> { | |||
), | |||
GestureDetector( | |||
onTap: () { | |||
SkipModel skipModel = SkipModel( | |||
skipIdentifier: 'pub.flutter.cash_out', | |||
requiredLogin: '1', | |||
requiredTaobaoAuth: '0', | |||
); | |||
RouterUtil.route( | |||
skipModel, skipModel.toJson(), context); | |||
model, model.toJson(), context); | |||
}, | |||
child: Container( | |||
decoration: BoxDecoration( | |||