Commit f3ca7895b60ea5ce0366ceb2aaead4d19c9a1e8e

Authored by wdn127929
1 parent 9555c583

分页

... ... @@ -131,7 +131,10 @@ class SellerUser extends Object {
@JsonKey(name: 'account')
String account;
SellerUser(this.count, this.nickName, this.uid, this.account);
@JsonKey(name: 'detailStr')
String detailStr;
SellerUser(this.count, this.nickName, this.uid, this.account, this.detailStr);
factory SellerUser.fromJson(Map<String, dynamic> srcJson) =>
_$SellerUserFromJson(srcJson);
... ...
... ... @@ -99,7 +99,8 @@ SellerUser _$SellerUserFromJson(Map<String, dynamic> json) {
json['count'] as String,
json['nick_name'] as String,
json['uid'] as String,
json['account'] as String
json['account'] as String,
json['detailStr'] as String
);
}
... ... @@ -108,5 +109,6 @@ Map<String, dynamic> _$SellerUserToJson(SellerUser instance) =>
'count': instance.count,
'nick_name': instance.nickName,
'uid': instance.uid,
'account':instance.account
'account':instance.account,
'detailStr':instance.detailStr
};
... ...
... ... @@ -720,8 +720,10 @@ class _StoreCustomerHomeLeftPageState extends State<StoreCustomerHomeLeftPage> {
);
}
Widget _managerWidget(String pnum, String btnTitle, String percent,
Widget _managerWidget(
String pnum, String btnTitle, String percent, String detailStr,
{String uid = ''}) {
List detailList = detailStr.split('-');
return Container(
// width: w(122),
height: w(116),
... ... @@ -734,6 +736,7 @@ class _StoreCustomerHomeLeftPageState extends State<StoreCustomerHomeLeftPage> {
Align(
alignment: Alignment.centerLeft,
child: Container(
// constraints: BoxConstraints(maxHeight: w(24)),
padding: EdgeInsets.symmetric(vertical: w(4), horizontal: w(5)),
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(r(3)),
... ... @@ -741,6 +744,8 @@ class _StoreCustomerHomeLeftPageState extends State<StoreCustomerHomeLeftPage> {
Border.all(color: MyColours.color_999999, width: w(1))),
child: Text(
btnTitle,
maxLines: 1,
overflow: TextOverflow.ellipsis,
style: TextStyle(
fontSize: font(12),
fontWeight: FontWeight.bold,
... ... @@ -952,7 +957,8 @@ class _StoreCustomerHomeLeftPageState extends State<StoreCustomerHomeLeftPage> {
return _managerWidget(
'${widget.customerProvider.storeSunmodel.distribution}',
'未分配经理',
null);
null,
'2-2-2');
}
return _managerWidget(
... ... @@ -963,6 +969,7 @@ class _StoreCustomerHomeLeftPageState extends State<StoreCustomerHomeLeftPage> {
? ''
: '${widget.customerProvider.storeSunmodel.sellerUser[index - 1].nickName ?? widget.customerProvider.storeSunmodel.sellerUser[index - 1].account}',
null,
'${widget.customerProvider.storeSunmodel.sellerUser[index - 1].detailStr}',
uid: widget.customerProvider.storeSunmodel
.sellerUser[index - 1].uid);
}),
... ...