Commit f3fa0f39e02b8eb92c60b82b5a0eebf8f13182d6

Authored by wdn127929
1 parent 5a51e239

客情分经理uid 客户详情带参数

... ... @@ -22,6 +22,7 @@ class MyContactListPage extends StatefulWidget {
final FromPage fromPage;
final bool sellerPreserve;
final bool sellerMarketing;
final String uid;
const MyContactListPage(
{Key key,
... ... @@ -29,7 +30,8 @@ class MyContactListPage extends StatefulWidget {
this.provider,
this.fromPage,
this.sellerPreserve,
this.sellerMarketing})
this.sellerMarketing,
this.uid})
: super(key: key);
@override
State<StatefulWidget> createState() {
... ... @@ -494,7 +496,7 @@ class _MyContactListPageState extends State<MyContactListPage> {
}
NavigatorUtil.goMyCustomerDetailPage(
context, model, widget.fromPage);
context, model, widget.fromPage,widget.uid);
}
},
child: Container(
... ...
... ... @@ -27,8 +27,10 @@ import '../../../../utils/screen_util.dart';
class MyCustomerDetailPage extends StatefulWidget {
final CustomerListSunModel userHistoryEntity;
final FromPage fromPage;
final String uid;
MyCustomerDetailPage({Key key, this.userHistoryEntity, this.fromPage})
MyCustomerDetailPage(
{Key key, this.userHistoryEntity, this.fromPage, this.uid})
: super(key: key);
@override
... ... @@ -59,7 +61,7 @@ class _MyCustomerDetailPageState extends State<MyCustomerDetailPage> {
_getGuestInfo() async {
Map<String, String> params = {
"uid": Provider.of<UserModel>(context, listen: false).user.openid,
"uid": widget.uid,
"id": widget.userHistoryEntity.id,
'phone': widget.userHistoryEntity.phone
};
... ...
... ... @@ -1561,6 +1561,7 @@ class _MyCustomerListPageState extends State<MyCustomerListPage>
);
} else {
return MyContactListPage(
uid:widget.uid,
contacts: model.userHistorys,
provider: customerProvider,
fromPage: widget.fromPage,
... ...
... ... @@ -149,10 +149,7 @@ class _MyMakeMarkingPageState extends State<MyMakeMarkingPage> {
///消费券
_couponNetworkData({bool isShowLoading = true}) async {
// customerMakingProvider.couponSelectIndex = 0;
Map<String, String> params = {
"uid": Provider.of<UserModel>(context, listen: false).user.openid,
'status': '1'
};
Map<String, String> params = {"uid": widget.uid, 'status': '1'};
await customerProvider.getCustomerSelectActivityNew(context, params,
isShowLoading: isShowLoading);
//此人已经新建好券
... ... @@ -174,7 +171,7 @@ class _MyMakeMarkingPageState extends State<MyMakeMarkingPage> {
return;
}
Map<String, String> params = {
"uid": Provider.of<UserModel>(context, listen: false).user.openid,
"uid": widget.uid,
"gid": gid,
"content": customerMakingProvider.controller.text
};
... ...
... ... @@ -70,7 +70,10 @@ class _StoreCustomerHomeRightPageState
messageMenuModel.uid = element.uid;
messageMenuModel.title = element.nickName ?? element.account;
messageMenuModel.select = false;
menuTitle.add(messageMenuModel);
if(messageMenuModel.title != null){
menuTitle.add(messageMenuModel);
}
});
if (menuTitle.length > 0) {
menuTitle[0].select = true;
... ...
... ... @@ -774,11 +774,12 @@ class NavigatorUtil {
static Future<dynamic> goMyCustomerDetailPage(
BuildContext context,
CustomerListSunModel userHistoryEntity,
FromPage fromPage, {
FromPage fromPage,
String uid, {
replace = false,
}) {
return _navigateTo(context,
"${Routes.my_customer_detail_page}?userHistoryEntity=${FluroConvertUtils.object2string(userHistoryEntity)}&fromPage=${FluroConvertUtils.enumToString(fromPage)}",
"${Routes.my_customer_detail_page}?userHistoryEntity=${FluroConvertUtils.object2string(userHistoryEntity)}&fromPage=${FluroConvertUtils.enumToString(fromPage)}&uid=${uid}",
replace: replace);
}
... ... @@ -1826,6 +1827,4 @@ class NavigatorUtil {
return _navigateTo(context, "${Routes.collect_store_info_page}",
replace: replace);
}
}
... ...
... ... @@ -1356,12 +1356,12 @@ var myCustomerDetailPageHandle = new Handler(
FromPage fromPage = FluroConvertUtils.enumFromString<FromPage>(
FromPage.values, params["fromPage"].first);
print(fromPage);
String uid = params["uid"].first;
return ChangeNotifierProvider<CustomerProvider>(
create: (_) => CustomerProvider(),
child: MyCustomerDetailPage(
userHistoryEntity: userHistoryEntity,
fromPage: fromPage,
));
userHistoryEntity: userHistoryEntity, fromPage: fromPage, uid: uid));
});
///编辑客户详情
... ...
... ... @@ -1741,7 +1741,7 @@ class Utils {
// String sellerImage =
// Provider.of<UserModel>(context, listen: false).user.sellerimage;
String _thumbnail = 'https://nosqn.colorcun.com/share_money.png';
String _thumbnail = 'https://nosqn.colorcun.com/share_coupon.jpg';
String _title = "${managerName}给您赠送${couponSunModel.aname},点击查看详情";
String _userName = "gh_487873d353b3";
... ...