|
|
@ -185,33 +185,8 @@ namespace BBWY.Client.ViewModels |
|
|
|
ChooseShop(departmentList[0].ShopList[0], true); |
|
|
|
return; |
|
|
|
} |
|
|
|
//var shopListResponse = mdsApiService.GetShopsByUserTeam(GlobalContext.User.Id);
|
|
|
|
//if (!shopListResponse.Success)
|
|
|
|
// throw new Exception(shopListResponse.Msg);
|
|
|
|
//if (shopListResponse.Data == null || shopListResponse.Data.Count == 0)
|
|
|
|
// throw new Exception("未绑定店铺");
|
|
|
|
//var shopList = shopListResponse.Data.Map<IList<Shop>>();
|
|
|
|
//if (shopList.Count == 1)
|
|
|
|
//{
|
|
|
|
// ShowShopChoosePanel = false;
|
|
|
|
// ChooseShop(shopList[0], true);
|
|
|
|
// return;
|
|
|
|
//}
|
|
|
|
//else
|
|
|
|
//{
|
|
|
|
// ShowShopChoosePanel = true;
|
|
|
|
// departmentList = new List<Department>();
|
|
|
|
// foreach (var shop in shopList)
|
|
|
|
// {
|
|
|
|
// var department = departmentList.FirstOrDefault(d => d.Id == shop.TeamId);
|
|
|
|
// if (department == null)
|
|
|
|
// {
|
|
|
|
// department = new Department() { Id = shop.TeamId, Name = shop.TeamName };
|
|
|
|
// departmentList.Add(department);
|
|
|
|
// }
|
|
|
|
// department.ShopList.Add(shop);
|
|
|
|
// }
|
|
|
|
//}
|
|
|
|
else |
|
|
|
ShowShopChoosePanel = true; |
|
|
|
} |
|
|
|
else |
|
|
|
{ |
|
|
|