|
...
|
...
|
@@ -567,7 +567,7 @@ class InvicationPageState extends State<InvicationPage> |
|
|
|
// position = '请填写职位';
|
|
|
|
// phone = '请填写电话';
|
|
|
|
// qiniuUrl = '';
|
|
|
|
_setCustomerActivityBaseinfo();
|
|
|
|
// _setCustomerActivityBaseinfo();
|
|
|
|
}
|
|
|
|
|
|
|
|
if (detailModel.reserveImgText != null) {
|
|
...
|
...
|
@@ -1772,38 +1772,38 @@ class InvicationPageState extends State<InvicationPage> |
|
|
|
// }
|
|
|
|
|
|
|
|
//客户经理添加/修改基本信息
|
|
|
|
_setCustomerActivityBaseinfo() async {
|
|
|
|
Map<String, String?> params = {
|
|
|
|
'sellerid': Provider.of<UserModel>(context, listen: false).user!.sellerid,
|
|
|
|
"uid": Provider.of<UserModel>(context, listen: false).user!.openid,
|
|
|
|
"name": user!.sellername,
|
|
|
|
"photo": user!.sellerimage != '' && user!.sellerimage != null
|
|
|
|
? user!.sellerimage
|
|
|
|
: 'http://nosqn.colorcun.com/yd_person.png',
|
|
|
|
"position": '经理',
|
|
|
|
'phone': user!.sellerphone ?? ''
|
|
|
|
};
|
|
|
|
if (user!.userphone != null) {
|
|
|
|
params['phone'] = user!.userphone;
|
|
|
|
}
|
|
|
|
// _setCustomerActivityBaseinfo() async {
|
|
|
|
// Map<String, String?> params = {
|
|
|
|
// 'sellerid': Provider.of<UserModel>(context, listen: false).user!.sellerid,
|
|
|
|
// "uid": Provider.of<UserModel>(context, listen: false).user!.openid,
|
|
|
|
// "name": user!.sellername,
|
|
|
|
// "photo": user!.sellerimage != '' && user!.sellerimage != null
|
|
|
|
// ? user!.sellerimage
|
|
|
|
// : 'http://nosqn.colorcun.com/yd_person.png',
|
|
|
|
// "position": '经理',
|
|
|
|
// 'phone': user!.sellerphone ?? ''
|
|
|
|
// };
|
|
|
|
// if (user!.userphone != null) {
|
|
|
|
// params['phone'] = user!.userphone;
|
|
|
|
// }
|
|
|
|
|
|
|
|
bool isSuccess = await _baseIndoProvider
|
|
|
|
.setCustomerActivityBaseinfo(context, params, isShowLoading: false);
|
|
|
|
// detailModel.baseInfoSunModel = null;
|
|
|
|
if (isSuccess) {
|
|
|
|
name = user!.sellername;
|
|
|
|
qiniuUrl = user!.sellerimage != '' && user!.sellerimage != null
|
|
|
|
? user!.sellerimage
|
|
|
|
: 'http://nosqn.colorcun.com/yd_person.png';
|
|
|
|
// _uploadImageProvider.erweima.qiniuUrl =
|
|
|
|
// detailModel.baseInfoSunModel.qrcode;
|
|
|
|
phone = user!.userphone != null ? user!.userphone : '填写电话';
|
|
|
|
position = '经理';
|
|
|
|
_getReserveDetailRelationData();
|
|
|
|
// bool isSuccess = await _baseIndoProvider
|
|
|
|
// .setCustomerActivityBaseinfo(context, params, isShowLoading: false);
|
|
|
|
// // detailModel.baseInfoSunModel = null;
|
|
|
|
// if (isSuccess) {
|
|
|
|
// name = user!.sellername;
|
|
|
|
// qiniuUrl = user!.sellerimage != '' && user!.sellerimage != null
|
|
|
|
// ? user!.sellerimage
|
|
|
|
// : 'http://nosqn.colorcun.com/yd_person.png';
|
|
|
|
// // _uploadImageProvider.erweima.qiniuUrl =
|
|
|
|
// // detailModel.baseInfoSunModel.qrcode;
|
|
|
|
// phone = user!.userphone != null ? user!.userphone : '填写电话';
|
|
|
|
// position = '经理';
|
|
|
|
// _getReserveDetailRelationData();
|
|
|
|
|
|
|
|
setState(() {});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// setState(() {});
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
|
|
|
|
// _getCustomerActivityBaseinfo() async {
|
|
|
|
// Map<String, String?> params = {
|
...
|
...
|
|