|
...
|
...
|
@@ -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) {
|
...
|
...
|
|