w-R
3 years ago
34 changed files with 2278 additions and 807 deletions
After Width: | Height: | Size: 674 B |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 389 B |
@ -0,0 +1,290 @@
|
||||
import 'package:barcode_widget/barcode_widget.dart'; |
||||
import 'package:flutter/material.dart'; |
||||
import 'package:huixiang/generated/l10n.dart'; |
||||
import 'package:huixiang/retrofit/data/exchange_order.dart'; |
||||
import 'package:huixiang/utils/font_weight.dart'; |
||||
import 'package:huixiang/view_widget/my_appbar.dart'; |
||||
import 'package:huixiang/view_widget/separator.dart'; |
||||
import 'package:flutter_screenutil/flutter_screenutil.dart'; |
||||
import 'package:qr_flutter/qr_flutter.dart'; |
||||
|
||||
class ExchangeWriteOffPage extends StatefulWidget { |
||||
final arguments; |
||||
|
||||
ExchangeWriteOffPage({this.arguments}); |
||||
|
||||
@override |
||||
State<StatefulWidget> createState() { |
||||
return _ExchangeWriteOffPage(); |
||||
} |
||||
} |
||||
|
||||
class _ExchangeWriteOffPage extends State<ExchangeWriteOffPage> { |
||||
ExchangeOrder exchangeOrder; |
||||
|
||||
@override |
||||
void initState() { |
||||
super.initState(); |
||||
|
||||
exchangeOrder = ExchangeOrder.fromJson(widget.arguments["exchangeOrder"]); |
||||
if (mounted) setState(() {}); |
||||
} |
||||
|
||||
@override |
||||
Widget build(BuildContext context) { |
||||
return Scaffold( |
||||
backgroundColor: Color(0xFF32A060), |
||||
appBar: MyAppBar( |
||||
title: S.of(context).hexiaomaxiangqing, |
||||
titleSize: 18.sp, |
||||
titleColor: Colors.white, |
||||
background: Color(0xFF32A060), |
||||
leadingColor: Colors.white, |
||||
), |
||||
body: Container( |
||||
alignment: Alignment.topCenter, |
||||
child: Stack( |
||||
alignment: Alignment.topCenter, |
||||
children: [ |
||||
Image.asset( |
||||
"assets/image/icon_write_off_bg.png", |
||||
width: MediaQuery.of(context).size.width * 0.912, |
||||
fit: BoxFit.fill, |
||||
), |
||||
LayoutBuilder(builder: (context, constraints) { |
||||
return Container( |
||||
width: constraints.constrainWidth() * 0.912, |
||||
child: Column( |
||||
children: [ |
||||
Expanded( |
||||
child: Container( |
||||
child: Column( |
||||
children: [ |
||||
Text( |
||||
exchangeOrder != null ? exchangeOrder.creditOrderDetailList[0].name : "", |
||||
style: TextStyle( |
||||
fontSize: 16.sp, |
||||
fontWeight: FontWeight.bold, |
||||
color: Color(0xFF353535)), |
||||
), |
||||
SizedBox( |
||||
height: 8.h, |
||||
), |
||||
Text( |
||||
(exchangeOrder.updateTime == null) ? "" : S.of(context).youxiaoqi( |
||||
"${exchangeOrder.updateTime}"), |
||||
style: TextStyle( |
||||
fontSize: 12.sp, |
||||
color: Color(0xFF353535), |
||||
), |
||||
), |
||||
], |
||||
mainAxisAlignment: MainAxisAlignment.center, |
||||
crossAxisAlignment: CrossAxisAlignment.center, |
||||
), |
||||
alignment: Alignment.center, |
||||
), |
||||
flex: 6, |
||||
), |
||||
Container( |
||||
margin: EdgeInsets.only(left: 20.w, right: 20.w), |
||||
child: MySeparator( |
||||
width: 5.w, |
||||
height: 1.h, |
||||
color: Color(0xFFA29E9E), |
||||
), |
||||
), |
||||
Expanded( |
||||
child: Container( |
||||
alignment: Alignment.center, |
||||
child: Column( |
||||
mainAxisAlignment: MainAxisAlignment.center, |
||||
crossAxisAlignment: CrossAxisAlignment.center, |
||||
children: [ |
||||
Text( |
||||
exchangeOrder != null |
||||
? "${exchangeOrder.id.substring(0, 4)} " |
||||
"${exchangeOrder.id.substring(4, 8)} " |
||||
"${exchangeOrder.id.substring(8, 12)} " |
||||
"${exchangeOrder.id.substring(12, 16)} " |
||||
"${exchangeOrder.id.substring(16, exchangeOrder.id.length)}" |
||||
: "", |
||||
style: TextStyle( |
||||
fontSize: 14.sp, |
||||
wordSpacing: exchangeOrder == null |
||||
? 10 |
||||
: (MediaQuery.of(context).size.width - |
||||
64.w) / |
||||
(((exchangeOrder.id.length) * 4)), |
||||
letterSpacing: exchangeOrder == null |
||||
? 8 |
||||
: (MediaQuery.of(context).size.width - |
||||
64.w) / |
||||
(((exchangeOrder.id.length) * 4)), |
||||
fontWeight: MyFontWeight.semi_bold, |
||||
color: Color(0xFF353535), |
||||
), |
||||
), |
||||
SizedBox( |
||||
height: 12.h, |
||||
), |
||||
BarcodeWidget( |
||||
barcode: Barcode.code128(useCode128C: true), |
||||
data: exchangeOrder != null ? exchangeOrder.id : "", |
||||
height: 72.h, |
||||
color: Colors.black, |
||||
drawText: false, |
||||
), |
||||
SizedBox( |
||||
height: 16.h, |
||||
), |
||||
Expanded(child: QrImage( |
||||
data: exchangeOrder != null ? exchangeOrder.id : "", |
||||
version: QrVersions.auto, |
||||
size: 200.w, |
||||
gapless: true, |
||||
),), |
||||
SizedBox( |
||||
height: 35.h, |
||||
), |
||||
], |
||||
), |
||||
margin: EdgeInsets.symmetric(horizontal: 20.w), |
||||
), |
||||
flex: 27, |
||||
), |
||||
Container( |
||||
child: MySeparator( |
||||
width: 5.w, |
||||
height: 1.h, |
||||
color: Color(0xFFA29E9E), |
||||
), |
||||
margin: EdgeInsets.only(left: 20.w, right: 20.w), |
||||
), |
||||
Expanded( |
||||
child: Container( |
||||
padding: EdgeInsets.fromLTRB(20.w, 15.h, 20.w, 24.h), |
||||
child: Column( |
||||
mainAxisAlignment: MainAxisAlignment.spaceBetween, |
||||
crossAxisAlignment: CrossAxisAlignment.center, |
||||
children: [ |
||||
Row( |
||||
mainAxisAlignment: MainAxisAlignment.start, |
||||
crossAxisAlignment: CrossAxisAlignment.center, |
||||
children: [ |
||||
Container( |
||||
width: 3.w, |
||||
height: 15.h, |
||||
margin: |
||||
EdgeInsets.fromLTRB(4.w, 7.h, 4.w, 7.h), |
||||
decoration: BoxDecoration( |
||||
borderRadius: BorderRadius.circular(3), |
||||
color: Color(0xFF20662A), |
||||
), |
||||
), |
||||
Text( |
||||
S.of(context).shiyongtiaojian, |
||||
style: TextStyle( |
||||
fontWeight: FontWeight.bold, |
||||
fontSize: 14.sp, |
||||
color: Color(0xFF353535), |
||||
), |
||||
), |
||||
], |
||||
), |
||||
Row( |
||||
mainAxisAlignment: MainAxisAlignment.start, |
||||
crossAxisAlignment: CrossAxisAlignment.center, |
||||
children: [ |
||||
SizedBox( |
||||
width: 11.w, |
||||
), |
||||
Expanded( |
||||
child: Text( |
||||
S |
||||
.of(context) |
||||
.qianwanghuixiangmendianduihuanhexiao, |
||||
style: TextStyle( |
||||
textBaseline: TextBaseline.alphabetic, |
||||
fontSize: 14.sp, |
||||
color: Color(0xFF353535)), |
||||
), |
||||
flex: 1, |
||||
), |
||||
], |
||||
), |
||||
Row( |
||||
mainAxisAlignment: MainAxisAlignment.start, |
||||
crossAxisAlignment: CrossAxisAlignment.center, |
||||
children: [ |
||||
Container( |
||||
width: 3.w, |
||||
height: 15.h, |
||||
margin: EdgeInsets.fromLTRB(4, 7, 4, 7), |
||||
decoration: BoxDecoration( |
||||
borderRadius: BorderRadius.circular(3), |
||||
color: Color(0xFF20662A), |
||||
), |
||||
), |
||||
Text( |
||||
S.of(context).shiyongshuoming, |
||||
style: TextStyle( |
||||
fontWeight: FontWeight.bold, |
||||
fontSize: 14.sp, |
||||
color: Color(0xFF353535)), |
||||
), |
||||
], |
||||
), |
||||
Row( |
||||
mainAxisAlignment: MainAxisAlignment.start, |
||||
crossAxisAlignment: CrossAxisAlignment.center, |
||||
children: [ |
||||
SizedBox( |
||||
width: 11.w, |
||||
), |
||||
Text( |
||||
S.of(context).zitiduihuanquan, |
||||
style: TextStyle( |
||||
textBaseline: TextBaseline.alphabetic, |
||||
fontSize: 14.sp, |
||||
color: Color(0xFF353535), |
||||
), |
||||
), |
||||
], |
||||
), |
||||
Row( |
||||
mainAxisAlignment: MainAxisAlignment.start, |
||||
crossAxisAlignment: CrossAxisAlignment.center, |
||||
children: [ |
||||
SizedBox( |
||||
width: 11.w, |
||||
), |
||||
Text( |
||||
S.of(context).huixiangrenyimendian, |
||||
style: TextStyle( |
||||
textBaseline: TextBaseline.alphabetic, |
||||
fontSize: 14.sp, |
||||
color: Color(0xFF353535), |
||||
), |
||||
), |
||||
], |
||||
), |
||||
], |
||||
), |
||||
), |
||||
flex: 13, |
||||
), |
||||
Expanded( |
||||
child: Container(), |
||||
flex: 3, |
||||
), |
||||
], |
||||
), |
||||
); |
||||
}) |
||||
], |
||||
), |
||||
), |
||||
); |
||||
} |
||||
} |
@ -0,0 +1,191 @@
|
||||
/// id : "1460450874352310812" |
||||
/// createTime : "2021-11-12 11:42:08" |
||||
/// createUser : "123" |
||||
/// updateTime : "2021-11-17 17:49:17" |
||||
/// updateUser : "1" |
||||
/// categoryId : "1460164746211753984" |
||||
/// name : "青铜" |
||||
/// level : 0 |
||||
/// icon : "https://pos.upload.gznl.top/admin/2021/11/a83f895b-8159-455e-a54d-ac67068b28b7.jpg" |
||||
/// score : 10 |
||||
/// actived : true |
||||
/// sort : 0 |
||||
/// isDelete : 0 |
||||
/// lessScore : 0 |
||||
/// get : true |
||||
/// max : false |
||||
|
||||
class AchievementDetailList { |
||||
AchievementDetailList({ |
||||
String id, |
||||
String createTime, |
||||
String createUser, |
||||
String updateTime, |
||||
String updateUser, |
||||
String categoryId, |
||||
String name, |
||||
int level, |
||||
String icon, |
||||
int score, |
||||
bool actived, |
||||
int sort, |
||||
int isDelete, |
||||
int lessScore, |
||||
bool get, |
||||
bool max,}){ |
||||
_id = id; |
||||
_createTime = createTime; |
||||
_createUser = createUser; |
||||
_updateTime = updateTime; |
||||
_updateUser = updateUser; |
||||
_categoryId = categoryId; |
||||
_name = name; |
||||
_level = level; |
||||
_icon = icon; |
||||
_score = score; |
||||
_actived = actived; |
||||
_sort = sort; |
||||
_isDelete = isDelete; |
||||
_lessScore = lessScore; |
||||
_get = get; |
||||
_max = max; |
||||
} |
||||
|
||||
AchievementDetailList.fromJson(dynamic json) { |
||||
_id = json['id']; |
||||
_createTime = json['createTime']; |
||||
_createUser = json['createUser']; |
||||
_updateTime = json['updateTime']; |
||||
_updateUser = json['updateUser']; |
||||
_categoryId = json['categoryId']; |
||||
_name = json['name']; |
||||
_level = json['level']; |
||||
_icon = json['icon']; |
||||
_score = json['score']; |
||||
_actived = json['actived']; |
||||
_sort = json['sort']; |
||||
_isDelete = json['isDelete']; |
||||
_lessScore = json['lessScore']; |
||||
_get = json['get']; |
||||
_max = json['max']; |
||||
} |
||||
String _id; |
||||
String _createTime; |
||||
String _createUser; |
||||
String _updateTime; |
||||
String _updateUser; |
||||
String _categoryId; |
||||
String _name; |
||||
int _level; |
||||
String _icon; |
||||
int _score; |
||||
bool _actived; |
||||
int _sort; |
||||
int _isDelete; |
||||
int _lessScore; |
||||
bool _get; |
||||
bool _max; |
||||
|
||||
String get id => _id; |
||||
String get createTime => _createTime; |
||||
String get createUser => _createUser; |
||||
String get updateTime => _updateTime; |
||||
String get updateUser => _updateUser; |
||||
String get categoryId => _categoryId; |
||||
String get name => _name; |
||||
int get level => _level; |
||||
String get icon => _icon; |
||||
int get score => _score; |
||||
bool get actived => _actived; |
||||
int get sort => _sort; |
||||
int get isDelete => _isDelete; |
||||
int get lessScore => _lessScore; |
||||
bool get get => _get; |
||||
bool get max => _max; |
||||
|
||||
|
||||
set id(String value) { |
||||
_id = value; |
||||
} |
||||
|
||||
Map<String, dynamic> toJson() { |
||||
final map = <String, dynamic>{}; |
||||
map['id'] = _id; |
||||
map['createTime'] = _createTime; |
||||
map['createUser'] = _createUser; |
||||
map['updateTime'] = _updateTime; |
||||
map['updateUser'] = _updateUser; |
||||
map['categoryId'] = _categoryId; |
||||
map['name'] = _name; |
||||
map['level'] = _level; |
||||
map['icon'] = _icon; |
||||
map['score'] = _score; |
||||
map['actived'] = _actived; |
||||
map['sort'] = _sort; |
||||
map['isDelete'] = _isDelete; |
||||
map['lessScore'] = _lessScore; |
||||
map['get'] = _get; |
||||
map['max'] = _max; |
||||
return map; |
||||
} |
||||
|
||||
set createTime(String value) { |
||||
_createTime = value; |
||||
} |
||||
|
||||
set createUser(String value) { |
||||
_createUser = value; |
||||
} |
||||
|
||||
set updateTime(String value) { |
||||
_updateTime = value; |
||||
} |
||||
|
||||
set updateUser(String value) { |
||||
_updateUser = value; |
||||
} |
||||
|
||||
set categoryId(String value) { |
||||
_categoryId = value; |
||||
} |
||||
|
||||
set name(String value) { |
||||
_name = value; |
||||
} |
||||
|
||||
set level(int value) { |
||||
_level = value; |
||||
} |
||||
|
||||
set icon(String value) { |
||||
_icon = value; |
||||
} |
||||
|
||||
set score(int value) { |
||||
_score = value; |
||||
} |
||||
|
||||
set actived(bool value) { |
||||
_actived = value; |
||||
} |
||||
|
||||
set sort(int value) { |
||||
_sort = value; |
||||
} |
||||
|
||||
set isDelete(int value) { |
||||
_isDelete = value; |
||||
} |
||||
|
||||
set lessScore(int value) { |
||||
_lessScore = value; |
||||
} |
||||
|
||||
set get(bool value) { |
||||
_get = value; |
||||
} |
||||
|
||||
set max(bool value) { |
||||
_max = value; |
||||
} |
||||
} |
@ -0,0 +1,73 @@
|
||||
/// id : "1438426197401796608" |
||||
/// phone : "18672306891" |
||||
/// nickname : "冬天的秘密" |
||||
/// headimg : "" |
||||
|
||||
class SecondCardList { |
||||
SecondCardList({ |
||||
String id, |
||||
String phone, |
||||
String nickname, |
||||
String headimg, |
||||
bool isAdd, |
||||
}) { |
||||
_id = id; |
||||
_phone = phone; |
||||
_nickname = nickname; |
||||
_headimg = headimg; |
||||
_isAdd = isAdd; |
||||
} |
||||
|
||||
SecondCardList.fromJson(dynamic json) { |
||||
_id = json['id']; |
||||
_phone = json['phone']; |
||||
_nickname = json['nickname']; |
||||
_headimg = json['headimg']; |
||||
} |
||||
|
||||
String _id; |
||||
String _phone; |
||||
String _nickname; |
||||
String _headimg; |
||||
bool _isAdd; |
||||
|
||||
String get id => _id; |
||||
|
||||
String get phone => _phone; |
||||
|
||||
String get nickname => _nickname; |
||||
|
||||
String get headimg => _headimg; |
||||
|
||||
bool get isAdd => _isAdd; |
||||
|
||||
set id(String value) { |
||||
_id = value; |
||||
} |
||||
|
||||
Map<String, dynamic> toJson() { |
||||
final map = <String, dynamic>{}; |
||||
map['id'] = _id; |
||||
map['phone'] = _phone; |
||||
map['nickname'] = _nickname; |
||||
map['headimg'] = _headimg; |
||||
return map; |
||||
} |
||||
|
||||
set phone(String value) { |
||||
_phone = value; |
||||
} |
||||
|
||||
set nickname(String value) { |
||||
_nickname = value; |
||||
} |
||||
|
||||
set headimg(String value) { |
||||
_headimg = value; |
||||
} |
||||
|
||||
set isAdd(bool value) { |
||||
_isAdd = value; |
||||
} |
||||
|
||||
} |
@ -0,0 +1,147 @@
|
||||
/// id : "1460164746211753984" |
||||
/// createTime : "2021-11-15 16:36:19" |
||||
/// createUser : "1" |
||||
/// updateTime : "2021-11-17 11:39:54" |
||||
/// updateUser : "1" |
||||
/// name : "签到" |
||||
/// eachReward : 8 |
||||
/// code : "SIGN" |
||||
/// icon : "https://pos.upload.gznl.top/admin/2021/11/93853f8d-ca0e-4c75-855b-d6245e4f6743.jpg" |
||||
/// actived : true |
||||
/// sort : 0 |
||||
/// isDelete : 0 |
||||
|
||||
class VipBadgesList { |
||||
VipBadgesList({ |
||||
String id, |
||||
String createTime, |
||||
String createUser, |
||||
String updateTime, |
||||
String updateUser, |
||||
String name, |
||||
int eachReward, |
||||
String code, |
||||
String icon, |
||||
bool actived, |
||||
int sort, |
||||
int isDelete,}){ |
||||
_id = id; |
||||
_createTime = createTime; |
||||
_createUser = createUser; |
||||
_updateTime = updateTime; |
||||
_updateUser = updateUser; |
||||
_name = name; |
||||
_eachReward = eachReward; |
||||
_code = code; |
||||
_icon = icon; |
||||
_actived = actived; |
||||
_sort = sort; |
||||
_isDelete = isDelete; |
||||
} |
||||
|
||||
VipBadgesList.fromJson(dynamic json) { |
||||
_id = json['id']; |
||||
_createTime = json['createTime']; |
||||
_createUser = json['createUser']; |
||||
_updateTime = json['updateTime']; |
||||
_updateUser = json['updateUser']; |
||||
_name = json['name']; |
||||
_eachReward = json['eachReward']; |
||||
_code = json['code']; |
||||
_icon = json['icon']; |
||||
_actived = json['actived']; |
||||
_sort = json['sort']; |
||||
_isDelete = json['isDelete']; |
||||
} |
||||
String _id; |
||||
String _createTime; |
||||
String _createUser; |
||||
String _updateTime; |
||||
String _updateUser; |
||||
String _name; |
||||
int _eachReward; |
||||
String _code; |
||||
String _icon; |
||||
bool _actived; |
||||
int _sort; |
||||
int _isDelete; |
||||
|
||||
String get id => _id; |
||||
String get createTime => _createTime; |
||||
String get createUser => _createUser; |
||||
String get updateTime => _updateTime; |
||||
String get updateUser => _updateUser; |
||||
String get name => _name; |
||||
int get eachReward => _eachReward; |
||||
String get code => _code; |
||||
String get icon => _icon; |
||||
bool get actived => _actived; |
||||
int get sort => _sort; |
||||
int get isDelete => _isDelete; |
||||
|
||||
|
||||
set id(String value) { |
||||
_id = value; |
||||
} |
||||
|
||||
Map<String, dynamic> toJson() { |
||||
final map = <String, dynamic>{}; |
||||
map['id'] = _id; |
||||
map['createTime'] = _createTime; |
||||
map['createUser'] = _createUser; |
||||
map['updateTime'] = _updateTime; |
||||
map['updateUser'] = _updateUser; |
||||
map['name'] = _name; |
||||
map['eachReward'] = _eachReward; |
||||
map['code'] = _code; |
||||
map['icon'] = _icon; |
||||
map['actived'] = _actived; |
||||
map['sort'] = _sort; |
||||
map['isDelete'] = _isDelete; |
||||
return map; |
||||
} |
||||
|
||||
set createTime(String value) { |
||||
_createTime = value; |
||||
} |
||||
|
||||
set createUser(String value) { |
||||
_createUser = value; |
||||
} |
||||
|
||||
set updateTime(String value) { |
||||
_updateTime = value; |
||||
} |
||||
|
||||
set updateUser(String value) { |
||||
_updateUser = value; |
||||
} |
||||
|
||||
set name(String value) { |
||||
_name = value; |
||||
} |
||||
|
||||
set eachReward(int value) { |
||||
_eachReward = value; |
||||
} |
||||
|
||||
set code(String value) { |
||||
_code = value; |
||||
} |
||||
|
||||
set icon(String value) { |
||||
_icon = value; |
||||
} |
||||
|
||||
set actived(bool value) { |
||||
_actived = value; |
||||
} |
||||
|
||||
set sort(int value) { |
||||
_sort = value; |
||||
} |
||||
|
||||
set isDelete(int value) { |
||||
_isDelete = value; |
||||
} |
||||
} |
@ -0,0 +1,180 @@
|
||||
/// id : "5" |
||||
/// createTime : "2021-11-18 14:11:34" |
||||
/// createUser : "1" |
||||
/// updateTime : "2021-11-18 17:10:24" |
||||
/// updateUser : "1" |
||||
/// code : "DEPUTY" |
||||
/// name : "副卡" |
||||
/// icon : "https://pos.upload.gznl.top/MDAwMA==/2021/11/fb1e46d2-6213-4164-abbc-9aa24da24faf.png" |
||||
/// iconGrey : "https://pos.upload.gznl.top/MDAwMA==/2021/11/f50d211a-3d52-4663-bf8a-c4dff4f79310.png" |
||||
/// introduce : "可绑定副卡" |
||||
/// describes : "可绑定副卡" |
||||
/// actived : true |
||||
/// sort : 4 |
||||
/// isDelete : 0 |
||||
/// have : false |
||||
|
||||
class VipBenefitList { |
||||
VipBenefitList({ |
||||
String id, |
||||
String createTime, |
||||
String createUser, |
||||
String updateTime, |
||||
String updateUser, |
||||
String code, |
||||
String name, |
||||
String icon, |
||||
String iconGrey, |
||||
String introduce, |
||||
String describes, |
||||
bool actived, |
||||
int sort, |
||||
int isDelete, |
||||
bool have,}){ |
||||
_id = id; |
||||
_createTime = createTime; |
||||
_createUser = createUser; |
||||
_updateTime = updateTime; |
||||
_updateUser = updateUser; |
||||
_code = code; |
||||
_name = name; |
||||
_icon = icon; |
||||
_iconGrey = iconGrey; |
||||
_introduce = introduce; |
||||
_describes = describes; |
||||
_actived = actived; |
||||
_sort = sort; |
||||
_isDelete = isDelete; |
||||
_have = have; |
||||
} |
||||
|
||||
VipBenefitList.fromJson(dynamic json) { |
||||
_id = json['id']; |
||||
_createTime = json['createTime']; |
||||
_createUser = json['createUser']; |
||||
_updateTime = json['updateTime']; |
||||
_updateUser = json['updateUser']; |
||||
_code = json['code']; |
||||
_name = json['name']; |
||||
_icon = json['icon']; |
||||
_iconGrey = json['iconGrey']; |
||||
_introduce = json['introduce']; |
||||
_describes = json['describes']; |
||||
_actived = json['actived']; |
||||
_sort = json['sort']; |
||||
_isDelete = json['isDelete']; |
||||
_have = json['have']; |
||||
} |
||||
String _id; |
||||
String _createTime; |
||||
String _createUser; |
||||
String _updateTime; |
||||
String _updateUser; |
||||
String _code; |
||||
String _name; |
||||
String _icon; |
||||
String _iconGrey; |
||||
String _introduce; |
||||
String _describes; |
||||
bool _actived; |
||||
int _sort; |
||||
int _isDelete; |
||||
bool _have; |
||||
|
||||
String get id => _id; |
||||
String get createTime => _createTime; |
||||
String get createUser => _createUser; |
||||
String get updateTime => _updateTime; |
||||
String get updateUser => _updateUser; |
||||
String get code => _code; |
||||
String get name => _name; |
||||
String get icon => _icon; |
||||
String get iconGrey => _iconGrey; |
||||
String get introduce => _introduce; |
||||
String get describes => _describes; |
||||
bool get actived => _actived; |
||||
int get sort => _sort; |
||||
int get isDelete => _isDelete; |
||||
bool get have => _have; |
||||
|
||||
|
||||
set id(String value) { |
||||
_id = value; |
||||
} |
||||
|
||||
Map<String, dynamic> toJson() { |
||||
final map = <String, dynamic>{}; |
||||
map['id'] = _id; |
||||
map['createTime'] = _createTime; |
||||
map['createUser'] = _createUser; |
||||
map['updateTime'] = _updateTime; |
||||
map['updateUser'] = _updateUser; |
||||
map['code'] = _code; |
||||
map['name'] = _name; |
||||
map['icon'] = _icon; |
||||
map['iconGrey'] = _iconGrey; |
||||
map['introduce'] = _introduce; |
||||
map['describes'] = _describes; |
||||
map['actived'] = _actived; |
||||
map['sort'] = _sort; |
||||
map['isDelete'] = _isDelete; |
||||
map['have'] = _have; |
||||
return map; |
||||
} |
||||
|
||||
set createTime(String value) { |
||||
_createTime = value; |
||||
} |
||||
|
||||
set createUser(String value) { |
||||
_createUser = value; |
||||
} |
||||
|
||||
set updateTime(String value) { |
||||
_updateTime = value; |
||||
} |
||||
|
||||
set updateUser(String value) { |
||||
_updateUser = value; |
||||
} |
||||
|
||||
set code(String value) { |
||||
_code = value; |
||||
} |
||||
|
||||
set name(String value) { |
||||
_name = value; |
||||
} |
||||
|
||||
set icon(String value) { |
||||
_icon = value; |
||||
} |
||||
|
||||
set iconGrey(String value) { |
||||
_iconGrey = value; |
||||
} |
||||
|
||||
set introduce(String value) { |
||||
_introduce = value; |
||||
} |
||||
|
||||
set describes(String value) { |
||||
_describes = value; |
||||
} |
||||
|
||||
set actived(bool value) { |
||||
_actived = value; |
||||
} |
||||
|
||||
set sort(int value) { |
||||
_sort = value; |
||||
} |
||||
|
||||
set isDelete(int value) { |
||||
_isDelete = value; |
||||
} |
||||
|
||||
set have(bool value) { |
||||
_have = value; |
||||
} |
||||
} |
@ -0,0 +1,48 @@
|
||||
/// rule : "" |
||||
/// contrast : "" |
||||
/// qa : "" |
||||
|
||||
class VipRuleDetails { |
||||
VipRuleDetails({ |
||||
String rule, |
||||
String contrast, |
||||
String qa,}){ |
||||
_rule = rule; |
||||
_contrast = contrast; |
||||
_qa = qa; |
||||
} |
||||
|
||||
VipRuleDetails.fromJson(dynamic json) { |
||||
_rule = json['rule']; |
||||
_contrast = json['contrast']; |
||||
_qa = json['qa']; |
||||
} |
||||
String _rule; |
||||
String _contrast; |
||||
String _qa; |
||||
|
||||
String get rule => _rule; |
||||
String get contrast => _contrast; |
||||
String get qa => _qa; |
||||
|
||||
|
||||
set rule(String value) { |
||||
_rule = value; |
||||
} |
||||
|
||||
Map<String, dynamic> toJson() { |
||||
final map = <String, dynamic>{}; |
||||
map['rule'] = _rule; |
||||
map['contrast'] = _contrast; |
||||
map['qa'] = _qa; |
||||
return map; |
||||
} |
||||
|
||||
set contrast(String value) { |
||||
_contrast = value; |
||||
} |
||||
|
||||
set qa(String value) { |
||||
_qa = value; |
||||
} |
||||
} |
Loading…
Reference in new issue