|
...
|
...
|
@@ -424,7 +424,8 @@ class CustomerProvider extends ChangeNotifier { |
|
|
|
BuildContext context, Map<String, String> params,
|
|
|
|
{isShowLoading = true}) async {
|
|
|
|
BaseResp<dynamic> baseResp = await DioUtil()
|
|
|
|
.request<dynamic>(context, Method.post, HttpUrl.create_activity_url_link,
|
|
|
|
.request<dynamic>(
|
|
|
|
context, Method.post, HttpUrl.create_activity_url_link,
|
|
|
|
data: params, showLoading: isShowLoading)
|
|
|
|
.catchError((error) {
|
|
|
|
print(error.toString());
|
|
...
|
...
|
@@ -610,7 +611,7 @@ class CustomerProvider extends ChangeNotifier { |
|
|
|
|
|
|
|
//我的客情 --- 用来获取客户列表
|
|
|
|
getCustomerList(BuildContext context, Map<String, String> params,
|
|
|
|
{bool load = false}) async {
|
|
|
|
{bool load = false, String labels = ''}) async {
|
|
|
|
BaseResp<List> baseResp = await DioUtil()
|
|
|
|
.request<List>(context, Method.post, HttpUrl.get_customer_list,
|
|
|
|
data: params, showLoading: load)
|
|
...
|
...
|
@@ -644,8 +645,12 @@ class CustomerProvider extends ChangeNotifier { |
|
|
|
selectCustomer = [];
|
|
|
|
List<CustomerListSunModel> temp =
|
|
|
|
CustomerListModel.fromJson(baseResp.responseData).data;
|
|
|
|
List<CustomerListSunModel> temp1 = await addDataSelectMy(temp);
|
|
|
|
userHistorys = temp1;
|
|
|
|
if (labels == '流失' || labels == '沉睡') {
|
|
|
|
userHistorys = temp;
|
|
|
|
} else {
|
|
|
|
List<CustomerListSunModel> temp1 = await addDataSelectMy(temp);
|
|
|
|
userHistorys = temp1;
|
|
|
|
}
|
|
|
|
|
|
|
|
getCheckValueMy();
|
|
|
|
labelsValueMy();
|
|
...
|
...
|
@@ -660,8 +665,13 @@ class CustomerProvider extends ChangeNotifier { |
|
|
|
// .addAll(CustomerListModel.fromJson(baseResp.responseData).data);
|
|
|
|
List<CustomerListSunModel> temp =
|
|
|
|
CustomerListModel.fromJson(baseResp.responseData).data;
|
|
|
|
List<CustomerListSunModel> temp1 = await addDataSelectMy(temp);
|
|
|
|
userHistorys.addAll(temp1);
|
|
|
|
|
|
|
|
if (labels == '流失' || labels == '沉睡') {
|
|
|
|
userHistorys.addAll(temp);
|
|
|
|
} else {
|
|
|
|
List<CustomerListSunModel> temp1 = await addDataSelectMy(temp);
|
|
|
|
userHistorys.addAll(temp1);
|
|
|
|
}
|
|
|
|
|
|
|
|
getCheckValueMy();
|
|
|
|
labelsValueMy();
|
|
...
|
...
|
@@ -2098,7 +2108,8 @@ class CustomerProvider extends ChangeNotifier { |
|
|
|
BuildContext context, Map<String, String> params,
|
|
|
|
{bool showLoading = false}) async {
|
|
|
|
BaseResp<dynamic> baseResp = await DioUtil()
|
|
|
|
.request<dynamic>(context, Method.post, HttpUrl.create_label_by_sellerid,
|
|
|
|
.request<dynamic>(
|
|
|
|
context, Method.post, HttpUrl.create_label_by_sellerid,
|
|
|
|
data: params, showLoading: showLoading)
|
|
|
|
.catchError((error) {
|
|
|
|
print(error.toString());
|
...
|
...
|
|