[ios][promo] fixed transition to booking from 'More on booking' and placeholder resource name for booking popup

This commit is contained in:
Arsentiy Milchakov 2019-07-29 14:37:18 +03:00 committed by Aleksey Belousov
parent dd2026eab1
commit c69558e127
3 changed files with 7 additions and 6 deletions

View file

@ -565,6 +565,7 @@ void RegisterEventIfPossible(eye::MapObject::Event::Type const type, place_page:
logSponsoredEvent(data, kStatPlacePageHotelMore);
[UIApplication.sharedApplication openURL:data.sponsoredMoreURL
options:@{} completionHandler:nil];
[MWMEye transitionToBookingWithPos:CGPointMake(data.mercator.x, data.mercator.y)];
}
- (void)openReviewUrl

View file

@ -23,11 +23,11 @@ class PromoAfterBookingViewController: UIViewController {
}
private func setCityImage(_ imageUrl: String) {
cityImageView.image = UIColor.isNightMode()
? UIImage(named: "img_booking_popup_pholder_night")
: UIImage(named: "img_booking_popup_pholder")
if !imageUrl.isEmpty, let url = URL(string: imageUrl) {
cityImageView.wi_setImage(with: url, transitionDuration: kDefaultAnimationDuration)
cityImageView.image = UIColor.isNightMode()
? UIImage(named: "img_booking_popup_pholder_dark")
: UIImage(named: "img_booking_popup_pholder_light")
if !imageUrl.isEmpty, let url = URL(string: imageUrl) {
cityImageView.wi_setImage(with: url, transitionDuration: kDefaultAnimationDuration)
}
}

View file

@ -152,7 +152,7 @@ void GetPromoCityGalleryImpl(std::string const & baseUrl, std::string const & id
}
catch (base::Json::Exception const & e)
{
LOG(LERROR, (e.Msg()));
LOG(LERROR, (e.Msg(), httpResult));
onError();
return;
}