Commit e0b5c9dd753bec87cfa5c691970fe7c9fcc1119e

Authored by wdn127929
1 parent 2b2b06f6

预订安排页刷新基本信息

... ... @@ -100,12 +100,20 @@ class _ContantLeftPageState extends State<ContantLeftPage> {
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text(model.userHistorys[index].rname,
Text(
model.userHistorys[index].rname == null ||
model.userHistorys[index].rname == ''
? ''
: model.userHistorys[index].rname,
style: TextStyle(
color: MyColours.color_333333,
fontSize: ScreenUtil().setSp(32))),
VEmptyView(10),
Text(model.userHistorys[index].phone,
Text(
model.userHistorys[index].phone == null ||
model.userHistorys[index].phone == ''
? ''
: model.userHistorys[index].phone,
style: TextStyle(
color: MyColours.color_999999,
fontSize: ScreenUtil().setSp(30)))
... ...
... ... @@ -136,8 +136,6 @@ class _ContantRightPageState extends State<ContantRightPage> {
// }
}
_openContactForm() async {
try {
var contact =
... ... @@ -258,12 +256,19 @@ class _ContantRightPageState extends State<ContantRightPage> {
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text(c.displayName,
Text(
c.displayName == null || c.displayName == ''
? ''
: c.displayName,
style: TextStyle(
color: MyColours.color_333333,
fontSize: ScreenUtil().setSp(32))),
VEmptyView(10),
Text(c.phones.first.value,
Text(
c.phones.first.value == null ||
c.phones.first.value == ''
? ''
: c.phones.first.value,
style: TextStyle(
color: MyColours.color_999999,
fontSize: ScreenUtil().setSp(30)))
... ...
... ... @@ -6,14 +6,14 @@ import 'package:one_key/models/seller_phone_model.dart';
import 'package:one_key/net/base_resp.dart';
import 'package:one_key/net/dio_util.dart';
import 'package:one_key/net/http_url.dart';
import 'package:one_key/provider/user_model.dart';
import 'package:one_key/utils/utils.dart';
import 'package:provider/provider.dart';
class BaseIndoProvider with ChangeNotifier {
BaseInfoSunModel baseInfoSunModel; //客户经理基础信息
List<SellerPhoneSunModel> photoList = []; //商家图片信息
///客户经理添加/修改基本信息
Future<dynamic> setCustomerActivityBaseinfo(
BuildContext context, Map<String, String> params,
... ... @@ -53,6 +53,12 @@ class BaseIndoProvider with ChangeNotifier {
data: params, showLoading: isShowLoading)
.catchError((error) {
print(error.toString());
Map<String, String> params = {
'sellerid':
Provider.of<UserModel>(context, listen: false).user.sellerid,
"uid": Provider.of<UserModel>(context, listen: false).user.openid,
};
getCustomerActivityBaseinfo(context, params, isShowLoading: false);
if (error is MyError) {}
});
if (baseResp.code == Constant.status_success) {
... ...